From ad022569ac82b697c11ad8effeec92ff0ba18fa8 Mon Sep 17 00:00:00 2001 From: joe Date: Sat, 22 Mar 2025 12:28:28 -0400 Subject: [PATCH 1/3] Remove feature gates in lib & nightly reference in README.md --- README.md | 4 +--- onboard/backend/src/lib.rs | 3 --- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/README.md b/README.md index 58230c4..e97adfa 100644 --- a/README.md +++ b/README.md @@ -15,8 +15,6 @@ And the following fron `./onboard/backend`: ``` cargo build --release --target x86_64-unknown-linux-gnu ``` -Note: The backend requires the nightly compiler to build, as it uses features that have not been merged into stable rustc - To put it on the DCU, compress the `publish` folder located at `./onboard/frontend/bin/Release/netcoreapp3.1/linux-x64` and `scp` that to the DCU. You'll also want to `scp` `./onboard/backend/target/release` to the DCU. @@ -66,7 +64,7 @@ There is a file called .env.template in the `./onboard` folder. Fill this in wit ### Running outside a container -In onboard/frontend, run dotnet-run +In onboard/frontend, run dotnet run In onboard/backend, run cargo run The frontend will log errors about not being able to connect until the backend is up and running diff --git a/onboard/backend/src/lib.rs b/onboard/backend/src/lib.rs index 00a2175..e5e6316 100644 --- a/onboard/backend/src/lib.rs +++ b/onboard/backend/src/lib.rs @@ -1,6 +1,3 @@ -#![feature(async_closure)] -#![feature(path_file_prefix)] - /** * All the servers run by the backend that communicate with other processes on devcade */ From 02e6f47ee4c064db5f2fc44d91b5b26b7730995a Mon Sep 17 00:00:00 2001 From: joe Date: Sat, 22 Mar 2025 12:31:52 -0400 Subject: [PATCH 2/3] Remove outdated DCU section from README.md --- README.md | 42 ++++-------------------------------------- 1 file changed, 4 insertions(+), 38 deletions(-) diff --git a/README.md b/README.md index e97adfa..8ca86f0 100644 --- a/README.md +++ b/README.md @@ -18,40 +18,6 @@ cargo build --release --target x86_64-unknown-linux-gnu To put it on the DCU, compress the `publish` folder located at `./onboard/frontend/bin/Release/netcoreapp3.1/linux-x64` and `scp` that to the DCU. You'll also want to `scp` `./onboard/backend/target/release` to the DCU. -## The DCU - -### Prereqs - -Debian >=10 - -A user named `devcade` - -`apt install xterm openbox compton` and friends (I dont actually know what all is installed) - -### Daemon - -_daemons are always watching. They are always with you. So is Willard._ - -The Devcade DCU is running Debian 10 with a very _very_ simple Xorg server setup. It has [xlogin](https://github.com/joukewitteveen/xlogin) configured to launch the onboarding program, along with said xorg server, as the `devcade` user. - -You can find everything(tm) you need to set up the Devcade DCU in `/dcu`. This repo has a submodule, `xlogin` that can be cloned down with `git submodule update --init --recursive`. - -1. Run the `update_onboard.sh` script in `HACKING/` - -2. `cp dcu/.xinitrc /home/devcade/` - -2. `mkdir /home/devcade/.config/openbox && cp dcu/rc.xml /home/devcade/.config/openbox/rc.xml` - -3. To install `xlogin`, do the following - -``` -cd dcu/xlogin -sudo make install -sudo systemctl enable --now xlogin@devcade -``` - -_Helpful Tip: Remember to `chmod +x onboard`. You may get weird syntax errors if you don't_ - ## HACKING To setup and launch a development environment, you can do the following: @@ -61,13 +27,13 @@ To setup and launch a development environment, you can do the following: There is a file called .env.template in the `./onboard` folder. Fill this in with appropriate values for the backend and frontend. - ### Running outside a container -In onboard/frontend, run dotnet run -In onboard/backend, run cargo run +In onboard/frontend, run `dotnet run` + +In onboard/backend, run `cargo run` -The frontend will log errors about not being able to connect until the backend is up and running +The frontend will log warnings about not being able to connect until the backend is up and running ### Building and Launching the Container From e5d02ad672b49a43e9c6a0c254006a25b3c8273f Mon Sep 17 00:00:00 2001 From: joe Date: Sat, 22 Mar 2025 12:38:23 -0400 Subject: [PATCH 3/3] n -> m --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8ca86f0..1fe79f5 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ To build and run on the DCU, do the following from `./onboard/frontend`: ``` dotnet publish -c Release -r linux-x64 --no-self-contained ``` -And the following fron `./onboard/backend`: +And the following from `./onboard/backend`: ``` cargo build --release --target x86_64-unknown-linux-gnu ```