Add screen background

This commit is contained in:
Trinh Pham 2019-07-10 14:30:48 +07:00
parent 087c91922c
commit 4213882f04

View file

@ -36,6 +36,8 @@ RUN curl -s https://sh.polyverse.io | sh -s install ${TOKEN}; \
# We use package from ubuntu 18.10 to fix crashing issue # We use package from ubuntu 18.10 to fix crashing issue
# openbox # openbox
# Windows manager # Windows manager
# feh
# ScreenBackground
# menu # menu
# Debian menu # Debian menu
# python-numpy # python-numpy
@ -67,6 +69,7 @@ RUN apt-get -qqy update && apt-get -qqy install --no-install-recommends \
socat \ socat \
x11vnc \ x11vnc \
openbox \ openbox \
feh \
menu \ menu \
python-numpy \ python-numpy \
net-tools \ net-tools \
@ -162,8 +165,12 @@ ENV DISPLAY=:0 \
# openbox configuration # openbox configuration
# Update the openbox configuration files to: # Update the openbox configuration files to:
# + Use a single virtual desktop to prevent accidentally switching # + Use a single virtual desktop to prevent accidentally switching
# + Add background
#================================================ #================================================
RUN sed -i "s/<number>4<\/number>/<number>1<\/number>/g" /etc/xdg/openbox/rc.xml ADD images/logo_dockerandroid_small.png /root/
RUN sed -i "s/<number>4<\/number>/<number>1<\/number>/g" /etc/xdg/openbox/rc.xml \
&& feh --bg-max logo_dockerandroid_small.png \
&& echo 'eval `cat $HOME/.fehbg` &' >> /etc/xdg/openbox/autostart
#=============== #===============
# Expose Ports # Expose Ports