Last active
June 25, 2020 18:08
-
-
Save tanmoy7989/63e60f26cab0ddad3d02459751379e3f to your computer and use it in GitHub Desktop.
Installs my most commonly used software, terminal settings etc when setting up a linux box for the first time
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
#!/bin/bash | |
# store current dir | |
curdir=`pwd` | |
## GIT+GITHUB | |
# git | |
sudo apt install git | |
# generate key for github | |
ssh-keygen -t rsa -b 4096 -C '<email-id@server.com>' | |
# choose default keyname id_rsa | |
# then copy the contents of /home/.ssh/id_rsa.pub to Github | |
# write config file | |
echo """ | |
Host github.com-tanmoy7989 | |
Hostname github.com | |
User git | |
IdentityFile $HOME/.ssh/id_rsa | |
""" >> $HOME/.ssh/config | |
## INTERNET | |
# google-chrome | |
# ! pro-tip: Don't get google chrome; it is the WORST | |
#get https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | |
#chmod +x google-chrome-stable_current_amd64.deb | |
#sudo apt install ./google-chrome-stable_current_amd64.deb | |
#rm google-chrome-stable_current_amd64.deb | |
# brave | |
# huge respect for privacy and anti-tracking out-of-the-box | |
# plus tor-based private searches | |
# instructions found here: | |
# https://brave-browser.readthedocs.io/en/latest/installing-brave.html | |
sudo apt install apt-transport-https curl | |
curl -s https://brave-browser-apt-release.s3.brave.com/brave-core.asc | sudo apt-key --keyring /etc/apt/trusted.gpg.d/brave-browser-release.gpg add - | |
echo "deb [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 | |
## WORK-FROM-HOME | |
#skype | |
sudo snap install skype --classic | |
#slack | |
sudo snap install slack --classic | |
# zoom | |
wget https://zoom.us/client/latest/zoom_amd64.deb | |
chmod +x zoom_amd64.deb | |
sudo apt install ./zoom_amd64.deb | |
rm zoom_amd64.deb | |
# sshfs | |
sudo apt install sshfs | |
## EDITORS | |
# pycharm | |
sudo snap install pycharm-community --classic | |
# typora | |
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys BA300B7755AFCFAE | |
sudo add-apt-repository 'deb https://typora.io/linux/ ./' | |
sudo apt update && sudo apt install typora | |
# latex | |
sudo apt install texlive-latex-extra | |
sudo apt install texmaker | |
## LIBREOFFICE | |
# writer (wordprocessor), impress (slides), calc (spreadsheet) | |
sudo apt install --no-install-recommends libreoffice-writer libreoffice-impress libreoffice-calc | |
## TERMINAL+VIM | |
# extract from source | |
mkdir -p random_projects | |
cd random_projects | |
git clone git@github.com:tanmoy7989/terminal_jazz.git | |
# vim | |
sudo apt install vim | |
mkdir -p $HOME/.vim | |
bash get_vim_stuff.sh | |
# bashrc | |
cp dircolors $HOME/.dircolors | |
cp linux_bashrc $HOME/.bashrc | |
source $HOME/.bashrc | |
## WEBSITE | |
# jekyll | |
sudo apt install jekyll | |
# extract website from source | |
cd $HOME/Desktop | |
git clone git@github.com:tanmoy7989/tanmoy7989.github.io.git | |
## MINICONDA+BASE PYTHON ENVIRONMENT | |
# miniconda | |
mkdir -p $HOME/mysoftware | |
cd $HOME/mysoftware | |
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda3.sh | |
bash miniconda3.sh | |
# choose install location as $HOME/mysoftware/miniconda3 | |
# base python-3 environment | |
conda install -c conda-forge numpy scipy matplotlib pandas xlrd biopython tqdm joblib jupyter jupyter_contrib_nbextensions | |
## UBUNTU PRIVACY (prevent Canonical from snooping in on you) | |
# source: https://securitronlinux.com/ubuntu-2/how-to-help-stop-ubuntu-spying-on-you/ | |
ubuntu-report -f send no | |
sudo apt purge popularity-contest whoopsie | |
sudo vim /etc/default/motd-news # set ENABLED=0 in this file | |
gsettings set com.ubuntu.geoip geoip-url "" | |
## LOCK AND LOAD | |
sudo apt upgrade && sudo apt update | |
sudo apt autoremove | |
sudo apt autoclean | |
## REBOOT | |
sudo reboot now |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment