Skip to content

Instantly share code, notes, and snippets.

@macalac
Last active May 27, 2022 11:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save macalac/24f38ab21f82f36c90de0f18f60b60fe to your computer and use it in GitHub Desktop.
Save macalac/24f38ab21f82f36c90de0f18f60b60fe to your computer and use it in GitHub Desktop.
Clean install -- Ubuntu (as of 22.04)

Ubuntu Preferences

Install the basics

# basics
sudo apt update /
&& sudo apt install git /
zsh /
1password /
neovim /
slack /
curl /
wget

# Oh My Zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

# install brave browser
sudo apt install apt-transport-https curl
sudo curl -fsSLo /usr/share/keyrings/brave-browser-archive-keyring.gpg https://brave-browser-apt-release.s3.brave.com/brave-browser-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg arch=amd64] https://brave-browser-apt-release.s3.brave.com/ stable main"|sudo tee /etc/apt/sources.list.d/brave-browser-release.list
sudo apt update && sudo apt install brave-browser

System settings

# speed up keyboard
gsettings set org.gnome.desktop.peripherals.keyboard repeat-interval 30
gsettings set org.gnome.desktop.peripherals.keyboard delay 250

Homebrew

# brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' >> /home/mac/.zprofile
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
sudo apt-get install build-essential
brew install gcc

#brews
brew install \
tree \
wget \
httpie \
jq \
neovim \
tfenv \
awscli

Git

#set git config values
git config --global user.name "NAME" && \
git config --global user.email "MAIL" && \
git config --global github.user GITHUB_USER && \
git config --global core.editor "vim" && \
git config --global color.ui true && \
git config --global push.default simple

# add global gitignore
echo '.idea' >> ~/.gitignore \
git config --global core.excludesFile '~/.gitignore'

#diff-so-fancy
brew install diff-so-fancy
git config --global pager.diff "diff-so-fancy | less --tabs=4 -RFX" && \
git config --global pager.show "diff-so-fancy | less --tabs=4 -RFX"

# ssh
ssh-keygen -t rsa -b 2048 -C "DESCRIPTION"
## copy to clipboard to add to ssh keys on github/lab
xclip -sel clip < ~/.ssh/id_rsa.pub
## validate you can connect to github/lab
ssh -T git@github.com #change flag to -Tvvv for verbose if troubleshooting
ssh -T git@gitlab.com

Ubuntu software

  • Teams client
  • Leapp
  • IntelliJ IDEA
  • app store
  • SSO dashboard

TODO

  • find ways to install deb packages through command line
  • replace more installs with brew
  • make this less ubuntu, more linux

Done?

aww yeah

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment