Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


VNC setup on Lubuntu 20.04 LTS ~/.vnc/xstartup
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

VNC setup on Lubuntu 20.04 LTS ~/.vnc/xstartup

skorupionskorupion Member, Host Rep

What config should I use in ~/.vnc/startup to have VNC working on lubuntu.
Currently, it only shows a gray screen and an x as a cursor.

Comments

  • yoursunnyyoursunny Member, IPv6 Advocate
    edited April 2021

    xstartup is magic.
    You keep putting random commands found on the Internet, and it will eventually work.
    Maybe start with:

    xclock &
    

    The full xstartup in my computer account at college:

    #!/bin/sh
    
    unset SESSION_MANAGER
    
    cat /etc/lsb-release | grep precise
    if [ $? -eq 0 ]
    then
            gnome-session --session=gnome-classic
    fi
    
    exec /etc/X11/xinit/xinitrc
    
    [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
    [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
    xsetroot -solid grey
    vncconfig -iconic &
    

    This works for Ubuntu 11.10 and Ubuntu 12.04.


    Nowadays I use xvnc0 to avoid complications of xstartup.

    Thanked by 1bulbasaur
  • skorupionskorupion Member, Host Rep

    what dat?

  • rcxbrcxb Member

    @skorupion said:
    What config should I use in ~/.vnc/startup to have VNC working on lubuntu.
    Currently, it only shows a gray screen and an x as a cursor.

    Have it launch an xterm. Then you can try different commands and see which one starts up a desktop environment for you.

    Eventually, you probably want something like:

    while true
      startlxqt
      sleep 5
    done
    
Sign In or Register to comment.