建立MoodleBox
To build a MoodleBox from scratch with this script, you need a Raspberri Pi 3 (Wi-Fi!) and follow these instructions.
Clone Rasbpian Stretch Lite on your microSD card
Create a ssh file on the boot partition, e.g. touch ssh
Login to your RPi with the default user pi:
ssh pi@raspberrypi.local
Upgrade your Raspbian installation:
sudo apt-get update && sudo apt-get dist-upgrade -y
Install rsync:
sudo apt-get install rsync
, then logoutPrepare a file
authorized_keys
containing your public keysLaunch
bash copy-sshkeys-to-rpi.sh
and enter the pi user default password (raspberry
)Login to your RPi with the user root (no password required):
ssh root@raspberrypi.local
Launch
curl -L https://raw.githubusercontent.com/martignoni/make-moodlebox/master/make_moodlebox.sh | bash
pi@raspberrypi:~ $ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/home/pi/.ssh/id_rsa):
Created directory '/home/pi/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/pi/.ssh/id_rsa.
Your public key has been saved in /home/pi/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:r6sdgKuJcdZ7TLnlkMeG2NMSdApnU4dXnAmuzEE47z8 pi@raspberrypi
The key's randomart image is:
+---[RSA 2048]----+
| oo.o+.o |
| . B.oo. + |
| = *... |
| .oo.o |
| .o.OS |
| ...X.B. |
|. o oo X... |
| = o .+..oE |
|. o ....+. . |
+----[SHA256]-----+
pi@raspberrypi:~ $
Last updated
Was this helpful?