-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (33 loc) · 1.59 KB
/
Copy pathDockerfile
File metadata and controls
39 lines (33 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
From ubuntu:18.04
MAINTAINER github@inverse-problems.de
ENV DEBIAN_FRONTEND=noninteractive
# install repository
RUN apt-get update
RUN apt-get -y install curl software-properties-common
RUN curl https://winswitch.org/gpg.asc | apt-key add -
RUN echo "deb http://winswitch.org/ bionic main" > /etc/apt/sources.list.d/winswitch.list
RUN apt-get update
#if you want, install X11 basics. This is not needed.
#RUN apt-get install -y xorg openbox
#install xpra
# The latest version seems to have issues
#RUN apt-get install -y xpra=3.0.4-r24778-1 xpra-html5=3.0.4-r24778-1
RUN apt-get install -y xpra xpra-html5
#configure xpra
RUN apt-get install -y xterm ed less vim lxterminal wget
RUN mkdir /run/xpra; chmod 777 /run/xpra
RUN echo "start-child = /usr/bin/xterm" >>/etc/xpra/conf.d/60_server.conf
# Switch off mdns
RUN /bin/echo -e '/mdns\nc\nmdns = no\n.\nw\nq\n' | ed /etc/xpra/conf.d/50_server_network.conf
# Preselect German keyboard
RUN /bin/echo -e '/lang =\nc\nvar lang="de-de";\n.\nw\nq\n'|ed /usr/share/xpra/www/connect.html
RUN rm /usr/share/xpra/www/connect.html.*
# Apply patch for German dead keys
RUN cd /usr/share/xpra/www/js; rm Keycodes*; wget https://xpra.org/trac/export/24959/xpra/trunk/src/html5/js/Keycodes.js
RUN cd /usr/share/xpra/www/js; /bin/echo -e '1739\ni\nCHARCODE_TO_NAME[221] = "dead_acute"\nCHARCODE_TO_NAME[220] = "dead_circumflex"\nCHARCODE_TO_NAME[219] = "backtick"\n.\nw\nq\n'|ed Keycodes.js
#add a dummy user wuebbel with password wuebbel
RUN adduser wuebbel </dev/null
RUN /bin/echo -e "wuebbel\nwuebbel" | passwd wuebbel
COPY init.sh /
CMD /bin/bash /init.sh
WORKDIR /root