bkbilly / lnxlink

🖥 Effortlessly manage your Linux machine using MQTT.
https://bkbilly.gitbook.io/lnxlink
MIT License
240 stars 29 forks source link

Installation failure or incorrect documentation for Linux Mint 22 #123

Open Dinth opened 1 month ago

Dinth commented 1 month ago

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

dinth@dinth-mint:~$ curl -L https://raw.githubusercontent.com/bkbilly/lnxlink/master/install.sh | bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1941  100  1941    0     0   1847      0  0:00:01  0:00:01 --:--:--  1848
Updating package manager...
[sudo] password for dinth:           
Sorry, try again.
[sudo] password for dinth:              
Hit:1 http://mirror.mythic-beasts.com/ubuntu noble InRelease
Hit:2 http://mirror.mythic-beasts.com/ubuntu noble-updates InRelease           
Hit:3 http://mirror.mythic-beasts.com/ubuntu noble-backports InRelease         
Hit:4 https://downloads.1password.com/linux/debian/amd64 stable InRelease      
Hit:5 https://updates.signal.org/desktop/apt xenial InRelease                  
Ign:6 https://www.mirrorservice.org/sites/packages.linuxmint.com/packages wilma InRelease
Hit:7 http://security.ubuntu.com/ubuntu noble-security InRelease
Hit:8 https://www.mirrorservice.org/sites/packages.linuxmint.com/packages wilma Release
Reading package lists... Done
PIPX not found, installing from debian/ubuntu package manager:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  python3-argcomplete python3-pip-whl python3-platformdirs
  python3-setuptools-whl python3-userpath python3-venv python3.12-venv
The following NEW packages will be installed
  pipx python3-argcomplete python3-pip-whl python3-platformdirs
  python3-setuptools-whl python3-userpath python3-venv python3.12-venv
0 to upgrade, 8 to newly install, 0 to remove and 30 not to upgrade.
Need to get 3,270 kB of archives.
After this operation, 6,479 kB of additional disk space will be used.
Get:1 http://mirror.mythic-beasts.com/ubuntu noble/universe amd64 python3-pip-whl all 24.0+dfsg-1ubuntu1 [1,702 kB]
Get:2 http://mirror.mythic-beasts.com/ubuntu noble/universe amd64 python3-setuptools-whl all 68.1.2-2ubuntu1 [715 kB]
Get:3 http://mirror.mythic-beasts.com/ubuntu noble-updates/universe amd64 python3.12-venv amd64 3.12.3-1ubuntu0.1 [5,678 B]
Get:4 http://mirror.mythic-beasts.com/ubuntu noble/universe amd64 python3-venv amd64 3.12.3-0ubuntu1 [1,032 B]
Get:5 http://mirror.mythic-beasts.com/ubuntu noble/universe amd64 python3-argcomplete all 3.1.4-1 [33.5 kB]
Get:6 http://mirror.mythic-beasts.com/ubuntu noble/main amd64 python3-platformdirs all 4.2.0-1 [16.1 kB]
Get:7 http://mirror.mythic-beasts.com/ubuntu noble/universe amd64 python3-userpath all 1.9.1-1 [9,416 B]
Get:8 http://mirror.mythic-beasts.com/ubuntu noble/universe amd64 pipx all 1.4.3-1 [787 kB]
Fetched 3,270 kB in 0s (6,997 kB/s)
Selecting previously unselected package python3-pip-whl.
(Reading database ... 543321 files and directories currently installed.)
Preparing to unpack .../0-python3-pip-whl_24.0+dfsg-1ubuntu1_all.deb ...
Unpacking python3-pip-whl (24.0+dfsg-1ubuntu1) ...
Selecting previously unselected package python3-setuptools-whl.
Preparing to unpack .../1-python3-setuptools-whl_68.1.2-2ubuntu1_all.deb ...
Unpacking python3-setuptools-whl (68.1.2-2ubuntu1) ...
Selecting previously unselected package python3.12-venv.
Preparing to unpack .../2-python3.12-venv_3.12.3-1ubuntu0.1_amd64.deb ...
Unpacking python3.12-venv (3.12.3-1ubuntu0.1) ...
Selecting previously unselected package python3-venv.
Preparing to unpack .../3-python3-venv_3.12.3-0ubuntu1_amd64.deb ...
Unpacking python3-venv (3.12.3-0ubuntu1) ...
Selecting previously unselected package python3-argcomplete.
Preparing to unpack .../4-python3-argcomplete_3.1.4-1_all.deb ...
Unpacking python3-argcomplete (3.1.4-1) ...
Selecting previously unselected package python3-platformdirs.
Preparing to unpack .../5-python3-platformdirs_4.2.0-1_all.deb ...
Unpacking python3-platformdirs (4.2.0-1) ...
Selecting previously unselected package python3-userpath.
Preparing to unpack .../6-python3-userpath_1.9.1-1_all.deb ...
Unpacking python3-userpath (1.9.1-1) ...
Selecting previously unselected package pipx.
Preparing to unpack .../7-pipx_1.4.3-1_all.deb ...
Unpacking pipx (1.4.3-1) ...
Setting up python3-setuptools-whl (68.1.2-2ubuntu1) ...
Setting up python3-pip-whl (24.0+dfsg-1ubuntu1) ...
Setting up python3-platformdirs (4.2.0-1) ...
Setting up python3-argcomplete (3.1.4-1) ...
Setting up python3-userpath (1.9.1-1) ...
Setting up python3.12-venv (3.12.3-1ubuntu0.1) ...
Setting up python3-venv (3.12.3-0ubuntu1) ...
Setting up pipx (1.4.3-1) ...
Processing triggers for man-db (2.12.0-4build2) ...
W: --force-yes is deprecated, use one of the options starting with --allow instead.
Success! Added /home/dinth/.local/bin to the PATH environment variable.

Consider adding shell completions for pipx. Run 'pipx completions' for
instructions.

You will need to open a new terminal or re-login for the PATH changes to take
effect.

Otherwise pipx is ready to go! ✨ 🌟 ✨
Installing system dependencies...
Found dbus...
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  bzip2-doc gir1.2-freedesktop-dev gir1.2-girepository-2.0-dev
  gir1.2-glib-2.0-dev gobject-introspection gobject-introspection-bin
  libblkid-dev libbrotli-dev libbz2-dev libdbus-1-dev libdbus-glib-1-dev-bin
  libexpat1-dev libffi-dev libfontconfig-dev libfreetype-dev
  libgirepository-1.0-dev libgirepository-2.0-0 libglib2.0-dev-bin libice-dev
  libmount-dev libpcre2-dev libpcre2-posix3 libpixman-1-dev libpng-dev
  libpng-tools libpthread-stubs0-dev libselinux1-dev libsepol-dev libsm-dev
  libx11-dev libxau-dev libxcb-render0-dev libxcb-shm0-dev libxcb1-dev
  libxdmcp-dev libxext-dev libxrender-dev ninja-build python3-setuptools
  uuid-dev x11proto-core-dev x11proto-dev xorg-sgml-doctools xtrans-dev
  zlib1g-dev
Suggested packages:
  libcairo2-doc freetype2-doc libgirepository1.0-doc libglib2.0-doc
  libxml2-utils libice-doc libsm-doc libx11-doc libxcb-doc libxext-doc
  python-setuptools-doc
The following NEW packages will be installed
  bzip2-doc gir1.2-freedesktop-dev gir1.2-girepository-2.0-dev
  gir1.2-glib-2.0-dev gobject-introspection gobject-introspection-bin
  libblkid-dev libbrotli-dev libbz2-dev libcairo2-dev libdbus-1-dev
  libdbus-glib-1-dev libdbus-glib-1-dev-bin libexpat1-dev libffi-dev
  libfontconfig-dev libfreetype-dev libgirepository-1.0-dev
  libgirepository-2.0-0 libgirepository1.0-dev libglib2.0-dev
  libglib2.0-dev-bin libice-dev libmount-dev libpcre2-dev libpcre2-posix3
  libpixman-1-dev libpng-dev libpng-tools libpthread-stubs0-dev
  libselinux1-dev libsepol-dev libsm-dev libx11-dev libxau-dev
  libxcb-render0-dev libxcb-shm0-dev libxcb1-dev libxdmcp-dev libxext-dev
  libxrender-dev meson ninja-build patchelf python3-setuptools uuid-dev
  x11proto-core-dev x11proto-dev xorg-sgml-doctools xtrans-dev zlib1g-dev
0 to upgrade, 51 to newly install, 0 to remove and 30 not to upgrade.
Need to get 11.6 MB of archives.
After this operation, 56.7 MB of additional disk space will be used.
Get:1 http://mirror.mythic-beasts.com/ubuntu noble/main amd64 bzip2-doc all 1.0.8-5.1 [499 kB]
Get:2 http://mirror.mythic-beasts.com/ubuntu noble-updates/main amd64 gir1.2-glib-2.0-dev amd64 2.80.0-6ubuntu3.1 [848 kB]
Get:3 http://mirror.mythic-beasts.com/ubuntu noble/main amd64 gir1.2-freedesktop-dev amd64 1.80.1-1 [28.8 kB]
Get:4 http://mirror.mythic-beasts.com/ubuntu noble/main amd64 gir1.2-girepository-2.0-dev amd64 1.80.1-1 [41.5 kB]
Get:5 http://mirror.mythic-beasts.com/ubuntu noble/main amd64 python3-setuptools all 68.1.2-2ubuntu1 [396 kB]
Get:6 http://mirror.mythic-beasts.com/ubuntu noble/main amd64 gobject-introspection-bin amd64 1.80.1-1 [254 kB]
Get:7 http://mirror.mythic-beasts.com/ubuntu noble/main amd64 libffi-dev amd64 3.4.6-1build1 [62.8 kB]
Get:8 http://mirror.mythic-beasts.com/ubuntu noble-updates/main amd64 libglib2.0-dev-bin amd64 2.80.0-6ubuntu3.1 [138 kB]
Get:9 http://mirror.mythic-beasts.com/ubuntu noble/main amd64 uuid-dev amd64 2.39.3-9ubuntu6 [33.5 kB]
Get:10 http://mirror.mythic-beasts.com/ubuntu noble/main amd64 libblkid-dev amd64 2.39.3-9ubuntu6 [204 kB]
Get:11 http://mirror.mythic-beasts.com/ubuntu noble/main amd64 libsepol-dev amd64 3.5-2build1 [384 kB]
Get:12 http://mirror.mythic-beasts.com/ubuntu noble/main amd64 libpcre2-posix3 amd64 10.42-4ubuntu2 [6,686 B]
Get:13 http://mirror.mythic-beasts.com/ubuntu noble/main amd64 libpcre2-dev amd64 10.42-4ubuntu2 [737 kB]
Get:14 http://mirror.mythic-beasts.com/ubuntu noble/main amd64 libselinux1-dev amd64 3.5-2ubuntu2 [164 kB]
Get:15 http://mirror.mythic-beasts.com/ubuntu noble/main amd64 libmount-dev amd64 2.39.3-9ubuntu6 [14.9 kB]
Get:16 http://mirror.mythic-beasts.com/ubuntu noble/main amd64 zlib1g-dev amd64 1:1.3.dfsg-3.1ubuntu2 [894 kB]
Get:17 http://mirror.mythic-beasts.com/ubuntu noble-updates/main amd64 libgirepository-2.0-0 amd64 2.80.0-6ubuntu3.1 [73.5 kB]
Get:18 http://mirror.mythic-beasts.com/ubuntu noble-updates/main amd64 libglib2.0-dev amd64 2.80.0-6ubuntu3.1 [1,859 kB]
Get:19 http://mirror.mythic-beasts.com/ubuntu noble/main amd64 gobject-introspection amd64 1.80.1-1 [105 kB]
Get:20 http://mirror.mythic-beasts.com/ubuntu noble/main amd64 libbrotli-dev amd64 1.1.0-2build2 [353 kB]
Get:21 http://mirror.mythic-beasts.com/ubuntu noble/main amd64 libbz2-dev amd64 1.0.8-5.1 [33.6 kB]
Get:22 http://mirror.mythic-beasts.com/ubuntu noble/main amd64 libexpat1-dev amd64 2.6.1-2build1 [139 kB]
Get:23 http://mirror.mythic-beasts.com/ubuntu noble/main amd64 libpng-dev amd64 1.6.43-5build1 [264 kB]
Get:24 http://mirror.mythic-beasts.com/ubuntu noble/main amd64 libfreetype-dev amd64 2.13.2+dfsg-1build3 [575 kB]
Get:25 http://mirror.mythic-beasts.com/ubuntu noble/main amd64 libfontconfig-dev amd64 2.15.0-1.1ubuntu2 [161 kB]
Get:26 http://mirror.mythic-beasts.com/ubuntu noble/main amd64 libpixman-1-dev amd64 0.42.2-1build1 [296 kB]
Get:27 http://mirror.mythic-beasts.com/ubuntu noble/main amd64 xorg-sgml-doctools all 1:1.11-1.1 [10.9 kB]
Get:28 http://mirror.mythic-beasts.com/ubuntu noble/main amd64 x11proto-dev all 2023.2-1 [602 kB]
Get:29 http://mirror.mythic-beasts.com/ubuntu noble/main amd64 x11proto-core-dev all 2023.2-1 [2,444 B]
Get:30 http://mirror.mythic-beasts.com/ubuntu noble/main amd64 libice-dev amd64 2:1.0.10-1build3 [51.0 kB]
Get:31 http://mirror.mythic-beasts.com/ubuntu noble/main amd64 libsm-dev amd64 2:1.2.3-1build3 [17.8 kB]
Get:32 http://mirror.mythic-beasts.com/ubuntu noble/main amd64 libxau-dev amd64 1:1.0.9-1build6 [9,570 B]
Get:33 http://mirror.mythic-beasts.com/ubuntu noble/main amd64 libxdmcp-dev amd64 1:1.1.3-0ubuntu6 [26.5 kB]
Get:34 http://mirror.mythic-beasts.com/ubuntu noble/main amd64 xtrans-dev all 1.4.0-1 [68.9 kB]
Get:35 http://mirror.mythic-beasts.com/ubuntu noble/main amd64 libpthread-stubs0-dev amd64 0.4-1build3 [4,746 B]
Get:36 http://mirror.mythic-beasts.com/ubuntu noble/main amd64 libxcb1-dev amd64 1.15-1ubuntu2 [85.8 kB]
Get:37 http://mirror.mythic-beasts.com/ubuntu noble/main amd64 libx11-dev amd64 2:1.8.7-1build1 [732 kB]
Get:38 http://mirror.mythic-beasts.com/ubuntu noble/main amd64 libxcb-render0-dev amd64 1.15-1ubuntu2 [19.6 kB]
Get:39 http://mirror.mythic-beasts.com/ubuntu noble/main amd64 libxcb-shm0-dev amd64 1.15-1ubuntu2 [8,246 B]
Get:40 http://mirror.mythic-beasts.com/ubuntu noble/main amd64 libxext-dev amd64 2:1.3.4-1build2 [83.5 kB]
Get:41 http://mirror.mythic-beasts.com/ubuntu noble/main amd64 libxrender-dev amd64 1:0.9.10-1.1build1 [26.3 kB]
Get:42 http://mirror.mythic-beasts.com/ubuntu noble/main amd64 libcairo2-dev amd64 1.18.0-3build1 [41.1 kB]
Get:43 http://mirror.mythic-beasts.com/ubuntu noble/main amd64 libdbus-1-dev amd64 1.14.10-4ubuntu4 [190 kB]
Get:44 http://mirror.mythic-beasts.com/ubuntu noble/universe amd64 libdbus-glib-1-dev-bin amd64 0.112-3build2 [43.5 kB]
Get:45 http://mirror.mythic-beasts.com/ubuntu noble/universe amd64 libdbus-glib-1-dev amd64 0.112-3build2 [81.2 kB]
Get:46 http://mirror.mythic-beasts.com/ubuntu noble/main amd64 libgirepository-1.0-dev amd64 1.80.1-1 [28.5 kB]
Get:47 http://mirror.mythic-beasts.com/ubuntu noble/main amd64 libgirepository1.0-dev amd64 1.80.1-1 [17.0 kB]
Get:48 http://mirror.mythic-beasts.com/ubuntu noble/main amd64 libpng-tools amd64 1.6.43-5build1 [28.5 kB]
Get:49 http://mirror.mythic-beasts.com/ubuntu noble/universe amd64 ninja-build amd64 1.11.1-2 [129 kB]
Get:50 http://mirror.mythic-beasts.com/ubuntu noble/universe amd64 meson all 1.3.2-1ubuntu1 [604 kB]
Get:51 http://mirror.mythic-beasts.com/ubuntu noble/universe amd64 patchelf amd64 0.18.0-1.1build1 [106 kB]
Fetched 11.6 MB in 2s (7,505 kB/s) 
Extract templates from packages: 100%
Selecting previously unselected package bzip2-doc.
(Reading database ... 543531 files and directories currently installed.)
Preparing to unpack .../00-bzip2-doc_1.0.8-5.1_all.deb ...
Unpacking bzip2-doc (1.0.8-5.1) ...
Selecting previously unselected package gir1.2-glib-2.0-dev:amd64.
Preparing to unpack .../01-gir1.2-glib-2.0-dev_2.80.0-6ubuntu3.1_amd64.deb ...
Unpacking gir1.2-glib-2.0-dev:amd64 (2.80.0-6ubuntu3.1) ...
Selecting previously unselected package gir1.2-freedesktop-dev:amd64.
Preparing to unpack .../02-gir1.2-freedesktop-dev_1.80.1-1_amd64.deb ...
Unpacking gir1.2-freedesktop-dev:amd64 (1.80.1-1) ...
Selecting previously unselected package gir1.2-girepository-2.0-dev:amd64.
Preparing to unpack .../03-gir1.2-girepository-2.0-dev_1.80.1-1_amd64.deb ...
Unpacking gir1.2-girepository-2.0-dev:amd64 (1.80.1-1) ...
Selecting previously unselected package python3-setuptools.
Preparing to unpack .../04-python3-setuptools_68.1.2-2ubuntu1_all.deb ...
Unpacking python3-setuptools (68.1.2-2ubuntu1) ...
Selecting previously unselected package gobject-introspection-bin.
Preparing to unpack .../05-gobject-introspection-bin_1.80.1-1_amd64.deb ...
Unpacking gobject-introspection-bin (1.80.1-1) ...
Selecting previously unselected package libffi-dev:amd64.
Preparing to unpack .../06-libffi-dev_3.4.6-1build1_amd64.deb ...
Unpacking libffi-dev:amd64 (3.4.6-1build1) ...
Selecting previously unselected package libglib2.0-dev-bin.
Preparing to unpack .../07-libglib2.0-dev-bin_2.80.0-6ubuntu3.1_amd64.deb ...
Unpacking libglib2.0-dev-bin (2.80.0-6ubuntu3.1) ...
Selecting previously unselected package uuid-dev:amd64.
Preparing to unpack .../08-uuid-dev_2.39.3-9ubuntu6_amd64.deb ...
Unpacking uuid-dev:amd64 (2.39.3-9ubuntu6) ...
Selecting previously unselected package libblkid-dev:amd64.
Preparing to unpack .../09-libblkid-dev_2.39.3-9ubuntu6_amd64.deb ...
Unpacking libblkid-dev:amd64 (2.39.3-9ubuntu6) ...
Selecting previously unselected package libsepol-dev:amd64.
Preparing to unpack .../10-libsepol-dev_3.5-2build1_amd64.deb ...
Unpacking libsepol-dev:amd64 (3.5-2build1) ...
Selecting previously unselected package libpcre2-posix3:amd64.
Preparing to unpack .../11-libpcre2-posix3_10.42-4ubuntu2_amd64.deb ...
Unpacking libpcre2-posix3:amd64 (10.42-4ubuntu2) ...
Selecting previously unselected package libpcre2-dev:amd64.
Preparing to unpack .../12-libpcre2-dev_10.42-4ubuntu2_amd64.deb ...
Unpacking libpcre2-dev:amd64 (10.42-4ubuntu2) ...
Selecting previously unselected package libselinux1-dev:amd64.
Preparing to unpack .../13-libselinux1-dev_3.5-2ubuntu2_amd64.deb ...
Unpacking libselinux1-dev:amd64 (3.5-2ubuntu2) ...
Selecting previously unselected package libmount-dev:amd64.
Preparing to unpack .../14-libmount-dev_2.39.3-9ubuntu6_amd64.deb ...
Unpacking libmount-dev:amd64 (2.39.3-9ubuntu6) ...
Selecting previously unselected package zlib1g-dev:amd64.
Preparing to unpack .../15-zlib1g-dev_1%3a1.3.dfsg-3.1ubuntu2_amd64.deb ...
Unpacking zlib1g-dev:amd64 (1:1.3.dfsg-3.1ubuntu2) ...
Selecting previously unselected package libgirepository-2.0-0:amd64.
Preparing to unpack .../16-libgirepository-2.0-0_2.80.0-6ubuntu3.1_amd64.deb ...
Unpacking libgirepository-2.0-0:amd64 (2.80.0-6ubuntu3.1) ...
Selecting previously unselected package libglib2.0-dev:amd64.
Preparing to unpack .../17-libglib2.0-dev_2.80.0-6ubuntu3.1_amd64.deb ...
Unpacking libglib2.0-dev:amd64 (2.80.0-6ubuntu3.1) ...
Selecting previously unselected package gobject-introspection:amd64.
Preparing to unpack .../18-gobject-introspection_1.80.1-1_amd64.deb ...
Unpacking gobject-introspection:amd64 (1.80.1-1) ...
Selecting previously unselected package libbrotli-dev:amd64.
Preparing to unpack .../19-libbrotli-dev_1.1.0-2build2_amd64.deb ...
Unpacking libbrotli-dev:amd64 (1.1.0-2build2) ...
Selecting previously unselected package libbz2-dev:amd64.
Preparing to unpack .../20-libbz2-dev_1.0.8-5.1_amd64.deb ...
Unpacking libbz2-dev:amd64 (1.0.8-5.1) ...
Selecting previously unselected package libexpat1-dev:amd64.
Preparing to unpack .../21-libexpat1-dev_2.6.1-2build1_amd64.deb ...
Unpacking libexpat1-dev:amd64 (2.6.1-2build1) ...
Selecting previously unselected package libpng-dev:amd64.
Preparing to unpack .../22-libpng-dev_1.6.43-5build1_amd64.deb ...
Unpacking libpng-dev:amd64 (1.6.43-5build1) ...
Selecting previously unselected package libfreetype-dev:amd64.
Preparing to unpack .../23-libfreetype-dev_2.13.2+dfsg-1build3_amd64.deb ...
Unpacking libfreetype-dev:amd64 (2.13.2+dfsg-1build3) ...
Selecting previously unselected package libfontconfig-dev:amd64.
Preparing to unpack .../24-libfontconfig-dev_2.15.0-1.1ubuntu2_amd64.deb ...
Unpacking libfontconfig-dev:amd64 (2.15.0-1.1ubuntu2) ...
Selecting previously unselected package libpixman-1-dev:amd64.
Preparing to unpack .../25-libpixman-1-dev_0.42.2-1build1_amd64.deb ...
Unpacking libpixman-1-dev:amd64 (0.42.2-1build1) ...
Selecting previously unselected package xorg-sgml-doctools.
Preparing to unpack .../26-xorg-sgml-doctools_1%3a1.11-1.1_all.deb ...
Unpacking xorg-sgml-doctools (1:1.11-1.1) ...
Selecting previously unselected package x11proto-dev.
Preparing to unpack .../27-x11proto-dev_2023.2-1_all.deb ...
Unpacking x11proto-dev (2023.2-1) ...
Selecting previously unselected package x11proto-core-dev.
Preparing to unpack .../28-x11proto-core-dev_2023.2-1_all.deb ...
Unpacking x11proto-core-dev (2023.2-1) ...
Selecting previously unselected package libice-dev:amd64.
Preparing to unpack .../29-libice-dev_2%3a1.0.10-1build3_amd64.deb ...
Unpacking libice-dev:amd64 (2:1.0.10-1build3) ...
Selecting previously unselected package libsm-dev:amd64.
Preparing to unpack .../30-libsm-dev_2%3a1.2.3-1build3_amd64.deb ...
Unpacking libsm-dev:amd64 (2:1.2.3-1build3) ...
Selecting previously unselected package libxau-dev:amd64.
Preparing to unpack .../31-libxau-dev_1%3a1.0.9-1build6_amd64.deb ...
Unpacking libxau-dev:amd64 (1:1.0.9-1build6) ...
Selecting previously unselected package libxdmcp-dev:amd64.
Preparing to unpack .../32-libxdmcp-dev_1%3a1.1.3-0ubuntu6_amd64.deb ...
Unpacking libxdmcp-dev:amd64 (1:1.1.3-0ubuntu6) ...
Selecting previously unselected package xtrans-dev.
Preparing to unpack .../33-xtrans-dev_1.4.0-1_all.deb ...
Unpacking xtrans-dev (1.4.0-1) ...
Selecting previously unselected package libpthread-stubs0-dev:amd64.
Preparing to unpack .../34-libpthread-stubs0-dev_0.4-1build3_amd64.deb ...
Unpacking libpthread-stubs0-dev:amd64 (0.4-1build3) ...
Selecting previously unselected package libxcb1-dev:amd64.
Preparing to unpack .../35-libxcb1-dev_1.15-1ubuntu2_amd64.deb ...
Unpacking libxcb1-dev:amd64 (1.15-1ubuntu2) ...
Selecting previously unselected package libx11-dev:amd64.
Preparing to unpack .../36-libx11-dev_2%3a1.8.7-1build1_amd64.deb ...
Unpacking libx11-dev:amd64 (2:1.8.7-1build1) ...
Selecting previously unselected package libxcb-render0-dev:amd64.
Preparing to unpack .../37-libxcb-render0-dev_1.15-1ubuntu2_amd64.deb ...
Unpacking libxcb-render0-dev:amd64 (1.15-1ubuntu2) ...
Selecting previously unselected package libxcb-shm0-dev:amd64.
Preparing to unpack .../38-libxcb-shm0-dev_1.15-1ubuntu2_amd64.deb ...
Unpacking libxcb-shm0-dev:amd64 (1.15-1ubuntu2) ...
Selecting previously unselected package libxext-dev:amd64.
Preparing to unpack .../39-libxext-dev_2%3a1.3.4-1build2_amd64.deb ...
Unpacking libxext-dev:amd64 (2:1.3.4-1build2) ...
Selecting previously unselected package libxrender-dev:amd64.
Preparing to unpack .../40-libxrender-dev_1%3a0.9.10-1.1build1_amd64.deb ...
Unpacking libxrender-dev:amd64 (1:0.9.10-1.1build1) ...
Selecting previously unselected package libcairo2-dev:amd64.
Preparing to unpack .../41-libcairo2-dev_1.18.0-3build1_amd64.deb ...
Unpacking libcairo2-dev:amd64 (1.18.0-3build1) ...
Selecting previously unselected package libdbus-1-dev:amd64.
Preparing to unpack .../42-libdbus-1-dev_1.14.10-4ubuntu4_amd64.deb ...
Unpacking libdbus-1-dev:amd64 (1.14.10-4ubuntu4) ...
Selecting previously unselected package libdbus-glib-1-dev-bin.
Preparing to unpack .../43-libdbus-glib-1-dev-bin_0.112-3build2_amd64.deb ...
Unpacking libdbus-glib-1-dev-bin (0.112-3build2) ...
Selecting previously unselected package libdbus-glib-1-dev:amd64.
Preparing to unpack .../44-libdbus-glib-1-dev_0.112-3build2_amd64.deb ...
Unpacking libdbus-glib-1-dev:amd64 (0.112-3build2) ...
Selecting previously unselected package libgirepository-1.0-dev:amd64.
Preparing to unpack .../45-libgirepository-1.0-dev_1.80.1-1_amd64.deb ...
Unpacking libgirepository-1.0-dev:amd64 (1.80.1-1) ...
Selecting previously unselected package libgirepository1.0-dev.
Preparing to unpack .../46-libgirepository1.0-dev_1.80.1-1_amd64.deb ...
Unpacking libgirepository1.0-dev (1.80.1-1) ...
Selecting previously unselected package libpng-tools.
Preparing to unpack .../47-libpng-tools_1.6.43-5build1_amd64.deb ...
Unpacking libpng-tools (1.6.43-5build1) ...
Selecting previously unselected package ninja-build.
Preparing to unpack .../48-ninja-build_1.11.1-2_amd64.deb ...
Unpacking ninja-build (1.11.1-2) ...
Selecting previously unselected package meson.
Preparing to unpack .../49-meson_1.3.2-1ubuntu1_all.deb ...
Unpacking meson (1.3.2-1ubuntu1) ...
Selecting previously unselected package patchelf.
Preparing to unpack .../50-patchelf_0.18.0-1.1build1_amd64.deb ...
Unpacking patchelf (0.18.0-1.1build1) ...
Setting up libglib2.0-dev-bin (2.80.0-6ubuntu3.1) ...
Setting up bzip2-doc (1.0.8-5.1) ...
Setting up libpixman-1-dev:amd64 (0.42.2-1build1) ...
Setting up python3-setuptools (68.1.2-2ubuntu1) ...
Setting up libpng-tools (1.6.43-5build1) ...
Setting up libgirepository-2.0-0:amd64 (2.80.0-6ubuntu3.1) ...
Setting up gobject-introspection-bin (1.80.1-1) ...
Setting up libdbus-glib-1-dev-bin (0.112-3build2) ...
Setting up libffi-dev:amd64 (3.4.6-1build1) ...
Setting up libpthread-stubs0-dev:amd64 (0.4-1build3) ...
Setting up ninja-build (1.11.1-2) ...
Setting up xtrans-dev (1.4.0-1) ...
Setting up libexpat1-dev:amd64 (2.6.1-2build1) ...
Setting up libdbus-1-dev:amd64 (1.14.10-4ubuntu4) ...
Setting up uuid-dev:amd64 (2.39.3-9ubuntu6) ...
Setting up libsepol-dev:amd64 (3.5-2build1) ...
Setting up zlib1g-dev:amd64 (1:1.3.dfsg-3.1ubuntu2) ...
Setting up libpcre2-posix3:amd64 (10.42-4ubuntu2) ...
Setting up gir1.2-glib-2.0-dev:amd64 (2.80.0-6ubuntu3.1) ...
Setting up xorg-sgml-doctools (1:1.11-1.1) ...
Setting up patchelf (0.18.0-1.1build1) ...
Setting up libbrotli-dev:amd64 (1.1.0-2build2) ...
Setting up libbz2-dev:amd64 (1.0.8-5.1) ...
Setting up libblkid-dev:amd64 (2.39.3-9ubuntu6) ...
Setting up libpcre2-dev:amd64 (10.42-4ubuntu2) ...
Setting up libselinux1-dev:amd64 (3.5-2ubuntu2) ...
Setting up libpng-dev:amd64 (1.6.43-5build1) ...
Setting up meson (1.3.2-1ubuntu1) ...
Setting up gir1.2-girepository-2.0-dev:amd64 (1.80.1-1) ...
Setting up libfreetype-dev:amd64 (2.13.2+dfsg-1build3) ...
Setting up gir1.2-freedesktop-dev:amd64 (1.80.1-1) ...
Setting up libmount-dev:amd64 (2.39.3-9ubuntu6) ...
Setting up libfontconfig-dev:amd64 (2.15.0-1.1ubuntu2) ...
Setting up libglib2.0-dev:amd64 (2.80.0-6ubuntu3.1) ...
Processing triggers for libc-bin (2.39-0ubuntu8.2) ...
Processing triggers for man-db (2.12.0-4build2) ...
Processing triggers for libglib2.0-0t64:amd64 (2.80.0-6ubuntu3.1) ...
Processing triggers for libglib2.0-0t64:i386 (2.80.0-6ubuntu3.1) ...
Processing triggers for sgml-base (1.31) ...
Processing triggers for install-info (7.1-3build2) ...
Setting up x11proto-dev (2023.2-1) ...
Setting up libxau-dev:amd64 (1:1.0.9-1build6) ...
Setting up libice-dev:amd64 (2:1.0.10-1build3) ...
Setting up libsm-dev:amd64 (2:1.2.3-1build3) ...
Setting up libdbus-glib-1-dev:amd64 (0.112-3build2) ...
Setting up gobject-introspection:amd64 (1.80.1-1) ...
Setting up libxdmcp-dev:amd64 (1:1.1.3-0ubuntu6) ...
Setting up x11proto-core-dev (2023.2-1) ...
Setting up libgirepository-1.0-dev:amd64 (1.80.1-1) ...
Setting up libxcb1-dev:amd64 (1.15-1ubuntu2) ...
Setting up libx11-dev:amd64 (2:1.8.7-1build1) ...
Setting up libxcb-shm0-dev:amd64 (1.15-1ubuntu2) ...
Setting up libgirepository1.0-dev (1.80.1-1) ...
Setting up libxcb-render0-dev:amd64 (1.15-1ubuntu2) ...
Setting up libxext-dev:amd64 (2:1.3.4-1build2) ...
Setting up libxrender-dev:amd64 (1:0.9.10-1.1build1) ...
Setting up libcairo2-dev:amd64 (1.18.0-3build1) ...
W: --force-yes is deprecated, use one of the options starting with --allow instead.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
upower is already the newest version (1.90.3-1).
xdg-utils is already the newest version (1.1.3-4.1ubuntu3).
Suggested packages:
  libasound2-doc portaudio19-doc python-pyaudio-doc
The following NEW packages will be installed
  libasound2-dev libjack-jackd2-dev libportaudiocpp0 portaudio19-dev
  python3-pyaudio xdotool
0 to upgrade, 6 to newly install, 0 to remove and 30 not to upgrade.
Need to get 358 kB of archives.
After this operation, 1,882 kB of additional disk space will be used.
Get:1 http://mirror.mythic-beasts.com/ubuntu noble/main amd64 libasound2-dev amd64 1.2.11-1build2 [115 kB]
Get:2 http://mirror.mythic-beasts.com/ubuntu noble/main amd64 libjack-jackd2-dev amd64 1.9.21~dfsg-3ubuntu3 [42.9 kB]
Get:3 http://mirror.mythic-beasts.com/ubuntu noble/universe amd64 libportaudiocpp0 amd64 19.6.0-1.2build3 [17.2 kB]
Get:4 http://mirror.mythic-beasts.com/ubuntu noble/universe amd64 portaudio19-dev amd64 19.6.0-1.2build3 [114 kB]
Get:5 http://mirror.mythic-beasts.com/ubuntu noble/universe amd64 python3-pyaudio amd64 0.2.13-1build3 [26.4 kB]
Get:6 http://mirror.mythic-beasts.com/ubuntu noble/universe amd64 xdotool amd64 1:3.20160805.1-5build1 [42.6 kB]
Fetched 358 kB in 0s (761 kB/s)    
Selecting previously unselected package libasound2-dev:amd64.
(Reading database ... 545851 files and directories currently installed.)
Preparing to unpack .../0-libasound2-dev_1.2.11-1build2_amd64.deb ...
Unpacking libasound2-dev:amd64 (1.2.11-1build2) ...
Selecting previously unselected package libjack-jackd2-dev:amd64.
Preparing to unpack .../1-libjack-jackd2-dev_1.9.21~dfsg-3ubuntu3_amd64.deb ...
Unpacking libjack-jackd2-dev:amd64 (1.9.21~dfsg-3ubuntu3) ...
Selecting previously unselected package libportaudiocpp0:amd64.
Preparing to unpack .../2-libportaudiocpp0_19.6.0-1.2build3_amd64.deb ...
Unpacking libportaudiocpp0:amd64 (19.6.0-1.2build3) ...
Selecting previously unselected package portaudio19-dev:amd64.
Preparing to unpack .../3-portaudio19-dev_19.6.0-1.2build3_amd64.deb ...
Unpacking portaudio19-dev:amd64 (19.6.0-1.2build3) ...
Selecting previously unselected package python3-pyaudio.
Preparing to unpack .../4-python3-pyaudio_0.2.13-1build3_amd64.deb ...
Unpacking python3-pyaudio (0.2.13-1build3) ...
Selecting previously unselected package xdotool.
Preparing to unpack .../5-xdotool_1%3a3.20160805.1-5build1_amd64.deb ...
Unpacking xdotool (1:3.20160805.1-5build1) ...
Setting up xdotool (1:3.20160805.1-5build1) ...
Setting up libjack-jackd2-dev:amd64 (1.9.21~dfsg-3ubuntu3) ...
Setting up libportaudiocpp0:amd64 (19.6.0-1.2build3) ...
Setting up libasound2-dev:amd64 (1.2.11-1build2) ...
Setting up python3-pyaudio (0.2.13-1build3) ...
Setting up portaudio19-dev:amd64 (19.6.0-1.2build3) ...
Processing triggers for man-db (2.12.0-4build2) ...
Processing triggers for libc-bin (2.39-0ubuntu8.2) ...
W: --force-yes is deprecated, use one of the options starting with --allow instead.
Installing LNXlink...
bash: line 53: pip: command not found
  installed package lnxlink 2024.8.1, installed using Python 3.12.3
  These apps are now globally available
    - lnxlink
⚠️  Note: '/home/dinth/.local/bin' is not on your PATH environment variable.
    These apps will not be globally accessible until your PATH is updated. Run
    `pipx ensurepath` to automatically add it, or manually modify your PATH in
    your shell's config file (i.e. ~/.bashrc).
done! ✨ 🌟 ✨
bash: line 55: lnxlink: command not found

dinth@dinth-mint:~$ systemctl start lnxlink.service
Failed to start lnxlink.service: Unit lnxlink.service not found.

and uninstallation:

dinth@dinth-mint:~$ rm ~/.config/systemd/user/lnxlink.service
rm: cannot remove '/home/dinth/.config/systemd/user/lnxlink.service': No such file or directory

dinth@dinth-mint:~$ pip3 uninstall -U lnxlink

Usage:   
  pip3 uninstall [options] <package> ...
  pip3 uninstall [options] -r <requirements file> ...

no such option: -U

Additional context

No response

Configuration

No response

Logs

No response

bkbilly commented 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
Dinth commented 1 month ago

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) image

dinth@dinth-mint:~$ systemctl start lnxlink.service
Failed to start lnxlink.service: Unit lnxlink.service not found.
bkbilly commented 1 month ago

The systemd service is configured when you first launch lnxlink with the command I mentioned above:

/home/dinth/.local/bin/lnxlink -sc config.yaml
Dinth commented 1 month ago

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.
bkbilly commented 1 month ago

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
Dinth commented 1 month ago

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)

bkbilly commented 1 month ago

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
Dinth commented 1 month ago

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: []
bkbilly commented 2 weeks ago

I've released the 2024.9.0 version of LNXlink. Please check if your issue is fixed.