Advertisement
crystallfoxx

Configuracion VPS, Debian 7 | SSAP

Aug 2nd, 2015
3,180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.56 KB | None | 0 0
  1. - Video Tutorial: https://youtu.be/VwmZdG3pGxk
  2.  
  3. Para acceder necesitas:
  4.  
  5. Putty: http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe
  6.  
  7. Para luego de instalar todo:
  8.  
  9. VNC Viewer (o uno de tu preferencia): https://www.realvnc.com/download/viewer/
  10.  
  11. Nota: cuando vayas a entrar con el viewer ponen el siguiente puerto ":5901"después de la ip del VPS.
  12.  
  13.  
  14. Luego de entrar con Putty:
  15.  
  16. #!/bin/sh
  17. # * Sino estas ejecutando este script copia comando por comando. Excepto los comentarios, como este. * #
  18.  
  19. # Probar si el VPS no tiene bloqueado ftp.debian.org sino cambiar el mirror a ftp.us.debian.org
  20. ping -c 3 ftp.debian.org &> /dev/null || sed -i.backup 's/ftp.debian.org/ftp.us.debian.org/g' /etc/apt/sources.list
  21.  
  22. # Actualizar Debian
  23. apt-get -y update
  24. apt-get -y upgrade
  25.  
  26. # Detener y Desactivar Servicios que no se Usaran (Apache, DNS Server y Samba)
  27. service apache2 stop
  28. update-rc.d apache2 disable
  29. service bind9 stop
  30. update-rc.d bind9 disable
  31. service samba stop
  32. update-rc.d samba disable
  33.  
  34. # Instalar X, LXDE, VNC, nano y htop - Cuando pida Teclado: Other -> OK -> Spanish -> OK -> Spanish -> OK
  35. apt-get -y install xorg lxde-core tightvncserver nano htop
  36.  
  37. # Instalar el Repo de Linux Mint que usaremos para Firefox
  38. echo deb http://packages.linuxmint.com debian import > /etc/apt/sources.list.d/linuxmint.list
  39. wget http://packages.linuxmint.com/pool/main/l/linuxmint-keyring/linuxmint-keyring_2009.04.29_all.deb
  40. dpkg -i linuxmint-keyring_2009.04.29_all.deb
  41. rm linuxmint-keyring_2009.04.29_all.deb
  42.  
  43. # Actualizar info del Repo
  44. apt-get -y update
  45.  
  46. # Instalar Firefox
  47. apt-get -y install firefox firefox-l10n-es
  48.  
  49. # Abrir VNC para que se creen las configs - Te pedirá la clave 2 veces
  50. # - También puedes programar una clave para solo ver, pero no hace falta así que 'N'
  51. tightvncserver :1 -geometry 1024x768 -depth 16
  52.  
  53. # Cerrar el VNC para editar la config
  54. tightvncserver -kill :1
  55.  
  56. # Editar la config del VNC para que inicie el escritorio siempre en español y abra el macro automaticamente:
  57. # Comentar /etc/X11/Xsession
  58. sed -e '/\/etc\/X11\/Xsession/ s/^#*/#/' -i ~/.vnc/xstartup
  59. echo 'export LANG=es_ES.UTF-8' >> ~/.vnc/xstartup
  60. # Iniciar LXDE
  61. echo '/usr/bin/startlxde &' >> ~/.vnc/xstartup
  62.  
  63. # Auto Iniciar VNC al Prender el VPS con rc.local
  64. sed -e '$i \/usr/bin/tightvncserver :1 -geometry 1024x768 -depth 16\n' -i /etc/rc.local
  65.  
  66. # Reiniciar VNC
  67. tightvncserver :1 -geometry 1024x768 -depth 16
  68.  
  69. Fin!!!
  70. ----------------------------------------------------------------------------------------------
  71.  
  72. # Otros
  73. ----------------------------------------------------------------------------------------------
  74. # Reiniciar VNC para cuando reinicien el VPS o no les funcione
  75.  
  76. tightvncserver -kill :1
  77. export LANG=es_ES.UTF-8
  78. tightvncserver :1 -geometry 1024x768 -depth 16
  79. ----------------------------------------------------------------------------------------------
  80. # Para ahorrar ancho banda y reducir consumo excesivo de CPU y RAM por parte de Youtube, hacer los siguientes sencillos pasos:
  81.  
  82. ✓ Paso 1: http://prntscr.com/81c9dz
  83. ✓ Paso 2: http://prntscr.com/81c9lr
  84. ✓ Resultado Final: http://prntscr.com/81c9sv
  85. ---------------------------------------------------------------------------------------------
  86. # Herramientas
  87. # Geany - Editor de Texto
  88.  
  89. apt-get install geany
  90.  
  91. # Cambiar clave del VNC, se ejecutas desde el PuTTy
  92.  
  93. vncpasswd
  94.  
  95. # 7-Zip
  96. apt-get install p7zip-full
  97.  
  98. Para Extraer:
  99.  
  100. 7za x Mi-Archivo.7z
  101. ____________________________________________________
  102. Preguntas Frecuentes: https://goo.gl/FvmfhW
  103.  
  104. Bot + Instrucciones: https://goo.gl/ldQrWi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement