[Note]MAC remote desktop to ubuntu18.04 through TigerVNC
sudo apt-get install tightvncserver tigervnc-standalone-server tigervnc-viewer
開啟VNCServer
這邊要注意一下 如果直接下vncserver 會是127.0.0.1

必須多加上-localhost no 讓他走net
sudo vncserver -localhost no

sudo vncserver -list

因為以上都用sudo , 所以登入的時候會顯示root
但是輸入的root密碼會被阻擋 於是我希望用user登入
vncserver -localhost no
會發生
You will require a password to access your desktops.
Password:
Verify:
Would you like to enter a view-only password (y/n)? n
New 'ubuntu-kch:1 (milias)' desktop at :1 on machine ubuntu-kch
Starting applications specified in /etc/X11/Xvnc-session
Log file is /home/milias/.vnc/ubuntu-kch:1.log
Use xtigervncviewer -SecurityTypes VncAuth -passwd /home/milias/.vnc/passwd :1 to connect to the VNC server.
vncserver: Failed command '/etc/X11/Xvnc-session': 256!
=================== tail -15 /home/milias/.vnc/ubuntu-kch:1.log ===================
Xvnc TigerVNC 1.7.0 - built Dec 5 2017 09:25:01
Copyright (C) 1999-2016 TigerVNC Team and many others (see README.txt)
See http://www.tigervnc.org for information on TigerVNC.
Underlying X server release 11905000, The X.Org Foundation
Tue Dec 31 23:58:50 2019
vncext: VNC extension running!
vncext: Listening for VNC connections on local interface(s), port 5901
vncext: created VNC server for screen 0
XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":1"
after 175 requests (175 known processed) with 0 events remaining.
Killing Xtigervnc process ID 4992... which seems to be deadlocked. Using SIGKILL!
===================================================================================
Starting applications specified in /etc/X11/Xvnc-session has failed.
Maybe try something simple first, e.g.,
tigervncserver -xstartup /usr/bin/xterm
因此我從此出處找到解法
更新包出處 http://tigervnc.bphinz.com/nightly/
sudo apt install
./tigervnc-java_1.10.80+20200413git9a330f98–1ubuntu1_amd64.deb
./tigervncserver_1.10.80+20200413git9a330f98–1ubuntu1_amd64.deb
./xtigervncviewer_1.10.80+20200413git9a330f98–1ubuntu1_amd64.deb
重新設定密碼
vncpasswd ~/.vnc/passwd
開啟VNC服務
x0vncserver -passwordfile ~/.vnc/passwd

此時在Mac 連接VNC

大功告成!
