Howdy, Stranger!

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

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

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

skorupionskorupion Member

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
    edited April 1

    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 1stevewatson301

    I snagged Deal of the Year: $6.9/year, 6 vCPU, 8GB RAM, 105GB NVMe - but it got away.

  • 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.