Using VNC to connect to the Oracle Linux server without DE
1
vote
1
answer
65
views
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.
Asked by dtm_
(11 rep)
Jul 7, 2025, 05:37 PM
Last activity: Jul 8, 2025, 05:46 PM
Last activity: Jul 8, 2025, 05:46 PM