- Add PEM file in AWS (if you don't have one).
- Set PEM file permissions:
chmod 600 PEMFILE. - Create new Debian instance in AWS console.
- Update instance credentials in following scripts:
up-instance.shdn-instance.shssh2aws.shscp2aws.shvncview.sh
- Log in with following command:
./ssh2aws.sh. - Go
root:sudo su -. - Disable root password in
/etc/shadow(changeroot:*:...toroot:!:...). - Add
adminuser to grouptty:usermod -a -G tty admin. - Instal required software:
./install.sh. - Go back to
admin:C-d. - Start VNC server and set passwords:
vncserver. - Stop server:
./stopvnc.sh. - Move
xstartupto VNC directory:mv xstartup ~/.vnc/. - Disconnect from the instance:
C-d. - Connect to the instance with SSH tunnel:
./ssh2aws.sh 5901.
To start VNC server use ./startvnc.sh.
To stop VNC server use ./stopvnc.sh.
- Install VNC viewer.
- Connect:
./vncview,sh.