Operations 3 min read

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.

Qunar Tech Salon
Qunar Tech Salon
Qunar Tech Salon
Running Oracle Installation Remotely on Ubuntu Using SSH X11 Forwarding

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 yes

Third, 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.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

SSHUbuntuoracle-installationremote-guix11-forwarding
Qunar Tech Salon
Written by

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.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.