-
-
Save olivx/44d873f9a8ca43ac78cb2bb37892622b to your computer and use it in GitHub Desktop.
Snipṕets
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 | |
echo Intalling linux esentials... | |
sudo apt-get update -y | |
sudo apt-get install -y gcc \ | |
gconf2 \ | |
make \ | |
linux-headers-$(uname -r) \ | |
build-essential \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg2 \ | |
software-properties-common \ | |
libgconf-2-4 \ | |
libindicator7 \ | |
libappindicator1 \ | |
libc++1 \ | |
libssl-dev \ | |
zlib1g-dev \ | |
libbz2-dev \ | |
libreadline-dev \ | |
libsqlite3-dev \ | |
wget \ | |
llvm \ | |
libncurses5-dev \ | |
libncursesw5-dev \ | |
xz-utils \ | |
tk-dev \ | |
vim \ | |
git | |
echo Installing Docker | |
curl -fsSL https://download.docker.com/linux/$( | |
. /etc/os-release | |
echo "$ID" | |
)/gpg | sudo apt-key add - | |
sudo add-apt-repository \ | |
"deb [arch=amd64] https://download.docker.com/linux/$( | |
. /etc/os-release | |
echo "$ID" | |
) \ | |
$(lsb_release -cs) \ | |
stable" | |
sudo apt-get update -y | |
sudo apt-get install docker-ce -y | |
echo Installing VsCode | |
wget https://go.microsoft.com/fwlink/?LinkID=760865 -O /tmp/vscode-insiders.deb | |
sudo dpkg -i /tmp/vscode-insiders.deb | |
rm /tmp/vscode-insiders.deb | |
echo Installing Discord | |
wget "https://discordapp.com/api/download?platform=linux&format=deb" -O /tmp/discord.deb | |
sudo dpkg -i /tmp/discord.deb | |
rm /tmp/discord.deb | |
echo Installing Postman | |
wget https://dl.pstmn.io/download/latest/linux64 -O postman.tar.gz | |
sudo tar -xzf postman.tar.gz -C /opt | |
rm postman.tar.gz | |
sudo ln -s /opt/Postman/Postman /usr/bin/postman | |
cat >~/.local/share/applications/postman.desktop <<EOL | |
[Desktop Entry] | |
Encoding=UTF-8 | |
Name=Postman | |
Exec=postman | |
Icon=/opt/Postman/resources/app/assets/icon.png | |
Terminal=false | |
Type=Application | |
Categories=Development; | |
EOL | |
echo Installing pgAdmin4 | |
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' | |
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - | |
sudo apt-get -y update | |
sudo apt-get -y upgrade | |
sudo apt-get install -y pgadmin4 | |
cat >~/.local/share/applications/pgadmin.desktop <<EOL | |
[Desktop Entry] | |
Encoding=UTF-8 | |
Name=pgAdmin4 | |
Exec=pgadmin4 | |
Icon=/var/lib/app-info/icons/ubuntu-xenial-universe/64x64/pgadmin3_pgadmin3.png | |
Terminal=false | |
Type=Application | |
Categories=Development; | |
EOL | |
echo Installing Slack | |
wget https://downloads.slack-edge.com/linux_releases/slack-desktop-3.0.5-amd64.deb -O /tmp/slack.deb | |
sudo dpkg -i /tmp/slack.deb | |
rm /tmp/slack.deb | |
echo Installing Pyenv and Python3.6 | |
git clone https://github.com/pyenv/pyenv.git ~/.pyenv | |
echo 'export PYENV_ROOT="$HOME/.pyenv"' >>~/.bashrc | |
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >>~/.bashrc | |
echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >>~/.bashrc | |
source ~/.bashrc | |
git clone https://github.com/pyenv/pyenv-virtualenv.git $(pyenv root)/plugins/pyenv-virtualenv | |
echo 'eval "$(pyenv virtualenv-init -)"' >>~/.bashrc | |
source ~/.bashrc | |
pyenv install 3.6.4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment