added ubuntu 18.04
This commit is contained in:
parent
acde20fb92
commit
2ce00a1225
12 changed files with 84 additions and 7 deletions
|
|
@ -4,7 +4,9 @@
|
|||
|
||||
Validate the scripts.
|
||||
|
||||
Download and execute the script is the hash matches:
|
||||
Calculate the `sha256` hash for yourself.
|
||||
|
||||
Download and execute the script if the hash matches:
|
||||
|
||||
```
|
||||
curl -sSL https://git.giftfish.de/ston1th/cleanup/raw/branch/master/ubuntu_2004_full.sh >/tmp/cleanup.sh
|
||||
|
|
|
|||
4
hash.sh
4
hash.sh
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
for f in $(ls ubuntu*); do
|
||||
sha256sum ${f} >${f}.sha256
|
||||
for f in $(ls ubuntu*.sh); do
|
||||
sha256sum ${f} | cut -d' ' -f1 >${f}.sha256
|
||||
done
|
||||
|
|
|
|||
23
ubuntu_1804.sh
Normal file
23
ubuntu_1804.sh
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
#!/bin/sh
|
||||
apt-get -y purge apport apport-symptoms bash-completion byobu \
|
||||
htop landscape-common lxcfs lxd lxd-client motd-news-config \
|
||||
nano ntfs-3g os-prober ufw
|
||||
apt-get -y autoremove --purge
|
||||
apt-get -y clean
|
||||
|
||||
mkdir /etc/systemd/system/motd-news.service.d
|
||||
cat <<EOF>/etc/systemd/system/motd-news.service.d/override.conf
|
||||
[Service]
|
||||
ExecStart=/bin/true
|
||||
EOF
|
||||
|
||||
mkdir /etc/systemd/timesyncd.conf.d
|
||||
cat <<EOF>/etc/systemd/timesyncd.conf.d/ntp.conf
|
||||
[Time]
|
||||
NTP=pool.ntp.org
|
||||
EOF
|
||||
|
||||
rm /home/ubuntu/.ssh/authorized_keys
|
||||
find /var/log -type f | while read f; do echo -ne >$f; done
|
||||
rm -rf /var/lib/cloud/* /var/tmp/* /tmp/* /tmp/.*-unix
|
||||
exit 0
|
||||
1
ubuntu_1804.sh.sha256
Normal file
1
ubuntu_1804.sh.sha256
Normal file
|
|
@ -0,0 +1 @@
|
|||
d0b579bb906528e06b2ee3298b31b73ae786b4dd9237a1da6fce3359bf867af4
|
||||
25
ubuntu_1804_full.sh
Normal file
25
ubuntu_1804_full.sh
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
#!/bin/sh
|
||||
apt-get -y purge apport apport-symptoms bash-completion byobu \
|
||||
htop landscape-common lxcfs lxd lxd-client motd-news-config \
|
||||
nano ntfs-3g os-prober ufw
|
||||
apt-get -y purge lshw lsof ltrace man-db manpages mdadm mtr-tiny screen \
|
||||
sosreport strace tcpdump tmux usbutils whiptail
|
||||
apt-get -y autoremove --purge
|
||||
apt-get -y clean
|
||||
|
||||
mkdir /etc/systemd/system/motd-news.service.d
|
||||
cat <<EOF>/etc/systemd/system/motd-news.service.d/override.conf
|
||||
[Service]
|
||||
ExecStart=/bin/true
|
||||
EOF
|
||||
|
||||
mkdir /etc/systemd/timesyncd.conf.d
|
||||
cat <<EOF>/etc/systemd/timesyncd.conf.d/ntp.conf
|
||||
[Time]
|
||||
NTP=pool.ntp.org
|
||||
EOF
|
||||
|
||||
rm /home/ubuntu/.ssh/authorized_keys
|
||||
find /var/log -type f | while read f; do echo -ne >$f; done
|
||||
rm -rf /var/lib/cloud/* /var/tmp/* /tmp/* /tmp/.*-unix
|
||||
exit 0
|
||||
1
ubuntu_1804_full.sh.sha256
Normal file
1
ubuntu_1804_full.sh.sha256
Normal file
|
|
@ -0,0 +1 @@
|
|||
0bd0b15de9bc317f8f73ed6ce0785cdbcd7dbdc81e701bf4c77da376638052a0
|
||||
|
|
@ -1 +1 @@
|
|||
15d111ab2de72ef204a6e3dd77006038f869f3d596109a34a994d0474e124816 ubuntu_2004.sh
|
||||
15d111ab2de72ef204a6e3dd77006038f869f3d596109a34a994d0474e124816
|
||||
|
|
|
|||
|
|
@ -1 +0,0 @@
|
|||
213d1b35771c3a43ae53667ef0a25beecd9faaed3b2c21355ba4584210c63b68 ubuntu_2004.sh.sha256
|
||||
|
|
@ -1 +1 @@
|
|||
fe2827d03ebba6e058ed7b9e56116eef78a45606f2e5f2956b2b2f495f042724 ubuntu_2004_full.sh
|
||||
fe2827d03ebba6e058ed7b9e56116eef78a45606f2e5f2956b2b2f495f042724
|
||||
|
|
|
|||
|
|
@ -1 +0,0 @@
|
|||
1806939ad40adae83d208a759732696ccb3b11587013488b6e9b09f328d6ee60 ubuntu_2004_full.sh.sha256
|
||||
26
ubuntu_2004_min.sh
Normal file
26
ubuntu_2004_min.sh
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
#!/bin/sh
|
||||
apt-get -y purge alsa-topology-conf alsa-ucm-conf apport \
|
||||
apport-symptoms bolt byobu eatmydata command-not-found \
|
||||
eject fonts-ubuntu-console lxd-agent-loader \
|
||||
nano ntfs-3g pastebinit plymouth plymouth-theme-ubuntu-text \
|
||||
popularity-contest python3-apport os-prober \
|
||||
sound-theme-freedesktop
|
||||
apt-get -y autoremove --purge
|
||||
apt-get -y clean
|
||||
|
||||
mkdir /etc/systemd/system/motd-news.service.d
|
||||
cat <<EOF>/etc/systemd/system/motd-news.service.d/override.conf
|
||||
[Service]
|
||||
ExecStart=/bin/true
|
||||
EOF
|
||||
|
||||
mkdir /etc/systemd/timesyncd.conf.d
|
||||
cat <<EOF>/etc/systemd/timesyncd.conf.d/ntp.conf
|
||||
[Time]
|
||||
NTP=pool.ntp.org
|
||||
EOF
|
||||
|
||||
rm /home/ubuntu/.ssh/authorized_keys
|
||||
find /var/log -type f | while read f; do echo -ne >$f; done
|
||||
rm -rf /var/lib/cloud/* /var/tmp/* /tmp/* /tmp/.*-unix
|
||||
exit 0
|
||||
1
ubuntu_2004_min.sh.sha256
Normal file
1
ubuntu_2004_min.sh.sha256
Normal file
|
|
@ -0,0 +1 @@
|
|||
22719b169127b311f024c0a8d9f2c1f5c69115b4d0bc7c2224f5ee3cccb15e2f
|
||||
Loading…
Add table
Add a link
Reference in a new issue