Skip to content

Instantly share code, notes, and snippets.

@mgrzaslewicz
Last active December 19, 2022 16:29
Show Gist options
  • Select an option

  • Save mgrzaslewicz/3c7403d18e4684b366a1f714e75f8b41 to your computer and use it in GitHub Desktop.

Select an option

Save mgrzaslewicz/3c7403d18e4684b366a1f714e75f8b41 to your computer and use it in GitHub Desktop.
Ubuntu provision
# To have by default: apt install $something --yes # --force-yes
## at first it was:
## sudo "echo 'APT::Get::Assume-Yes \"true\";'" > /etc/apt/apt.conf.d/90forceyes
## but it gives permission denied, because the stream redirect will not be run as super user
sudo bash -c "echo 'APT::Get::Assume-Yes \"true\";' > /etc/apt/apt.conf.d/90yes"
# sudo bash -c "echo 'APT::Get::force-yes \"true\";' >> /etc/apt/apt.conf.d/90yes" # this one is potentialy harmful
# terminal
sudo apt install zsh
chsh -s $(which zsh)
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
# ZSH_THEME="powerlevel10k/powerlevel10k"
sudo apt install tmux -y
sudo apt install tmuxinator -y
sudo apt install xclip -y
# https://github.com/cantino/mcfly better history command replacement
# https://github.com/sachaos/viddy better watch command replacement
# https://github.com/cheat/cheat
# https://github.com/tldr-pages/tldr
# browsers
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && sudo dpkg -i google-chrome-stable_current_amd64.deb
sudo apt install firefox
sudo apt install torbrowser-launcher
# tools
sudo apt install unrar
sudo apt install oathtool # 2FA code, e.g. oathtool -b --totp 'secret code' | xclip -sel clip
# other
sudo apt install wine # for foobar2000
sudo apt install snap # for foobar2000
sudo snap install authy --beta
# IDEs
# https://www.sublimetext.com/docs/3/linux_repositories.html
# intellij
# dev tools
sudo apt install gradle
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash # https://github.com/nvm-sh/nvm#installing-and-updating
mkdir -p ~/bin && curl -s https://bitbucket.org/mjensen/mvnvm/raw/master/mvn > ~/bin/mvn && chmod 0755 ~/bin/mvn # https://mvnvm.org/
#sudo apt install maven
sudo apt install yarn
sudo snap install postman
sudo snap install jq
sudo snap install yq
sudo apt install nmap
sudo apt install docker
curl https://raw.githubusercontent.com/jesseduffield/lazydocker/master/scripts/install_update_linux.sh | bash
sudo apt install docker-compose
sudo apt install autokey-qt
sudo apt install graphviz # needed for intellij plugin plantUML
sudo apt-get install libemail-outlook-message-perl libemail-sender-perl # for converting outlook <file.msg> to more common format
sudo apt install openjdk-8-jdk
sudo apt install openjdk-11-jdk
sudo apt install openjdk-13-jdk
sudo apt install openjdk-14-jdk
sudo apt install openjdk-17-jdk
sudo apt install openjdk-8-source
sudo apt install openjdk-11-source
sudo apt install openjdk-13-source
sudo apt install openjdk-14-source
sudo apt install openjdk-17-source
sudo apt install visualvm
sudo apt -y install icedtea-netx # javaws to run jnlp files
# https://github.com/jenv/jenv + 'jenv doctor' to verify it's working
jenv add /usr/lib/jvm/java-8-openjdk-amd64
jenv add /usr/lib/jvm/java-11-openjdk-amd64
jenv add /usr/lib/jvm/java-13-openjdk-amd64
jenv add /usr/lib/jvm/java-14-openjdk-amd64
jenv add /usr/lib/jvm/java-15-openjdk-amd64
# when JAVA_HOME not set after running jenv try
jenv disable-plugin maven
jenv disable-plugin export
jenv enable-plugin maven
jenv enable-plugin export
## intellij plugins
## IdeaVim, Ideolog, JSON To Kotlin Class, lombok, plantUML integration, stack trace to UML, Active Intellij Tab Highlighter, Advanced Java Folding, HighLightBracketPair,
# music
## after isntalling foobar that set permissions to access files on removable storage devices
## otherwise it won't be possible to access music at /mnt/*
sudo snap install foobar2000
sudo snap install spotify
sudo apt install -y pulseaudio
sudo apt install paprefs # to have virtual device capable of streaming via multiple physical devices
# after installing above run paprefs and in UI create virtual device, restart pulseaudio -k
# https://itectec.com/ubuntu/ubuntu-pulse-audio-equaliser-not-working-in-ubuntu-18-04/
## chromecast download https://launchpad.net/ubuntu/+source/mkchromecast/0.3.9~git20200902+db2964a-2
## run with ./mkchromecast -c flac
# graphics
sudo apt install gimp
## screenshots
sudo add-apt-repository ppa:linuxuprising/shutter
## screenshot
## https://flameshot.js.org/#/key-bindings
sudo apt install flameshot
sudo apt install guvcview # camera preview
# notes
sudo snap install xmind
# other
sudo apt install qbittorrent
sudo apt install qalc
# communication
sudo snap install teams-for-linux
sudo snap install slack --classic
sudo snap install zoom-client
# backup
sudo apt install deja-dup
# git config
git config --global pager.branch false
git config --global core.excludesfile ~/.gitignore_global
# apple magic trackpad
sudo apt install wmctrl xdotool
sudo apt install libinput-tools
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment