From e8d0c3072a248dfc779f0c5f99249af2d6a77eeb Mon Sep 17 00:00:00 2001 From: MrZnipes <93216272+MrZnipes@users.noreply.github.com> Date: Wed, 17 Nov 2021 14:34:44 -0500 Subject: [PATCH 1/5] Added ubuntu Steps --- README.md | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/README.md b/README.md index 018ae35..209552a 100644 --- a/README.md +++ b/README.md @@ -334,6 +334,62 @@ For example, **set CUDA_VISIBLE_DEVICES=X,Y,Z,... & python cloudclassify-gpu.py* # **For Ubuntu** + +* **Step 1**: Create Conda Environment + +Enter This command to create the conda environment: + +``` +conda create -n cloud-env python=3.8 +``` + +* **Step 2**: Activate the Conda Environment + +To activate the conda environment you created, enter this command: + +``` +conda activate cloud-env +``` + +Followed by this command to install pip to the conda environment: + +``` +conda install pip +``` + +* **Step 3**: Download the Training Data and Required python packages + +Download the training data at this [link](https://drive.google.com/file/d/13W_etsy1A4czDTDHrPVliOImAfTlRSze/view) and place it in a folder named cloudpackage on your desktop + +Install the required packages using the command: + +``` +pip install -r requirements_cpu.txt +``` + +[Download the zip](https://github.com/stccenter/PM2.5Retrieval/archive/refs/heads/main.zip) containing your script and place the contents of the zip in the cloudpackage folder + + +* **Step 4**: Run the Script + +To change to the desktop directory, Enter the Command: + +``` +cd Desktop +``` + +To change to the directory to your folder, Enter the Command: + +``` +cd cloudpackage +``` + +To run the Script enter the command: + +``` +python cloudclassify-cpu.py +``` + ## **GPU-based implementation** **Step 1** The AWS Deep Learning AMI comes with different versions of CUDA. Please switch to the correct CUDA version, **10.2**, by using the following commands: From 0f3073214732edc0ca4423747fc8a300c0ac2c10 Mon Sep 17 00:00:00 2001 From: MrZnipes <93216272+MrZnipes@users.noreply.github.com> Date: Wed, 17 Nov 2021 14:46:11 -0500 Subject: [PATCH 2/5] added estimated time --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 209552a..33d2770 100644 --- a/README.md +++ b/README.md @@ -390,6 +390,8 @@ To run the Script enter the command: python cloudclassify-cpu.py ``` +Estimated TIme: 2hr 48min + ## **GPU-based implementation** **Step 1** The AWS Deep Learning AMI comes with different versions of CUDA. Please switch to the correct CUDA version, **10.2**, by using the following commands: From 47c574fa7c564366557d4fefadef5653eb3a8297 Mon Sep 17 00:00:00 2001 From: MrZnipes <93216272+MrZnipes@users.noreply.github.com> Date: Thu, 18 Nov 2021 14:13:44 -0500 Subject: [PATCH 3/5] updated ubuntu steps changed order for pip install added bin file download step --- README.md | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 33d2770..11112ae 100644 --- a/README.md +++ b/README.md @@ -361,16 +361,9 @@ conda install pip Download the training data at this [link](https://drive.google.com/file/d/13W_etsy1A4czDTDHrPVliOImAfTlRSze/view) and place it in a folder named cloudpackage on your desktop -Install the required packages using the command: - -``` -pip install -r requirements_cpu.txt -``` - [Download the zip](https://github.com/stccenter/PM2.5Retrieval/archive/refs/heads/main.zip) containing your script and place the contents of the zip in the cloudpackage folder - -* **Step 4**: Run the Script +[Download the zip](https://drive.google.com/file/d/0B7XkCwpI5KDYNlNUTTlSS21pQmM/edit?resourcekey=0-wjGZdNAUop6WykTtMip30g)containing the bin file and unzip the contents into the cloudpackage folder To change to the desktop directory, Enter the Command: @@ -384,13 +377,22 @@ To change to the directory to your folder, Enter the Command: cd cloudpackage ``` +Install the required packages using the command: + +``` +pip install -r requirements_cpu.txt +``` + +* **Step 4**: Run the Script + To run the Script enter the command: ``` python cloudclassify-cpu.py ``` -Estimated TIme: 2hr 48min + +Estimated Time: 2hr 48min ## **GPU-based implementation** From 23a558d4e46810f049591342a3023539eeb3bb92 Mon Sep 17 00:00:00 2001 From: MrZnipes <93216272+MrZnipes@users.noreply.github.com> Date: Mon, 22 Nov 2021 13:51:25 -0500 Subject: [PATCH 4/5] updated ubuntu steps fixed link issue --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 11112ae..654b6d2 100644 --- a/README.md +++ b/README.md @@ -361,12 +361,13 @@ conda install pip Download the training data at this [link](https://drive.google.com/file/d/13W_etsy1A4czDTDHrPVliOImAfTlRSze/view) and place it in a folder named cloudpackage on your desktop -[Download the zip](https://github.com/stccenter/PM2.5Retrieval/archive/refs/heads/main.zip) containing your script and place the contents of the zip in the cloudpackage folder +[Download the zip](https://github.com/stccenter/CloudClassification/archive/refs/heads/main.zip) containing your script and place the contents of the zip in the cloudpackage folder [Download the zip](https://drive.google.com/file/d/0B7XkCwpI5KDYNlNUTTlSS21pQmM/edit?resourcekey=0-wjGZdNAUop6WykTtMip30g)containing the bin file and unzip the contents into the cloudpackage folder To change to the desktop directory, Enter the Command: + ``` cd Desktop ``` From 84fb208ac3489ed63aadcaa8b971430689ff998e Mon Sep 17 00:00:00 2001 From: MrZnipes <93216272+MrZnipes@users.noreply.github.com> Date: Mon, 24 Jan 2022 14:22:25 -0500 Subject: [PATCH 5/5] Update README.md First Draft VM setup instructions --- README.md | 127 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 127 insertions(+) diff --git a/README.md b/README.md index 654b6d2..00fd02d 100644 --- a/README.md +++ b/README.md @@ -332,6 +332,133 @@ For example, **set CUDA_VISIBLE_DEVICES=X,Y,Z,... & python cloudclassify-gpu.py* --- +# **For Ubuntu on Windows** + +## **Preparing an Ubuntu Virtual Environment In a Windows Host OS** +**Step 1: Install Virtualbox** +Virtual box is a tool which allows you to run different operating systems virtually on your host operating system. This is referred to as a virtual machine. + +In order to install Virtualbox, follow this [link](https://www.virtualbox.org/wiki/Downloads) + +Under "VirtualBox 6.1.28 platform packages" select the windows host download link. + +Open VirtualBox + +**Step 2: Download Ubuntu ISO file** + For the purposes of this document I will be utilizing ubuntu 20.04, although 18.04 is recommended. + +Follow this [link](https://ubuntu.com/#download) + +Under the Download button select 20.04 LTS + +**Step 3: Set Up Ubuntu virtual machine in virtualbox** +Open virtualbox + +Click the "New" button + +Provide the name of your new machine (I recommend the name Ubuntu 20.04) + +Set Machine folder location(your choice) + +Ensure the Type and version fields are correct (Type: Linux ; Version: Ubuntu(64-bit)) + +Select Next + +Select memory size (Anywhere inside the green area of the scale) + +Select Next + +Select "Create a virtual hard disk now" +Select Create + +Select VDI(Virtual Disk Image) + +Select Next + +Select Dynamically Allocated (Allows the OS to expand disk size if required) + +Select Next + +Choose File Location + +Choose virtual Hard disk size(I recommend around 100Gb) + +Click Create + +**Step 4: Configure Settings for Ubuntu Virtual Machine** + +Select your machine + +Select Settings + +Under General, click advanced settings. Select Bidirectional for both shared clipboard and drag and drop fields. This will allow you to share files between host machine and ubuntu machine. + +Under System, click processor. Choose the number of CPUs you wish to use. (if no preference leave as default) + +Under storage Click empty. Under attributes, by optical drive click Disk dropdown and select choose a disk file. Provide location for ISO file downloaded in step 2. + +Select OK. + +**Step 5: Open your virtual machine** +Select your machine and press start. + +Select preferred language and click install ubuntu + +Select Keyboard Layout and Language, Click Continue + +Under "What apps would you like to start with?" Select normal installation + +Under "Other Options" select download updates while installing ubuntu and Install third party software for graphics and Wi-Fi hardware and additional media formats + +Click continue + +Under Installation Type, Select Erase Disk and install ubuntu + +Click Install Now + +Click continue + +Select your Location + +Enter your preferred Name, Username and Password + +Click Continue. + +Wait for installation to complete. + +Click Restart Now. + +Log in to the user you created + +Follow Setup Instructions provided by the OS. + +**Step 6: (Optional) Install Virtual Box Guest Additions** +This software will allow your virtualbox virtual machine to properly maximize on your screen + +Open Terminal + +Give command: +``` +sudo apt install build-essential dkms linux-headers-$(uname -r) +``` +Provide your password + +Enter y, press enter + +Close terminal + +Select devices on virtualbox window + +Select Insert Guest additions CD Image + +Select Run + +Provide your password, click authenticate + +Restart ubuntu operating system + + + # **For Ubuntu**