Public Repository

Last pushed: 2 years ago
Short Description
the desktop based on fedora 20 via novnc
Full Description

[USAGE]

You can use the following instruction to use:

//server side

docker run -d -p 6080:6080 richxsl/fedora-vnc-desktop

//client side

http://[YOUR_CLIENT_MACHINE_IP]:6080/vnc.html

You can use the following instruction to get the password of root/fedora account, the password of root account is random and it would be changed after restart:

docker logs CONTAINER_ID

User: root Password: hieghai8At

User: fedora Password: fedora

[Dockerfile]

FROM fedora:20

MAINTAINER "Shiliang Xu" richxsl@163.com

#force subsequent commands to run without any cache

ENV REFRESHED_AT 2015-01-25

ENV HOME /root

#install main packages:

#disabling yum update can get less volume of the docker image

RUN yum -y update && yum clean all

RUN yum -y install lxde-common.noarch \

               lxterminal.x86_64 \

               lxinput.x86_64 \

               lxappearance.x86_64 \

               lxtask.x86_64 && yum clean all

RUN yum -y install liberation-fonts-common.noarch \

               liberation-mono-fonts.noarch \

               liberation-narrow-fonts.noarch \

               liberation-sans-fonts.noarch \

               liberation-serif-fonts.noarch && yum clean all

RUN yum -y install x11vnc.x86_64 \

               xorg-x11-server-Xvfb.x86_64 \

               novnc.noarch \

               midori.x86_64 && yum clean all

RUN yum -y install openssh-server \

               pwgen \

               net-tools \

               supervisor && yum clean all

RUN mkdir -p /var/run/sshd /var/log/supervisor

COPY supervisord.conf /etc/supervisord.conf

#modify some sshd configure

RUN ssh-keygen -q -N "" -t dsa -f /etc/ssh/ssh_host_dsa_key

RUN ssh-keygen -q -N "" -t rsa -f /etc/ssh/ssh_host_rsa_key

RUN sed 's@session\srequired\spam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd

RUN useradd --create-home --shell /bin/bash --user-group fedora

ADD ./start.sh /start.sh

EXPOSE 6080

EXPOSE 5900

EXPOSE 22

CMD ["/start.sh"]

Docker Pull Command
Owner
richxsl