You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
716 B
27 lines
716 B
# truncate machine id (why??)
|
|
truncate -s 0 /etc/machine-id
|
|
|
|
# remove diversion (why??)
|
|
rm /sbin/initctl
|
|
dpkg-divert --rename --remove /sbin/initctl
|
|
|
|
# remove ssh config
|
|
#rm -f /etc/ssh/ssh_host*
|
|
|
|
# clean up useless stuff
|
|
rm -rf /tmp/* ~/.bash_history
|
|
find /var/log/ -type f | xargs rm -f
|
|
rm -f /etc/ssh/ssh_host*
|
|
rm -f /var/backups/*
|
|
rm -f /var/cache/ldconfig/*
|
|
rm -f /var/cache/debconf/*
|
|
rm -f /var/cache/fontconfig/*
|
|
rm -f /var/cache/apt/archives/*.deb
|
|
rm -f /var/cache/apt/*.bin
|
|
rm -f /var/cache/debconf/*-old
|
|
rm -f /var/lib/apt/extended_states
|
|
rm -f /var/lib/apt/lists/*Packages
|
|
rm -f /var/lib/apt/lists/*Translation*
|
|
rm -f /var/lib/apt/lists/*InRelease
|
|
rm -f /var/lib/apt/lists/deb.*
|
|
rm -f /var/lib/dpkg/*-old
|
|
|