Monday, March 2, 2020

X11

X11 is a network protocol designed for Unix and similar operating systems to enable remote graphical access to applications. 
The original X windowing system was announced in 1984 and developed at MIT.
A machine running an X windowing system can launch a program on a remote computer. 
All the CPU processing happens on the remote computer but the display of the application appears on the local machine.


Now days X11 is useful for install software in servers from your computer.
For example to install Oracle Weblogic or Oracle DB in CentOS/RedHat (Server)

yum install xorg-x11-xauth
yum install xorg-x11-utils
yum install xorg-x11-server-utils
yum install xorg-x11-apps

Depending on your client
  • Windows
Use Putty and select Enable X11 forwarding



  • Mac OS
Install XQuartz  (https://www.xquartz.org/)
Modify /etc/ssh/ssh_config
ForwardX11 yes

Configure XQuartz 





Open Terminal
Connect to Server ssh -X root@x.x.x.x

Tell to X11 where is the client
export DISPLAY=x.x.x.x:0.0

Run command, example

xclock

  • Ubuntu
sudo apt-get install xauth
sudo apt-get install xorg
sudo apt-get install openbox



Open Terminal
Connect to Server ssh -X root@x.x.x.x

Tell to X11 where is the client
export DISPLAY=x.x.x.x:0.0

xclock



If you need to check logs
ssh -X -vv oracle@x.x.x.x

No comments:

Post a Comment