FROM ubuntu:24.04 ### install systemd RUN apt update && \ apt upgrade --yes && \ apt install --yes systemd && \ systemctl set-default multi-user.target CMD ["/sbin/init"] RUN yes | unminimize RUN DEBIAN_FRONTEND=noninteractive \ apt install --yes \ task-mate-desktop \ ubuntu-mate-core \ task-ssh-server RUN apt install --yes \ mandoc less info plocate bash-completion \ wbritish highlight elinks ncal tree \ nano jed vim emacs netcat-openbsd ftp \ iputils-ping traceroute iputils-tracepath \ rsync aspell lynx highlight git tmux m4 ### enable dark background for vim RUN sed -i /etc/vim/vimrc -e 's/^"set background=dark/set background=dark/' ### set a better prompt for the root RUN PS1='${debian_chroot:+($debian_chroot)}\[\033[01;31m\]\u\[\033[01;33m\]@\[\033[01;36m\]\h \[\033[01;33m\]\w \[\033[01;35m\]\$ \[\033[00m\]' && \ echo "PS1='$PS1'" >> /root/.bashrc ### add user (user1, pass1) and improve its prompt RUN useradd -m -s /bin/bash -G sudo user1 && \ echo user1:pass1 | chpasswd && \ PS1='${debian_chroot:+($debian_chroot)}\[\033[01;33m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ \[\033[01;32m\]' && \ echo "PS1='$PS1'" >> /home/user1/.bashrc && \ x='"\033[00m"' && echo "trap 'echo -ne $x' DEBUG" >> /home/user1/.bashrc