added ubuntu 18.04
This commit is contained in:
parent
acde20fb92
commit
2ce00a1225
12 changed files with 84 additions and 7 deletions
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue