VNC Server安装
硬件:orangepi aipro 8G 操作系统:ubuntu22.04 orangepi
安装步骤
- Install VNC server and xfce4 desktop
To use VNC, a VNC server needs to be installed. There are multiple VNC servers which can be used. This recipe uses TigerVNC .
Desktop software is also needed. There are many options for this, but using xfce4 makes for a minimal install with good performance.
Install the desktop software.
sudo apt-get install xfce4 xfce4-goodies xorg dbus-x11 x11-xserver-utils xfce4-terminal -y
Install the VNC server.
sudo apt-get install tigervnc-standalone-server tigervnc-common -y
- Set a VNC password
Run the password command to set a password for VNC. This is not the password for the user account, just for the VNC client to connect to the VNC server.
vncpasswd
Remember the password for later when the client is connected.
- Configure the desktop startup
Create a file at $HOME/.vnc/xstartup
with the contents:
#!/bin/sh
unset SESSION_MANAGER
unset DBUS