Last active
December 29, 2019 00:54
-
-
Save Jianghao/4022e90962e6d5122b8d2f163b33e254 to your computer and use it in GitHub Desktop.
linode sentiment envrionment.sh
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
# wang** | |
ssh root@45.79.186.179 | |
# add a user | |
sudo adduser sentiment | |
cd ../home/ | |
sudo chmod 700 sentiment/ | |
# Add the new user to the sudo group | |
usermod -aG sudo sentiment | |
# test | |
sudo ls -l /root | |
# ------------------------------------- | |
# install python 3 and Jupyter Notebook | |
# REF: https://www.digitalocean.com/community/tutorials/how-to-install-python-3-and-set-up-a-programming-environment-on-ubuntu-18-04-quickstart | |
# ------------------------------------- | |
# Step 1 — Set Up Python | |
sudo apt update | |
sudo apt -y upgrade | |
python3 -V | |
sudo apt install python3-pip python3-dev | |
# test | |
pip3 install numpy | |
# Step 2 — Create a Python Virtual Environment for Jupyter | |
sudo -H pip3 install --upgrade pip | |
sudo -H pip3 install virtualenv | |
# Step 3 — Install Jupyter | |
pip install jupyter |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment