Desktop not showing well using vncserver on ubuntu 15.10

6,350

Simply start vncserver with the command:

/usr/bin/vncserver -geometry 1024x768 -depth 24 :0
  • geometry: define the resolution
  • depth: define color depth

If you want to automatically start it at boot, add it into /etc/rc.local

sudo cat "/usr/bin/vncserver -geometry 1024x768 -depth 24 :0" >> /etc/rc.local
Share:
6,350

Related videos on Youtube

Nullpointer
Author by

Nullpointer

Updated on September 18, 2022

Comments

  • Nullpointer
    Nullpointer over 1 year

    Currently using ubuntu 15.10 on azure and installed the gnome and vnc4server latest version on ubuntu. Please find log file below:

    Current VNC client screen:

    enter image description here

    $ cat .vnc/myhost1\:1.log   
    --cut--
    VNCSConnST:  Server default pixel format depth 16 (16bpp) little-endian rgb565
    VNCSConnST:  Client pixel format depth 8 (8bpp) colour-map
    Window manager warning: Invalid WM_TRANSIENT_FOR window 0x20000c specified for    0x20000b (I        nitialization error).
    Error org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name    'org.gnome.ze        itgeist.Engine': no such name
    amdxdg-su: no graphical method available for invoking '/usr/bin/amdcccle' as 'root'
    
    $ cat .vnc/xstartup
    unset SESSION_MANAGER
    
    [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
    [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
    
    vncconfig -iconic &
    
    gnome-panel &
    gnome-settings-daemon &
    metacity &
    nautilus -n &
    gnome-terminal &
    

    How to get 24bit color with wide screen (Now I getting square screen in vnc client)

  • Nullpointer
    Nullpointer over 8 years
    I follow above command but still same problem :<
  • Tung Tran
    Tung Tran over 8 years
    Are you using VNC Viewer client?
  • Tung Tran
    Tung Tran over 8 years
    If so click the Options button at the bottom of the VNC Viewer dialog and choose the Display tab and set the values you want to see if it gets effect.
  • Nullpointer
    Nullpointer over 8 years
    yes; real vnc on windows 7
  • Tung Tran
    Tung Tran over 8 years
    Please follow my above comment.
  • Nullpointer
    Nullpointer over 8 years
    I set the display options but stil screen is square and i think 8bit color !!!
  • Tung Tran
    Tung Tran over 8 years
    Make sure to enter the right session for the server address on the VNC Server box. As my start command, it should be your_server:0
  • Nullpointer
    Nullpointer over 8 years
    Thanks i get 24bit color but Still screen showing square !!!
  • Tung Tran
    Tung Tran over 8 years
    Have you tried different resolution from my sample -geometry 1024x768? Use the one which you think fits to your current Windows screen.
  • Tung Tran
    Tung Tran over 8 years
    Note that you can create multiple sessions for your vnc. So you don't need to stop your current session, start a new one, eg, /usr/bin/vncserver -geometry 1280 × 720 -depth 24 :1 and enter your_server:1 in the VNC Viewer box.
  • Nullpointer
    Nullpointer over 8 years
    Thanks to spend time with me; now i resolve all errors with you. After the set as my current windows resolution, Now i get wide sceen
  • Tung Tran
    Tung Tran over 8 years
    Glad to know that. If possible, please mark my answer as accepted (click the check-mark next to it).