If so, then add the ports used by VNC to the firewall configuration: If necessary, if the firewall is in use, add the ports in the firewall.įirst check if the firewall daemon is running right now, and enabled at boot time: And make sure to enable the execution bit on the xstartup file, by running:
Note here: Create the xstartup file, if it does not exist. & xrdb $HOME/.Xresourcesĭbus-launch -exit-with-session gnome-session & Replace the contents of the xstartup file with this: # cp the new file, and replace all entries of "" with "oracle".Įdit the xstartup user file in ~root/.vnc/xstartup and ~oracle/.vnc/xstartup. # cp the new file, and replace all entries in the files of "" with "root" ensure the home directory of user root is also set to /root, not /home/root. You will be asked if you would like to enter a view-only password. # yum -y update xterm xorg-x1-xinit tigervnc tigervnc-serverĬonfigure the VNC password for both root and user oracle (repeat for both users - log in as each user, and run the following command): These latest package versions are needed to make this work: If here, you are not using RHEL 7.5, but an older version of RHEL 7, then please make sure to (at least) update the following packages to the latest available versions. There is no need to specifically install Firefox - it is installed as part of the GUI installation. # yum -y install tigervnc tigervnc-server Note: This procedure will also work on older RHEL 7 versions, like RHEL 7.2 through RHEL 7.4, with a few minor changes as there are a few differences between these RHEL releases. The VNC port to use for user root will be 5901, and it will be 5092 for user oracle. The goal is to install a Linux desktop, Firefox and TigerVNC on a system with just a base (minimal) Red Hat 7.5 install (without a desktop), and to set up the VNC service for 2 users, in this case for user root, and for user oracle. Here's how to set up VNC on Red Hat 7.5, combined with the Gnome desktop, Firefox and TigerVNC. Topics: Red Hat / Linux, System Admin Multi-user VNC setup on RHEL 7.5