26 lines
780 B
Bash
26 lines
780 B
Bash
#!/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
|