How to Install VNC w/ GNOME on Debian VPS

Discussion in 'Site & Server Administration' started by VPS6NET, Jan 8, 2012.

  1. #1
    VNC is a remote desktop sharing system that will allow you to connect your home PC to a GUI (graphical interface) hosted on your VPS, for easy remote management. This guide will walk you through the steps required to setup and access a VNC server hosted on a Debian VPS.


    Before beginning, ensure you are logged in to your VPS as the root user, and run the following:


    # apt-get update
    # apt-get upgrade
    Code (markup):

    1. Install GNOME:


    #apt-get install gnome-desktop-environment
    Code (markup):

    2. Install required fonts:


    # apt-get install xfonts-100dpi
    # apt-get install xfonts-100dpi-transcoded
    # apt-get install xfonts-75dpi
    # apt-get install xfonts-75dpi-transcoded
    # apt-get install xfonts-base
    Code (markup):

    3. Install TightVNCServer:


    # apt-get install tightvncserver
    Code (markup):

    4. Start TightVNCServer for the first time, it will copy config files and prompt you for a password:


    # tightvncserver :1
    Code (markup):

    5. Stop the VNC server, so we can continue to configure it:


    # tightvncserver -kill :1
    Code (markup):

    6. Edit the xstartup file:


    # vi ~/.vnc/xstartup
    Code (markup):

    Press "A" to enter edit mode. Replace the contents of the file with the following (or edit to match):


    #!/bin/shxrdb $HOME/.Xresources
    xsetroot -solid grey
    x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
    # x-window-manager &
    gnome-session &
    Code (markup):

    Press ESC, type :wq, then press enter to save and close the file.


    7. Start the VNC server with your desired resolution:


    # tightvncserver -geometry 1024x768 :1
    Code (markup):

    You can now access your server's remote GNOME desktop with a desktop VNC client. Enter your server's main IP address, Port 1 (or 5901, alternately), and the password you set earlier to connect to the desktop.


    Rewritten from the VPS6.NET Knowledgebase: https://vps6.net/my/knowledgebase/52/How-to-Install-VNC-wor-GNOME-on-Debian-or-Ubuntu-VPS.html
     
    VPS6NET, Jan 8, 2012 IP
  2. Hostingder

    Hostingder Peon

    Messages:
    251
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    This wouldn't work so centos huh?
     
    Hostingder, Jan 8, 2012 IP
  3. VPS6NET

    VPS6NET Member

    Messages:
    55
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #3
    VPS6NET, Jan 8, 2012 IP
  4. Hostingder

    Hostingder Peon

    Messages:
    251
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Hostingder, Jan 8, 2012 IP