Open Dinth opened 1 month ago
It seems that the pipx installation path is not on your PATH, so you will need to restart your terminal or computer or run lnxlink from that path:
/home/dinth/.local/bin/lnxlink -sc config.yaml
After you set it up you can run it using systemd:
systemctl start lnxlink.service
It seems that the uninstall command I have on my documentation is wrong. If you want it uninstalled you can run this command:
pipx uninstall lnxlink
Thanks, but it seems that lnxlink.service is also not installed (on my previous installation it was located in ~/.config/systemd/user/, but not on my current one)
dinth@dinth-mint:~$ systemctl start lnxlink.service
Failed to start lnxlink.service: Unit lnxlink.service not found.
The systemd service is configured when you first launch lnxlink with the command I mentioned above:
/home/dinth/.local/bin/lnxlink -sc config.yaml
yeah, i have done this already:
dinth@dinth-mint:~$ /home/dinth/.local/bin/lnxlink -sc config.yaml
INFO:lnxlink:Config file not found.
INFO:lnxlink:Created new template: /home/dinth/config.yaml
INFO:lnxlink:
Leave empty for default
Enable MQTT automatic discovery (True/False) [True]:
MQTT server [192.168.1.1]: xx.xx.xxx.xx
MQTT port [1883]:
Enable TLS (True/False) [False]:
MQTT username [user]: xxxxx
MQTT password [pass]: xxxxx
Change clientId [DESKTOP-Linux]: xxxxxx
Send statistics (True/False) [True]:
INFO:lnxlink:
All changes have been saved.
INFO:lnxlink: MQTT Topic prefix for for monitoring: lnxlink/dinth-desktop-mint/...
INFO:lnxlink: MQTT Topic prefix for for commands: lnxlink/dinth-desktop-mint/commands/...
INFO:lnxlink:The configuration exists under the file: /home/dinth/config.yaml
dinth@dinth-mint:~$ sudo systemctl enable lnxlink
[sudo] password for dinth:
Failed to enable unit: Unit file lnxlink.service does not exist.
dinth@dinth-mint:~$ systemctl start lnxlink.service
Failed to start lnxlink.service: Unit lnxlink.service not found.
You must have installed it as a user service.
This means that you will have to run the systemctl command with the --user
option.
This is how to restart it:
systemctl --user restart lnxlink.service
Not much changes when adding --user.
dinth@dinth-mint:~/.config$ sudo systemctl --user start lnxlink.service
Failed to connect to bus: No medium found
dinth@dinth-mint:~/.config$ systemctl --user start lnxlink.service
Failed to start lnxlink.service: Unit lnxlink.service not found.
As i have said, the file lnxlink.service is nowhere in my home folder
dinth@dinth-mint:~$ find ~ | grep lnxlink.service
/home/dinth/backup/.config/systemd/user/lnxlink.service
dinth@dinth-mint:~$
( ~/backup is my home folder from the previous installation where lnxlink was working)
It seems that the -s option is not correct. You should run it without it and then the systemd service will be created.
/home/dinth/.local/bin/lnxlink -c config.yaml
Thanks, i think that fixed the original issue, the lnxlink.service file was created. But still have a small problem:
Aug 12 11:22:42 dinth-mint systemd[2403]: lnxlink.service: Scheduled restart job, restart counter is at 17502.
Aug 12 11:22:42 dinth-mint systemd[2403]: Started lnxlink.service - LNXlink.
Aug 12 11:22:42 dinth-mint systemd[2403]: lnxlink.service: Main process exited, code=exited, status=203/EXEC
Aug 12 11:22:42 dinth-mint systemd[2403]: lnxlink.service: Failed with result 'exit-code'.
/home/dinth/.local/bin/lnxlink -c config.yaml
INFO:lnxlink:LNXlink 2024.8.1, Python 3.12.3
INFO:dasbus.connection:Connecting to the system bus.
INFO:dasbus.connection:Connecting to the system bus.
INFO:lnxlink:Loaded addons: interfaces, update, wifi, speaker_used, statistics, disk_usage, gamepad, restart, display_env, mounts, sys_updates, active_window, camera_used, required_restart, suspend, bluetooth, shutdown, cpu, memory, microphone_used, temperature
INFO:lnxlink:MQTT connection: Success
INFO:dasbus.connection:Connecting to the system bus.
INFO:dasbus.connection:Connecting to the system bus.
INFO:dasbus.connection:Connecting to the system bus.
INFO:dasbus.connection:Connecting to the system bus.
INFO:dasbus.connection:Connecting to the system bus.
INFO:dasbus.connection:Connecting to the system bus.
INFO:dasbus.connection:Connecting to the system bus.
INFO:dasbus.connection:Connecting to the system bus.
Here is the generated config.yaml:
mqtt:
prefix: lnxlink
clientId: dinth-desktop-mint
server: xxxx
port: xxx
auth:
user:xxxx
pass: xxxx
tls: false
keyfile: ''
certfile: ''
ca_certs: ''
discovery:
enabled: true
lwt:
enabled: true
qos: 1
retain: false
update_interval: 5
update_on_change: false
hass_url: null
hass_api: null
modules: null
custom_modules: null
exclude:
- audio_select
- bash
- battery
- boot_select
- brightness
- fullscreen
- gpio
- gpu
- idle
- inference_time
- ir_remote
- keep_alive
- keyboard_hotkeys
- media
- mouse
- network
- notify
- power_profile
- screen_onoff
- screenshot
- send_keys
- speech_recognition
- systemd
- webcam
- xdg_open
settings:
systemd: null
gpio:
inputs: null
outputs: null
hotkeys: null
disk_usage:
include_disks: []
exclude_disks: []
statistics: https://analyzer.bkbilly.workers.dev
bash:
allow_any_command: false
expose: null
mounts:
autocheck: false
directories: []
ir_remote:
receiver: null
transmitter: null
buttons: []
I've released the 2024.9.0 version of LNXlink. Please check if your issue is fixed.
What type of installation are you running?
Desktop
Which Linux OS are you using?
Linux Mint 22
Which version of LNXLink has the issue?
2024.08.01
Describe the problem
Following the installation guide
and uninstallation:
Additional context
No response
Configuration
No response
Logs
No response