Ubuntu
Notes
Whole Hog
Update/Upgrade
apt --yes update && apt --yes dist-upgrade && dpkg -l
'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed
"s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' |
xargs sudo apt -y purge && apt --yes autoremove &&
reboot
Change the
SUDOers file
sudo visudo
Add the following lines to
it:
#Remove authenticate requirement when using sudo
Defaults:itsadmin !authenticate
#Remove TTY Requirements
Defaults:itsadmin !requiretty
NMCLI Down
then Up
nmcli networking off && sleep 2 && nmcli d &&
nmcli networking on && sleep 2 && nmcli d && sleep 2
&& nmcli d
Full Version
apt
--yes update && apt --yes dist-upgrade && apt --yes autoremove
&& reboot
Full Update Version with VMware
Tools Install/update
apt
--yes update && apt --yes dist-upgrade &&
/home/itsadmin/vmware-tools-distrib/vmware-install.pl -d && apt --yes
autoremove &&
reboot
Remove all but current
kernal
dpkg
-l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed
"s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' |
xargs sudo apt -y purge
Set next boot option to Windows
for GRUB - used in ITL
sudo
grub-set-default 1 && sudo reboot
VMWare - Whole
hog:
apt
--yes update && apt --yes dist-upgrade && dpkg -l 'linux-*' |
sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]*
\([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt -y purge &&
/home/itsadmin/vmware-tools-distrib/vmware-install.pl -d && apt --yes
autoremove && reboot
Remove Update Notifier
sudo apt remove -y update-manager-core
update-notifier-common
Ubuntu Tweak
Non-Repo
Files
Grub
Customizer
add-apt-repository --yes ppa:danielrichter2007/grub-customizer &&
apt --yes update && apt --yes install
grub-customizer