-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
86f8ea5
commit a5f2468
Showing
1 changed file
with
23 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,35 @@ | ||
# nametag_console | ||
# ubuntu-kr-qr-kiosk [![CircleCI](https://dl.circleci.com/status-badge/img/circleci/LCy26Fe3U1mrPC75gaG7e1/K8Lwqp1Yg1mdDbFWcENXcQ/tree/main.svg?style=svg)](https://dl.circleci.com/status-badge/redirect/circleci/LCy26Fe3U1mrPC75gaG7e1/K8Lwqp1Yg1mdDbFWcENXcQ/tree/main) | ||
|
||
A new Flutter project. | ||
A Check-in kiosk app built with Flutter for Ubuntu Frame and Ubuntu Core environment | ||
|
||
## Getting Started | ||
## Setup | ||
|
||
This project is a starting point for a Flutter application. | ||
Install Ubuntu Frame, Ubuntu Frame OSK and Network Manager on Ubuntu Core 22+ | ||
|
||
A few resources to get you started if this is your first Flutter project: | ||
|
||
- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab) | ||
- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook) | ||
|
||
For help getting started with Flutter development, view the | ||
[online documentation](https://docs.flutter.dev/), which offers tutorials, | ||
samples, guidance on mobile development, and a full API reference. | ||
|
||
## Ubuntu dependencies | ||
```bash | ||
sudo snap install ubuntu-frame ubuntu-frame-osk network-manager | ||
``` | ||
|
||
- libusb-1.0-0 | ||
- libusb-1.0-0-dev | ||
- libsqlite3-dev | ||
Get Snap from Circle CI Build artifacts, Send it to remote machine then install. | ||
|
||
## Snap interface setup | ||
```bash | ||
scp -i <PATH_TO_SSH_KEY> ubuntu-kr-qr-kiosk_<version>_arm64.snap <USER>@<IP_ADDRESS>:~/ | ||
sudo snap install --dangerous ubuntu-kr-qr-kiosk_<version>_arm64.snap | ||
``` | ||
|
||
Various interface connections are required to make kiosk app work. Use following commands to configure. | ||
|
||
```bash | ||
sudo /snap/ubuntu-kr-qr-kiosk/current/bin/setup.sh | ||
``` | ||
|
||
Setup Kiosk server and api token | ||
```bash | ||
snap set ubuntu-kr-qr-kiosk server.host="http://localhost:8000" | ||
snap set ubuntu-kr-qr-kiosk server.apitoken="12345" | ||
``` | ||
|
||
Enable cursor on Ubuntu Frame | ||
```bash | ||
snap set ubuntu-frame config="cursor=auto" | ||
``` |