Commit Graph

58 Commits

Author SHA1 Message Date
Mariusz Kogen
7575e8c1de 🏦 Start as embassy hostname from the begining (#1814)
* 🏦 start as embassy hostname from the begining

By this, we are limiting the number of hostname changes (from 3 to 2) during the first initial Embassy startup.

* Hostname change no longer needed
2022-09-21 10:56:52 -06:00
Mariusz Kogen
395db5f1cf 🧅 replace instead of adding tor repository (#1813)
I also removed the src line because we won't use the tor source repository anytime soon if ever.
2022-09-21 10:56:01 -06:00
Aiden McClelland
f274747af3 fix init to exit on failure (#1788) 2022-09-10 13:31:03 -06:00
Matt Hill
50111e37da remove product key from setup flow (#1750)
* 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>
2022-09-07 09:25:01 -06:00
Aiden McClelland
76682ebef0 switch to postgresql (#1763)
switch sqlx to postgresql
2022-09-01 10:32:01 -06:00
Stephen Chavez
2dd31fa93f Disable bluetooth properly #862 (#1745)
add disable cmd for uart

Co-authored-by: Stephen Chavez <stephen@start9labs.com>
2022-08-22 14:16:11 -06:00
Aiden McClelland
5ba0d594a2 Bugfix/dns (#1741)
* keep openresolv

* fix init
2022-08-18 10:23:04 -06:00
J M
c44eb3a2c3 fix: Add modification to the max_user_watches (#1695)
* fix: Add modification to the max_user_watches

* chore: Move to initialization
2022-08-02 10:44:49 -06:00
Aiden McClelland
9a01a0df8e refactor build process (#1675)
* add nc-broadcast to view initialization.sh logs

* include stderr

* refactor build

* add frontend/config.json as frontend dependency

* fix nc-broadcast

* always run all workflows

* address dependabot alerts

* fix build caching

* remove registries.json

* more efficient build
2022-07-21 15:18:44 -06:00
J M
4526618c32 fix: Resolve fighting with NM (#1660) 2022-07-18 09:44:33 -06:00
Mariusz Kogen
e5de91cbe5 🐋 docker stats fix (#1630)
* entry obsolete...

* 🐋 docker stats fix
2022-07-11 18:18:22 -06:00
Mariusz Kogen
b6fdc57888 Tor repository fix for arm64 (#1623)
When doing `sudo apt update` you get this:
`N: Skipping acquire of configured file 'main/binary-armhf/Packages' as repository 'https://deb.torproject.org/torproject.org bullseye InRelease' doesn't support architecture 'armhf'`
2022-07-07 15:34:54 -06:00
gStart9
b365a60c00 Default to https:// urls for repositories, remove apt-transport-https (#1610)
As of apt 1.5 (released 2017), the package apt-transport-https is no longer required because https:// is supported out of the box.
Reference: https://packages.debian.org/bullseye/apt-transport-https "This is a dummy transitional package - https support has been moved into the apt package in 1.5. It can be safely removed."  Apt is currently at 2.2.4.

Use a sed one-liner to convert all repos in /etc/apt/sources.list and /etc/apt/sources.list.d/*.list that are http:// to https:// (https:// is available for all http:// URLs currently referenced in EmbassyOS).
2022-07-05 13:45:10 -06:00
Aiden McClelland
ec8d9b0da8 switch to utc 2022-06-29 15:43:01 -06:00
kn0wmad
70aba1605c Feat/use modern tor (#1575)
* Add guardian project repo and install latest stable tor

* Apt appendage
2022-06-28 12:28:08 -06:00
Aiden McClelland
22af45fb6e add dns server to embassy-os (#1572)
* add dns server to embassy-os

* fix initialization

* multiple ip addresses
2022-06-27 10:53:06 -06:00
Aiden McClelland
b0068a333b disable unnecessary services 2022-06-14 12:43:27 -06:00
Aiden McClelland
7c17e26480 prevent the kernel from OOMKilling embassyd (#1402)
* prevent the kernel from OOMKilling embassyd

* privilege embassyd with respect to cpu usage

* add a docker slice
2022-04-20 11:26:41 -04:00
Aiden McClelland
eeb557860e wait for time sync up to 60s 2022-03-29 12:41:00 -06:00
Aiden McClelland
5e0b83fa4a fix init 2022-03-22 14:23:46 -05:00
Aiden McClelland
aa3af09e69 blacklist upgrade kit usb adapters 2022-02-28 15:27:31 -07:00
Aiden McClelland
a6e00449f6 fix path 2022-02-27 16:25:28 -07:00
Aiden McClelland
b1aa2ddf75 prevent initialization from writing the quirk string twice 2022-02-27 15:37:23 -07:00
Aiden McClelland
16de45e4fd start with clean tor state 2022-02-24 12:04:36 -07:00
Keagan McClelland
7678cee5be fix NO_KEY initialization (#1262)
* fix NO_KEY initialization

* hex encode instead of shasum
2022-02-23 18:19:17 -07:00
Keagan McClelland
0ac52ff8ef Bugfix/fix syntax change user (#1260)
* quote users output

* change away from 'users' to /etc/passwd
2022-02-23 17:49:34 -07:00
Keagan McClelland
17fe7eaa17 Update initialization.sh 2022-02-22 15:41:36 -07:00
Keagan McClelland
4fa2c11de7 Move user change early in the process
this allows ssh'ing in and still allowing the init script to complete
2022-02-22 13:59:33 -07:00
Aiden McClelland
8dd54f0cca correctly handle the absence of ENVIRONMENT=dev 2022-02-17 10:49:48 -07:00
Mariusz Kogen
47a5f37bd3 🧑‍💻 implementing start9 username 2022-02-17 10:49:48 -07:00
Aiden McClelland
b57c35a3ba fix overlay disabling when looking at disk drives 2022-02-16 12:54:07 -07:00
Aiden McClelland
868edc636b add vim and jq (#1210)
* add vim and jq

* add ncdu

* fix whitespace
2022-02-15 13:12:51 -07:00
Aiden McClelland
1837e719b6 fix wifi for raspios (#1207)
* Wip: Fix most of the wifi and 80% of initialization.sh

* fix wifi

* reorganize code

Co-authored-by: J M <mogulslayer@gmail.com>
2022-02-15 10:27:25 -07:00
Aiden McClelland
03a8dca7d7 disable ssh login as pi for non-dev builds 2022-02-14 10:23:44 -07:00
Keagan McClelland
f497c1197f adds machine id update to initialization 2022-02-10 15:22:19 -07:00
Aiden McClelland
79e4c6880a switch base os to raspberry pi os
minor fixes

more robust
2022-02-08 09:55:39 -07:00
Keagan McClelland
261eac6802 Changes to ubuntu 21.10 at the base image 2022-02-01 10:36:44 -07:00
Aiden McClelland
9d13c48640 use cloud-init correctly 2022-01-21 20:35:52 -07:00
J M
1086ce13d2 feature: Swapping to use nmcli (#1015)
The reason is that we get better errors and that we get signal strength.
Reworking all the commands to use nmcli instead.
Feat: Wifi List Available
Feat: strength sort for available
fix: Backend to match the frontend asking
feat: New get with all information
chore: Make backend changing country not for NonWire

Co-authored-by: Drew Ansbacher <drew.ansbacher@spiredigital.com>

Co-authored-by: Drew Ansbacher <drew.ansbacher@spiredigital.com>
2022-01-21 20:35:52 -07:00
J M
61dbd2a6da fix: Build faster 2022-01-21 20:35:52 -07:00
Keagan McClelland
c8b32b3a5e upgrade all packages before baking image 2022-01-21 20:35:52 -07:00
Aiden McClelland
60c099f352 add ntp 2022-01-21 20:35:52 -07:00
Aiden McClelland
60a48d7af2 allow mdns cifs shares (#933)
* allow mdns cifs shares

* regex and messaging for cifs

* Update install-wizard.component.ts

* refactor

* always include leading slash when saving path

* add avahi-utils

Co-authored-by: Matt Hill <matthewonthemoon@gmail.com>
Co-authored-by: Matt Hill <MattDHill@users.noreply.github.com>
2022-01-21 20:35:52 -07:00
Aiden McClelland
91840539f9 disable login as ubuntu (#934) 2022-01-21 20:35:52 -07:00
Aiden McClelland
6d6e4c1807 disable bluetooth and unattended upgrades 2022-01-21 20:35:52 -07:00
Aiden McClelland
e6fb74a800 Feature/cloud backups (#889)
* cifs for cloud backups on lan

* password spelling fix

* fix spelling and fix rpc method

* fix other methods

* remove old code and rename method

* add support for cifs backup targets

wip

cifs api

simplify idiom

add doc comment

wip

wip

should work™

* add password hash to server info

* fix type

* fix types for cifs

* minor fixes for cifs feature

* fix rpc structure

* fix copy, address some TODOs

* add subcommand

* backup path and navigation

* wizard edits

* rebased success page

* wiz conflicts resolved

* current change actually

* only unsub if done

* no fileter if necessary

* fix copy for cifs old password

* setup complete (#913)

* setup complete

* minor fixes

* setup.complete

* complete bool

* setup-wizard: complete boolean

Co-authored-by: Matt Hill <matthewonthemoon@gmail.com>
Co-authored-by: Drew Ansbacher <drew.ansbacher@spiredigital.com>
Co-authored-by: Matt Hill <MattDHill@users.noreply.github.com>
2022-01-21 20:35:52 -07:00
Aiden McClelland
a71d07f353 Bugfix/disable uasp (#878)
* usbstoraged

* set quirks on demand

* remove reference to usbstoraged.service

* comments

* use sysfs instead of modprobe and address comments

* fix ro fs and missing comma

* Apply suggestions from code review

* don't recurse overlayroot

* sleep before reconnect

* reset twice

* sync between writes

* fix build

* fix build

* adds drive to storage quirk whitelist

* long sleep

* another thing to try

* fix: Ensure that the changes take effect

Co-authored-by: Keagan McClelland <keagan.mcclelland@gmail.com>
Co-authored-by: Justin Miller <dragondef@gmail.com>
2022-01-21 20:35:52 -07:00
Keagan McClelland
87c10b7fbe sub ifupdown for ifconfig to save cpu power 2022-01-21 20:35:52 -07:00
Aiden McClelland
2a0425e968 switch to LVM + LUKS + ext4 (#747)
* code complete

* misc fixes

* magic
2022-01-21 20:35:52 -07:00
Aiden McClelland
8056285a7f Backups Rework (#698)
* wip: Backup al

* wip: Backup

* backup code complete

* wip

* wip

* update types

* wip

* fix errors

* Backups wizard (#699)

* backup adjustments

* fix endpoint arg

* Update prod-key-modal.page.ts

Co-authored-by: Drew Ansbacher <drew.ansbacher@spiredigital.com>
Co-authored-by: Aiden McClelland <me@drbonez.dev>

* build errs addressed

* working

* update backup command input, nix, and apk add

* add ecryptfs-utils

* fix build

* wip

* fixes for macos

* more mac magic

* fix typo

* working

* fixes after rebase

* chore: remove unused imports

Co-authored-by: Justin Miller <dragondef@gmail.com>
Co-authored-by: Drew Ansbacher <drew.ansbacher@gmail.com>
Co-authored-by: Drew Ansbacher <drew.ansbacher@spiredigital.com>
Co-authored-by: Lucy Cifferello <12953208+elvece@users.noreply.github.com>
2022-01-21 20:35:52 -07:00