mirror of
https://github.com/fcwu/docker-ubuntu-vnc-desktop
synced 2025-12-06 16:32:47 +01:00
16 lines
558 B
Bash
Executable file
16 lines
558 B
Bash
Executable file
#!/bin/bash
|
|
|
|
mkdir -p /var/run/sshd
|
|
|
|
# create an ubuntu user
|
|
# PASS=`pwgen -c -n -1 10`
|
|
PASS=ubuntu
|
|
# echo "Username: ubuntu Password: $PASS"
|
|
id -u ubuntu &>/dev/null || useradd --create-home --shell /bin/bash --user-group --groups adm,sudo ubuntu
|
|
echo "ubuntu:$PASS" | chpasswd
|
|
sudo -u ubuntu -i bash -c "mkdir -p /home/ubuntu/.config/pcmanfm/LXDE/ \
|
|
&& cp /usr/share/doro-lxde-wallpapers/desktop-items-0.conf /home/ubuntu/.config/pcmanfm/LXDE/"
|
|
|
|
cd /web && ./run.py > /var/log/web.log 2>&1 &
|
|
nginx -c /etc/nginx/nginx.conf
|
|
exec /usr/bin/supervisord -n
|