Instructions and Demo for GAB 2018 - April 21
- Creare a Ubuntu 17.10 VM following: +Create resource > Virtual Machines > Ubuntu Server 17.10 > Clasic > Create > Default options (take 5 minutes)
- Software required: Install Putty (https://www.putty.org) OR Enable WSL in Win10 (https://docs.microsoft.com/en-us/windows/wsl/install-win10) OR Use your bash terminal (MacOS/Linux)
- Connect to server using: ssh xxxxxx@194.235.81.167
-
Install xrdp server (5 mins)
$ sudo apt-get install xrdp
-
Open required ports on VM using: Dashboard > VM > Newtwork > Add inbound port rule
Select Service RDP
Press OK
-
Install lubuntu desktop (15 mins)
$ sudo apt-get update
$ sudo apt install gnome-session
-
Create session entry point
$ echo "gnome-session" > ~/.xsession
-
Edit /etc/X11/Xwrapper.config file, based on http://c-nergy.be/blog/?p=10887
$ sudo nano /etc/X11/Xwrapper.config
-
Reset xserver
$ sudo /etc/init.d/xrdp restart
-
Change content to this line:
allowed_users=anybody
-
Connect to VM using Windows RDP and please ignore "Authentication required to create color managed device error"
-
$ sudo apt-get update
-
$ sudo apt-get install git
- These steps are only for future reference, please don't execute them
- Goto: https://blogs.msdn.microsoft.com/uk_faculty_connection/2017/03/27/azure-gpu-tensorflow-step-by-step-setup/
- Please locate "Completing CUDA/Tensorflow setup" section
- Follow instructions until before "Filing a support ticket" section
-
Install Python
$ sudo apt-get install python3-pip python3-dev python-virtualenv # for Python 3.n
-
Create a virtualenv (optional)
$ virtualenv --system-site-packages -p python3 targetDirectory # for Python 3.n
-
Activate virtualenv (optional)
$ source ~/tensorflow/bin/activate # bash, sh, ksh, or zsh
-
Ensure pip ≥8.1 is installed:
$ sudo easy_install -U pip
-
Install Tensorflow
pip3 install --upgrade tensorflow
-
Install tk library
$ sudo apt-get install python3-tk
-
Install Matplotlib if it is required
$ sudo pip3 install matplotlib
-
Clone project:
$ git clone https://github.com/tecnocrata/gab2018-machine-learning.git
-
Access directory
$ cd gab2018-machine-learning/
-
Execute first sample
$ python3 01-installation_test.py
-
In order to run 02 and 03 samples you must be logged into VM using RDP