Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions linux/ubuntu/vncserver.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,20 @@
- tigervnc
- gnome-remote-desktop

`vncserver -list`

# 确认桌面

`echo $XDG_CURRENT_DESKTOP`

```shell
sudo apt install xfce4 xfce4-goodies tightvncserver(会要求你选择显示管理器是gdm3还是lightdm,这里选择lightdm)
# 启动
```shell
tightvncserver

nc -zv 127.0.0.1 5901
```

## `~/.vnc/config`
```conf
geometry=1920x1084
Expand All @@ -20,7 +26,13 @@ dpi=96

Add the following line to the end of the file:

`startxfce4 &`
```conf
#!/bin/bash
xrdb $HOME/.Xresources
startxfce4 &
```

`chmod +x ~/.vnc/xstartup`

如果是 ubuntu-desktop 环境
```shell
Expand Down