VNC is a protocol used for remote desktop or share your desktop with users / computers over the network / internet.
Because on a Linux VPS yet have limited aka GUI or command shell on a Windows Command Prompt. We need to install desktop environments like GNOME.
Centos 5 32 bit
Once the pass has been completed turn off vnc-server because we will edit confignya
save the file by pressing the esc key, then type: x, press the enter key.
Centos 6
Because on a Linux VPS yet have limited aka GUI or command shell on a Windows Command Prompt. We need to install desktop environments like GNOME.
The first phase is to install the Desktop package. Type the following command in PuTTY.
Wait until the process is complete, and then type the following command, which is useful for mengisntall VNC server that allows VPS CentOS can be accessed through our computer with the help of VNC Viewer.

Next we install fonts.

After all installed, we need to create a vnc server running when booting or if at Windows startup.

Setting a password for a VPN with the following command. Fill in your password and verify password to confirm the password that you use.

Once we set the password, we headed to the stage of setting up VNC. Edit the file vncservers located in / ect / sysconfig /

Add the following code to the last line.

Then restart the VNC server with the following command.
First we kill service vnc server on the desktop number is set.

Then we will edit the startup files that go directly to the Gnome GUI.

At the end of the line, change to the following.

Settings on the server computer has been completed, it is time to access it using VNC Viewer.
Open a tool that we downloaded at the beginning of the tutorial. And enter the IP desktop VPS and numbers that we have previously set.
IP: Number Desktop -> 127.0.0.1:1

Click connect and you will be prompted to enter a password. If you follow the steps are correct, then you will find you can open the CentOS VPS through Windows.
Because on a Linux VPS yet have limited aka GUI or command shell on a Windows Command Prompt. We need to install desktop environments like GNOME.
yum groupinstall DesktopOn Centos 5
yum -y install firefoxthen install the desktop with the command
yum -y install java
yum -y install unzip
yum -y install vnc-server
yum -y install xfce-utilsIf the above command can not use this command
Centos 5 32 bit
Centos 5 64 bitwget http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm rpm -Uvh epel-release-5-4.noarch.rpm yum install xfce-utils
Once completed run the following commandwget http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm rpm -Uvh epel-release-5-4.noarch.rpm yum install xfce-utils
vncserverafter which it will be asked to set a password, enter the desired password min 6 words.
Once the pass has been completed turn off vnc-server because we will edit confignya
vncserver -kill :1Once we turn off the edit using the following command
nano /root/.vnc/xstartupChange the dressing twm &, be startxfce4 &,
save the file by pressing the esc key, then type: x, press the enter key.
Centos 6
Because on a Linux VPS yet have limited aka GUI or command shell on a Windows Command Prompt. We need to install desktop environments like GNOME.
The first phase is to install the Desktop package. Type the following command in PuTTY.
sudo yum groupinstall Desktop
Wait until the process is complete, and then type the following command, which is useful for mengisntall VNC server that allows VPS CentOS can be accessed through our computer with the help of VNC Viewer.
sudo yum install tigervnc-server
Next we install fonts.
sudo yum install xorg-x11-fonts-Type1
After all installed, we need to create a vnc server running when booting or if at Windows startup.
sudo chkconfig vncserver on
Setting a password for a VPN with the following command. Fill in your password and verify password to confirm the password that you use.
vncpasswd
Once we set the password, we headed to the stage of setting up VNC. Edit the file vncservers located in / ect / sysconfig /
sudo nano /etc/sysconfig/vncservers
Add the following code to the last line.
VNCSERVERS=”1:root”
VNCSERVERARGS[1]=”-geometry 1024×600″
Then restart the VNC server with the following command.
service vncserver restart
vncserver -kill :1
Then we will edit the startup files that go directly to the Gnome GUI.
sudo nano .vnc/xstartup
At the end of the line, change to the following.
#twm &Restart the VNC server with the command again as before.
exec gnome-session &
service vncserver restart
Settings on the server computer has been completed, it is time to access it using VNC Viewer.
Open a tool that we downloaded at the beginning of the tutorial. And enter the IP desktop VPS and numbers that we have previously set.
IP: Number Desktop -> 127.0.0.1:1
Click connect and you will be prompted to enter a password. If you follow the steps are correct, then you will find you can open the CentOS VPS through Windows.
0 comments:
Post a Comment