You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

68 lines
1.5 KiB

5 years ago
# Ubuntu
## OS Installation
3 years ago
Download and boot the [latest Ubuntu release](https://releases.ubuntu.com/21.04/ubuntu-21.04-desktop-amd64.iso).
5 years ago
Follow the steps with these customizations:
5 years ago
5 years ago
![img1](img/ubuntu-installation/1.png)
![img2](img/ubuntu-installation/2.png)
![img3](img/ubuntu-installation/3.png)
5 years ago
The partitioning is:
5 years ago
5 years ago
1. 256 MB : EFI partition
2. 20 GB : system partition
5 years ago
5 years ago
![img4](img/ubuntu-installation/4.png)
![img5](img/ubuntu-installation/5.png)
5 years ago
Remove the installation disk and then reboot.
Skip the welcoming window.
Don't install updates if Ubuntu asks to. The scripts will.
3 years ago
## Admin access
You can add your public SSH key to access the administrator account later:
3 years ago
```shell
unset HISTFILE
3 years ago
sudo mkdir /root/.ssh
3 years ago
sudo wget github.com/xpetit.keys --output-document !$/authorized_keys
3 years ago
sudo chmod 400 !$
```
5 years ago
## OS configuration
Run a terminal and type these commands:
```shell
unset HISTFILE
4 years ago
sudo apt -y install git
4 years ago
git clone https://github.com/01-edu/public.git
public/sh/debian/ubuntu/setup.sh
5 years ago
```
The script will ask for student user password (which will be deleted after) and then after a long configuration process it will restart the computer.
5 years ago
The system is now read-only, every data is written to a temporary partition.
The session is password-less.
To gain a superuser terminal, use SSH:
```console
3 years ago
user@remote:~$ ssh -p512 root@IP_ADDRESS
```
To gain access with read/write access to the filesystem, use this command:
5 years ago
```console
root@ubuntu:~# overlayroot-chroot
INFO: Chrooting into [/media/root-ro]
root@ubuntu:/#
5 years ago
```