### BEGIN INIT INFO # Provides: tightvncserver # Required-Start: $local_fs # Required-Stop: $local_fs # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Start/stop tightvncserver ### END INIT INFO # More details see: # http://www.penguintutor.com/linux/tightvnc ### Customize this entry # Set the USER variable to the name of the user to start tightvncserver under export USER='root' ### End customization required eval cd ~$USER case "$1" in start) # 启动命令行。此处自定义分辨率、控制台号码或其它参数。 su $USER -c '/usr/bin/tightvncserver -depth 16 -geometry 800x600 :1' echo "Starting TightVNC server for $USER " ;; stop) # 终止命令行。此处控制台号码与启动一致。 su $USER -c '/usr/bin/tightvncserver -kill :1' echo "Tightvncserver stopped" ;; *) echo "Usage: /etc/init.d/tightvncserver {start|stop}" exit 1 ;; esac exit 0
lbl@orangepi4:~$ sudo apt-get update Ign:1 https://mirrors.tuna.tsinghua.edu.cn/debian stretch InRelease Get:2 https://mirrors.tuna.tsinghua.edu.cn/debian stretch-updates InRelease [91.0 kB] Get:3 https://mirrors.tuna.tsinghua.edu.cn/debian stretch-backports InRelease [91.8 kB] Err:2 https://mirrors.tuna.tsinghua.edu.cn/debian stretch-updates InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7638D0442B90D010 NO_PUBKEY 04EE7237B7D453EC Err:3 https://mirrors.tuna.tsinghua.edu.cn/debian stretch-backports InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7638D0442B90D010 NO_PUBKEY 04EE7237B7D453EC Get:5 https://mirrors.tuna.tsinghua.edu.cn/debian-security stretch/updates InRelease [94.3 kB] Err:5 https://mirrors.tuna.tsinghua.edu.cn/debian-security stretch/updates InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9D6D8F6BC857C906 NO_PUBKEY AA8E81B4331F7F50 Get:6 https://mirrors.tuna.tsinghua.edu.cn/debian stretch Release [118 kB] Get:7 https://mirrors.tuna.tsinghua.edu.cn/debian stretch Release.gpg [2,410 B] Ign:7 https://mirrors.tuna.tsinghua.edu.cn/debian stretch Release.gpg Hit:4 https://apt.armbian.com bionic InRelease Reading package lists... Done W: GPG error: https://mirrors.tuna.tsinghua.edu.cn/debian stretch-updates InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7638D0442B90D010 NO_PUBKEY 04EE7237B7D453EC E: The repository 'https://mirrors.tuna.tsinghua.edu.cn/debian stretch-updates InRelease' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. W: GPG error: https://mirrors.tuna.tsinghua.edu.cn/debian stretch-backports InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7638D0442B90D010 NO_PUBKEY 04EE7237B7D453EC E: The repository 'https://mirrors.tuna.tsinghua.edu.cn/debian stretch-backports InRelease' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. W: GPG error: https://mirrors.tuna.tsinghua.edu.cn/debian-security stretch/updates InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9D6D8F6BC857C906 NO_PUBKEY AA8E81B4331F7F50 E: The repository 'https://mirrors.tuna.tsinghua.edu.cn/debian-security stretch/updates InRelease' is not signed. lbl@orangepi4:~$