From 579db2522f2a036d3d4d2d8e5f60538169ee58d1 Mon Sep 17 00:00:00 2001 From: zeus Date: Sun, 19 Dec 2021 16:21:15 +0200 Subject: [PATCH] edit --- .../usr/share/swarmlab.io/sec/swarmlab-sec | 69 ------------------- 1 file changed, 69 deletions(-) diff --git a/install/usr/share/swarmlab.io/sec/swarmlab-sec b/install/usr/share/swarmlab.io/sec/swarmlab-sec index 4c6af67..0ba0db5 100755 --- a/install/usr/share/swarmlab.io/sec/swarmlab-sec +++ b/install/usr/share/swarmlab.io/sec/swarmlab-sec @@ -170,40 +170,6 @@ if [ -d "$Wdir/project" ]; then COPY .vimrc /home/docker -# Upgrade installed packages -RUN rm -rf /etc/apt/sources.list.d/fcwu-tw-ubuntu-apps-bionic.list* \ - && sed -i 's/tw.//g' /etc/apt/sources.list \ - && apt-get update -qq \ - && apt-get install -y --no-install-recommends -qq apt-utils \ - && apt-get purge -y -qq fonts-wqy-zenhei \ - && apt-get autoremove -y -qq \ - && apt-get upgrade -y -qq - -# Install required packages -RUN apt-get install -y --no-install-recommends -qq software-properties-common locales \ - && add-apt-repository -y ppa:papirus/papirus \ - && add-apt-repository -y ppa:apt-fast/stable \ - && curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg \ - && install -o root -g root -m 644 microsoft.gpg /etc/apt/trusted.gpg.d/ \ - && sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list' \ - && rm -f microsoft.gpg \ - && apt-get update -qq -RUN apt-get install -y --no-install-recommends -qq \ - nano bash-completion wget code lxtask openssh-server git xdotool filezilla putty dnsutils apt-fast \ - papirus-icon-theme fonts-noto-cjk fonts-noto-cjk-extra obconf lxappearance-obconf \ - && apt-get clean - -# Configure vscode extension --DISABLED: error on root -#RUN code --install-extension mhutchie.git-graph \ -# && code --install-extension eamodio.gitlens - -# Customizations : remove unused, change settings, copy conf files -RUN rm /usr/local/share/doro-lxde-wallpapers/bg[2-4].jpg \ - && sed -i "s/UI.initSetting('resize', 'off');/UI.initSetting('resize', 'scale');/g" /usr/local/lib/web/frontend/static/novnc/app/ui.js -COPY files / - -# SSHD run bugfix -RUN mkdir -p /run/sshd EXPOSE 80 EOF @@ -285,41 +251,6 @@ if [ "$Wdir" == "$HOME" ]; then COPY .vimrc /home/docker -# Upgrade installed packages -RUN rm -rf /etc/apt/sources.list.d/fcwu-tw-ubuntu-apps-bionic.list* \ - && sed -i 's/tw.//g' /etc/apt/sources.list \ - && apt-get update -qq \ - && apt-get install -y --no-install-recommends -qq apt-utils \ - && apt-get purge -y -qq fonts-wqy-zenhei \ - && apt-get autoremove -y -qq \ - && apt-get upgrade -y -qq - -# Install required packages -RUN apt-get install -y --no-install-recommends -qq software-properties-common locales \ - && add-apt-repository -y ppa:papirus/papirus \ - && add-apt-repository -y ppa:apt-fast/stable \ - && curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg \ - && install -o root -g root -m 644 microsoft.gpg /etc/apt/trusted.gpg.d/ \ - && sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list' \ - && rm -f microsoft.gpg \ - && apt-get update -qq -RUN apt-get install -y --no-install-recommends -qq \ - nano bash-completion wget code lxtask openssh-server git xdotool filezilla putty dnsutils apt-fast \ - papirus-icon-theme fonts-noto-cjk fonts-noto-cjk-extra obconf lxappearance-obconf \ - && apt-get clean - -# Configure vscode extension --DISABLED: error on root -#RUN code --install-extension mhutchie.git-graph \ -# && code --install-extension eamodio.gitlens - -# Customizations : remove unused, change settings, copy conf files -RUN rm /usr/local/share/doro-lxde-wallpapers/bg[2-4].jpg \ - && sed -i "s/UI.initSetting('resize', 'off');/UI.initSetting('resize', 'scale');/g" /usr/local/lib/web/frontend/static/novnc/app/ui.js -COPY files / - -# SSHD run bugfix -RUN mkdir -p /run/sshd - EXPOSE 80 EOF