---
# System prepended metadata

title: Virtual Network Computing (VNC)

---

# Virtual Network Computing (VNC)





## Installation
### Xfce
`sudo apt install xfce4 xfce4-goodies`
#### Default Display Manager
`lightdm`
### TightVNC
`sudo apt install tightvncserver`

## User Initialization
### Startup
- `mkdir ~/.vnc`
- Edit `~/.vnc/xstartup`
```
unset SESSION_MANAGER
startxfce4 &
```
- `chmod +x ~/.vnc/xstartup`
### Functions
- `mkdir ~/vnc`
- Edit `~/vnc/start` by `vncserver -geometry 1680x960 :99`
- Edit `~/vnc/display` by `ps -fU $USER | grep vnc | grep -oE " :[0-9]+"`
- Edit `~/vnc/kill` by `ps -fU $USER | grep vnc | grep -oE " :[0-9]+" | xargs vncserver -kill`
- `chmod +x ~/vnc/*`