Skip to content

Instantly share code, notes, and snippets.

@iguit0
Last active February 25, 2024 16:38
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iguit0/89ea1a9003d487531e2b5e47a9f082c6 to your computer and use it in GitHub Desktop.
Save iguit0/89ea1a9003d487531e2b5e47a9f082c6 to your computer and use it in GitHub Desktop.
My scripts for APT distros
sudo apt-get update
echo 'installing curl'
sudo apt install curl -y
echo 'installing git'
sudo apt install git -y
echo "What name do you want to use in GIT user.name?"
echo "For example, mine will be \"Igor Lucio\""
read git_config_user_name
git config --global user.name "$git_config_user_name"
clear
echo "What email do you want to use in GIT user.email?"
echo "For example, mine will be \"igorsk89@gmail.com\""
read git_config_user_email
git config --global user.email $git_config_user_email
clear
echo "Generating a SSH Key"
ssh-keygen -t ed25519 -C $git_config_user_email
ssh-add ~/.ssh/id_ed25519
echo 'enabling workspaces for both screens'
gsettings set org.gnome.mutter workspaces-only-on-primary false
echo 'installing zsh'
sudo apt-get install zsh -y
sh -c "$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
echo 'installing 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'
sudo apt-get install apt-transport-https -y
sudo apt-get update
sudo apt-get install code -y # or code-insiders
echo 'installing code extensions'
code --install-extension formulahendry.auto-close-tag
code --install-extension formulahendry.auto-complete-tag
code --install-extension formulahendry.auto-rename-tag
code --install-extension anseki.vscode-color
code --install-extension dracula-theme.theme-dracula
code --install-extension pkief.material-icon-theme
code --install-extension zhuangtongfa.material-theme
code --install-extension dbaeumer.vscode-eslint
code --install-extension sysoev.language-stylus
code --install-extension christian-kohler.path-intellisense
code --install-extension esbenp.prettier-vscode
code --install-extension foxundermoon.shell-format
code --install-extension pmneo.tsimporter
code --install-extension yzhang.markdown-all-in-one
code --install-extension vscode-icons-team.vscode-icons
code --install-extension octref.vetur
echo 'installing spotify'
snap install spotify
echo 'installing chrome'
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb
echo 'installing nvm'
sh -c "$(curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash)"
export NVM_DIR="$HOME/.nvm" && (
git clone https://github.com/creationix/nvm.git "$NVM_DIR"
cd "$NVM_DIR"
git checkout `git describe --abbrev=0 --tags --match "v[0-9]*" $(git rev-list --tags --max-count=1)`
) && \. "$NVM_DIR/nvm.sh"
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
source ~/.zshrc
nvm --version
nvm install 12
nvm alias default 12
node --version
npm --version
echo 'installing autosuggestions'
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.zsh/zsh-autosuggestions
echo "source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh" >> ~/.zshrc
source ~/.zshrc
echo 'installing theme'
sudo apt install fonts-firacode -y
wget -O ~/.oh-my-zsh/themes/node.zsh-theme https://raw.githubusercontent.com/skuridin/oh-my-zsh-node-theme/master/node.zsh-theme
sed -i 's/.*ZSH_THEME=.*/ZSH_THEME="node"/g' ~/.zshrc
echo 'installing terminator'
sudo apt-get update
sudo apt-get install terminator -y
echo 'adding dracula theme'
cat <<EOF > ~/.config/terminator/config
[global_config]
title_transmit_bg_color = "#ad7fa8"
handle_size = 1
enabled_plugins = LaunchpadBugURLHandler, LaunchpadCodeURLHandler, APTURLHandler, TerminalShot, TerminatorThemes
always_split_with_profile = True
[keybindings]
[layouts]
[[default]]
[[[child0]]]
type = Window
parent = ""
order = 0
position = 590:272
maximised = False
fullscreen = False
size = 734, 474
title = igor@FX-8350: ~
last_active_term = f4f0ab7a-f23b-402f-8147-4442433f37ef
last_active_window = True
[[[terminal1]]]
type = Terminal
parent = child0
order = 0
profile = Firewatch
uuid = f4f0ab7a-f23b-402f-8147-4442433f37ef
[plugins]
[profiles]
[[default]]
background_color = "#282828"
background_darkness = 0.86
background_type = transparent
cursor_color = "#aaaaaa"
font = Fira Code weight=453 11
foreground_color = "#ebdbb2"
show_titlebar = False
palette = "#282828:#cc241d:#98971a:#d79921:#458588:#b16286:#689d6a:#a89984:#928374:#fb4934:#b8bb26:#fabd2f:#83a598:#d3869b:#8ec07c:#ebdbb2"
use_system_font = False
copy_on_selection = True
[[Firewatch]]
background_color = "#1e2027"
background_darkness = 1.0
background_type = transparent
cursor_color = "#f6f7ec"
font = Fira Code weight=453 11
foreground_color = "#9ba2b2"
show_titlebar = False
palette = "#585f6d:#d95360:#5ab977:#dfb563:#4d89c4:#d55119:#44a8b6:#e6e5ff:#585f6d:#d95360:#5ab977:#dfb563:#4c89c5:#d55119:#44a8b6:#e6e5ff"
use_system_font = False
copy_on_selection = True
EOF
cat <<EOF >> ~/.config/terminator/config
[[Dracula]]
background_color = "#1e1f29"
background_darkness = 0.88
background_type = transparent
copy_on_selection = True
cursor_color = "#bbbbbb"
foreground_color = "#f8f8f2"
palette = "#000000:#ff5555:#50fa7b:#f1fa8c:#bd93f9:#ff79c6:#8be9fd:#bbbbbb:#555555:#ff5555:#50fa7b:#f1fa8c:#bd93f9:#ff79c6:#8be9fd:#ffffff"
scrollback_infinite = True
EOF
echo 'installing docker'
sudo apt-get remove docker docker-engine docker.io
sudo apt install docker.io -y
sudo systemctl start docker
sudo systemctl enable docker
sudo groupadd docker
sudo usermod -aG docker $USER
docker --version
chmod 777 /var/run/docker.sock
echo 'installing docker-compose'
sudo curl -L "https://github.com/docker/compose/releases/download/1.28.5/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version
echo 'installing inkscape'
snap install inkscape
echo 'installing postman'
snap install postman
echo 'installing obs-studio'
snap install obs-studio
echo 'installing zoom'
snap install zoom-client
echo 'installing dbeaver'
snap install dbeaver-ce
echo 'installing htop'
sudo apt-get install htop -y
echo 'installing gitkraken'
snap install gitkraken --classic
echo 'installing telegram'
snap install telegram-desktop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment