PrelevatedInsider19044 commited on
Commit
2c492fb
1 Parent(s): 5692fb5

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -0
Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM debian:unstable
2
+ RUN apt update
3
+ RUN apt install curl wget -y
4
+ RUN curl http://deb.nodesource.com/setup_18.x | bash
5
+ RUN apt install qemu-system-x86 dbus-x11 kde-full tmux pulseaudio socat doas super gstreamer1.0-tools gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad firefox-esr krita neofetch aqemu wget curl python3-websockify git tigervnc* nodejs libxkbfile-dev libkrb5-dev libsecret-1-dev make g++ gcc -y
6
+ RUN echo 'root:root' | chpasswd
7
+ RUN useradd -m -u 1000 pi19044
8
+ RUN echo 'pi19044:PrelevatedInsider@19044' | chpasswd
9
+ RUN git clone https://github.com/PrelevatedInsider17763/noVNC.git
10
+ WORKDIR /noVNC
11
+ RUN wget https://raw.githubusercontent.com/me-asri/noVNC-audio-plugin/main/audio-plugin.js && wget https://raw.githubusercontent.com/me-asri/noVNC-audio-plugin/main/audio-proxy.sh
12
+ RUN echo "load-module module-simple-protocol-tcp listen=127.0.0.1 format=s16le channels=2 rate=48000 record=true playback=false" > /etc/pulse/default.pa.d/simple-protocol.pa
13
+ RUN chmod +x audio-proxy.sh
14
+ RUN mkdir /etc/websockify
15
+ RUN echo " vnc: 0.0.0.0:5901" > /etc/websockify/token.cfg
16
+ RUN echo " audio: 0.0.0.0:5711" >> /etc/websockify/token.cfg
17
+ WORKDIR /home/pi19044
18
+ ENV HOME=/home/pi19044\
19
+ PATH=/home/pi19044/.local/bin:$PATH
20
+ CMD vncserver -SecurityTypes none -geometry 1820x1024 && pulseaudio --start && /noVNC/utils/novnc_proxy --vnc localhost:5901 --listen 0.0.0.0:7860