how to setup vncviewer on Oracle Linux on OCI compute
My Environment:
Source: Macbook
Target Server: OCI Compute Mahcine, OEL 8
====================================================================
[opc@myserver ~]$ sudo yum -y groups install "Server with GUI"
[opc@myserver ~]$ sudo yum -y install tigervnc-server
[opc@myserver ~]$ sudo yum -y install xterm
[opc@myserver ~]$ sudo su - oracle
[oracle@myserver ~]$ vncserver
WARNING: vncserver has been replaced by a systemd unit and is about to be removed in future releases.
Please read /usr/share/doc/tigervnc/HOWTO.md for more information.
You will require a password to access your desktops.
Password:
Verify:
Would you like to enter a view-only password (y/n)? n
A view-only password is not used
xauth: file /home/oracle/.Xauthority does not exist
New 'myserver:1 (oracle)' desktop is myserver:1
Creating default startup script /home/oracle/.vnc/xstartup
Creating default config /home/oracle/.vnc/config
Starting applications specified in /home/oracle/.vnc/xstartup
Log file is /home/oracle/.vnc/myserver:1.log
[oracle@myserver ~]$ ps -ef | grep -i vnc
oracle 77290 1 0 10:36 pts/0 00:00:00 /usr/bin/Xvnc :1 -auth /home/oracle/.Xauthority -desktop myserver:1 (oracle) -fp catalogue:/etc/X11/fontpath.d -geometry 1024x768 -pn -rfbauth /home/oracle/.vnc/passwd -rfbport 5901 -rfbwait 30000
oracle 80596 77245 0 10:46 pts/0 00:00:00 grep --color=auto -i vnc
Now open a new ssh session like following from laptop/client machine:
ssh -L 5901:localhost:5901 -i bhushan-oci-01.pem opc@129.213.27.142
Now using vncviewer:
localhost:5901
Comments