Infra Insert 04: Difference between revisions

This page was last edited on 1 February 2024, at 12:35.
(Created page with "<!------------------------> <!-- do not remove this --> <div id="infra##" class="infra-insert"> <!------------------------> Tmux installation Tmux is a terminal multiplexer, for collective editing in a terminal. Again, we are going to install this on the server (the pi). To use it you must be SSHed into the server as above 01-Set up Pi for local Network Access#Security via SSH Keys. So, assuming you are SSHed into your server, follow these steps. To install: apt-...")
 
No edit summary
Line 4: Line 4:
<!------------------------>
<!------------------------>


Tmux installation
'''Tmux installation
Tmux is a terminal multiplexer, for collective editing in a terminal. Again, we are going to install this on the server (the pi). To use it you must be SSHed into the server as above [[01-Set up Pi for local Network Access#Security via SSH Keys]].
'''


So, assuming you are SSHed into your server, follow these steps.
Tmux is a terminal multiplexer, for collective editing in a terminal. Again, we are going to install this on the server (the pi).
 
To use it you must be SSHed into the server as above. So, assuming you are SSHed into your server, follow these steps.


To install:
To install:


apt-get install tmux
'''$ apt-get install tmux
To create a new tmux session sign into the user under which you would like the session to be registered (in our case sudo). We would do this by executing the command:
'''
 
To create a new tmux session sign into the user under which you would like the session to be registered (in our case, sudo). We would do this by executing the command:
 
'''$ sudo su
'''
 
A tmux session is a shared terminal session where all those connected can input and execute commands synchronously. Now name your session, by replacing [name] with a name of your choice:


sudo su
'''$ tmux new -s [name]
A tmux session is a shared terminal session where all those connected can input and execute commands synchronously. Below name your session, by replacing [name] with a name of your choice :
'''


tmux new -s [name] 
example: '''tmux new -s mySession'''
example:` tmux new -s mySession


To join the session when on a server use the following command replacing [name] with the name of the session:
To join the session when on a server use the following command replacing [name] with the name of the session:


tmux a -t [name]  
'''$ tmux a -t [name]  
example: tmux a -t mySession
'''
 
example: '''tmux a -t mySession'''
 


Note: Everyone in a Tmux session is acting as the same user. However we can create split screens and multiple panes within Tmux so different people can work on different things.
Note: Everyone in a Tmux session is acting as '''the same user'''. However we can create split screens and multiple panes within Tmux so different people can work on different things.





Revision as of 12:35, 1 February 2024

Tmux installation

Tmux is a terminal multiplexer, for collective editing in a terminal. Again, we are going to install this on the server (the pi).

To use it you must be SSHed into the server as above. So, assuming you are SSHed into your server, follow these steps.

To install:

$ apt-get install tmux

To create a new tmux session sign into the user under which you would like the session to be registered (in our case, sudo). We would do this by executing the command:

$ sudo su

A tmux session is a shared terminal session where all those connected can input and execute commands synchronously. Now name your session, by replacing [name] with a name of your choice:

$ tmux new -s [name]

example: tmux new -s mySession

To join the session when on a server use the following command replacing [name] with the name of the session:

$ tmux a -t [name]

example: tmux a -t mySession


Note: Everyone in a Tmux session is acting as the same user. However we can create split screens and multiple panes within Tmux so different people can work on different things.