# Ubuntu Corner

![](https://i.ytimg.com/vi/9DHUyz54flA/mqdefault.jpg)

{% hint style="info" %}
**Ubuntu X.YY**

**X-**&#x72;epresenting the **year**

**YY** representing the **month of eventual release within in that year**

{% endhint %}

{% hint style="info" %}
*The latest LTS version of Ubuntu is* **Ubuntu 24.04 LTS** *“***Noble Numbat***”*
{% endhint %}

{% hint style="info" %}

* LTS = Long Term Support
* **Released once every 2 years**, always in **April**.
* Version format: **YY.04** (e.g., 20.04, 22.04, 24.04)
  {% endhint %}

{% hint style="info" %}
Ubuntu's first release, made in **2004 October (10th month)** was **Ubuntu 4.10**
{% endhint %}

{% hint style="info" %}
Software installation

* GNOME-Software
* Synaptic Package Manager
* GDebi Package Installer
* *apt -*&#x43;ommand Line Tool
  {% endhint %}

{% hint style="success" %}

#### Install compression Library - Minizip development files

{% endhint %}

```
sudo apt-get update -y
```

```
sudo apt-get install -y libminizip-dev
```

{% hint style="success" %}

#### Anydesk wayland not supported  Issue on Ubuntu 22.04 LTS

{% endhint %}

Please go to this file using Terminal

```shell
sudo gedit /etc/gdm3/custom.conf
```

**Uncomment this line(Remove # from the line)**

<mark style="color:green;">**WaylandEnable=false**</mark>

Reboot your system:bookmark:

{% hint style="success" %}

## Ubuntu Login Loop Issue

{% endhint %}

<mark style="color:red;">**Issue:**</mark> When you try to log in to Ubuntu after starting up, you get taken right back around to the same login screen, and the process repeats indefinitely.

<mark style="color:blue;">**Solution:**</mark>

**Step 1:** Press Ctrl + Alt+F3/F4

**Step 2:** Enter Username and Password&#x20;

**Step 3:**

```bash
sudo nano /etc/gdm3/custom.conf
```

**Step 4:**

**Uncomment this line(Remove # from the line)**

<mark style="color:green;">**AutomaticLoginEnable= true**</mark>     &#x20;

<mark style="color:green;">**AutomaticLogin=user1(Computername)**</mark>

**Step 5:** Ctrl+S to save ,Ctrl+X to exit the file&#x20;

**Step 6:** reboot

<div align="left"><img src="https://img.shields.io/badge/courtesy-ITMMLP-643843" alt=""></div>

## **The command to use as a super user on Ubuntu system**

```bash
sudo nautilus
```

## &#x20;**Guest Removal Ubuntu 16.04**

```bash
 sudo mkdir /etc/lightdm/lightdm.conf.d
```

```bash
 sudo sh -c 'printf "[SeatDefaults]\nallow-guest=false\n" > /etc/lightdm/lightdm.conf.d/50-no-guest.conf'
```

`restart system` :signal\_strength:&#x20;

## How can I create launchers on my Ubuntu desktop

```bash
cd usr/share/applications/anydesk.desktop ~/Desktop
```

```bash
chmod +x ~/Desktop/anydesk.desktop
```

## Important apt Commands

| *<mark style="color:purple;">**apt**</mark>*<mark style="color:purple;">**&#x20;**</mark><mark style="color:purple;">**Command**</mark> | <mark style="color:purple;">**Function of the command**</mark> |
| --------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------- |
| apt install                                                                                                                             | Installs a package                                             |
| apt remove                                                                                                                              | Removes a package                                              |
| apt purge                                                                                                                               | Removes package with configuration                             |
| apt update                                                                                                                              | Refreshes repository index                                     |
| apt upgrade                                                                                                                             | Upgrade all upgradable packages                                |
| apt autoremove                                                                                                                          | Removes unwanted packages                                      |
| apt search                                                                                                                              | Searches for the program                                       |

## USEFUL LINUX COMMANDS :grin:&#x20;

> **system information**

| **command**       | **Description**                |
| ----------------- | ------------------------------ |
| date              | show the current date and time |
| uname -a          | show kernel information        |
| cat /proc/cpuinfo | cpu information                |
| cat /proc/meminfo | memory information             |
| man command       | show the manual for command    |

## UBUNTU SHORTCUTS :sunglasses:&#x20;

| **Shortcut** | **Usage**                                   |
| ------------ | ------------------------------------------- |
| Ctrl+C       | halts the current command                   |
| Ctrl+Z       | stops the current command                   |
| Ctrl+D       | log out of current session, similar to exit |
| Ctrl+W       | erases one word in the current line         |
| Ctrl+U       | erases the whole line                       |
| Ctrl+R       | type to bring up a recent command           |
| !!           | repeats the last command                    |
| exit         | log out of current session                  |

## How to Know if Your System Uses MBR or GPT Partitioning on  Linux

```
sudo parted -l
```

{% hint style="info" %}
&#x20;In the output, look for the line starting with **Partition Table**:

&#x20;For **MBR**, it would show **msdos**.

&#x20;For **GPT**, it would show **gpt**.
{% endhint %}

## BOOT KEY

![](https://4069828632-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MK_8KNTUUz_X6mqZndc%2F-MUEMVrHsyG9UiMLcRPv%2F-MUEMliG6N-W_CrEKl7b%2Fboot.JPG?alt=media\&token=9aaddd05-4549-446c-99ed-6926183a43c8)

![SMC](https://img.shields.io/badge/%20courtesy-KITE-120078)

## BIOS KEY

![](https://4069828632-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MK_8KNTUUz_X6mqZndc%2F-MUENPsQMjkxMlgLSM0k%2F-MUENWe4JFNb-bRD-P2_%2Fbios.JPG?alt=media\&token=9e2f8d1e-99ef-4ca6-83b1-1975ec69db7b)

![SMC](https://img.shields.io/badge/%20courtesy-KITE-120078)
