mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 02:11:53 +00:00
* remove product key flow from setup * feat: backend turned off encryption + new Id + no package id * implement new encryption scheme in FE * decode response string * crypto not working * update setup wizard closes #1762 * feat: Get the encryption key * fix: Get to recovery * remove old code * fix build * fix: Install works for now * fix bug in config for adding new list items * dismiss action modal on success * clear button in config * wip: Currently broken in avahi mdns * include headers with req/res and refactor patchDB init and usage * fix: Can now run in the main * flatline on failed init * update patch DB * add last-wifi-region to data model even though not used by FE * chore: Fix the start. * wip: Fix wrong order for getting hostname before sql has been created * fix edge case where union keys displayed as new when not new * fix: Can start * last backup color, markdown links always new tab, fix bug with login * refactor to remove WithRevision * resolve circular dep issue * update submodule * fix patch-db * update patchDB * update patch again * escape error * decodeuricomponent * increase proxy buffer size * increase proxy buffer size * fix nginx Co-authored-by: BluJ <mogulslayer@gmail.com> Co-authored-by: BluJ <dragondef@gmail.com> Co-authored-by: Aiden McClelland <me@drbonez.dev>
Building Embassy OS
⚠️ The commands given assume a Debian or Ubuntu-based environment. Building in a VM is NOT yet supported ⚠️
Prerequisites
- Install dependencies
- Avahi
sudo apt install -y avahi-daemon- Installed by default on most Debian systems - https://avahi.org
- Build Essentials (needed to run
make)sudo apt install -y build-essential
- Docker
curl -fsSL https://get.docker.com | sh- https://docs.docker.com/get-docker
- Add your user to the docker group:
sudo usermod -a -G docker $USER - Reload user environment
exec sudo su -l $USER
- Prepare Docker environment
- Setup buildx (https://docs.docker.com/buildx/working-with-buildx/)
- Create a builder:
docker buildx create --use - Add multi-arch build ability:
docker run --rm --privileged linuxkit/binfmt:v0.8
- Node Version 12+
- snap:
sudo snap install node - nvm:
nvm install --lts - https://nodejs.org/en/docs
- snap:
- NPM Version 7+
- apt:
sudo apt install -y npm - nvm:
nvm install --lts - https://docs.npmjs.com/downloading-and-installing-node-js-and-npm
- apt:
- jq
sudo apt install -y jq- https://stedolan.github.io/jq
- yq
- snap:
sudo snap install yq - binaries: https://github.com/mikefarah/yq/releases/
- https://mikefarah.gitbook.io/yq
- snap:
- Clone the latest repo with required submodules
ℹ️ You chan check latest available version here
git clone --recursive https://github.com/Start9Labs/embassy-os.git --branch latest
Build
cd embassy-os
make
Flash
Flash the resulting eos.img to your SD Card (16GB required, any larger is neither necessary, nor advantageous)
We recommend Balena Etcher
Setup
Visit http://embassy.local from any web browser - We recommend Firefox
Enter your product key. This is generated during the build process and can be found in product_key.txt, located in the root directory.
Troubleshooting
- I just flashed my SD card, fired up my Embassy, bootup sounds and all, but my browser is saying "Unable to connect" with embassy.local.
- Try doing a hard refresh on your browser, or opening the url in a private/incognito window. If you've ran an instance of Embassy before, sometimes you can have a stale cache that will block you from navigating to the page.
- Flashing the image isn't working with balenaEtcher. I'm getting
Cannot read property 'message' of nullwhen I try.
- The latest versions of Balena may not flash properly. This version here: https://github.com/balena-io/etcher/releases/tag/v1.5.122 should work properly.
- Startup isn't working properly and I'm curious as to why. How can I view logs regarding startup for debugging?
- During the Build step, instead of running just
makerunENVIRONMENT=dev make. Flash like normal, and insert into your Embassy. Boot up your Embassy, and on another computer on the same network, ssh into the Embassy with the username/passwordubuntu. After logging in and changing the password, runjournalctl -u initialization.service -efto view the start up logs.
- I need to reset my password, how can I do that?
- At the time of writing, there is no way to do that in 0.3.0 cleanly. You'll need to reflash your device unfortunately.