Enable VNC (TightVNC) on Xubuntu 16.04: Difference between revisions

From EnigmaGuy Wiki
Jump to navigation Jump to search
Created page with "== Install TightVNC Server== <syntaxhighlight lang="bash"> apt-get install tightvncserver </syntaxhighlight> == Configure xstartup == Edit file ~/.vnc/xstartup <syntaxhighlig..."
 
No edit summary
 
Line 1: Line 1:
== Update (2019/Feb/02) ==
If you want to install TightVNC on Ubuntu 18.04 I recommend to use my tutorial for Lxde and Ubuntu 18.04 on [https://github.com/koss822/misc/tree/master/Linux/MySettings/myvnc Github.com/.../myvnc]
== Install TightVNC Server==
== Install TightVNC Server==
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">

Latest revision as of 13:56, 11 February 2019

Update (2019/Feb/02)

If you want to install TightVNC on Ubuntu 18.04 I recommend to use my tutorial for Lxde and Ubuntu 18.04 on Github.com/.../myvnc

Install TightVNC Server

apt-get install tightvncserver

Configure xstartup

Edit file ~/.vnc/xstartup

#!/bin/sh
xrdb $HOME/.Xresources
xsetroot -solid grey
startxfce4 &

Try running it

tightvncserver :10 -geometry 1152x864

Note: You should run it on screen 10 instead of 1 because screen 1 is used by XServer

Connect: xtightvncviewer server_hostname:5910

Kill it: tightvncserver -kill :10

Install TightVNC Server as Systemd service

Create /lib/systemd/system/tightvnc.service

[Unit]
Description=TightVNC Service

[Service]
Type=forking
ExecStart=/usr/bin/sudo -u your_username /usr/bin/tightvncserver :10 -geometry 1152x864
ExecStop=/usr/bin/sudo -u your_username /usr/bin/tightvncserver -kill :10

Start service: systemctl start tightvnc.service

Enable service: systemctl enable tightvnc.service