這是本文件的舊版!


xrdp

yaourt -S xrdp
systemctl enable xrdp.service
systemctl start xrdp.service

x11VNC

pacman -S x11vnc
x11vnc -display :0 -auth ~/.Xauthority

set password

mkdir ~/.x11vnc
x11vnc -storepasswd PASSWORD ~/.x11vnc/passwd

vi /etc/systemd/system/x11vnc.service

[Unit]
Description=Start x11vnc at startup
After=multi-user.target
 
[Service]
Type=simple
ExecStart=/usr/bin/x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth /home/USERNAME/.vnc/passwd -rfbport 5900 -shared
 
[Install]
WantedBy=multi-user.target
systemctl enable x11vnc.service
systemctl start x11vnc.service

ref

http://jamyy.us.to/blog/2015/04/7354.html