> For the complete documentation index, see [llms.txt](https://davids-tutorials.gitbook.io/robotics/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://davids-tutorials.gitbook.io/robotics/virtual-machines-virtual-box.md).

# Virtual Machines - Virtual Box

* [Virtual Box](https://www.virtualbox.org/wiki/Downloads)
* Linux [Ubuntu 22.04 Jammy](https://releases.ubuntu.com/jammy/)
  \*

  ```
  <figure><img src="/files/x9Zod0K3DPuimnDnPaiY" alt=""><figcaption><p>Ubuntu Disc Image File</p></figcaption></figure>
  ```

> Note: if you get this error, you will need to follow this [article](https://www.debugpoint.com/virtualbox-needs-microsoft-visual-c/) \
> &#x20;![](/files/raDd2NZJc9E9O3Bpt08d)
>
> you will need to select this option on this [page](https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170)
>
> ![](/files/rTz9JOJke8BQPHN3exz2)

Open Virtual Box

* Click on "New"
* Pop up will show:&#x20;
  * Create Virtual Machine
    * Name: any name is fine
    * Folder: Any folder&#x20;
    * ISO Image: find the ubuntu-22.04.3-desktop-amd64.iso in Downloads
    * Leave unchecked Skip Unattended Installation
  * Unattended Guest OS Install Setup
    * Username: any name is fine
    * Password: I keep mine short because it is typed often&#x20;
    * Check Guest Additions
  * Hardware:
    * Base Memory: (Ram) slide right but stay in green
    * Processors: (CPU) slide right but stay in green
  * Virtual Hard disk:
    * Create a Virtual Hard Disk Now
      * Disk Size: 40GB is recommended
      * Leave unchecked Pre-allocate Full Size
  * Summary:
    * Finish
* VM will begin powering up
* Ubuntu booting up menu will show
* Click "Delete Finished Notifications" top right to remove side bar
  \*

  ```
  <div data-full-width="false"><figure><img src="/files/FVWxo3UwDpgiWV3eXRxv" alt="" width="217"><figcaption><p>Delete Finished Notifications</p></figcaption></figure></div>
  ```
* Note: To got back to host computer, move mouse out of VirtualBox application
* Wait for the install program to finish

### Set up User

Adding user to sudoers and dialout

\<username> is your username so replace it in the command.&#x20;

Open the terminal with `Ctrl` + `Alt` + `T`

Type the following:

* or copy and paste (`Shift` + `Insert`)

```bash
su root 
usermod -aG sudo,dialout <username>
shutdown -r now 

#After restart: 
sudo apt update && sudo apt upgrade
```
