Skip to content

Commit

Permalink
updated readme for chroot into MiR PC (#130)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: Martin Günther <[email protected]>
  • Loading branch information
pumablattlaus and mintar authored Jul 27, 2023
1 parent 722bc2d commit 0667808
Showing 1 changed file with 46 additions and 4 deletions.
50 changes: 46 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -325,12 +325,54 @@ To install things on the internal MiR PC:
* connect a monitor and keyboard to the ports that are exposed on one corner of the MiR
* boot into a live USB linux system
* `chroot` into the MiR PC
* download `chrony_2.1.1-1ubuntu0.1_amd64.deb`,
`libtomcrypt0_1.17-7ubuntu0.1_amd64.deb`, `libtommath0_0.42.0-1.2_amd64.deb`
and `timelimit_1.8-1_amd64.deb` from a PC that has internet and install them
in the `chroot` environment onto the MiR PC using `dpkg -i`
1. mount MiR partition and bind /dev, /run etc..
you can use fdisk -l to figure out which partition to mount.
(Here it's _sda3_):

```bash
sudo mkdir -p /media/mir
sudo mount /dev/sda3 /media/mir/

for dir in /dev /dev/pts /proc /sys /run; do sudo mount --bind $dir /media/mir/@$dir; done
```

2. `chroot` into the MiR PC:

```bash
sudo chroot /media/mir/@/
```

* create user:

```bash
adduser newuser
usermod -aG sudo newuser
```

* reboot and login into MiR PC
* Install Chrony

```bash
sudo apt update
sudo apt install chrony
# if not installable (to fix broken dependencies):
sudo apt -f install
sudo apt install chrony
```

* set up `/etc/chrony/chrony.conf`
* make sure all old ntp configs are configured in chrony.
For this add the following to your chrony.conf (the old ntp.conf part is commented out):

```bash
# Clients from this subnet have unlimited access, but only if
# cryptographically authenticated.
#restrict 192.168.12.255 mask 255.255.255.0 nomodify notrap nopeer
allow 192.168.12.0/24 nomodify notrap nopeer
```

* restart chrony service

Troubleshooting
---------------
Expand Down

0 comments on commit 0667808

Please sign in to comment.