FROM ubuntu:20.04
ENV LANG C.UTF-8
ENV DEBIAN_FRONTEND noninteractive
WORKDIR /home
RUN echo'root:cw'| chpasswd
RUN printf'#!/bin/sh\nexit 0'> /usr/sbin/policy-rc.d
COPY ./sources.list /etc/apt/sources.list
RUN apt-get update
RUN apt-getinstall-y systemd systemd-sysv dbus dbus-user-session
RUN apt-getinstall-y openssh-client openssh-server
RUN apt-getinstall-ywgetcurlgit telnet vimmake gcc iproute2 net-tools
RUN echo"PermitRootLogin yes">> /etc/ssh/sshd_config
RUN echo"Port 8422">> /etc/ssh/sshd_config
EXPOSE 8422
RUN apt-get update
RUN apt-getinstall-y gnome-shell ubuntu-desktop-minimal gnome-tweaks
RUN apt-getinstall-y gnome-terminal gnome-session-flashback
RUN apt-getinstall-y tightvncserver
ENTRYPOINT ["/sbin/init"]
deb http://mirrors.aliyun.com/ubuntu/ focal main restricted
deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted
deb http://mirrors.aliyun.com/ubuntu/ focal universe
deb http://mirrors.aliyun.com/ubuntu/ focal-updates universe
deb http://mirrors.aliyun.com/ubuntu/ focal multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-updates multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ focal-security main restricted
deb http://security.ubuntu.com/ubuntu/ focal-security universe
deb http://security.ubuntu.com/ubuntu/ focal-security multiverse