-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
buster update, latest chromium, AnyDesk remote desktop, REALVNC
- Loading branch information
1 parent
6aa0051
commit 5e7c6af
Showing
3 changed files
with
129 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#use armv7hf compatible base image | ||
FROM balenalib/armv7hf-debian:stretch | ||
FROM balenalib/armv7hf-debian:buster | ||
|
||
#dynamic build arguments coming from the /hooks/build file | ||
ARG BUILD_DATE | ||
|
@@ -14,76 +14,90 @@ LABEL org.label-schema.build-date=$BUILD_DATE \ | |
RUN [ "cross-build-start" ] | ||
|
||
#version | ||
ENV HILSCHERNETPI_DESKTOP_HDMI_VERSION 1.2.2 | ||
|
||
ENV HILSCHERNETPI_DESKTOP_HDMI_VERSION 1.3.0 | ||
|
||
#labeling | ||
LABEL maintainer="[email protected]" \ | ||
version=$HILSCHERNETPI_DESKTOP_HDMI_VERSION \ | ||
description="Desktop (HDMI) for netPI" | ||
|
||
#set user credentials | ||
ENV USER=testuser | ||
ENV PASSWD=mypassword | ||
|
||
#copy files | ||
COPY "./init.d/*" /etc/init.d/ | ||
|
||
#do user | ||
RUN apt-get update \ | ||
&& useradd --create-home --shell /bin/bash $USER \ | ||
&& echo $USER:$PASSWD | chpasswd \ | ||
&& adduser $USER tty \ | ||
&& adduser $USER video \ | ||
&& adduser $USER sudo \ | ||
&& adduser $USER input \ | ||
&& echo $USER " ALL=(root) NOPASSWD:ALL" >> /etc/sudoers.d/$USER \ | ||
&& chmod 0440 /etc/sudoers.d/$USER | ||
|
||
#update source lists, keys | ||
RUN echo "deb http://archive.raspberrypi.org/debian/ buster main" | tee -a /etc/apt/sources.list \ | ||
&& gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-key 82B129927FA3303E \ | ||
&& gpg -a --export 82B129927FA3303E | apt-key add - \ | ||
&& apt update \ | ||
#create testuser | ||
&& useradd --create-home --shell /bin/bash $USER \ | ||
&& echo $USER:$PASSWD | chpasswd \ | ||
&& adduser $USER tty \ | ||
&& adduser $USER video \ | ||
&& adduser $USER sudo \ | ||
&& adduser $USER input \ | ||
&& echo $USER " ALL=(root) NOPASSWD:ALL" >> /etc/sudoers.d/$USER \ | ||
&& chmod 0440 /etc/sudoers.d/$USER \ | ||
&& apt install -y \ | ||
#install ssh | ||
RUN apt-get update \ | ||
&& apt-get install -y openssh-server \ | ||
&& sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config \ | ||
&& sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd \ | ||
&& mkdir /var/run/sshd | ||
|
||
openssh-server \ | ||
&& sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config \ | ||
&& sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd \ | ||
&& mkdir /var/run/sshd \ | ||
#install xserver, desktop, login manager, ALSA sound driver | ||
RUN apt-get install --no-install-recommends xserver-xorg \ | ||
&& apt-get install --no-install-recommends xinit \ | ||
&& apt-get install xfce4 xfce4-terminal \ | ||
&& mkdir /etc/X11/xorg.conf.d \ | ||
&& chmod u+s /usr/bin/Xorg \ | ||
&& chown -c $USER /etc/X11/xorg.conf.d \ | ||
&& apt-get install xserver-xorg-input-evdev \ | ||
&& apt-get install gnome-icon-theme tango-icon-theme \ | ||
&& apt-get install alsa-oss alsa-tools alsa-tools-gui alsa-utils alsamixergui mpg123 \ | ||
&& touch /home/$USER/.Xauthority \ | ||
&& chmod 777 /home/$USER/.Xauthority | ||
|
||
&& apt install -y \ | ||
xserver-xorg \ | ||
xinit \ | ||
xfce4 \ | ||
xfce4-terminal \ | ||
&& mkdir /etc/X11/xorg.conf.d \ | ||
&& chmod u+s /usr/bin/Xorg \ | ||
&& chown -c $USER /etc/X11/xorg.conf.d \ | ||
&& apt install -y \ | ||
xserver-xorg-input-evdev \ | ||
gnome-icon-theme tango-icon-theme \ | ||
alsa-oss alsa-tools alsa-tools-gui alsa-utils alsamixergui mpg123 \ | ||
# && touch /home/$USER/.Xauthority \ | ||
# && chmod 777 /home/$USER/.Xauthority \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
#install userland raspberry pi tools (needed vor VNC) | ||
RUN apt-get update && apt install -y \ | ||
git \ | ||
&& git clone --depth 1 https://github.com/raspberrypi/firmware /tmp/firmware \ | ||
&& mv /tmp/firmware/hardfp/opt/vc /opt \ | ||
&& echo "/opt/vc/lib" >/etc/ld.so.conf.d/00-vmcs.conf \ | ||
&& /sbin/ldconfig \ | ||
&& rm -rf /opt/vc/src \ | ||
&& apt install -y \ | ||
#install VNC | ||
RUN apt-get install x11vnc \ | ||
&& mkdir /home/$USER/.vnc \ | ||
&& chown $USER:$USER /home/$USER/.vnc \ | ||
&& x11vnc -storepasswd "$PASSWD" /home/$USER/.vnc/passwd \ | ||
&& chown $USER:$USER /home/$USER/.vnc/passwd | ||
|
||
realvnc-vnc-server \ | ||
#install pulseaudio | ||
RUN apt-get install dbus-x11 pulseaudio \ | ||
&& sed -i -e 's;load-module module-console-kit;#load-module module-console-kit;' /etc/pulse/default.pa \ | ||
&& usermod -a -G audio $USER \ | ||
&& usermod -a -G pulse $USER \ | ||
&& usermod -a -G pulse-access $USER | ||
dbus-x11 pulseaudio \ | ||
&& sed -i -e 's;load-module module-console-kit;#load-module module-console-kit;' /etc/pulse/default.pa \ | ||
&& usermod -a -G audio $USER \ | ||
&& usermod -a -G pulse $USER \ | ||
&& usermod -a -G pulse-access $USER \ | ||
&& apt install \ | ||
#install chromium browser | ||
RUN apt-get install wget \ | ||
&& wget -O key.pgp https://bintray.com/user/downloadSubjectPublicKey?username=bintray \ | ||
&& apt-key add key.pgp \ | ||
&& echo "deb http://dl.bintray.com/kusti8/chromium-rpi jessie main" | tee -a /etc/apt/sources.list \ | ||
&& apt-get update \ | ||
&& apt-get install chromium-browser \ | ||
&& rm key.pgp | ||
chromium-browser \ | ||
#install screensaver | ||
xscreensaver \ | ||
#install anydesk | ||
&& apt install -y \ | ||
wget \ | ||
&& wget https://download.anydesk.com/rpi/anydesk_5.1.1-1_armhf.deb -P /tmp/ \ | ||
&& dpkg -i /tmp/anydesk_5.1.1-1_armhf.deb || apt install -f \ | ||
&& apt install libgles2* \ | ||
&& rm -rf /tmp/* \ | ||
&& apt remove wget git \ | ||
&& apt autoremove \ | ||
&& apt upgrade \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
#installe screensaver | ||
RUN apt-get install xscreensaver | ||
#copy files | ||
COPY "./init.d/*" /etc/init.d/ | ||
|
||
#set the entrypoint | ||
ENTRYPOINT ["/etc/init.d/entrypoint.sh"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters