mirror of https://github.com/01-edu/public.git
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.
1.6 KiB
1.6 KiB
Ubuntu
OS Installation
Download and boot the latest Ubuntu release.
Follow the steps :
The partitioning is :
- 256 MB : EFI partition
- 20 GB : system partition
Remove the installation disk and then reboot.
Skip the welcoming window.
Don't install updates if Ubuntu asks to. The scripts will.
Admin access
This is optional but you can add your public SSH key to access the administrator account later:
sudo mkdir /root/.ssh
echo 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICeJ9WuncQJG5X51m3M0goX9fohnz9LqlL/AT3OMYBX1' | sudo tee /root/.ssh/authorized_keys
sudo chmod 400 !$
OS configuration
Run a terminal and type these commands :
unset HISTFILE
sudo apt -y install git
git clone https://github.com/01-edu/public.git
public/sh/debian/ubuntu/setup.sh
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.
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 :
user@remote:~$ ssh -p521 root@IP_ADDRESS
To gain access with read/write access to the filesystem, use this command :
root@ubuntu:~# overlayroot-chroot
INFO: Chrooting into [/media/root-ro]
root@ubuntu:/#