summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Reichel <sre@ring0.de>2017-10-03 21:07:46 +0200
committerSebastian Reichel <sre@ring0.de>2017-10-03 21:07:46 +0200
commita2853ab8c2b9f44066030b7ed6a44b5dc2533948 (patch)
tree026a61a630078b0bfeb4ada1dab6e7f17558cf73
parent4bc575644893f86eccb00be8dfcf5f8458710507 (diff)
downloadserial-barcode-scanner-a2853ab8c2b9f44066030b7ed6a44b5dc2533948.tar.bz2
update README
-rw-r--r--README49
1 files changed, 37 insertions, 12 deletions
diff --git a/README b/README
index 6d8a54d..c17cb79 100644
--- a/README
+++ b/README
@@ -39,10 +39,10 @@ Build Dependencies:
* libgpgme11-dev
* libncursesw5-dev
* libncurses5-dev
- * libgee-dev
+ * libgee-0.8-dev
* libgmime-2.6-dev
* libarchive-dev
- * libgstreamer0.10-dev
+ * libgstreamer1.0-dev
* librsvg2-dev
* libsqlite3-dev
* libpango1.0-dev
@@ -51,22 +51,47 @@ Build Dependencies:
Additional runtime dependencies:
* fonts-lmodern
+ * gstreamer1.0-alsa
+ * gstreamer1.0-plugins-base
Suggested runtime dependencies:
* sqlite3
-Building:
+== Installation ==
+
+You can install to different location or use a different username,
+but you need to modify a few things.
+
+=== Git Setup ===
+
+ * adduser "shop" with homedir in /home/shop
+ * clone git repository into /home/shop/serial-barcode-scanner
+
+=== Build the Software ===
+
* ./configure
* make shop.db
* make
-Installation:
- * make install (TODO)
+=== DBus Configuration ===
+
+ * cd dbus
+ * make
+ * sudo make install
+
+=== Systemd ===
+
+ * cd systemd
+ * sudo make install
+
+=== Configuration ===
+
+ * mv example.cfg ktt-shopsystem.cfg
+ * edit ktt-shopsystem.cfg
+
+=== Database ===
-Usage:
- * setup ktt-shopsystem.cfg
- * start the curses UI in /etc/inittab
- * start the web UI via /etc/init.d/
- * create new user `TODO`
- * Sets a user's password with `mdbus2 io.mainframe.shopsystem.Database /io/mainframe/shopsystem/database io.mainframe.shopsystem.Database.SetUserPassword 1 test`
- * call the invoice tool via cron
+ * Create user
+ `sqlite3 shop.db "INSERT INTO users (id, email, firstname, lastname) VALUES (1, "test@tester", "Firstname", "Lastname");`
+ * Setup user password
+ `mdbus2 io.mainframe.shopsystem.Database /io/mainframe/shopsystem/database io.mainframe.shopsystem.Database.SetUserPassword 1 "password"`