- 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.sh
dn-instance.sh
ssh2aws.sh
scp2aws.sh
vncview.sh
- Log in with following command:
./ssh2aws.sh
. - Go
root
:sudo su -
. - Disable root password in
/etc/shadow
(changeroot:*:...
toroot:!:...
). - Add
admin
user 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
xstartup
to 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
.