2019-10-03 23:31:01 +02:00
# Lokinet Control Panel
2019-10-06 17:58:10 +02:00
![Screenshot ](../media/images/lokinet_ui_screenshot.png?raw=true )
2021-01-30 09:07:26 +01:00
This repository contains a cross-platform GUI for controlling and observing stats from a locally-running `lokinet` . See also [loki-network ](https://github.com/oxen-io/loki-network ).
2019-10-03 23:31:01 +02:00
2020-03-24 20:33:11 +01:00
There is also an option (`Bootstrap Client from Web`) in the system tray's context menu (except when compiled with `SYSTEMD=true` , as is the case in the Debian packages). This will download a bootstrap file which will allow the `lokinet` client to join the lokinet network.
2019-10-03 23:31:01 +02:00
### Building
2020-04-17 23:28:57 +02:00
To build, you'll need `cmake` and a handful of `Qt` packages available. On `Ubuntu` or similar, you can install these with:
2019-10-03 23:31:01 +02:00
```bash
2020-11-17 15:12:26 +01:00
sudo apt install qt5-default qtdeclarative5-dev qml-module-qtquick-controls qml-module-qtquick-controls2 qml-module-qtquick-dialogs qml-module-qt-labs-platform qml-module-qtcharts libqt5charts5-dev libqt5svg5-dev
2019-10-03 23:31:01 +02:00
```
2020-09-04 14:41:40 +02:00
Then clone, build and run:
2019-10-03 23:31:01 +02:00
```bash
2020-09-04 14:41:40 +02:00
git clone --recursive https://github.com/loki-project/loki-network-control-panel
cd loki-network-control-panel
2019-10-04 17:41:57 +02:00
mkdir build
cd build
2020-04-17 23:28:57 +02:00
cmake ..
2020-10-13 19:02:15 +02:00
make -j4
2020-03-24 20:33:11 +01:00
./lokinet-gui
2019-10-03 23:31:01 +02:00
```
2019-10-06 17:58:10 +02:00
2020-03-24 20:33:11 +01:00
### Systemd
2020-04-17 23:28:57 +02:00
The app can be compiled to support `systemd` for starting and stopping `lokinet` . To enable this, invoke `cmake` with `-DSYSTEMD=ON` .
2020-03-24 20:33:11 +01:00
Note that interactions with systemd may require privilege escalation, which is handled through `polkit` . A graphical polkit backend must be running for this to work.
2020-10-16 15:33:45 +02:00
cmake -DSYSTEMD=ON ..
2020-10-16 15:37:54 +02:00
### Windows
2021-01-30 09:07:26 +01:00
Nightly Windows builds are available via [Continous Integration ](https://builds.lokinet.dev/oxen-io/loki-network-control-panel/master/ ).
2020-10-16 15:37:54 +02:00
2020-04-18 19:40:25 +02:00
### MacOS
The above commands work to build a working executable, however if you also want to bundle it into a
`.app` bundle invoke cmake as:
2020-10-16 15:37:54 +02:00
cmake -DMACOS_APP=ON -DBUILD_STATIC_DEPS=ON ..
2020-04-18 19:40:25 +02:00
which will produce a lokinet-gui.app executable app bundle directory containing the binary,
resources, and dependencies.
Note that building this way additionally requires imagemagick installed and built with SVG support.
2019-10-06 17:58:10 +02:00
### Usage
2020-11-17 17:41:31 +01:00
The following command-line arguments are supported:
2019-10-06 17:58:10 +02:00
2020-03-24 20:33:11 +01:00
```
2020-11-17 17:41:31 +01:00
--tray
2020-03-24 20:33:11 +01:00
2020-11-17 17:41:31 +01:00
Runs the gui in tray mode.
2020-09-04 14:41:40 +02:00
--rpc
Provide a custom rpc url for talking to lokinet, defaults to tcp://127.0.0.1:1190
2020-03-24 20:33:11 +01:00
```
2019-10-06 17:58:10 +02:00