You will need several things to get started:
root privledges
A good password!
As I mentioned above, this example is done with RHEL, which comes standard with VNCserver installed. To start the vncserver simply invoke the following commands:
<script type="text/javascript"><!--
google_ad_client = "pub-1147749160714474";
google_ad_width = 300;
google_ad_height = 250;
google_ad_format = "300x250_as";
google_cpa_choice = "CAEQ_Kid_AIaCJc2Q-Pqtw68KKj1y6wB";
//-->
</script>
<script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript">
<iframe name="google_ads_frame" marginwidth="0" marginheight="0" src="http://pagead2.googlesyndication.com/cpa/ads?client=ca-pub-1147749160714474&amp;cpa_choice=CAEQ_Kid_AIaCJc2Q-Pqtw68KKj1y6wB&amp;oe=gb2312&amp;dt=1200670942609&amp;lmt=1200670942&amp;prev_fmts=110x32_as_rimg%2C125x125_as_rimg&amp;format=300x250_as&amp;output=html&amp;correlator=1200670942437&amp;url=http%3A%2F%2Fskullbox.net%2Fvncserver.php&amp;region=_google_cpa_region_&amp;ref=http%3A%2F%2Fwww.google.cn%2Fsearch%3Fcomplete%3D1%26hl%3Dzh-CN%26newwindow%3D1%26q%3Dlinux%2Bvnc%26meta%3D%26aq%3Df&amp;cc=644&amp;ga_vid=349361733.1200670942&amp;ga_sid=1200670942&amp;ga_hid=636335829&amp;flash=9&amp;u_h=768&amp;u_w=1024&amp;u_ah=738&amp;u_aw=1024&amp;u_cd=32&amp;u_tz=480" frameborder="0" width="300" scrolling="no" height="250" allowtransparency="allowtransparency"></iframe>
So what did we do there? First, we started the vncserver service. It may or may not have already been running on your system. Next we set a password to access the VNC desktop. When you set the password, you will not see any characters on the screen, and you must enter the password twice. You will only need to do this the very first time you run vncserver. The password will be saved in the Linux filesystem, and you can change it at any time by invoking the vncpasswd command again. Last, to activate the VNC desktop, we simply invoked the vncserver command. Notice the output; the desktop is named "roswell:1" which can also be replaced via the machines IP address.
Upon successful connection, you will be prompted for a password. You will then see a terminal screen that will allow you to execute commands:
If you are new to linux, running VNC server with a terminal isn't going to do you much good. You might want to have a menu-driven GUI like Windows. No problem. Follow these steps:
First, we are going to assume that VNCserver is running under the root user, as shown with the example above. For this example, I will be editing my VNCserver to enter Gnome. You can specify a KDE desktop if you have KDE installed on your server. Make sure you are in the root directory.
Using vi (vim) to edit the xstartup file, make sure your file matches this one:
Notice that the last line is "startx &" as this command will launch Gnome upon login via VNCserver. If you are using a KDE desktop, the line "startkde &" should replace the last line.
Logging in, you will be presented with a Gnome or KDE desktop.
Use the form below to send the author your thoughts. Your e-mail address is optional, but required if you would like a response