issue125:tutoriel2
Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
issue125:tutoriel2 [2017/10/01 18:56] – créée auntiee | issue125:tutoriel2 [2017/10/11 11:26] (Version actuelle) – auntiee | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | If you work a lot in GNU/Linux command-line or in a terminal emulator, as a programmer or system administrator, | + | **If you work a lot in GNU/Linux command-line or in a terminal emulator, as a programmer or system administrator, |
- | The so-called tmux application brings us a flexible, productive, mouse-free, terminal environment. This can be your new IDE (Integrated Development Environment) without any GUI (Graphical User Interface). The name of the tmux application refers to the words " | + | The so-called tmux application brings us a flexible, productive, mouse-free, terminal environment. This can be your new IDE (Integrated Development Environment) without any GUI (Graphical User Interface). The name of the tmux application refers to the words " |
- | The picture shows my tmux with my own configuration. Currently, it has one window with three panes (one vertical on the left and two horizontals on the right). The left one runs a “vim”, the right top one runs the “htop” application, and the right bottom one runs a pure “zsh” shell. All the programs are running in parallel and can be seen at the same time. Can you imagine a better working environment? | + | Si vous travaillez beaucoup dans GNU/Linux en ligne de commande ou dans un émulateur de terminal, comme programmeur ou administrateur système, vous réaliserez bientôt que l' |
- | Tmux uses a server-client model which has a great benefit. When we start tmux, a new session is opened on the server. When we leave the application (this is called " | + | L' |
- | An additional benefit is that it can be used either in a graphical environment inside terminal emulator, or in pure console mode. The memory footprint is also very impressive; it needs only 3-4 MB memory per session/ | + | **The picture shows my tmux with my own configuration. Currently, it has one window with three panes (one vertical on the left and two horizontals on the right). The left one runs a “vim”, the right top one runs the “htop” application, |
+ | |||
+ | Tmux uses a server-client model which has a great benefit. When we start tmux, a new session is opened on the server. When we leave the application (this is called " | ||
+ | |||
+ | L' | ||
+ | |||
+ | tmux utilise un modèle client-serveur qui a un grand intérêt. Quand nous démarrons tmux, une nouvelle session est ouverte sur le serveur. Quand nous quittons l' | ||
+ | |||
+ | **An additional benefit is that it can be used either in a graphical environment inside terminal emulator, or in pure console mode. The memory footprint is also very impressive; it needs only 3-4 MB memory per session/ | ||
The official website is: https:// | The official website is: https:// | ||
Ligne 17: | Ligne 25: | ||
Installation of tmux | Installation of tmux | ||
- | There are two ways to use tmux on your machine: (a) use the package manager or (b) build from source from github. Be advised that version 2.2 or higher has to be used at the time of reading this article series, earlier versions can have configuration incompatibilities or missing features. Personally, I use both Debian 8 (jessie) stable and Xubuntu 16.04 LTS, and their repositories contain the old version 1.9/2.1, so I have preferred to download the source code and compile it by myself. | + | There are two ways to use tmux on your machine: (a) use the package manager or (b) build from source from github. Be advised that version 2.2 or higher has to be used at the time of reading this article series, earlier versions can have configuration incompatibilities or missing features. Personally, I use both Debian 8 (jessie) stable and Xubuntu 16.04 LTS, and their repositories contain the old version 1.9/2.1, so I have preferred to download the source code and compile it by myself.** |
- | The tool has dependencies as well, be sure that the needed packages are available on your system: GCC compiler, libevent and ncurses. Let’s get them: | + | Un avantage supplémentaire est qu'il peut être utilisé, soit en environnement graphique dans un émulateur de terminal, soit en mode console pur. L' |
+ | |||
+ | Le site officiel est : https:// | ||
+ | |||
+ | Le code source est disponible sur github: https:// | ||
+ | |||
+ | La dernière publication tourne sur OpenBSD, FreeBSD, NetBSD, Linux, OS X et Solaris. | ||
+ | |||
+ | Installation de tmux | ||
+ | |||
+ | Il y a deux façons d' | ||
+ | |||
+ | **The tool has dependencies as well, be sure that the needed packages are available on your system: GCC compiler, libevent and ncurses. Let’s get them: | ||
sudo apt install build-essential libevent-dev libcnurses5-dev | sudo apt install build-essential libevent-dev libcnurses5-dev | ||
- | Tmux can be downloaded from its main web page or directly from github. The latest version is 2.4, available since April 20, 2017. Type the following commands in terminal: | + | Tmux can be downloaded from its main web page or directly from github. The latest version is 2.4, available since April 20, 2017. Type the following commands in terminal:** |
+ | L' | ||
+ | sudo apt install build-essential libevent-dev libcnurses5-dev | ||
- | cd ~ | + | tmux peut être téléchargé depuis sa page Web principale ou directement depuis github. La 2.4 est la dernière version, disponible depuis le 20 avril 2017. Tapez les commandes suivantes dans un terminal : |
+ | |||
+ | |||
+ | **cd ~ | ||
wget https:// | wget https:// | ||
Ligne 55: | Ligne 80: | ||
tmux | tmux | ||
- | After executing the start command, the following screen will be shown: | + | After executing the start command, the following screen will be shown:** |
- | What you see (below) is an opened tmux " | + | |
+ | cd ~ | ||
+ | |||
+ | wget https:// | ||
+ | |||
+ | tar -zxvf tmux-2.4.tar.gz | ||
+ | |||
+ | cd tmux-2.4 | ||
+ | |||
+ | ./ | ||
+ | |||
+ | make | ||
+ | |||
+ | sudo make install | ||
+ | |||
+ | cd .. | ||
+ | |||
+ | rm -rf tmux-2.4/ tmux-2.4.tar.gz | ||
+ | |||
+ | De façon à vous assurer que l' | ||
+ | |||
+ | tmux –V | ||
+ | |||
+ | tmux 2.4 | ||
+ | |||
+ | Démarrer tmux est très simple ; dans un terminal/ | ||
+ | |||
+ | tmux | ||
+ | |||
+ | Après exécution de la commande start, vous verrez l' | ||
+ | |||
+ | |||
+ | |||
+ | **What you see (below) is an opened tmux " | ||
exit | exit | ||
- | This will terminate the current tmux session. | + | This will terminate the current tmux session.** |
- | Conclusion | + | Ce que vous voyez (ci-dessous) est une « session » tmux ouverte (étiquetée avec « [0] » dans la barre de statut) avec une fenêtre active (étiquetée « 0:zsh* » dans la barre de statut). Ça semble identique à un terminal (ou une console) normal ; chaque commande peut être exécutée de la même manière. En plus, l' |
+ | |||
+ | exit | ||
+ | |||
+ | Ceci terminera la session tmux en cours. | ||
+ | |||
+ | **Conclusion | ||
This article covers the first steps to become a daily tmux user. Hopefully, it was enough to draw attention to this impressive tool. The next chapters will bring us the detailed usage of sessions, windows and panes. Later on, we are going to dig into the configuration of tmux. Get Productive! Get tmux! | This article covers the first steps to become a daily tmux user. Hopefully, it was enough to draw attention to this impressive tool. The next chapters will bring us the detailed usage of sessions, windows and panes. Later on, we are going to dig into the configuration of tmux. Get Productive! Get tmux! | ||
Ligne 70: | Ligne 134: | ||
tmux = start the program | tmux = start the program | ||
tmux -V = get the version of tmux | tmux -V = get the version of tmux | ||
- | exit = terminate the program | + | exit = terminate the program** |
+ | |||
+ | Conclusion | ||
+ | |||
+ | Cet article présente les premiers pas pour devenir un utilisateur quotidien de tmux. Avec un peu de chance, c' | ||
+ | |||
+ | Référence des commandes | ||
+ | tmux = lancer du programme | ||
+ | tmux -V = connaître la version de tmux | ||
+ | exit = terminer le programme | ||
+ |
issue125/tutoriel2.1506876997.txt.gz · Dernière modification : 2017/10/01 18:56 de auntiee