How To Setup VNC on CentOS 6

To successfully setup VNC and GNOME on CentOS 6 you need follow these steps either on a VPS, or on a Netinstall of CentOS 6. You need to use yum to download the GNOME Desktop environment & you can use install “KDE Desktop” instead of “Desktop” if you want to use KDE instead of GNOME.

yum groupinstall "Desktop"

Yum installation process will occur then after the Desktop group has installed successfully, install TigerVNC server and the font required for CentOS 6 to work.

yum install tigervnc-server xorg-x11-fonts-Type1

After GNOME Desktop Environment has been installed, you can start the VNC server. Login with the user you want to use the desktop for (safer to use a user other than root), and run the following command:

vncserver

When you run the command the first time, you will be asked to set a password for the account on VNC. After you set the password, you should see the following:

New 'theeandre.com:1 (root)' desktop is theeandre.com:1

Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/theeandre.com:1.log

Replace ‘theeandre.com’ with your VPS’s hostname. After the hostname, you will see a number. Add 5900 to that port and that will be the port VNC will run on. In this case port 5901 will be used. To stop the vnc server, use the following command, where port is the number you added to 5900:

vncserver -kill :port

How To Setup VNC on CentOS 6

To successfully setup VNC and GNOME on CentOS 6 you need follow these steps either on a VPS, or on a Netinstall of CentOS 6. You need to use yum to download the GNOME Desktop environment & you can use install “KDE Desktop” instead of “Desktop” if you want to use KDE instead of GNOME.

yum groupinstall "Desktop"

Yum installation process will occur then after the Desktop group has installed successfully, install TigerVNC server and the font required for CentOS 6 to work.

yum install tigervnc-server xorg-x11-fonts-Type1

After GNOME Desktop Environment has been installed, you can start the VNC server. Login with the user you want to use the desktop for (safer to use a user other than root), and run the following command:

vncserver

When you run the command the first time, you will be asked to set a password for the account on VNC. After you set the password, you should see the following:

New 'theeandre.com:1 (root)' desktop is theeandre.com:1

Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/theeandre.com:1.log

Replace ‘theeandre.com’ with your VPS’s hostname. After the hostname, you will see a number. Add 5900 to that port and that will be the port VNC will run on. In this case port 5901 will be used. To stop the vnc server, use the following command, where port is the number you added to 5900:

vncserver -kill :port

Posted 2 years ago & Filed under VNC, GNOME, Centos 6, Remote, Remote Desktop, VNC Viewer, 42 notes

Notes:

  1. theeandre posted this

About:

< code > i dream in < / code >

Following: