These are the steps followed to create the base image for Picroft on Raspbian Buster. This was performed on a Raspberry Pi 3B+ or Pi 4
NOTE: At startup Picroft will automatically update itself to the latest version of released software, scripts and Skills.
- Download and burn Raspbian Buster Lite.
Last used 2019-09-26 version - Install into Raspberry Pi and boot
- login: pi
- password: raspberry
sudo raspi-config
- 1 Change User Password
- Enter and verify
mycroft
- Enter and verify
- 2 Network Options
- N1 Hostname
- Enter
picroft
- Enter
- N3 Network interface names
- pick Yes
- N1 Hostname
- 3 Boot Options
- B1 Desktop / CLI
- B2 Console Autologin
- B2 Wait for network
- pick No
- B1 Desktop / CLI
- 4 Localization Options
- I3 Change Keyboard Layout
- Pick Generic 104-key PC
- Pick Other
- Pick English (US)
- Pick English (US)
- Pick The default for the keyboard layout
- Pick No compose key
- I4 Change Wi-fi Country
- Pick United States
- I3 Change Keyboard Layout
- 5 Interfacing Options
- P2 SSH
- Pick Yes
- P2 SSH
- Finish and reboot
sudo nano /etc/ssh/sshd_config
and comment out the line (prefix with '#')AcceptEnv LANG LC_*
-
Either plug in Ethernet or
or
-
Guided wifi setup
sudo raspi-config
- 2 Network Options
- N2 Wi-fi
- 2 Network Options
or
-
Manually setup wifi
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
- Enter network creds:
network={ ssid="NETWORK" psk="WIFI_PASSWORD" # for network with password key_mgmt=NONE # for open network }
- cd ~
- wget -N https://rawgit.com/MycroftAI/enclosure-picroft/buster/home/pi/update.sh
- bash update.sh
The update.sh script will perform all of the following steps in this section... When asked by dev_setup, answer as follows:
- Y) run on the stable 'master' branch
- Y) automatically check for updates
- Y) build Mimic locally
- Y) add Mycroft helper commands to path
- Y) check code style
-
sudo nano /etc/systemd/system/getty@tty1.service.d/autologin.conf
and enter:[Service] ExecStart= ExecStart=-/sbin/agetty --autologin pi --noclear %I 38400 linux
-
sudo systemctl enable getty@tty1.service
sudo nano /etc/fstab
and add the line:tmpfs /ramdisk tmpfs rw,nodev,nosuid,size=20M 0 0
sudo mkdir /etc/mycroft
sudo nano /etc/mycroft/mycroft.conf
- mkdir ~/bin
nano ~/.bashrc
uncomment #alias ll='ls -l' near the bottom of the file at the bottom add:##################################### # This initializes Mycroft ##################################### source ~/auto_run.sh
sudo apt-get install git
git clone https://github.com/MycroftAI/mycroft-core.git
cd mycroft-core
git checkout master
bash dev_setup.sh
(Wait an hour on a RPi 3B+/4)
- Run
. ~/bin/mycroft-wipe --keep-skills
- Remove the SD card
- Create an IMG file named
"Picroft_v${CORE_VERSION}_${YYYYMMDD}.img"
(optionally include a release candidate suffix"_rc-${num}.img"
) - Compress the IMG using pishrink.sh
- Upload to downloads.mycroft.ai and adjust redirect link from https://mycroft.ai/to/picroft-image or https://mycroft.ai/to/picroft-unstable