Skip to content

Instantly share code, notes, and snippets.

@Jianghao
Last active December 29, 2019 00:54
Show Gist options
  • Save Jianghao/4022e90962e6d5122b8d2f163b33e254 to your computer and use it in GitHub Desktop.
Save Jianghao/4022e90962e6d5122b8d2f163b33e254 to your computer and use it in GitHub Desktop.
linode sentiment envrionment.sh
# 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