Find the answer to your Linux question:
Results 1 to 5 of 5
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2008
    Location
    Sahrff Lahndun
    Posts
    33

    VNC Grey Screen (Hi-Res!)


    Linux-noob here

    (OK, not 'new', but I use it so infrequently that I might as well be actually new!)

    I'm trying to get VNC working to a new install of Ubuntu 16.04.1 (Desktop). i.e. I want to be able to remote on to the Linux box froma PC using VNC Viewer.

    I got to a point where I could connect but I'd just get a lo-res grey window of nothingness. Having followed these instructions I've now got to a hi-res grey window of nothingness.
    Screenshot from 2017-02-14 12-46-39.png
    So, some improvement, but...!

    At step 4 of section 'Configure VNC for a Full Desktop' it states "You should now see the full Ubuntu Desktop", but, not entirely unreasonably (there's only so much you can put in a set of instructions, after all) it doesn't say what to do if you can't see the full Ubuntu desktop.

    So, I'm sorry folks, I have to ask you, what I should do next?

  2. #2
    I guess you are using TigerVNC as your VNC server.

    What did you put into your ~/.vnc/xstartup file?
    What desktop environment do you use (LXDE, XFCE, UNITY)?
    Can you see a small menu after you click secondary button on your mouse inside VNC?

  3. #3
    Just Joined!
    Join Date
    Apr 2008
    Location
    Sahrff Lahndun
    Posts
    33
    Hi, Andros, thanks for the response.
    Quote Originally Posted by andros705 View Post
    I guess you are using TigerVNC as your VNC server.
    I don't recall seeing/choosing TigerVNC.I just ran sudo apt-get install vnc4server

    Quote Originally Posted by andros705 View Post
    What did you put into your ~/.vnc/xstartup file?
    This:
    Code:
    #!/bin/sh
    # Uncomment the following two lines for normal desktop:
    # unset SESSION_MANAGER
    # exec /etc/X11/xinit/xinitrc
    [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
    [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
    xsetroot -solid grey
    vncconfig -iconic &
    
    #xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
    #twm &
    ##if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
    ##      eval `dbus-launch --sh-syntax –exit-with-session`
    ##      echo "D-BUS per-session daemon address is: \
    ##      $DBUS_SESSION_BUS_ADDRESS"
    ##fi
    ##exec  gnome-session
    x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
    x-window-manager &
    Quote Originally Posted by andros705 View Post
    What desktop environment do you use (LXDE, XFCE, UNITY)?
    Whatever came on the install CD. Again, I don't recall making a choice, but I think it's Gnome.

    Quote Originally Posted by andros705 View Post
    Can you see a small menu after you click secondary button on your mouse inside VNC?
    No. Nothing happens when I click with any of the buttons in the VNC window.

    Let me know what I can do to answer the questions about VNC and desktop environment versions.

  4. $spacer_open
    $spacer_close
  5. #4
    Looks like you will have to use GNOME desktop os your VNC DE, many people discourage using Unity because it doesn't work well with VNC.

    This is what you have to do:

    This command will install alternative desktop environment files:
    Code:
    apt-get install gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal
    Then you will have to put this into your ~/.vnc/xstartup file:
    Code:
    #!/bin/sh
    
    export XKL_XMODMAP_DISABLE=1
    unset SESSION_MANAGER
    unset DBUS_SESSION_BUS_ADDRESS
    
    [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
    [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
    xsetroot -solid grey
    vncconfig -iconic &
    gnome-session &
    gnome-panel &
    gnome-settings-daemon &
    metacity &
    gnome-terminal &

  6. #5
    Just Joined!
    Join Date
    Apr 2008
    Location
    Sahrff Lahndun
    Posts
    33
    That's done it! Thank you!

    Now all I need is to get vncserver to run at boot-up, then I'll have all I need.

    Thanks again, andros.
    Last edited by jpjeffery; 1 Week Ago at 03:24 PM.

Posting Permissions

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