This article describes how to install UI environment on remote linux ubuntu server. It could be very usefull when using remote cloud servers for test purposes.
1) On your your remote server:
1.1) Download X packages
sudo apt-get install xserver-xorg-core
1.2) add to your /etc/ssh/sshd_config
X11Forwarding yes X11DisplayOffset 10
1.3) create .Xauthority File
touch ~/.Xauthority
Verify that xauth command is working
xauth info Authority file: /home/olivier/.Xauthority File new: no File locked: no Number of entries: 0 Changes honored: yes Changes made: no Current input: (argv):1 xauth list
2) On your local server
add to your ~/.ssh/config file have these lines:
Host * ForwardAgent yes ForwardX11 yes
3) Connect to the remote machine from local server
from your local server connect to your remote platform
ssh -X user@remote_machine
4) Test of Remote UI display
launch the command xterm or firefox
xterm
The display output xterm of xterm or firefox should appear on your local server.
5) pointers
- https://unix.stackexchange.com/questions/12755/how-to-forward-x-over-ssh-to-run-graphics-applications-remotely
- https://frans-web.com/?p=18
Les derniers articles par janua (tout voir)
- New Keycloak online training - 19 janvier 2022
- Sizing Keycloak or Redhat SSO projects - 8 juin 2021
- Keycloak.X Distribution - 28 janvier 2021