Reserve a VM

  1. Login https://vcm.duke.edu with your Duke Net ID
  2. Click on "Reserve a VM" and configure as "Ubuntu Server 20.04"
  3. Then you should be able to 'ssh' into this VM image using your Duke NetID and password. For example: ssh <netid>@<vm-name>.vm.duke.edu
  4. You should be aware that Duke VM automatically shuts down every day by default. If you cannot ssh into your VM, make sure it's turned on.

Install Packages

Please install in this order:

# Mainly for hw1 currently
sudo apt-get install gcc g++ make valgrind
sudo apt-get install emacs screen
sudo apt-get install postgresql
sudo apt-get install python python3-pip
sudo apt-get install libpq-dev
sudo pip3 install django psycopg2 

# After installing django, you can try this command
$ django-admin --version
4.2.9

sudo apt-get install libssl-dev libxerces-c-dev libpqxx-dev
sudo apt-get install manpages-posix-dev

Next Steps

Then you can play around with Django Tutorial on your brand-new VM!

Reference:

https://medium.com/@snggeng/deploying-production-servers-on-duke-vms-92d1c8b254d2