docker-ubuntu-vnc-desktop/startup.sh
2014-03-12 11:20:24 +08:00

18 lines
359 B
Bash
Executable file

#!/bin/bash
mkdir /var/run/sshd
# create an ubuntu user
PASS=`pwgen -c -n -1 10`
PASS=ubuntu
echo "User: ubuntu Pass: $PASS"
useradd --create-home --shell /bin/bash --user-group --groups adm,sudo ubuntu
echo "ubuntu:$PASS" | chpasswd
/usr/bin/supervisord -c /supervisord.conf
cd /tty.js && node ./tty-me.js --daemonize
while [ 1 ]; do
/bin/bash
done