Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apt-get install xorg xserver-xorg xdm xfce4 xfce4-goodies autocutsel
- wget https://sourceforge.net/projects/turbovnc/files/2.1.1/turbovnc_2.1.1_amd64.deb/download
- dpkg -i download
- ## vi /etc/X11/xdm/xdm-config
- ## ...
- !DisplayManager.requestPort: 0
- ## end of file
- ## vi /etc/X11/xdm/Xaccess
- ## ...
- * #any host can get a login window
- ## ...
- ## end of file
- ## vi /etc/X11/xdm/Xservers
- ## ...
- #:0 local /usr/bin/X :0 vt7 -nolisten tcp
- ## end of file
- ## vi /etc/X11/xdm/Xsetup
- ## ...
- autocutsel -fork
- ## end of file
- adduser vnc
- su vnc
- /opt/TurboVNC/bin/vncsever
- /opt/TurboVNC/bin/vncsever -kill :1
- exit
- ## vi /etc/systemd/system/xvnc.socket
- [Unit]
- Description=XVNC Server
- [Socket]
- ListenStream=5900
- Accept=yes
- [Install]
- WantedBy=sockets.target
- ## end of file
- ## vi /etc/systemd/system/xvnc@.service
- [Unit]
- Description=XVNC Per-Connection Daemon
- [Service]
- ExecStart=-/opt/TurboVNC/bin/Xvnc -inetd -query localhost -once -securitytypes vnc -rfbport 5900 -rfbauth /home/vnc/.vnc/passwd
- User=vnc
- StandardInput=socket
- StandardError=syslog
- ## end of file
- systemctl enable xvnc.socket
- reboot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement