Last active
March 15, 2019 08:28
-
-
Save roshnet/41931a5401db8e38c5f3ef6732272f4c to your computer and use it in GitHub Desktop.
List of tools to install on a newly installed Debian-based Linux distro.
This file contains hidden or 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
MINIMAL TOOL NAMES | |
git, npm, yarn, preload, sublime-text-3, numpy, pandas, matplotlib, scipy | |
INSTALLATIONS: | |
sudo apt update | |
sudo apt install git | |
sudo apt install preload | |
sudo apt install npm | |
sudo apt install python3-pip | |
sudo apt install python3-venv | |
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add - | |
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list | |
sudo apt update | |
sudo apt install sublime-text | |
FOR yarn INSTALLATION: | |
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-get update && sudo apt-get install yarn | |
# Installation complete. | |
# Refer to the following link (source): | |
https://yarnpkg.com/en/docs/install#debian-stable | |
PYTHON PACKAGES (ensure pip3 is installed) | |
pip3 install pandas | |
pip3 install matplotlib | |
pip3 install jupyter | |
pip3 install flask | |
Run the following to make pip3 the default, by abandoning pip2. | |
(ONLY IF YOU DON'T WANT ANYTHING TO BE INSTALLED FOR python2) | |
sudo ln -s /usr/bin/pip3 /usr/bin/pip | |
FLASK DEPENDENCIES | |
from flask import flask | |
# Now, use the following to setup MySQL database interactions for Flask | |
sudo apt install mysql-client | |
sudo apt install mysql-server | |
sudo apt install libmysqlclient-dev | |
pip3 install mysql-python | |
Difference between mysql server and client: | |
(source: https://stackoverflow.com/questions/6962890/what-is-the-difference-between-mysql-server-and-mysql-client) | |
MySql Client : | |
The mysql-client package allows you to connect to a MySQL server. It will give you the "mysql" command-line program. | |
MySql Server : | |
The mysql-server package allows to run a MySQL server which can host multiple databases and process queries on those databases. | |
MySQL : | |
The "MySQL" package probably includes both of the above. | |
If you just need to connect to a remote server and run queries, install just mysql-client. If you need to host a database, install the client and server. | |
INSTALLATION INSTRUCTIONS FOR apache2, php AND phpmyadmin: | |
Refer to the following (worked on Mint-19):- | |
https://connectwww.com/how-to-install-and-configure-apache-php-mysql-and-phpmyadmin-on-linux-mint/1443/ | |
Briefing: | |
sudo apt update | |
sudo apt install apache2 | |
sudo apt install libapache2-mod-php # for latest php. | |
sudo /etc/init.d/apache2 restart | |
sudo apt-get install phpmyadmin | |
sudo systemctl restart apache2 | |
If something goes wrong, refer to article. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment