Skip to content

Commit

Permalink
feat: add partage-fichiers-lan.md
Browse files Browse the repository at this point in the history
  • Loading branch information
BoboTiG committed Feb 7, 2024
1 parent 6ced331 commit 61e0a10
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 2 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ sphinx==7.2.6
sphinx-contributors==0.2.7
sphinx-copybutton==0.5.2
# sphinx-design==0.5.0
# sphinx-tabs==3.4.5
sphinx-tabs==3.4.5
sphinx-togglebutton==0.3.2
2 changes: 1 addition & 1 deletion sources/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"sphinx.ext.intersphinx",
"sphinx.ext.todo",
# "sphinx_design",
# "sphinx_tabs.tabs",
"sphinx_tabs.tabs",
"sphinx_togglebutton",
]
myst_enable_extensions = [
Expand Down
42 changes: 42 additions & 0 deletions sources/linux/partage-fichiers-lan.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Partager simplement ses fichiers en LAN

L'idée est simple : démarrer un serveur de fichiers local.

Rendez-vous dans le dossier contenant les fichiers à partager et exécutez une des commandes suivantes :

`````{tabs}
````{tab} Python 3
```{code-block} shell
python -m http.server 8080 [-d FOLDER]
```
````
````{tab} Python 2
```{code-block} shell
python -m SimpleHTTPServer 8080 [-d FOLDER]
```
````
````{tab} PHP
```{code-block} shell
# apt install php-cli
php -S 0.0.0.0:8080 [-t FOLDER]
```
````
`````

---

## 📜 Historique

2024-02-07
: Déplacement de l'article depuis le [blog](https://www.tiger-222.fr/?d=2018/12/18/10/01/39-partager-simplement-ses-fichiers-en-lan).

2019-02-23
: Remplacement de `localhost` par `0.0.0.0` pour PHP.
: Utilisation du port `8080` à la place de `5555`.

2018-12-18
: Premier jet.

0 comments on commit 61e0a10

Please sign in to comment.