Skip to content

Instantly share code, notes, and snippets.

@caglartoklu
Last active August 1, 2019 08:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save caglartoklu/c0d83d2b02dff98fe82a67545206fa19 to your computer and use it in GitHub Desktop.
Save caglartoklu/c0d83d2b02dff98fe82a67545206fa19 to your computer and use it in GitHub Desktop.
Install packages for Ubuntu
# Shell script to prepare an Ubuntu 18.04 LTS for development.
# After downloading the file, uncomment the sections you like.
# Tested with Zorin OS 15 Core 64-bit.
# __________ remove some unnecessary apps for development
sudo apt remove gnome-mahjongg gnome-mines gnome-sudoku aisleriot quadrapassel
# __________ utilities
sudo apt install mc p7zip-full p7zip-rar arj
sudo apt install curl tofrodos
# sudo apt install bleachbit
# sudo apt install synaptic
# sudo apt install xrandr
# xrandr --output Virtual1 --mode 1280x800
# __________ development
# the line below is required for VirtualBox guest additions.
sudo apt install gcc make perl
sudo apt install g++ cmake build-essential cloc
sudo apt install git
sudo apt install vim-gtk3
sudo apt install exuberant-ctags
# __________ Python
# sudo apt install pylint # will install python2
sudo apt install pycodestyle virtualenv python3-venv
# sudo apt install python3-dev
# sudo apt install spyder
# __________ Miniconda
DIR=~/miniconda
if [ -d "$DIR" ]; then
echo "$DIR exist, skipping Miniconda."
else
curl -o miniconda.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
chmod +x miniconda.sh
./miniconda.sh -b -p ~/miniconda
fi
# __________ dotNET, Mono
# sudo apt install mono-runtime mono-vbnc
# sudo snap install dotnet-sdk --classic
# __________ Wine
# sudo apt install cabextract
# sudo dpkg --add-architecture i386
# wget -qO - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -
# sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
# sudo apt update
# sudo apt install --install-recommends winehq-stable
# cd "${HOME}/Downloads"
# rm winetricks
# curl https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks > winetricks
# chmod +x winetricks
# cd "${HOME}"
# create 32-bit wine prefix:
# rm -r -f ~/.wine
# WINEARCH=win32 WINEPREFIX=~/.wine wine wineboot
# ref: https://askubuntu.com/questions/177192/how-do-i-create-a-32-bit-wine-prefix
# install an .msi file:
# wine start filename.msi
# uninstaller:
# wine uninstaller
# __________ Pascal
# sudo apt install lazarus fp-ide
# __________ Java
# sudo apt install eclipse
# sudo apt install default-jdk default-jre # v11
# sudo apt install openjdk-8-jdk openjdk-8-jre
# or:
# sudo snap install eclipse --classic
# since:
# https://askubuntu.com/questions/1031171/eclipse-doesnt-start-on-ubuntu-18-04
# __________ Visual Studio Code
# snap install code --classic
# __________ Docker
# uninstall old versions:
sudo apt remove docker docker-engine docker.io containerd runc
# Install packages to allow apt to use a repository over HTTPS:
sudo apt install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
# Add Docker’s official GPG key:
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
# Verify that you now have the key with the fingerprint 9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88
sudo apt-key fingerprint 0EBFCD88
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt update
sudo apt install docker-ce docker-ce-cli containerd.io
# __________ JavaScript
# FILE=/opt/nodesource_setup.sh
# if [ -f "$FILE" ]; then
# echo "$FILE exists, skipping Node.js."
# else
# sudo curl -sL https://deb.nodesource.com/setup_10.x -o /opt/nodesource_setup.sh
# sudo bash /opt/nodesource_setup.sh
# sudo apt install -y nodejs
# sudo npm install -g @angular/cli
# sudo curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
# echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
# sudo apt update
# sudo apt install -y yarn
# fi
# __________ clean up
sudo apt autoremove --purge
sudo apt clean
# __________ download some wallpapers, overwrite if they exist
mkdir ~/Pictures/windows-wallpapers
curl https://images-wixmp-ed30a86b8c4ca887773594c2.wixmp.com/i/0182a5cd-bef4-4ef8-b980-3fb20327f47e/d5el3iy-5b47ca5b-e70f-4a54-afa3-5882bd59dfe6.jpg > ~/Pictures/windows-wallpapers/zorin-wall1.jpg
curl https://wallpapercave.com/wp/wp2625439.jpg > ~/Pictures/windows-wallpapers/wp2625439.jpg
curl https://www.barraques.cat/pngfile/big/32-321274_windows-95.png > ~/Pictures/windows-wallpapers/32-321274_windows-95.png
curl https://i.redd.it/nrha1nruxjk01.png > ~/Pictures/windows-wallpapers/nrha1nruxjk01.png
curl https://anband.spb.ru/images/500/DSC100531716.jpg > ~/Pictures/windows-wallpapers/DSC100531716.jpg
curl https://static1.squarespace.com/static/51b326aee4b0de8ae9a5c173/5a9cb431085229f6ca3ba2c8/52eba472e4b08f94e6d90e56/1520561794771/789962-back-logos-microsoft-windows-operating-systems-retro-art-the-days.jpg?format=2500w > ~/Pictures/windows-wallpapers/789962-back-logos-microsoft-windows-operating-systems-retro-art-the-days.jpg
curl https://wallpapercave.com/wp/XVOuSYr.jpg > ~/Pictures/windows-wallpapers/XVOuSYr.jpg
curl https://inn.spb.ru/images/000/DSC100079793.png > ~/Pictures/windows-wallpapers/DSC100079793.png
curl https://mgo.azureedge.net/cloudcache/0/8/6/e/e/d/086eed9097d7bfd99edb252913fadccddbef63c2.jpg > ~/Pictures/windows-wallpapers/086eed9097d7bfd99edb252913fadccddbef63c2.jpg
# __________ shared folder settings for current user.
sudo adduser $USER vboxsf
# requires logout and login.
# ls /media/sf_*
# __________ installation of https://github.com/caglartoklu/vimrc_of_mine/
# if [ -d "~/vimrc_of_mine" ]; then
# echo "~/vimrc_of_mine exists, skipping vim configuration."
# else
# cd ~
# git clone https://github.com/caglartoklu/vimrc_of_mine.git
# cp ~/vimrc_of_mine/.vimrc ~/.vimrc
# git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
# fi
# Search for more packages:
# apt-cache search <keyword>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment