diff --git a/docker/startup.sh b/docker/startup.sh new file mode 100644 index 0000000..496d7d4 --- /dev/null +++ b/docker/startup.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +# set vnc passworld +x11vnc -storepasswd $VNC_PW ~/.vnc/passwd + +# start vncserver +vncserver :1 -localhost no -geometry=$VNC_GEOMETRY -depth=$VNC_DEPTH + +# start noVNC +./usr/lib/noVNC/utils/novnc_proxy --vnc localhost:5901 + +tail -f /dev/null \ No newline at end of file diff --git a/docker/xstartup b/docker/xstartup new file mode 100644 index 0000000..4acf083 --- /dev/null +++ b/docker/xstartup @@ -0,0 +1,14 @@ +#!/bin/sh +unset SESSION_MANAGER +unset DBUS_SESSION_BUS_ADDRESS +export GTK_IM_MODULE=fcitx +export QT_IM_MODULE=fcitx +export XMODIFIERS=@im=fcitx +export LANG=zh_CN.UTF-8 +fcitx -r + +# disable screen blanking +xset s off +xset s noblank + +startxfce4