Running Oracle Installation Remotely on Ubuntu Using SSH X11 Forwarding
To install Oracle or run other graphical applications on a remote Ubuntu machine, you can leverage X11 forwarding over SSH by enabling X11 support in sshd_config, connecting with the -X option, and launching GUI programs such as xeyes or Firefox, eliminating the need for a local GUI.
The author needed to install Oracle on a remote Ubuntu server, but discovered that the Oracle installer requires a graphical interface, raising the question of how to perform the installation remotely.
This problem has been solved for decades because Linux’s X server (XFree86/Xorg) natively supports remote graphical display, a capability that predates Windows Remote Desktop by about thirty years.
First, ensure that both the local and remote machines can reach each other via SSH. Then edit the remote machine’s sshd_config file to enable the following options:
AllowAgentForwarding yes
AllowTcpForwarding yes
GatewayPorts yes
X11Forwarding yesThird, connect to the remote host using SSH with X11 forwarding enabled: ssh -X [email protected] Fourth, launch the desired graphical applications on the remote host, for example:
$ xeyes &
$ firefox &Note: Unix/Linux graphical environments have supported remote display since their inception, offering a remote GUI capability that existed at least thirty years before Windows introduced its Remote Desktop feature.
Author: He Weiping, Qunar Travel & Vacation Division, search technology researcher and database researcher, former Yahoo China web search engineer, with nearly 18 years of IT experience.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
Qunar Tech Salon
Qunar Tech Salon is a learning and exchange platform for Qunar engineers and industry peers. We share cutting-edge technology trends and topics, providing a free platform for mid-to-senior technical professionals to exchange and learn.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
