Enable Remote Desktop on Linux Using VNC

Please download to get full document.

View again

of 4
All materials on our website are shared by users. If you have any questions about copyright issues, please report us to resolve them. We are always happy to assist you.
Information Report
Category:

Documents

Published:

Views: 35 | Pages: 4

Extension: PDF | Download: 0

Share
Description
Enable remote desktop on Linux using VNC VNC stands for Virtual Network Computing. It is remote support software which allows you to view and fully interact with one computer desktop (the “VNC server”) using a simple program (the “VNC viewer”) on another computer desktop anywhere on the Internet. The two computers don’t even have to be the same type, so for example you can use VNC to view a Windows Vista desktop at the office on a Linux or Mac computer at home. For ultimate simplicity, there is
Tags
Transcript
  Enable remote desktop on Linux using VNC VNC stands for Virtual Network Computing. It is remote support software which allows you to view and fully interact with one computer desktop (the “VNC server”) using a simple program(the “VNC viewer”) on another computer desktop anywhere on the Internet. The two computersdon’t even have to be the same type, so for example you can use VNC to view a Windows Vistadesktop at the office on a Linux or Mac computer at home. For ultimate simplicity, there is evena Java viewer, so that any desktop can be controlled remotely from within a browser withouthaving to install software. Step-by-step In this section, I’ll show how to configure VNC server on Redhat server and using VNC Viewer  connect the server remotely from Windows XP. 1.   On Redhat server, login with your username that you want to enable remote access. In this example, I will use ‘admin’ user.  2.   Open Terminal, type ‘vncpasswd’  . Type your password and verify password again. Thiscommand will use to set you password for remote access for the current user.3.   Before next step, you need to logged on as root by type ‘su root’  .4.   Edit the file /etc/sysconfig/vncservers by type ‘ vi /etc/sysconfig/vncservers’  . Note: If you are new to Linux, vi is an editor tool in command line mode on Linux.    5.   You’ll see text file as in the figure below. Next, I’ll edit on the highligh t line.6.   Uncomment on the highlight line. If you have more than one usernames that want to enable remote acces, you can change VNCSERVERS value in this format, “1:username1 2:username23:username3 ….”. In this example, I have only one user which is root s o this line of mine is ‘ VNCSERVERS = “1:admin”  ‘.  7.   Now save the file and exit. To save file, hold ESC + ‘:’ and type ‘wq’ to write and quit file.  8.   Next, log off the user if you are not user ‘root’ and log in as root. Enable VNC service by type ‘chkconfig vncserver on’  . Then, start the VNC service by type ‘service vncserver start’  .9.   If you have firewall enable on Redhat, be sure that your firewall configuration won’t block connection from remote computer by open port TCP 5901 for remote access. Open Applications-> System Settings - > Security Level. Add ’5901:tcp’ on Other ports.    Note: VNC uses TCP protocol on port 5901.10.   Now you can connect Redhat server from remote computer. On my Windows XP computer,open VNC Viewer on Windows XP, type IP Address of Redhat server with number as a username specify in step 6. In this example, I want to remote to Redhat server as ‘admin’ user which I assign as number 1 in step 6 (1:admin) and my Redhat server is 10.110.141.220. So I type ’10.110.141.220:1′.   Note: You can download VNC Viewer for free at realvnc.com  11.   Type your password for ‘admin’ user which has been assign in step 2.  12.   Now you have connect to Redhat server remotely. But yo u’ll see that the interface looks different. You have to do a little thing more.  13.   On Redhat server, open terminal and type ‘vi /home/username/.vnc/xstartup’  . In this example, I type ‘vi /home/admin/.vnc/xstartup’.   Note: If you going to enable remote access for user ‘root’, the file would be at‘/root/.vnc/xstartup’.  14.   Uncomment these two lines and save the file. Note: If you want to force to load Gnome or KDE Desktop on remote access, edit the last line from ‘twm &’ to ‘startx &’ for Gnome and ‘startkde &’ for KDE Desktop.  15.   Type ‘service vncserver restart’ to apply changes.  16.   Reconnect using VNC viewer on remote computer again. Now you will see the desktop as you were log in at the server but now you’re remotely .
We Need Your Support
Thank you for visiting our website and your interest in our free products and services. We are nonprofit website to share and download documents. To the running of this website, we need your help to support us.

Thanks to everyone for your continued support.

No, Thanks
SAVE OUR EARTH

We need your sign to support Project to invent "SMART AND CONTROLLABLE REFLECTIVE BALLOONS" to cover the Sun and Save Our Earth.

More details...

Sign Now!

We are very appreciated for your Prompt Action!

x