Packaging #1

Closed
opened 2021-03-19 15:42:10 +00:00 by philipp · 10 comments
Owner

We have to deliver the client as:

  • Desktop app for Windows
    • build is only working on Windows Machines for now. can be done via a wine installation on builder
  • Desktop app for Linux
  • Customized Livesystem for usb boot (linux)
  • live config (url + api key)
We have to deliver the client as: - [x] Desktop app for Windows - build is only working on Windows Machines for now. can be done via a wine installation on builder - [x] Desktop app for Linux - [x] Customized Livesystem for usb boot (linux) - [x] live config (url + api key)
philipp added the
enhancement
label 2021-03-19 15:42:15 +00:00
philipp self-assigned this 2021-03-19 15:42:18 +00:00
Author
Owner
ref https://git.odit.services/lfk/scanclient/issues/2
Owner

B2A9426.42028FF7-ABC7-42E3-B728-B35409A4A5D0

B2A9426.42028FF7-ABC7-42E3-B728-B35409A4A5D0
niggl referenced this issue from a commit 2021-04-07 16:16:35 +00:00
niggl referenced this issue from a commit 2021-04-07 16:21:25 +00:00
niggl referenced this issue from a commit 2021-04-07 16:23:20 +00:00
niggl referenced this issue from a commit 2021-04-07 16:24:59 +00:00
niggl referenced this issue from a commit 2021-04-07 16:30:05 +00:00
niggl referenced this issue from a commit 2021-04-07 16:33:09 +00:00
niggl referenced this issue from a commit 2021-04-07 16:44:25 +00:00
Author
Owner

Overview

  • For the live-system, I just successfully tested Slax Linux.
  • The tested iso is slax-64bit-9.11.0 on a HyperV Machine
  • Runs in portable mode
  • full apt package manager
  • lightweight
  • possibly could have automated builds? (cc @niggl)

Install dependencies

apt install -y libgtk-3-0 libatk-bridge2.0-0

Run as root

./@lfk-scanclient-electron --no-sandbox

Run as guest user

currently unsupported

### Overview - For the live-system, I just successfully tested [Slax](https://slax.org/) Linux. - The tested iso is [slax-64bit-9.11.0](slax-64bit-9.11.0.iso) on a HyperV Machine - Runs in portable mode - full apt package manager - lightweight - possibly could have automated builds? (cc @niggl) ### Install dependencies ``` apt install -y libgtk-3-0 libatk-bridge2.0-0 ``` ### Run as root ``` ./@lfk-scanclient-electron --no-sandbox ``` ### Run as guest user currently unsupported
Owner

Neither Rufus, nor Balena Etcher, nor Hyper-V boot managed to create a bootable media or boot from ISO.
Weird stuff.....

image

Neither Rufus, nor Balena Etcher, nor Hyper-V boot managed to create a bootable media or boot from ISO. Weird stuff..... ![image](/attachments/48b38d92-2942-4739-83b4-d73554d785a9)
Author
Owner

follow-up

setting german keyboard layout

  • root terminal
  • setxkbmap de
### follow-up #### setting german keyboard layout - root terminal - `setxkbmap de`
Owner

follow-up

setting german keyboard layout

  • root terminal
  • setxkbmap de

follow-up-up

setting german keyboard layout by default

  • root terminal
  • nano .fluxbox/bklayout
  • Replace en with de
  • Ctr+X
  • Y
  • Optional: systemctl restart xorg
> ### follow-up > #### setting german keyboard layout > - root terminal > - `setxkbmap de` ### follow-up-up #### setting german keyboard layout by default * root terminal * `nano .fluxbox/bklayout` * Replace `en` with `de` * Ctr+X * Y * Optional: systemctl restart xorg
Owner

Persist:

  • savechanges ./filename.sb
  • genslaxiso ./isoname.iso ./filename.sb ...
Persist: * savechanges ./filename.sb * genslaxiso ./isoname.iso ./filename.sb ...
Owner

Full build process:

  1. Donload Slax
  2. Boot Slax
  3. Open the Terminal (as root)
  4. Set the keyboard to german (optinal): setxkbmap de && echo "de">./fluxbox/kblayout
  5. Install dependencies: apt install -y libgtk-3-0 libatk-bridge2.0-0 fbautostart
  6. Download the latest lfk-scanclient-electron package for linux
  7. Unzip the lfk-scanclient-electron zip and move the contens of out/@lfk-scanclient-electron to /root/lfkscan: unzip ./\@lfk-scanclient-electron-linux-x64.zip && mv ./out/\@lfk-scanclient-electron ./lfkscan && rm -rf ./out ./\@lfk-scanclient-electron-linux-x64.zip
  8. Add a desktop file to autostart: nano /etc/xdg/autostart/lfkscan.desktop
[Desktop Entry]
Exec=sh -c "/root/lfkscan/\@lfk-scanclient-electron --no-sandbox"
Type=Application
Version=1.0
  1. Persist your changes: savechanges /tmp/lfkscan.sb
  2. Build the ISO: genslaxiso ./lfkscan.iso /tmp/lfkscan.sb
Full build process: 1. Donload Slax 2. Boot Slax 3. Open the Terminal (as root) 4. Set the keyboard to german (optinal): `setxkbmap de && echo "de">./fluxbox/kblayout` 5. Install dependencies: `apt install -y libgtk-3-0 libatk-bridge2.0-0 fbautostart` 6. Download the latest lfk-scanclient-electron package for linux 7. Unzip the lfk-scanclient-electron zip and move the contens of out/@lfk-scanclient-electron to /root/lfkscan: `unzip ./\@lfk-scanclient-electron-linux-x64.zip && mv ./out/\@lfk-scanclient-electron ./lfkscan && rm -rf ./out ./\@lfk-scanclient-electron-linux-x64.zip` 8. Add a desktop file to autostart: `nano /etc/xdg/autostart/lfkscan.desktop` ``` [Desktop Entry] Exec=sh -c "/root/lfkscan/\@lfk-scanclient-electron --no-sandbox" Type=Application Version=1.0 ``` 9. Persist your changes: `savechanges /tmp/lfkscan.sb` 10. Build the ISO: `genslaxiso ./lfkscan.iso /tmp/lfkscan.sb`
niggl referenced this issue from a commit 2021-04-13 16:51:22 +00:00
Owner

The live linux works (tested in Hyper-V so far)

The live linux works (tested in Hyper-V so far)
niggl closed this issue 2021-04-13 17:02:47 +00:00
Owner

Also verified with a rando acer

Also verified with a rando acer
Sign in to join this conversation.
No description provided.