Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. apt-get install xorg xserver-xorg xdm xfce4 xfce4-goodies autocutsel
  2.  
  3. wget https://sourceforge.net/projects/turbovnc/files/2.1.1/turbovnc_2.1.1_amd64.deb/download
  4. dpkg -i download
  5.  
  6. ## vi /etc/X11/xdm/xdm-config
  7. ## ...
  8. !DisplayManager.requestPort: 0
  9. ## end of file
  10.  
  11. ## vi /etc/X11/xdm/Xaccess
  12. ## ...
  13. * #any host can get a login window
  14. ## ...
  15. ## end of file
  16.  
  17. ## vi /etc/X11/xdm/Xservers
  18. ## ...
  19. #:0 local /usr/bin/X :0 vt7 -nolisten tcp
  20. ## end of file
  21.  
  22. ## vi /etc/X11/xdm/Xsetup
  23. ## ...
  24. autocutsel -fork
  25. ## end of file
  26.  
  27. adduser vnc
  28. su vnc
  29. /opt/TurboVNC/bin/vncsever
  30. /opt/TurboVNC/bin/vncsever -kill :1
  31. exit
  32.  
  33. ## vi /etc/systemd/system/xvnc.socket
  34. [Unit]
  35. Description=XVNC Server
  36.  
  37. [Socket]
  38. ListenStream=5900
  39. Accept=yes
  40.  
  41. [Install]
  42. WantedBy=sockets.target
  43. ## end of file
  44.  
  45. ## vi /etc/systemd/system/xvnc@.service
  46. [Unit]
  47. Description=XVNC Per-Connection Daemon
  48.  
  49. [Service]
  50. ExecStart=-/opt/TurboVNC/bin/Xvnc -inetd -query localhost -once -securitytypes vnc -rfbport 5900 -rfbauth /home/vnc/.vnc/passwd
  51. User=vnc
  52. StandardInput=socket
  53. StandardError=syslog
  54. ## end of file
  55.  
  56. systemctl enable xvnc.socket
  57.  
  58. reboot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement