mamanga

Autostart, login and x11vnc

Aug 7th, 2024 (edited)
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | Source Code | 0 0
  1. Para autologin en Debian LXDE
  2.  
  3. ingresar desde consola root con
  4. nano /etc/lightdm/lightdm.conf
  5. y agregar al final
  6.  
  7. [Seat:*]
  8. pam-service=lightdm
  9. pam-autologin-service=lightdm-autologin
  10. autologin-user="TU USUARIO"
  11. autologin-user-timeout=0
  12. session-wrapper=/etc/X11/Xsession
  13. greeter-session=lightdm-greeter
  14.  
  15. Guardar y reboot
  16.  
  17. Para que se ejecute x11vnc automaticamente
  18.  
  19. 1- instalar x11vnc
  20. 2- mkdir /etc/x11vnc
  21. 3- crear pasword con x11vnc --storepasswd /etc/x11vnc/vncpwd
  22. 4- crear seervicio con nano /lib/systemd/system/x11vnc.service
  23. agregando
  24.  
  25. [Unit]
  26. Description=Start x11vnc at startup.
  27. After=multi-user.target
  28.  
  29. [Service]
  30. Type=simple
  31. ExecStart=/usr/bin/x11vnc -auth guess -forever -noxdamage -repeat -rfbauth /etc/x11vnc/vncpwd -rfbport 5900 -shared
  32.  
  33. [Install]
  34. WantedBy=multi-user.target
  35.  
  36. 4- agregar desde consola root estos comandos
  37.  
  38. -systemctl daemon-reload
  39. -systemctl enable x11vnc.service
  40. -systemctl start x11vnc.service
  41. -reboot
  42.  
  43. PARA ANTIX con RUNIT
  44.  
  45. Terminal:
  46.  
  47. 1 – sudo apt install x11vnc
  48.  
  49. 2- x11vnc -storepasswd
  50.  
  51. (we write the password 2 times and then Y)
  52.  
  53. 3- $ nano /home/USER/.desktop-session/startup
  54.  
  55. (In USER put your user home)
  56. Once opened with nano at the end add:
  57.  
  58. x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth /home/USER/.vnc/passwd -rfbport 5900 -shared -display :0 >/dev/null 2>&1 &
  59.  
  60. (here also replace USER with the User home created)
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
Tags: debian
Advertisement
Add Comment
Please, Sign In to add comment