/vnc_server_setup

Setup vnc server on RHEL 6/7/8 remote machine.

Primary LanguageShellGNU General Public License v3.0GPL-3.0

vnc_server_setup

Setup vnc server on RHEL 6/7/8 remote machine.

Example usage

For best experience, make sure that your SSH keys are accepted to authenticate as root on the remote machine.

Assume 192.168.2.100 is a remote machine on which we have a user who can install packages and add other users (root in the example below):

$ ./vnc_server_setup.sh 192.168.2.100
User with admin rights to '192.168.2.100' machine [root]:
### Copying vnc setup script to root@192.168.2.100:
root@192.168.2.100's password:
### Running vnc setup script on root@192.168.2.100:
root@192.168.2.100's password:
...
Connect to vnc server using '192.168.2.100:1' and password 'pass'.
Connection to 192.168.2.100 closed.

Now you can use vnc client to connect to the remote machine (for example TigerVNC Viewer).

If it doesn't work (e.g. you get a black screen), rebooting the remote host may help.