* Init commit of setup scripts * Minor edit * Script edit and dir rename * Oops * Updated README * Updated scripts/readme * Additional Script/README updates * Further Script updates * BuildGuide updates * More git fuckery * Init commit of setup scripts * Minor edit * Script edit and dir rename * Oops * Updated scripts/readme * Script/README updates * Additional Script/README updates * Script/README edits * Copy script edit * Copy script edit * Filesystem script edit * More edits * Guide edit * Makefile * fixes ui build scripts to use submodules (#546) * fix product key generation Co-authored-by: Aiden McClelland <me@drbonez.dev> Co-authored-by: Keagan McClelland <keagan.mcclelland@gmail.com>
2.6 KiB
Creating an 0.3.0 Image (Scripted version)
This guide assumes a linux environment
Text in this format are commands to run
-
a) Download ubuntu-21.04-preinstalled-server-arm64+raspi.img.xz
-
b)
unxz ubuntu-21.04-preinstalled-server-arm64+raspi.img.xzto unzip -
a) Run
git clone https://github.com/Start9Labs/embassy-osto download the embassy-os repository -
b) Plug in your 16GB microSD card. In this example, we are assuming it will be at /dev/mmcblk0
- Find the location of your device with
lsblkorfdisk -l
- Find the location of your device with
-
a) Run
export OUTPUT_DEVICE=/dev/mmcblk0where/dev/mmcblk0is the sd card’s device name, be sure to change if yours differs -
b) Run
export LOOPDEV=$(sudo losetup --show -fP ubuntu-21.04-preinstalled-server-arm64+raspi.img)to set the.imgfile as a loop device environment variable -
Run
./build/partitioning.shYou should see confirmation of write to disk -
Run
./build/filesystems.shYou will see write progression twice, ignore the warning about lowercase labels -
a) Store a product key as an environment variable in $PRODUCT_KEY, with
export PRODUCT_KEY=test1234, obviously, this number is made up, but must be 8 alphanumeric characters, then: -
b)
echo $PRODUCT_KEY | sudo tee /mnt/product_key.txtto add it to theproduct_key.txtfile. -
c)
sudo umount /mntto unmount again -
d)
sudo mount /dev/mmcblk0p3 /mntto mount the writable filesystem -
a) Build EmbassyOS: Move into the EmbassyOS directory with
cd embassy-osand Build embassy-os (NEEDS UPDATE – PULL LATEST CODE!!!) (for now,docker run --rm --privileged linuxkit/binfmt:v0.8, get rust-arm-cross.img anddocker load < rust-arm-cross.img, then from appmgr dir:./build-prod.sh) -
b) Build UI: First, make sure you have
git,node, andnpminstalled. Then,cd uito enter ui dir, and runnpm i -g @ionic/clito install Ionic,npm ito install, thencd ..to return to theembassy-osdirectory -
a) Run
sudo ./build/copy.sh -
b)
cat ~/.ssh/id_ed25519.pub | sudo tee -a /mnt/root/.ssh/authorized_keyscopy your ssh key over (assuming it is ~/.ssh/id_ed25519.pub) -
c)
sudo umount /mntunmount once again
Time to remove your SD card and insert it into your hardware!! See our DIY guide if you have not yet put built your device.
-
a) Get IP (find by hacking) and visit x.x.x.x:80
-
b)
ssh root@whateverIPand runsudo ./build/initialization.shwhich you currently have to scp over from theembassy-osdir -
Do the setup