hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Web Hosting Talk Tutorials : VPS Tutorials : How to setup Ubuntu with VNC for remote desktop
Reply

Forum Jump

How to setup Ubuntu with VNC for remote desktop

Reply Post New Thread In VPS Tutorials Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 03-07-2011, 09:20 PM
telvps telvps is offline
Disabled
 
Join Date: Jul 2010
Posts: 33

How to setup Ubuntu with VNC for remote desktop


To run a VNC server on your VPS, you need to have the desktop version of Ubuntu installed. The server version, which you are probably running, is missing some required features.

On your VPS, run the following command to install the desktop version:

Code:
sudo apt-get install ubuntu-desktop
While you are waiting for this to install, download the latest version of tightVNC for your OS (it's free), or another VNC client.

After the desktop install is complete you want to make sure GNOME is installed and configured:

Code:
sudo apt-get install gdm
Code:
sudo /etc/init.d/gdm start
Code:
sudo dpkg-reconfigure xserver-xorg
In order to remotely control the server, you need to install a VNC server. We are going to be using TightVNC, instaling VNC on your server and your computer.

This step will install tightVNC on the server :

Code:
sudo apt-get install tightvncserver
You can now start the VNC. Note: make sure you set a password and remember it when prompted. The password will have 7 character limit:

Code:
vncserver :1 -geometry 1024768 -depth 16 -pixelformat rgb565
If you forgot your password:

Code:
vncpasswd
Go a head and turn off the the VNC:

Code:
vncserver -kill :1
We want to configure it so the desktop environment uses GNOME. Open the startup file:

Code:
sudo nano ~/.vnc/xstartup
And add this line at the bottom:

Code:
gnome-session &
Restart your server:

Code:
sudo reboot
Start the VNC again:

Code:
vncserver :1 -geometry 1024768 -depth 16 -pixelformat rgb565
All of our VNC requests will come from port 590x. The last number is reserved for the desktop number that you assign. We are using 1 (:1) so we only need to open up 5901. If we wanted to start another sever (:2) then we would need to open up port 5902.

On your PC open up TightVNC Viewer. Set the Host to the IP of your server. Set the Display to 1 (:1).
Enter the password that you set when you started the server and connect. You should be remotely viewing your VPS's Ubuntu desktop!



Sponsored Links
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
------>Remote desktop Ubuntu 10.10 help <------- akietta VPS Hosting 13 01-09-2011 03:39 AM
Installing Remote Desktop on Ubuntu Ruriko Hosting Security and Technology 5 10-19-2010 02:11 PM
Help with VNC Viewer on Ubuntu Desktop 8.04 LTS 420cs VPS Hosting 1 05-28-2010 03:07 AM
$8.95/mo VPS --> 512MB Ram | 35GB HD | 1,500GB BW! INSTANT SETUP! VNC Remote Desktop! DMEHosting VPS Hosting Offers 13 07-31-2009 11:47 AM
Remote Desktop/VNC Repeater? HostedPlanet Running a Web Hosting Business 2 06-17-2009 01:25 PM

Related posts from TheWhir.com
Title Type Date Posted
Canonical to Close Cloud Storage Service Ubuntu One Web Hosting News 2014-04-03 14:05:25
Joyent Cloud Adds Platform Optimization, Support for Ubuntu Server Images Web Hosting News 2014-02-20 11:19:00
Nginx to be Included in Upcoming Ubuntu Release Web Hosting News 2014-01-08 15:17:12
ServInt Offers Ubuntu OS Option with Flex VPS Plans Web Hosting News 2013-03-01 12:50:20
Canonical Releases Ubuntu Server 12.10 with OpenStack Folsom Web Hosting News 2012-10-19 11:11:43


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?