Skip to content

Instantly share code, notes, and snippets.

@BonBonSlick
Created July 27, 2019 23:13
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 BonBonSlick/4a0426b2b86388463ce8fcd30e3078d5 to your computer and use it in GitHub Desktop.
Save BonBonSlick/4a0426b2b86388463ce8fcd30e3078d5 to your computer and use it in GitHub Desktop.
### Files
sudo gedit /etc/apt/sources.list
### Bsic Security setup
su -
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install sudo
# add user to sudores
su YouUserName
### Web
sudo apt-get install software-properties-common -y
sudo add-apt-repository ppa:ondrej/nginx
sudo add-apt-repository ppa:ondrej/php
# or debian PPA
sudo apt install ca-certificates apt-transport-https -y
wget -q https://packages.sury.org/php/apt.gpg -O- | sudo apt-key add -
echo "deb https://packages.sury.org/php/ stretch main" | sudo tee /etc/apt/sources.list.d/php.list
### After PPA added
sudo apt-get install git -y
sudo apt-get install nginx -y
sudo apt-get install postgresql -y
sudo apt-get install postgresql-contrib -y
sudo apt-get install mysql-server -y
sudo apt-get install mysql-client -y
sudo apt-get install mysql-common -y
sudo apt-get install php7.2 -y
sudo apt-get install php7.2-pgsql -y
sudo apt-get install php7.2-common -y
sudo apt-get install php7.2-cli -y
sudo apt-get install php7.2-fpm -y
sudo apt-get install php7.2-json -y
sudo apt-get install php7.2-opcache -y
sudo apt-get install php7.2-intl -y
sudo apt-get install php7.2-readline -y
sudo apt-get install php7.2-zip -y
sudo apt-get install php7.2-curl -y
sudo apt-get install php7.2-gd -y
sudo apt-get install php7.2-xml -y
sudo apt-get install php7.2-mbstring -y
sudo apt-get install php7.2-sqlite3 -y
sudo apt-get install php7.2-bcmath -y
sudo apt-get install php7.2-mysql -y
sudo apt-get install libargon2-1 -y
sudo apt-get install libsodium23 -y
sudo apt-get install libssl1.1 -y
sudo apt-get install apcu -y
sudo apt-get install php-ast -y
sudo apt-get install mcrypt -y
# configure nginx server blocks
curl -sL https://deb.nodesource.com/setup_10.x | sudo bash -
sudo apt-get install nodejs -y
# yarn with node PPA
sudo npm install yarn -g
# yarn with deb PPA, but node will be required anyway
curl -sS 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 install yarn
### Apt Applications
# should be enabled geo location services for redshift(and auto configure time)
sudo apt-get install redshift -y
sudo apt-get install redshift-gtk -y
sudo apt-get install geoclue-2.0 -y
sudo apt-get install gnome-shell-pomodoro -y
sudo apt-get install xclip -y
sudo apt-get install gitg -y
sudo apt-get install tmux -y
### Applications
cd ~/Downloads
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
wget https://downloads.slack-edge.com/linux_releases/slack-desktop-3.3.1-amd64.deb
wget https://updates.tdesktop.com/tlinux/tsetup.1.3.14.tar.xz
wget https://download-cf.jetbrains.com/webide/PhpStorm-2018.2.2.tar.gz
# run this after any package, installs package and it is dependencies
sudo dpkg -i packageName.deb
sudo apt-get install -f -y
### Adition
# pgAdmin
sudo apt-get install python3-pip build-essential python3-dev libssl-dev libffi-dev
sudo pip3 install https://ftp.postgresql.org/pub/pgadmin/pgadmin4/v4.1/pip/pgadmin4-4.1-py2.py3-none-any.whl
# commands
/etc/init.d/php7.2-fpm status - see php fpm status
sudo service php7.3-fpm start / stop / restart
ps aux | grep php-fpm - see all processes
# hotkeys (terminal example)
https://superuser.com/questions/476937/ctrlaltt-doesnt-open-a-terminal-in-cinnamon-1-6
# launcher (PhPstrom example)
https://askubuntu.com/questions/220512/how-can-i-create-launcher-icon-for-phpstorm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment