Skip to content

Instantly share code, notes, and snippets.

@HackingGate
Last active February 23, 2024 23:51
Show Gist options
  • Save HackingGate/3dbcf2264ccf7dbb7465560ca1cf9edc to your computer and use it in GitHub Desktop.
Save HackingGate/3dbcf2264ccf7dbb7465560ca1cf9edc to your computer and use it in GitHub Desktop.
My Ubuntu Desktop Setup
# 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
@HackingGate
Copy link
Author

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

From: https://unix.stackexchange.com/a/112284/267632

@HackingGate
Copy link
Author

HackingGate commented Aug 27, 2022

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