diff --git a/Dockerfile b/Dockerfile index 97919ce..363905a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,9 +14,10 @@ # add new sudo user ENV USERNAME kbkn +ENV USERPASS kobaken ENV HOME /home/$USERNAME RUN useradd -m $USERNAME && \ - echo "$USERNAME:$USERNAME" | chpasswd && \ + echo "$USERNAME:$USERPASS" | chpasswd && \ usermod --shell /bin/bash $USERNAME && \ usermod -aG sudo $USERNAME && \ mkdir /etc/sudoers.d && \ @@ -167,7 +168,9 @@ RUN wget https://github.com/novnc/noVNC/archive/v1.2.0.zip && \ unzip -q v1.2.0.zip && \ rm -rf v1.2.0.zip && \ - git clone https://github.com/novnc/websockify /noVNC-1.2.0/utils/websockify + git clone https://github.com/novnc/websockify /noVNC-1.2.0/utils/websockify +# cp /noVNC-1.2.0/vnc.html /noVNC-1.2.0/index.html + # Xorg segfault error # dbus-core: error connecting to system bus: org.freedesktop.DBus.Error.FileNotFound (Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory) @@ -261,7 +264,6 @@ RUN echo "alias m='cd /home/$USERNAME ; su $USERNAME'" >> /root/.bashrc - COPY startup.sh /startup.sh COPY scripts/ /home/$USERNAME/scripts/ EXPOSE 5900 diff --git a/run.sh b/run.sh index c4d993b..866938b 100755 --- a/run.sh +++ b/run.sh @@ -8,7 +8,7 @@ -e NVIDIA_DRIVER_CAPABILITIES=compute,graphics,display \ -e QT_X11_NO_MITSHM=1 \ -e SDL_VIDEODRIVER=x11 \ - -e VNCPASS=pass \ + -e VNCPASS=kobaken \ -e RESOLUTION=1920x1080 \ --shm-size=512mb \ --net bridge \