Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Para acceder necesitas:
- Putty: http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe
- Para luego de instalar todo:
- VNC Viewer (o uno de tu preferencia): https://www.realvnc.com/download/viewer/
- Nota: cuando vayas a entrar con el viewer ponen el siguiente puerto ":5901"después de la ip del VPS.
- Luego de entrar con Putty:
- #!/bin/sh
- # * Sino estas ejecutando este script copia comando por comando. Excepto los comentarios, como este. * #
- # Usar httpredir... Porque es mas rapido xD
- sed -i.backup 's/ftp.debian.org/httpredir.debian.org/g' /etc/apt/sources.list
- # Actualizar Debian y Asegurarse Que Las Keys Esten Instaladas Para Que No Falle
- apt-get -y update
- apt-get -y --force-yes install debian-archive-keyring
- apt-get -y update
- apt-get -y upgrade
- # Detener y Desactivar Servicios que no se Usaran (Apache, DNS Server y Samba)
- service apache2 stop
- update-rc.d apache2 disable
- service bind9 stop
- update-rc.d bind9 disable
- service samba stop
- update-rc.d samba disable
- # [Interactivo] Instalar Config del Teclado y Eso.
- apt-get install -y keyboard-configuration
- # Instalar X, LXDE, VNC, nano y htop - Cuando pida Teclado: Other -> OK -> Spanish -> OK -> Spanish -> OK
- apt-get -y install xorg lxde-core tightvncserver nano htop gvfs-fuse- fuse-
- # Instalar el Repo de Linux Mint que usaremos para Firefox
- echo deb http://packages.linuxmint.com debian import > /etc/apt/sources.list.d/linuxmint.list
- wget http://packages.linuxmint.com/pool/main/l/linuxmint-keyring/linuxmint-keyring_2009.04.29_all.deb
- dpkg -i linuxmint-keyring_2009.04.29_all.deb
- rm linuxmint-keyring_2009.04.29_all.deb
- # Actualizar info del Repo
- apt-get -y update
- # Instalar Firefox
- apt-get -y install firefox firefox-l10n-es
- # Instalar Hitleap
- apt-get update -y
- apt-get install libc6 -y
- hlvFile='/opt/hitleapviewer.tar.xz'
- if [ -d /opt/hitleapviewer ]; then rm -r /opt/hitleapviewer; fi
- if (($(uname -m) != 'x86_64')); then echo 'El HitLeap Viewer solo aguanta Linux de 64-bit (x86_64)';
- elif wget --no-check-certificate 'https://hitleap.com/viewer/latest?platform=Linux' -O "$hlvFile"; then
- mkdir -p /opt/hitleapviewer;
- tar xpvf "$hlvFile" -C /opt/hitleapviewer;
- echo rm "$hlvFile";
- else echo 'No Se Pudo Descargar el HitLeap Viewer'; fi
- if [ -d /opt/hitleapviewer ]; then
- # Crear icono en escritorio del Hitleap
- hlvIcon='/usr/share/applications/hitleapviewer.desktop'
- echo '[Desktop Entry]' > "$hlvIcon"
- {
- echo 'Version=1.0';
- echo 'Name=HitLeap Viewer';
- echo 'Name[es]=Visor HitLeap';
- echo 'Comment=HitLeap is a Traffic Exchange service, which automatically delivers free traffic to your website.';
- echo 'Comment[es]=HitLeap es un servicio de Intercambio de Trafico, el cual entrega automaticamente trafico gratis a tu sitio.';
- echo 'GenericName=Traffic Exchange Application';
- echo 'GenericName[es]=Aplicacion de Intercambio de Trafico';
- echo "Exec=sh -c '/opt/hitleapviewer/app/HitLeap-Viewer' dummy %k";
- echo 'Type=Application';
- echo 'Icon=applications-internet';
- echo 'Categories=Network;WebBrowser;Viewer;';
- echo;
- } >> "$hlvIcon"
- cp "$hlvIcon" ~/Desktop
- fi
- # Crear la config del VNC para que inicie el escritorio y lo haga en español:
- mkdir -p ~/.vnc/
- {
- echo '#!/bin/sh';
- echo;
- echo '[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources';
- echo 'xsetroot -solid grey';
- echo 'export XKL_XMODMAP_DISABLE=1';
- echo 'export LANG=es_ES.UTF-8';
- echo 'export LANGUAGE=es_ES.UTF-8';
- echo '/usr/bin/startlxde &';
- } > ~/.vnc/xstartup
- chmod +x ~/.vnc/xstartup
- # Auto Iniciar VNC al Prender el VPS con rc.local
- sed -e '$i sudo \/usr/bin/tightvncserver :1 -geometry 1024x768 -depth 16\n' -i /etc/rc.local
- # Abrir VNC para que crear la clave - Te pedirá la clave 2 veces
- # - También puedes programar una clave para solo ver, pero no hace falta así que 'N'
- tightvncserver :1 -geometry 1024x768 -depth 16
- ----------------------------------------------------------------------------------------------
- Fin!!!
- ----------------------------------------------------------------------------------------------
- # Otros
- ----------------------------------------------------------------------------------------------
- # Reiniciar VNC para cuando reinicien el VPS o no les funcione
- tightvncserver -kill :1
- export LANG=es_ES.UTF-8
- tightvncserver :1 -geometry 1024x768 -depth 16
- ----------------------------------------------------------------------------------------------
- # Cambiar clave del VNC, se ejecutas desde el PuTTy
- vncpasswd
- ----------------------------------------------------------------------------------------------
- # 7-Zip
- apt-get install p7zip-full
- Para Extraer:
- 7za x Mi-Archivo.7z
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement