new
This commit is contained in:
@@ -1,11 +1,9 @@
|
|||||||
FROM ubuntu:14.04
|
FROM ubuntu:14.04
|
||||||
|
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y wget firefox lxde-core lxterminal tightvncserver
|
&& apt-get install -y wget firefox xfce4 vnc4server
|
||||||
ENV VNCPWD=xiaosong
|
ENV DISPLAY=":1" VNC_COL_DEPTH=24 VNC_RESOLUTION=1280x800 VNC_PW=xiaosong
|
||||||
RUN && mkdir ~/.vnc \
|
RUN wget http://fpdownload.macromedia.com/get/flashplayer/pdc/11.2.202.635/install_flash_player_11_linux.x86_64.tar.gz \
|
||||||
&& echo $VNCPWD $VNCPWD | vncpasswd && \
|
|
||||||
&& wget http://fpdownload.macromedia.com/get/flashplayer/pdc/11.2.202.635/install_flash_player_11_linux.x86_64.tar.gz \
|
|
||||||
&& mkdir flash_player \
|
&& mkdir flash_player \
|
||||||
&& tar zxvf install_flash_player_11_linux.x86_64.tar.gz -C flash_player \
|
&& tar zxvf install_flash_player_11_linux.x86_64.tar.gz -C flash_player \
|
||||||
&& mkdir -p ~/.mozilla/plugins/ \
|
&& mkdir -p ~/.mozilla/plugins/ \
|
||||||
|
|||||||
12
vnc.sh
12
vnc.sh
@@ -1,6 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Remove VNC lock (if process already killed)
|
##change vnc password
|
||||||
rm /tmp/.X1-lock /tmp/.X11-unix/X1
|
echo "change vnc password!"
|
||||||
# Run VNC server with tail in the foreground
|
(echo $VNC_PW && echo $VNC_PW) | vncpasswd
|
||||||
vncserver :1 -geometry 1280x800 -depth 24 && tail -F /root/.vnc/*.log
|
|
||||||
|
##start vncserver
|
||||||
|
vncserver -kill :1 && rm -rfv /tmp/.X* ; echo "remove old vnc locks to be a reattachable container"
|
||||||
|
vncserver $DISPLAY -depth $VNC_COL_DEPTH -geometry $VNC_RESOLUTION
|
||||||
|
sleep 1
|
||||||
Reference in New Issue
Block a user