diff --git a/README.md b/README.md index 1a9c337..bda689f 100644 --- a/README.md +++ b/README.md @@ -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 ubuntu-kr-qr-kiosk__arm64.snap @:~/ +sudo snap install --dangerous ubuntu-kr-qr-kiosk__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" ``` \ No newline at end of file