Advertisement
Guest User

Untitled

a guest
Sep 18th, 2019
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. 1. sudo apt-get update
  2. 2. sudo apt-get install gnome-core
  3. 3. sudo apt-get install vnc4server
  4. 4. vncserver
  5. 5. contraseña
  6. 6. vncserver -kill :1
  7. 7. nano .vnc/xstartup
  8. 8. ctrl + k borra las lineas
  9.  
  10. #!/bin/sh
  11.  
  12. # Uncomment the following two lines for normal desktop:
  13. unset SESSION_MANAGER
  14. # exec /etc/X11/xinit/xinitrc
  15.  
  16. #[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
  17. #[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
  18. #xsetroot -solid grey
  19. #vncconfig -iconic &
  20. #x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
  21. #x-window-manager &
  22.  
  23. metacity &
  24. gnome-settings-daemon &
  25. gnome-panel &
  26.  
  27. ctrl + x para cerrar el editor
  28.  
  29. 'Y' para guardar
  30.  
  31.  
  32. 9. crear regla de cortafuegos
  33.  
  34. https://gyazo.com/f74cd8eb761c843c4409bd426a65f4a1
  35.  
  36. 10. clickar en el server
  37.  
  38. etiquetas de red: vnc-server
  39.  
  40. 11. vncserver en el servidor
  41.  
  42. 12. ssh kayzokayzozelanondo@104.155.52.253 -L 5903:localhost:5901
  43.  
  44. cambiar cuando sea necesario
  45.  
  46. 13. sudo iptables -S
  47.  
  48. sudo iptables -F INPUT
  49. comprobar con sudo iptables -S
  50.  
  51. sudo iptables -I INPUT -p tcp -s 83.213.15.234 --dport 5901 -j ACCEPT
  52. sudo iptables -A INPUT -p tcp -s 0.0.0.0/0 --dport 5901 -j DROP
  53. sudo iptables -D INPUT -p tcp -m tcp --dport 5901 -j DROP
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement