Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated readme for chroot into MiR PC #130

Merged
merged 5 commits into from
Jul 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
mintar marked this conversation as resolved.
Show resolved Hide resolved
* 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