Skip to content

Instantly share code, notes, and snippets.

@javdl
Last active January 9, 2019 12:25
Show Gist options
  • Save javdl/176db40c4331435bf98f46b3835e495a to your computer and use it in GitHub Desktop.
Save javdl/176db40c4331435bf98f46b3835e495a to your computer and use it in GitHub Desktop.
#!/bin/bash
# Author : Joost
# In debian instead of making own user root, to install use the root user:
# su
# make sure to edit /root/.bashrc and add the path (https://unix.stackexchange.com/questions/160019/dpkg-cannot-find-ldconfig-start-stop-daemon-in-the-path-variable/364199)
# export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# PROtip: add a file .trackerignore to your $HOME/git folder. That way Debian Search will not start indexing it. (maxing out a core!)
# From Software center:
# screenshots: shutter / flameshot / spectacle
# NEW
# https://github.com/astrada/google-drive-ocamlfuse
# SHELL: Fish? > NEVER! ZSH? Terminator?
# Turn on firewall
# Let's first enable the firewall (here we're using ufw):
# sudo systemctl enable ufw
# sudo ufw enable
# We can set firewall config via the gufw:
# sudo gufw
# Enable TRIM for SSD
# If you have an SSD, I'd suggest enabling the fstrim.timer service for TRIM:
sudo systemctl enable fstrim.timer
sudo systemctl start fstrim.timer
# Keychain to manage SSH keys
sudo apt install keychain # also add correct script to bashrc (included in dotfiles)
# ssh-keygen -o -t rsa -C "$(whoami)@$(hostname)-$(date -I)" -b 4096
# cat ~/.ssh/id_rsa.pub
# git clone git@gitlab.com:joostl/dotfiles.git
# Fonts
sudo apt-get install ttf-mscorefonts-installer
sudo apt-get install cabextract
mkdir ~/.fonts
wget -qO- http://plasmasturm.org/code/vistafonts-installer/vistafonts-installer | bash
# HiDPI fractional scaling (instead of everything 2x bigger)
gsettings set org.gnome.mutter experimental-features "['scale-monitor-framebuffer']" #T
sudo apt update
sudo apt install wget unzip
sudo apt install curl git
# Installing build essentials
sudo apt install build-essential libssl-dev
# snap support
sudo apt install snapd # >> SNAPS ARE SLOW / on first boot only seems. We use it for Remmina because pubkey is not setup properly for that so it will give errors on apt update
sudo apt install flatpak # Better Debian support, prefer these over snaps for Debian https://kamikazow.wordpress.com/2018/06/08/adoption-of-flatpak-vs-snap-2018-edition/
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
# apt install gnome-software-plugin-flatpak
# Record as GIF (Peek)
flatpak install --user https://flathub.org/repo/appstream/com.uploadedlobster.peek.flatpakref
# Google Cloud SDK
sudo apt-get install google-cloud-sdk
sudo apt-get install kubectl
# gcloud init
# i3 window manager
sudo apt install i3blocks -y
# apt-get install i3 suckless-tools
# the forked i3 version with gaps
sudo apt install libxcb-keysyms1-dev libpango1.0-dev libxcb-util0-dev xcb libxcb1-dev libxcb-icccm4-dev libyajl-dev libev-dev libxcb-xkb-dev libxcb-cursor-dev libxkbcommon-dev libxcb-xinerama0-dev libxkbcommon-x11-dev libstartup-notification0-dev libxcb-randr0-dev libxcb-xrm0 libxcb-xrm-dev -y
git clone https://www.github.com/Airblader/i3 i3-gaps
cd i3-gaps
# compile & install
autoreconf --force --install
rm -rf build/
mkdir -p build && cd build/
# Disabling sanitizers is important for release versions!
# The prefix and sysconfdir are, obviously, dependent on the distribution.
../configure --prefix=/usr --sysconfdir=/etc --disable-sanitizers
make
sudo make install
# https://www.reddit.com/r/SolusProject/comments/5l2zno/custom_i3_config_file_for_dell_xps_13_with_hidpi/
# https://gist.github.com/JPenuchot/447a84f8384b5ade3a463e6a37bb8d33
# https://fedoramagazine.org/getting-started-i3-window-manager/
# Wallpaper
sudo apt install feh
# good config sample for i3 and compton (prevent tearing & enable hardware accelerated transparency)
# https://github.com/Airblader/dotfiles-manjaro
sudo apt install compton
# Unclutter > hide the mouse
sudo apt install unclutter
sudo apt install xautolock
sudo apt install gnome-flashback
sudo apt install scrot
# TODO
# f.lux / redshift
# sudo apt install redshift-gtk
# Themes
# sudo apt install adapta-gtk-theme
# Browsers
sudo apt install brave
sudo apt install google-chrome-stable -y
sudo apt install google-chrome-unstable
# Keepass password manager - privacytools.io
# Nodejs via NVM
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
source ~/.profile
nvm install node
nvm use node
nvm install 8
nvm alias default 8
node -v
npm -v
# Git - a version control system
sudo apt install git -y
# Gulp - an automated task runner
npm install -g gulp-cli
# Emacs, Vim
sudo apt install emacs -y
sudo apt install vim
sudo apt install tmux
# Typora markdown editor
sudo apt-get install typora
# Remmina Remote Desktop client
sudo snap install remmina --edge
# Python - Some random useful stuff
sudo apt install python-software-properties -y
sudo apt install python-pip -y # python-dev,
sudo apt-get install libkrb5-dev -y
# sudo apt-get install insomnia # REST & GraphQL >>> GraphiQL is better. For example it also shows the schema.
# snap install postman # REST
# VS Code
sudo apt-get install code # or code-insiders
# flatpak install flathub com.visualstudio.code
sudo apt-get install sublime-text
# Hugo
snap install hugo --channel=extended
# Nextcloud client
# sudo snap install nextcloud-client
# Signal
sudo apt install signal-desktop -y
# # Gimp Image Editor
# sudo apt install gimp gimp-data gimp-plugin-registry gimp-data-extras
# Inkscape - Vector images / like Adobe Illustrator
# snap install inkscape
# Archive Extractors
sudo apt install -y unrar p7zip-full p7zip-rar
# Erlang - Actor Concurrency Model based Programming Language
sudo apt install erlang -y
# Spotify, only using snap if it is an official one (vscode is not official for example)
# sudo snap install spotify
sudo apt-get install -y spotify-client
# Shotcut - video editing
# snap install shotcut --classic
# Steam
sudo apt install -y steam-installer
# Calibre - Ebook reader and converter
sudo -v && wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sudo sh /dev/stdin
# Zsh
# sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# Docker
sudo apt-get remove docker docker-engine docker.io
sudo apt-get install docker-ce
# Docker-compose
sudo pip install docker-compose
#!/bin/bash
# Author : Joost
# In debian instead of making own user root, to install use the root user:
# su
# make sure to edit /root/.bashrc and add the path (https://unix.stackexchange.com/questions/160019/dpkg-cannot-find-ldconfig-start-stop-daemon-in-the-path-variable/364199)
# export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# From Software center:
# shutter / flameshot
# NEW
# https://github.com/astrada/google-drive-ocamlfuse
# SHELL: Fish? > NEVER! ZSH? Terminator?
# Turn on firewall
# Let's first enable the firewall (here we're using ufw):
# sudo systemctl enable ufw
# sudo ufw enable
# We can set firewall config via the gufw:
# sudo gufw
# Enable TRIM for SSD
# If you have an SSD, I'd suggest enabling the fstrim.timer service for TRIM:
sudo systemctl enable fstrim.timer
sudo systemctl start fstrim.timer
# Keychain to manage SSH keys
sudo apt install keychain # also add correct script to bashrc (included in dotfiles)
# ssh-keygen -o -t rsa -C "$(whoami)@$(hostname)-$(date -I)" -b 4096
# cat ~/.ssh/id_rsa.pub
# git clone git@gitlab.com:joostl/dotfiles.git
# Repositories
# Ensure apt is set up to work with https sources
sudo apt-get install apt-transport-https
# VS code
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
sudo install -o root -g root -m 644 microsoft.gpg /etc/apt/trusted.gpg.d/
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'
# 1. Add the Spotify repository signing keys to be able to verify downloaded packages
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 931FF8E79F0876134EDDBDCCA87FF9DF48BF1C90
# 2. Add the Spotify repository
echo deb http://repository.spotify.com stable non-free | sudo tee /etc/apt/sources.list.d/spotify.list
# Signal
# curl -s https://updates.signal.org/desktop/apt/keys.asc | sudo apt-key add -
# echo "deb [arch=amd64] https://updates.signal.org/desktop/apt xenial main" | sudo tee -a /etc/apt/sources.list.d/signal-xenial.list
# Sublime text
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
# Google linux repo keys
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
# Chrome repo
echo 'deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main' | sudo tee /etc/apt/sources.list.d/google-chrome.list
# Docker
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/debian \
$(lsb_release -cs) \
stable"
# typora
wget -qO - https://typora.io/linux/public-key.asc | sudo apt-key add -
sudo add-apt-repository 'deb https://typora.io/linux ./'
# Sublime text (default git editor)
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
# HiDPI fractional scaling (instead of everything 2x bigger)
gsettings set org.gnome.mutter experimental-features "['scale-monitor-framebuffer']" #T
sudo apt update
sudo apt install wget unzip
sudo apt install curl git
# Installing build essentials
sudo apt install build-essential libssl-dev
# snap support
# sudo apt install snapd # >> SNAPS ARE SLOW on first boot only seems
apt install flatpak
apt install gnome-software-plugin-flatpak
# Google Cloud SDK
snap install google-cloud-sdk --classic
# i3 window manager
sudo apt install i3blocks -y
# apt-get install i3 suckless-tools
# the forked i3 version with gaps
sudo apt install libxcb-keysyms1-dev libpango1.0-dev libxcb-util0-dev xcb libxcb1-dev libxcb-icccm4-dev libyajl-dev libev-dev libxcb-xkb-dev libxcb-cursor-dev libxkbcommon-dev libxcb-xinerama0-dev libxkbcommon-x11-dev libstartup-notification0-dev libxcb-randr0-dev libxcb-xrm0 libxcb-xrm-dev -y
git clone https://www.github.com/Airblader/i3 i3-gaps
cd i3-gaps
# compile & install
autoreconf --force --install
rm -rf build/
mkdir -p build && cd build/
# Disabling sanitizers is important for release versions!
# The prefix and sysconfdir are, obviously, dependent on the distribution.
../configure --prefix=/usr --sysconfdir=/etc --disable-sanitizers
make
sudo make install
# https://www.reddit.com/r/SolusProject/comments/5l2zno/custom_i3_config_file_for_dell_xps_13_with_hidpi/
# https://gist.github.com/JPenuchot/447a84f8384b5ade3a463e6a37bb8d33
# https://fedoramagazine.org/getting-started-i3-window-manager/
# Wallpaper
sudo apt install feh
# good config sample for i3 and compton (prevent tearing & enable hardware accelerated transparency)
# https://github.com/Airblader/dotfiles-manjaro
sudo apt install compton
# Unclutter > hide the mouse
sudo apt install unclutter
sudo apt install xautolock
sudo apt install gnome-flashback
sudo apt install scrot
# TODO
# f.lux / redshift
sudo apt install redshift-gtk
# Themes
sudo apt install adapta-gtk-theme
# Browsers
snap install brave
sudo apt install google-chrome-stable -y
sudo apt install google-chrome-unstable
# Keepass password manager - privacytools.io
# Nodejs and NVM
# sudo snap install node --classic --channel 8/stable
sudo snap install node --classic --channel 10/stable
# switch version with:
# snap refresh node --classic --channel=10/stable
# NVM not needed anymore:
# curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
# source ~/.profile
# nvm install node
# nvm use node
# nvm install 8
# nvm alias default 8
# node -v
# npm -v
# Git - a version control system
sudo apt install git -y
snap install gitkraken
# Gulp - an automated task runner
npm install -g gulp-cli
# Emacs, Vim
sudo apt install emacs -y
sudo apt install vim
sudo apt install tmux
# Typora markdown editor
sudo apt-get install typora
# Remmina Remote Desktop client
snap install remmina
# Python - Some random useful stuff
sudo apt install python-software-properties -y
sudo apt install python-pip -y # python-dev,
sudo apt-get install libkrb5-dev -y
# Go | Replace --channel=1.10 with the major version number of the Go release you require.
# snap install go --channel=1.10/stable
# Android studio
# snap install android-studio
# Database - Postgres
# snap install postgresql10
# snap install datagrip --classic
# sudo apt-get install mysql-workbench-community >> Download from site https://launchpad.net/mysql-workbench/+packages
# sudo apt install mysql-tuner
snap install insomnia # REST & GraphQL
snap install postman # REST
# VS Code
# sudo apt-get install code # or code-insiders
flatpak install flathub com.visualstudio.code
sudo apt-get install sublime-text
# Nextcloud client
# sudo snap install nextcloud-client
# Skype
sudo snap install skype --classic
sudo apt install signal-desktop -y
# # Gimp Image Editor
# sudo apt install gimp gimp-data gimp-plugin-registry gimp-data-extras
# Inkscape - Vector images / like Adobe Illustrator
# snap install inkscape
# Archive Extractors
sudo apt install unrar p7zip-full p7zip-rar
# Erlang - Actor Concurrency Model based Programming Language
sudo apt install erlang -y
# VLC
sudo snap install vlc
# Spotify, only using snap if it is an official one (vscode is not official for example)
# sudo snap install spotify
sudo apt-get install spotify-client
# Shotcut - video editing
# snap install shotcut --classic
# Steam
sudo apt install steam-installer
# Calibre - Ebook reader and converter
sudo -v && wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sudo sh /dev/stdin
# Zsh
# sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# Docker
sudo apt-get remove docker docker-engine docker.io
sudo apt-get install docker-ce
# Docker-compose
sudo pip install docker-compose
#!/bin/bash
# Author : Joost
# https://confluence.jaytaala.com/display/TKB/My+Manjaro+i3+setup
# Turn on firewall
# Let's first enable the firewall (here we're using ufw):
sudo systemctl enable ufw
sudo ufw enable
# We can set firewall config via the gufw:
sudo gufw
# Enable TRIM for SSD
# If you have an SSD, I'd suggest enabling the fstrim.timer service for TRIM:
sudo systemctl enable fstrim.timer
sudo systemctl start fstrim.timer
# Keychain to manage SSH keys
sudo pacman -S keychain # also add correct script to bashrc (included in dotfiles)
# ssh-keygen -o -t rsa -C "$(whoami)@$(hostname)-$(date -I)" -b 4096
# cat ~/.ssh/id_rsa.pub
# git clone git@gitlab.com:joostl/dotfiles.git
# Visual Studio Code
sudo pacman -S code --noconfirm
# Gulp - an automated task runner
npm install -g gulp-cli
# Emacs, Vim
sudo pacman -S emacs --noconfirm
sudo pacman -S neovim --noconfirm
sudo pacman -S tmux --noconfirm
sudo pacman -S libreoffice-fresh --noconfirm
# File sync
sudo pacman -S syncthing --noconfirm
# Remmina Remote Desktop client
sudo pacman -S remmina --noconfirm
# Python - Some random useful stuff
sudo pacman -S python-pip --noconfirm
# Archive Extractors
sudo pacman -S unrar --noconfirm
# Screenshots - Very important for my workflow!
sudo pacman -S scrot --noconfirm
sudo pacman -S flameshot --noconfirm
# Steam
sudo pacman -S steam --noconfirm
sudo pacman -S calibre --noconfirm
sudo pacman -S docker --noconfirm
sudo pacman -S docker-compose --noconfirm
sudo pacman -S mysql-workbench
# Install databases, webservers, appservers etc. via Docker
# Erlang - Actor Concurrency Model based Programming Language
sudo pacman -S erlang --noconfirm # >> Docker?
sudo pacman -S go --noconfirm # >> Docker?
# VPN
sudo pacman -S networkmanager-openvpn
# ARCH USER Repo
yaourt -S openvpn-nordvpn # https://github.com/nstinus/nordvpn
yaourt -S google-cloud-sdk
yaourt -S spotify
yaourt -S google-chrome
yaourt -S signal
yaourt -S insomnia # REST & GraphQL
yaourt -S postman
yaourt -S typora # Typora markdown editor
yaourt -S kazam # Screen recorder
# For wine, Steam: enable multilib
# https://wiki.archlinux.org/index.php/Official_repositories#multilib
# sudo nano /etc/pacman.conf >> was already enabled
# python-software-properties
# sudo pacman -S libkrb5-dev
# Android studio
# sudo pacman -S android-studio
# Database - Postgres
# sudo pacman -S postgresql10
# sudo pacman -S datagrip --classic
# sudo pacman -S mysql-workbench-community >> Download from site https://launchpad.net/mysql-workbench/+packages
# sudo pacman -S mysql-tuner
# HTTP and GraphQL API tools
# Nextcloud client
# sudo sudo pacman -S nextcloud-client
# Inkscape - Vector images / like Adobe Illustrator
# sudo pacman -S inkscape
# Shotcut - video editing
# sudo pacman -S shotcut --classic
# Zsh
# sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# Running this runs the above
wget -O - https://gist.githubusercontent.com/Joostvanderlaan/176db40c4331435bf98f46b3835e495a/raw/debian-developer-install.sh | bash
sudo apt update
# Repositories
# Ensure apt is set up to work with https sources
sudo apt-get install apt-transport-https
sudo apt install wget unzip
sudo apt install curl git
# VS code
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
sudo install -o root -g root -m 644 microsoft.gpg /etc/apt/trusted.gpg.d/
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'
# Spotify
# 1. Add the Spotify repository signing keys to be able to verify downloaded packages
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 931FF8E79F0876134EDDBDCCA87FF9DF48BF1C90
# 2. Add the Spotify repository
echo deb http://repository.spotify.com stable non-free | sudo tee /etc/apt/sources.list.d/spotify.list
# Signal
curl -s https://updates.signal.org/desktop/apt/keys.asc | sudo apt-key add -
echo "deb [arch=amd64] https://updates.signal.org/desktop/apt xenial main" | sudo tee -a /etc/apt/sources.list.d/signal-xenial.list
# Sublime text
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
# Google linux repo keys
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
# Google cloud SDK
export CLOUD_SDK_REPO="cloud-sdk-$(lsb_release -c -s)"
echo "deb http://packages.cloud.google.com/apt $CLOUD_SDK_REPO main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
# Chrome repo
echo 'deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main' | sudo tee /etc/apt/sources.list.d/google-chrome.list
# Docker
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/debian \
$(lsb_release -cs) \
stable"
# Tyora
wget -qO - https://typora.io/linux/public-key.asc | sudo apt-key add -
sudo add-apt-repository 'deb https://typora.io/linux ./'
# Sublime text (default git editor)
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
# Insomnia
# Add to sources
echo "deb https://dl.bintray.com/getinsomnia/Insomnia /" \
| sudo tee -a /etc/apt/sources.list.d/insomnia.list
# Add public key used to verify code signature
wget --quiet -O - https://insomnia.rest/keys/debian-public.key.asc \
| sudo apt-key add -
sudo apt update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment