mirror of
https://github.com/tommytran732/Linux-Setup-Scripts
synced 2024-11-22 17:41:32 -05:00
Fix Network Manager and gcc for Ubuntu
Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
parent
e52268730e
commit
0b0a7598e5
@ -31,6 +31,10 @@ sudo apt update -y
|
|||||||
sudo apt full-upgrade -y
|
sudo apt full-upgrade -y
|
||||||
sudo apt autoremove -y
|
sudo apt autoremove -y
|
||||||
|
|
||||||
|
# Default to gcc-12 instead of gcc-11
|
||||||
|
sudo rm /usr/bin/gcc
|
||||||
|
sudo ln -s /usr/bin/gcc-12 /usr/bin/gcc
|
||||||
|
|
||||||
# Make home directory private
|
# Make home directory private
|
||||||
sudo chmod 700 /home/*
|
sudo chmod 700 /home/*
|
||||||
|
|
||||||
@ -113,13 +117,15 @@ sudo apt purge -y cups* eog gedit firefox* gnome-calculator gnome-characters* gn
|
|||||||
sudo apt autoremove -y
|
sudo apt autoremove -y
|
||||||
sudo snap remove firefox
|
sudo snap remove firefox
|
||||||
|
|
||||||
|
sudo rm -rf /usr/share/hplip
|
||||||
|
|
||||||
# Install packages that I use
|
# Install packages that I use
|
||||||
sudo apt install -y gnome-text-editor
|
sudo apt install -y gnome-text-editor
|
||||||
sudo snap install eog
|
sudo snap install eog
|
||||||
|
|
||||||
# Setup Networking
|
# Setup Networking
|
||||||
unpriv curl https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Script/main/etc/NetworkManager/conf.d/00-macrandomize.conf | sudo tee /etc/NetworkManager/conf.d/00-macrandomize.conf
|
unpriv curl https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/NetworkManager/conf.d/00-macrandomize.conf | sudo tee /etc/NetworkManager/conf.d/00-macrandomize.conf
|
||||||
unpriv curl https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Script/main/etc/NetworkManager/conf.d/01-transient-hostname.conf | sudo tee /etc/NetworkManager/conf.d/01-transient-hostname.conf
|
unpriv curl https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/NetworkManager/conf.d/01-transient-hostname.conf | sudo tee /etc/NetworkManager/conf.d/01-transient-hostname.conf
|
||||||
sudo nmcli general reload conf
|
sudo nmcli general reload conf
|
||||||
sudo hostnamectl hostname 'localhost'
|
sudo hostnamectl hostname 'localhost'
|
||||||
sudo hostnamectl --transient hostname ''
|
sudo hostnamectl --transient hostname ''
|
||||||
@ -143,6 +149,7 @@ fi
|
|||||||
if [ "$virt_type" = '' ]; then
|
if [ "$virt_type" = '' ]; then
|
||||||
# Don't know whether using tuned would be a good idea on a laptop, power-profiles-daemon should be handling performance tuning IMO.
|
# Don't know whether using tuned would be a good idea on a laptop, power-profiles-daemon should be handling performance tuning IMO.
|
||||||
sudo apt remove tuned -y
|
sudo apt remove tuned -y
|
||||||
|
sudo apt autoremove -y
|
||||||
else
|
else
|
||||||
sudo tuned-adm profile virtual-guest
|
sudo tuned-adm profile virtual-guest
|
||||||
fi
|
fi
|
||||||
|
@ -33,6 +33,10 @@ sudo apt update -y
|
|||||||
sudo apt full-upgrade -y
|
sudo apt full-upgrade -y
|
||||||
sudo apt install -y curl
|
sudo apt install -y curl
|
||||||
|
|
||||||
|
# Default to gcc-12 instead of gcc-11
|
||||||
|
sudo rm /usr/bin/gcc
|
||||||
|
sudo ln -s /usr/bin/gcc-12 /usr/bin/gcc
|
||||||
|
|
||||||
# Make home directory private
|
# Make home directory private
|
||||||
sudo chmod 700 /home/*
|
sudo chmod 700 /home/*
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user