Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup #39

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "idiot/xlogin"]
path = idiot/xlogin
[submodule "install/xlogin"]
path = install/xlogin
url = https://github.com/joukewitteveen/xlogin
30 changes: 16 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,54 +1,56 @@
# Devcade-onboard
The onboard menu and control software for the Devcade custom arcade system.

## Building
## Building on a devcade system

Run the `update_onboard.sh` script located in HACKING
Run the `update_onboard.sh` script located in install

## Building (manual)

To build and run on the Idiot, do the following from `/onboard`:
To build and run on the DCU, do the following from `/onboard`:
```
dotnet publish -c Release -r linux-x64 --no-self-contained
```

To put it on the Idiot, compress the `publish` folder located at `\Devcade-onboard\onboard\bin\Release\netcoreapp3.1\linux-x64` and `scp` that to the Idiot.
To put it on the DCU (devcade compute unit), compress the `publish` folder located at `\Devcade-onboard\onboard\bin\Release\netcoreapp3.1\linux-x64` and `scp` that to the DCU.

## The Idiot
## The Devcade Compute Unit (DCU)

### Prereqs

Debian >=10

A user named `devcade`

`apt install xterm openbox compton` and friends (I dont actually know what all is installed)
`apt install xinit xterm git build-essential wget openbox compton pulseaudio x11-xserver-utils`

Also install dotnet-sdk-6.0 which requires adding microsofts package repo.

### Daemon

_daemons are always watching. They are always with you. So is Willard._

The Devcade Idiot 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.
The 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 Idiot in `/idiot`. This repo has a submodule, `xlogin` that can be cloned down with `git submodule update --init --recursive`.
You can find everything(tm) you need to set up the DCU in `/install`. 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/`
1. Run the `update_onboard.sh` script in `install/`

2. `cp idiot/.xinitrc /home/devcade/`
2. `cp install/.xinitrc /home/devcade/`

2. `mkdir /home/devcade/.config/openbox && cp idiot/rc.xml /home/devcade/.config/openbox/rc.xml`
2. `mkdir /home/devcade/.config/openbox && cp install/rc.xml /home/devcade/.config/openbox/rc.xml`

3. To install `xlogin`, do the following

```
cd idiot/xlogin
cd install/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
## Setting up a dev environment

To setup and launch a development environment, you can do the following:

Expand All @@ -65,7 +67,7 @@ DEVCADE_API_DOMAIN
### Building and Launching the Container

```
cd HACKING
cd dev-environment
./build-environment.sh
./launch-environment.sh
```
Expand Down
2 changes: 1 addition & 1 deletion HACKING/Dockerfile → dev-environment/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM debian:buster

RUN apt-get -y update
RUN apt-get -y install vim wget git fonts-liberation fontconfig-config tmux xterm pulseaudio zip unzip
RUN apt-get -y install vim wget git fonts-liberation fontconfig-config tmux xterm xorg compton openbox pulseaudio zip unzip
RUN wget https://packages.microsoft.com/config/debian/10/packages-microsoft-prod.deb \
-O packages-microsoft-prod.deb && \
dpkg -i packages-microsoft-prod.deb && \
Expand Down
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion idiot/xlogin
Submodule xlogin deleted from 6e566b
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 0 additions & 4 deletions onboard/release.sh

This file was deleted.

3 changes: 0 additions & 3 deletions onboard/to_linux.ps1

This file was deleted.