Magento Expert Forum - Improve your Magento experience

Results 1 to 2 of 2

Set up VNC Server (Remote Desktop) for Linux Ubuntu 12.04

  1. #1
    Administrator david's Avatar
    Join Date
    Nov 2012
    Posts
    260
    Thanks
    22
    Thanked 37 Times in 31 Posts

    Thumbs up Set up VNC Server (Remote Desktop) for Linux Ubuntu 12.04

    We are usually using remote desktop to manage Window Server because it 's friendly user interface so that it 's the first choice for almost people. But maybe many people don't know Linux OS also support the same functionality with VNC Server. Here is step by step how to install VNC Server for Ubuntu 12.04

    1. Update OS

    I consider you are login as root account to Ubuntu server via SSH, let 's update all of resource:

    Code:
    apt-get update
    2. Install graphic support library and tools

    Code:
    apt-get install gnome-core gnome-session-fallback
    3. Upgrade to make sure all of packages work well if you need

    Code:
    apt-get upgrade
    4. Install VNC4Server package

    Code:
    apt-get install vnc4server
    5. Make VCN4Server start with OS

    Type this:

    Code:
    vncserver
    vncserver -kill :1
    cp .vnc/xstartup .vnc/xstartup.bak
    nano .vnc/xstartup
    And then enter this to startup code

    Code:
    #!/bin/sh
    
    # Uncomment the following two lines for normal desktop:
    unset SESSION_MANAGER
    #exec /etc/X11/xinit/xinitrc
    gnome-session –session=gnome-classic &
    
    [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
    [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
    xsetroot -solid grey
    vncconfig -iconic &
    #x-terminal-emulator -geometry 80×24+10+10 -ls -title “$VNCDESKTOP Desktop” &
    #x-window-manager &
    Now let 's start with configuration you want to screen resolution

    Code:
    vncserver -geometry 1680x1050
    And maybe this is a good start for mobile phone

    Code:
    vncserver -geometry 1024x768 -depth 8

    If you get a grey screen when you try and connect tunnelling over SSH, don’t panic. Try using port 5902, because you might not have killed the initial session properly, or restarted a default one by mistake. If you don’t know what I mean by tunnelling, you might find that you can’t connect to the VNC server. The problem is the built-in firewall, ufw.

    Good luck to your server!!! Welcome any comment!

    View more threads in the same category:


  2. #2
    Administrator david's Avatar
    Join Date
    Nov 2012
    Posts
    260
    Thanks
    22
    Thanked 37 Times in 31 Posts

    Default

    One more thing that you need to download this for window to make the connection http://www.tightvnc.com/download.html

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •