Linux Resources : Différence entre versions
De Transport
(→Connecting to Polytechnique desktops) |
(→Connecting to Polytechnique desktops) |
||
Ligne 1 : | Ligne 1 : | ||
− | = Connecting to Polytechnique desktops = | + | == Connecting to Polytechnique desktops == |
− | * the first way to connect is though | + | * the first way to connect is though ssh, which, to put it simply, gives you the same access as to a terminal locally (see below for terminal resources) |
+ | ** ask the responsible person for the computer ip address and ssh port. You can then connect through <code>ssh -p [port] [user]@[ip_address]</code> using your local user name and password. | ||
* one can use a proprietary tool like Teamviewer for remote graphical access, but the free version has quirks and sometimes won't work anymore. In that case, one can use a 100% free solution relying on VNC (included on MacOS). | * one can use a proprietary tool like Teamviewer for remote graphical access, but the free version has quirks and sometimes won't work anymore. In that case, one can use a 100% free solution relying on VNC (included on MacOS). | ||
** make sure a VNC server (we'll use [https://wiki.archlinux.org/title/X11vnc x11vnc] since it is lightweight and full featured) is installed on the target computer | ** make sure a VNC server (we'll use [https://wiki.archlinux.org/title/X11vnc x11vnc] since it is lightweight and full featured) is installed on the target computer | ||
− | ** create a tunnel to the computer and start by typing | + | ** create a tunnel to the computer and start by typing |
− | + | ssh -t -L 5900:localhost:5900 username@ipaddress -p port 'x11vnc -localhost -display :0 | |
− | + | ||
− | + | where the username, ipaddress and port are replaced by the appropriate values (removing the last part in single quotes creates the tunnel, and one has to start x11vnc after connection) | |
+ | :* if a user is connected locally on the computer, you must connect as the same user through ssh. | ||
+ | :* it may be necessary to type <code>xhost + local:</code> before starting x11vnc. | ||
+ | :* connect to the computer using a VNC client, eg vinagre on Linux or [https://www.realvnc.com/en/connect/download/vnc/ realVNC] (the integrated client in MacOS insists on having a password, but we are not using one here): the address is simply 'localhost' since the tunnel does as if the remote computer is local on the specific VNC port (5900) | ||
+ | * access to files can be done through secure ftp (sftp) using a client like [https://filezilla-project.org/ filezilla] or on the command line using scp with the same information as for ssh. | ||
= Other = | = Other = | ||
* Taming the terminal https://www.bartbusschots.ie/s/blog/taming-the-terminal/ | * Taming the terminal https://www.bartbusschots.ie/s/blog/taming-the-terminal/ |
Version du 5 juillet 2023 à 15:47
Connecting to Polytechnique desktops
- the first way to connect is though ssh, which, to put it simply, gives you the same access as to a terminal locally (see below for terminal resources)
- ask the responsible person for the computer ip address and ssh port. You can then connect through
ssh -p [port] [user]@[ip_address]
using your local user name and password.
- ask the responsible person for the computer ip address and ssh port. You can then connect through
- one can use a proprietary tool like Teamviewer for remote graphical access, but the free version has quirks and sometimes won't work anymore. In that case, one can use a 100% free solution relying on VNC (included on MacOS).
- make sure a VNC server (we'll use x11vnc since it is lightweight and full featured) is installed on the target computer
- create a tunnel to the computer and start by typing
ssh -t -L 5900:localhost:5900 username@ipaddress -p port 'x11vnc -localhost -display :0
where the username, ipaddress and port are replaced by the appropriate values (removing the last part in single quotes creates the tunnel, and one has to start x11vnc after connection)
- if a user is connected locally on the computer, you must connect as the same user through ssh.
- it may be necessary to type
xhost + local:
before starting x11vnc. - connect to the computer using a VNC client, eg vinagre on Linux or realVNC (the integrated client in MacOS insists on having a password, but we are not using one here): the address is simply 'localhost' since the tunnel does as if the remote computer is local on the specific VNC port (5900)
- access to files can be done through secure ftp (sftp) using a client like filezilla or on the command line using scp with the same information as for ssh.
Other
- Taming the terminal https://www.bartbusschots.ie/s/blog/taming-the-terminal/