initial commit
This commit is contained in:
commit
acde20fb92
8 changed files with 75 additions and 0 deletions
26
ubuntu_2004.sh
Normal file
26
ubuntu_2004.sh
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
#!/bin/sh
|
||||
apt-get -y purge alsa-topology-conf alsa-ucm-conf apport \
|
||||
apport-symptoms at bash-completion bolt byobu eatmydata command-not-found \
|
||||
eject fonts-ubuntu-console htop install-info landscape-common lxd-agent-loader \
|
||||
motd-news-config nano ntfs-3g pastebinit plymouth plymouth-theme-ubuntu-text \
|
||||
popularity-contest policykit-1 python3-apport os-prober snapd \
|
||||
sound-theme-freedesktop ubuntu-advantage-tools 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue