Last active
February 23, 2024 23:51
-
-
Save HackingGate/3dbcf2264ccf7dbb7465560ca1cf9edc to your computer and use it in GitHub Desktop.
My Ubuntu Desktop Setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Make Ubuntu use local time (Fix Windows 10 dual boot different time issue) | |
timedatectl set-local-rtc 1 --adjust-system-clock | |
# Check current settings | |
timedatectl | |
# Install packages | |
sudo apt update | |
sudo apt upgrade -y | |
sudo apt install emacs vim curl wget git build-essential -y | |
# Install Tor | |
sudo sh -c 'echo "deb [arch=amd64] https://deb.torproject.org/torproject.org $(lsb_release -sc) main" >> /etc/apt/sources.list.d/tor-project.list' | |
# Download Keyring | |
# https://deb.torproject.org/torproject.org/pool/main/d/deb.torproject.org-keyring/ | |
sudo apt install ~/Downloads/deb.torproject.org-keyring*.deb | |
sudo apt update | |
sudo apt install tor | |
tor --version | |
systemctl status tor | |
sudo apt install torbrowser-launcher |
Mount SMB (samba)
Setup
sudo mkdir /mnt/Shared /mnt/Unlimited/
sudo apt install cifs-utils
Mount
sudo mount -t cifs -o username=hg //192.168.4.1/Shared /mnt/Shared/
sudo mount -t cifs -o username=hg //192.168.4.1/Unlimited /mnt/Unlimited/
Automount (add to /etc/fstab
)
//192.168.4.1/Shared /mnt/Shared cifs username=hg 0 0
//192.168.4.1/Unlimited /mnt/Unlimited cifs username=hg 0 0
Auto Reconnection with autofs
sudo apt-get install autofs
sudo mount -a
Reboot into Windows only for one time
Edit the /etc/default/grub
and replace GRUB_DEFAULT=0
with GRUB_DEFAULT=saved
sudo update-grub
WINDOWS_TITLE=`grep -i "^menuentry 'Windows" /boot/grub/grub.cfg|head -n 1|cut -d"'" -f2`
echo "Rebooting into "$WINDOWS_TITLE""
sudo grub-reboot "$WINDOWS_TITLE"
sudo reboot
ohmyzsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
starship
FiraCode Nerd Font
mkdir ~/Downloads/FiraCode
cd ~/Downloads/FiraCode
wget https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/FiraCode.zip
unzip FiraCode.zip
mkdir ~/.local/share/fonts
cp *.otf ~/.local/share/fonts
cd ..
rm -rf FiraCode
Install through snapcraft
sudo snap install starship
Setup your shell to use Starship
echo '
eval "$(starship init zsh)"
' >> ~/.zshrc
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Wake-on-LAN (WoL)
UEFI BIOS
ASUS: https://www.asus.com/global/support/FAQ/1045950/
Ubuntu
https://help.ubuntu.com/community/WakeOnLan
Command:
Output:
Enable WoL
Check if settings applied
Output:
Persist across reboots
Add the following to the bottom of
/etc/network/interfaces
Raspberry Pi (always on)
Get Mac address
Install wakeonlan
Shutdown target PC. Try this command to boot it.