Building on Ubuntu Virtual Machine: Difference between revisions

m
Fixed typos.
m (Added descriptions.)
m (Fixed typos.)
Line 2: Line 2:


This page is both concise and self-contained to allow beginners to quickly develop code for Octave. The libraries and instructions have been tested in Ubuntu 20.04.
This page is both concise and self-contained to allow beginners to quickly develop code for Octave. The libraries and instructions have been tested in Ubuntu 20.04.
= Virtualbox =
= VirtualBox =
# Download Virtualbox from [https://www.virtualbox.org/ virtualbox.org], install.
# Download VirtualBox from [https://www.virtualbox.org/ virtualbox.org], install.
# Download Ubuntu Desktop iso from [https://ubuntu.com/download/desktop ubuntu.com].
# Download Ubuntu Desktop iso from [https://ubuntu.com/download/desktop ubuntu.com].
# Create VM.
# Create VM.
## Start VirtualBox. In Oracle VM VirtualBox Manager, Select: Machine -> New. In Name, put: OctaveDev; Type: Linux; Version: Ubuntu (64-bit). Adjust Memory size to half of what is available. For example, if 16384 MB are available, type 8192. In Hard disk, select: Create a virtual hard disk now. Click Create.
## Start VirtualBox. In 'Oracle VM VirtualBox Manager', Select: Machine -> New. In Name, put: OctaveDev; Type: Linux; Version: Ubuntu (64-bit). Adjust 'Memory size' to half of what is available. For example, if 16384 MB are available, type 8192. In 'Hard disk', select: 'Create a virtual hard disk now'. Click Create.
## In Create Virtual Hard Disk window, under File size: 50 GB; Hard disk file type: VDI; Storage on physical hard disk: Dynamically allocated. Click Create.
## In 'Create Virtual Hard Disk' window, under 'File size': 50 GB; 'Hard disk file type': VDI; 'Storage on physical hard disk': Dynamically allocated. Click Create.
## Back to Oracle VM VirtualBox Manager, select OctaveDev, click on Settings. In System, select Processor tab. Adjust the number of CPUs to half of what is available, since this will speed up the compilation and response of the VM. For example, if you have 8 cores, select 4. Click OK. In Storage, under 'Controller: IDE', select Empty. Under Attributes, click on the disk icon. Browse and select the iso file previously downloaded. Click OK.
## Back to 'Oracle VM VirtualBox Manager', select OctaveDev, click on Settings. In System, select Processor tab. Adjust the number of CPUs to half of what is available, since this will speed up the compilation and responsiveness of the VM. For example, if you have 8 cores, select 4. Click OK. In Storage, under 'Controller: IDE', select Empty. Under Attributes, click on the disk icon. Browse and select the iso file previously downloaded. Click OK.
## Double click the newly created VM to start it. Follow the prompts to install the operating system. Don't forget to add a username and a password. This tutorial has the username as 'ubuntuuser'.
## Double click the newly created VM to start it. Follow the prompts to install the operating system. Don't forget to add a username and a password. This tutorial has the username as 'ubuntuuser'.
= Dependencies =
= Dependencies =
13

edits