Skip to content

Commit

Permalink
GITBOOK-76: Updated Installing Ubuntu Guide
Browse files Browse the repository at this point in the history
  • Loading branch information
aerial-robotics-iitk-bot authored and gitbook-bot committed Sep 23, 2023
1 parent 0a57e37 commit 5f46f0c
Show file tree
Hide file tree
Showing 5 changed files with 98 additions and 18 deletions.
Binary file added .gitbook/assets/image (1).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .gitbook/assets/image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 5 additions & 6 deletions tutorials/cheatsheets/git_cheatsheets.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* [Undo](git\_cheatsheets.md#undo)
* [Git Flow](git\_cheatsheets.md#git-flow)

***


### Search

Expand All @@ -36,7 +36,7 @@ $ git log -S 'keyword'
$ git log -S 'keyword' --pickaxe-regex
```

***


### Commit History

Expand Down Expand Up @@ -64,7 +64,7 @@ $ git log --oneline <origin/master>..<remote/master> --left-right
$ git blame <file>
```

***


### Move / Rename

Expand All @@ -76,7 +76,7 @@ Rename Index.txt to Index.html
$ git mv Index.txt Index.html
```

***


### Branches & Tags

Expand Down Expand Up @@ -349,7 +349,7 @@ squash <commit_id2>
squash <commit_id3>
```

***


### Undo

Expand Down Expand Up @@ -409,4 +409,3 @@ $ git add .
$ git commit -m "remove xyz file"
```

***
103 changes: 92 additions & 11 deletions tutorials/workspace-setup/installing-ubuntu.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,109 @@ description: The "Developer" OS

# Installing Ubuntu

## Step 1: Download the .iso file
## &#x20;Download ISO file

> The latest stable version of Ubuntu that can support all the software we use is 16.04.
> The latest stable version of Ubuntu that can support all the software we use is 20.04.
Download the required Ubuntu disk image file from here:
Download the required Ubuntu Desktop disk image file from here:

{% embed url="http://releases.ubuntu.com/16.04/" %}
{% embed url="http://releases.ubuntu.com/20.04/" %}

{% hint style="info" %}
The file is named **ubuntu-16.04.5-desktop-amd64.iso**.
The file is named **ubuntu-20.04.6-desktop-amd64.iso**.
{% endhint %}

## Step 2: Create a bootable USB drive
## Un-allocate Space

Download and run Rufus:
Ubuntu 20.04 requires `~8 GB` for complete disk installation, but you need to have more utilities. A space of `100 GBs` usually suffices, but that's your choice.

If you're planning to use Ubuntu as your primary OS I would highly recommend partitioning your SSD drive, and giving up `150 - 200 GB` space instead.

Refer here to understand how to do this step:

{% embed url="https://www.dummies.com/computers/pcs/how-to-unallocate-a-drive-volume-in-windows/" %}
Steps to unallocate space on windows
{% endembed %}

## Create a bootable USB drive

{% embed url="https://rufus.ie/en_IE.html" %}
Rufus Official Site for downloading. Rufus helps you burn ISO on your drives
{% endembed %}

Install Rufus, and upon starting the application should look like:

<img src="../../.gitbook/assets/image.png" alt="" data-size="original">

Insert the external flash drive, Rufus would automatically detect it as _Device._\
Under _Boot Selection_ choose the ISO file downloaded above.\
Leave _Partition Scheme_ and _Target System_ as defaults.\
Start the process.

## Reboot and Change Startup Config

Reboot the system, keeping the startup disk connected, and Enter BIOS Menu.\
Reboot your system, and while it turns on, before your laptop's brand's icon shows up.&#x20;

Repeatedly press the key (Keys to be pressed vary a lot, usually it is`F2`, confirm from ) until the BIOS Menu shows up, something like this:

<img src="../../.gitbook/assets/image (1).png" alt="" data-size="original">

Turn off `UEFI Secure Boot` and `Legacy Boot` (if available) settings.\
Now in the _Boot Device Select Menu_ change the `Boot Order` to USB first.\
More info here:

{% embed url="https://www.tuxedocomputers.com/en/Infos/Help-Support/Help-for-my-device/TUXEDO-Book-BA-series/TUXEDO-Book-BA15/BIOS-settings-for-dual-boot-with-Windows.tuxedo" %}

### Load Ubuntu Installer from Drive

While the USB-drive is connected, use that to load the OS.

Ubuntu Installation wizard will greet you.\
Rest steps should be kept as default unless you know what you're doing.\
The steps where you have to take care are:

* Tick the `Install third party softwares for graphics and Wifi hardware [...]`
* Under Installation Type Menu, choose `Something Else` and under that, use the unallocated partitions you created in Step 2.

#### Allocating Space

Distribute the unallocated space to 3 partitions, `root`, `home` and `swap`(recommended, if low RAM device)\
To create the first partition, the `root` partition, select the free space (the shrinking space from Windows created earlier), and hit on the `+` icon below. On partition settings use the following configurations and hit OK to apply changes:

* Size = at least 15000 MB
* Type for the new partition = Primary
* Location for the new partition = Beginning
* Use as = EXT4 journaling file system
* Mount point = `/`

{% hint style="info" %}
It is recommended to place root partition onto primary partition on MBR scheme disks
{% endhint %}

Create the swap partition using the same steps as above.

* Size = 512 MB to 4 GB
* Type for new partition = Primary
* Location for the new partition = Beginning of this space
* Use as = swap area

Create the home partition using similar steps. Use all the available free space left for the home partition size. The partition settings should look like this:

* Size = all remaining free space
* Type for the new partition = Primary
* Location for the new partition = Beginning
* Use as = EXT4 journaling file system
* Mount point = /home

{% hint style="info" %}
You can allocate more partitions for `/boot`, `/tmp` and `/var`
{% endhint %}

Search for the Startup Disk Creator.
Press `Install Now` after verifying that you're good to go.

## Step 3: Complete the installation
## Confirm Installation

Go through the following tutorial to finish the installation procedure:
Now rebooting should greet you with a GRUB menu, with a choice of going for Ubuntu or Windows booting. More detailed dual-booting tutorial [LINK](https://www.tecmint.com/install-ubuntu-alongside-with-windows-dual-boot/)

{% embed url="https://builtvisible.com/the-ubuntu-installation-guide/​" %}
Move on to [untitled.md](untitled.md "mention")
2 changes: 1 addition & 1 deletion tutorials/workspace-setup/px4-setup/px4-toolchain-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Finally, if you have been successful, you should see a drone hovering in the mid
roslaunch px4 mavros_posix_sitl.launch
```

***


> Do **NOT** use the convenience Bash scripts provided on the website
Expand Down

0 comments on commit 5f46f0c

Please sign in to comment.