This release is a pre-release and may not be stable for production use.
Kitica Host Client Listener
Setting up Adb/iOS Host Client Listener Service
This host listener configuration service was made for *nix systems.
There is still no support for Windows OS.
Before proceeding to the installation steps, it is important to note that you should have setup the following first:
- Python
- pip
- virtualenv
- adb server if using adb client
- ios deploy for ios client
If you dont have this setup already, feel free to search the web for sources on how to.
Step 1 - Setting up Environment & Python Dependencies
- Clone this repository
- Navigate to the kitica client directory
thisrepository/client - Run
virtualenv venvThis will create a python virtualenv which the listener service would use.
If you are successful, you would see something like this on your terminal.Using base prefix '/usr' New python executable in /home/joshuarivera/kitica/client/venv/bin/python3 Also creating executable in /home/joshuarivera/kitica/client/venv/bin/python Installing setuptools, pip, wheel... done.
- Activate the created virtual environment instance by running
source venv/bin/activate
This will activate the virtualenv you just created. - With the virtualenv setup, we are now ready to install the python dependencies.
Run:pip install -r requirements.txt
What this does is install all the listed dependencies listed in the requirements.txt fle to the activated virtualenv. - Setup the system environment variable for the virtual environment.
First, open the/thisrepository/client/_set_envs.pthto set the KITICA_LISTENER_API Environment Variable.import os; os.environ['KITICA_LISTENER_API'] = 'http://kitica.server.api/hosts/listener'
After setting the value for the api server. Copy the file inside the virtualenv.cp _set_envs.pth venv/lib/python3.6/site-packages/
- With the virtual environment setup and dependencies installed, we should now be able to run our android client listener without errors.
# for adb client python android.py # for ios client python ios.py
If no error occured, We are now ready to move to Step 2.
Step 2 - Creating a System Service for the Listener Client.
- Ok, now that our dependencies are good, we can now create a service instance for the listener client. To create a new system service, run:
# for adb client sudo nano /etc/systemd/system/kitica-adb-client.service # for iOS client sudo nano /etc/systemd/system/kitica-ios-client.service
Copy the configuration below, edit the[Unit] Description=Kitica Listener Instance After=network.target [Service] User=changeme Group=changeme WorkingDirectory=/path/to/the/repository/kitica/client Environment="PATH=/path/to/the/repository/kitica/client/venv/bin" ExecStart=/path/to/the/repository/kitica/client/venv/bin/python3 /path/to/the/repository/kitica/client/<abd or ios>.py [Install] WantedBy=multi-user.target
Save then quit. - Now that we have created a service file, we can now try to start it.
sudo systemctl daemon-reload # for adb client sudo systemctl start kitica_android_client # for ios client sudo systemctl start kitica_ios_client
If all goes well, you should not see any error. - For the client to be able to auto start on boot and behave more like a listener, simply run:
# for adb client sudo systemctl enable kitica_android_client # for ios client sudo systemctl enable kitica_ios_client
Check the status after...# for adb client sudo systemctl status kitica_android_client # for ios client sudo systemctl status kitica_ios_client
You should see something like this.● kiticalistener.service - Kitica Android Listener Instance Loaded: loaded (/etc/systemd/system/kiticalistener.service; disabled; vendor preset: enabled) Active: active (running) since Sat 2020-02-08 00:39:40 PST; 1min ago Main PID: 7563 (python3) Tasks: 1 (limit: 4915) CGroup: /system.slice/kiticalistener.service └─7563 /path/to/the repository/client/venv/bin/python3 /path/to/the repository/client/android.py
- Congratulations! You had setup a kitica android client listener as a service.
Metadata
Release files for kiticaclient 1.1b0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| kiticaclient-1.1b0-py3-none-any.whl | Python 3 | none | any | Details |
Release files / kiticaclient-1.1b0-py3-none-any.whl
| Download URL | kiticaclient-1.1b0-py3-none-any.whl |
|---|---|
| Size | 15.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bc452c6b4f7f12e496a99298f088ea102d0d1c90f9d43d442cd783a8d0e916fb
|
|
BLAKE2b-256 checksum How to use checksums |
478c1f0335abd4adc1a0735b6bfc5263eb09f489fc4ce186a2ac3fc620840f28
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.6.9
|
Security for kiticaclient 1.1b0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.