https://github.com/vncsmyrnk/ubuntu
Useful information about ubuntu config and utilities.
https://github.com/vncsmyrnk/ubuntu
Last synced: 3 months ago
JSON representation
Useful information about ubuntu config and utilities.
- Host: GitHub
- URL: https://github.com/vncsmyrnk/ubuntu
- Owner: vncsmyrnk
- License: gpl-3.0
- Created: 2025-01-10T11:22:09.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-02-24T11:05:14.000Z (4 months ago)
- Last Synced: 2025-02-24T12:23:25.912Z (4 months ago)
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ubuntu
Useful information about ubuntu config and utilities.
Download this documentation: `$ curl -LO https://raw.githubusercontent.com/vncsmyrnk/ubuntu/refs/heads/main/README.md`
## apt repos
- [launchpad](https://launchpad.net/)
```sh
sudo apt-add-repository ppa:launchpad/ubuntu/ppa
```## Chroot
Useful for manually mounting the system and check for broken packages and repair them. Can be useful for linux distros in general.
### Locate the devices
- Check for available devices: `$ lsblk`
- Check for partitions: `$ sudo fdisk -l /dev/` (can be `/dev/nvme0n1`, `/dev/sda`)### Mount the partitions
```sh
sudo mkdir /mnt/ubuntu
sudo mount /mnt/ubuntu # mounts root partition
sudo mkdir -p /mnt/ubuntu/boot/efi
sudo mount /mnt/ubuntu/boot/efi # mounts efi - if applicable# Mounts necessary directories
sudo mount --bind /dev /mnt/ubuntu/dev
sudo mount --bind /proc /mnt/ubuntu/proc
sudo mount --bind /sys /mnt/ubuntu/sys
```### Chroot into it
```sh
sudo chroot /mnt/ubuntu
```### (useful) Check broken packages
```sh
apt update
apt upgrade
apt install -f
dpkg --configure -a
```### Unmount everything and reboot
```sh
sudo umount /mnt/ubuntu/sys
sudo umount /mnt/ubuntu/proc
sudo umount /mnt/ubuntu/dev
sudo umount /mnt/ubuntu/boot/efi
sudo umount /mnt/ubuntu
sudo systemctl poweroff
```