homehowtokbslinksaboutcontactprojectsmusic

Index > Knowledge Base > VNC Server on Ubuntu 18.04 LTS
install if needed
sudo apt install tightvncserver
start server
vncserver
configure it, kill the process started earlier
vncserver -kill :1
backup existing xstartup script and new on, adjust session name, I have mate so
mv ~/.vnc/xstartup ~/.vnc/xstartup.bak
cat << eot >> ~/.vnc/xstartup
#!/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 &
#x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
x-window-manager &
mate-session &
eot
now start the vnc server
vncserver
you can also use some command line arguments as well i.e. screen size etc
vncserver -depth 24 -geometry 1440x1024
References:
Install and Configure VNC on Ubuntu 18.04