1

On my VM I have installed Oracle Linux 9.6 without any desktop environment, so everything I have there is accessible through CLI. I would like to run Oracle Database GUI installer on that server by executing /uo1/app/oracle/product/19.0.0/dbhome_1/runInstaller and to do that I would like to use TigerVNC alongside with xterm. To do so on the server I have installed the packages:

dnf install tigervnc-server xterm

Then I can run VNC session in old-fashioned way by executing this command:

vncserver -geometry 1024x768

I can connect to the VNC session on port 5901 using Remmina and quick VNC connection. However, the command vncserver seems to be obsolete and will be removed in next versions of Oracle Linux. In the message shown after executing the vncserver command there is an information to use more modern approach with systemd.

My goal is to switch to this more modern method, but I've got a trouble there, because I don't know how the session should be properly configured when on my VM I don't have any desktop environment. In the config file /etc/tigervnc/vncserver-config-defaults there is really important setting called session and by default it is set to gnome:

session=gnome

When I leave it as it is and try to run the VNC using command sudo systemctl start vncserver@:1 I receive an error indicating that GNOME desktop session hasn't been configured on my server (which is obvious and intended).

Could not find session desktop file /usr/share/xsessions/gnome.desktop at /usr/libexec/vncserver line 322.
Could not load configured desktop session gnome
Could not find a desktop session to run

I will be thankful for tips how to configure TigerVNC on my Oracle Linux 9.6 using systemd to run GUI Oracle Database installer from there assuming, that there isn't any desktop environment.

1 Answer 1

1

One fairly simple method is to install an X server on your desktop, such as VcXsrv, and tunnel a X11 connection through ssh. You can then start xterm or /uo1/app/oracle/product/19.0.0/dbhome_1/runInstaller directly from the command line without going through a VNC desktop.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.