For the complete documentation index, see llms.txt. This page is also available as Markdown.

🖥️Setup

Get started with LNXlink

Installation

Select the installation type you want:

Install LNXlink with pipx and the required system dependencies. It will create an lnxlink.yaml file in the directory where you run the installer and guide you through the basic configuration setup:

curl -L https://raw.githubusercontent.com/bkbilly/lnxlink/master/install.sh | bash

You can manually update the configuration file lnxlink.yaml and restart the service with the use of systemctl:

systemctl --user restart lnxlink.service  # For user installations
sudo systemctl restart lnxlink.service  # For root installations

Use the module selector whenever you want to enable or disable modules without editing YAML by hand:

lnxlink -m -c lnxlink.yaml

The selector updates the modules or exclude section in your config file, depending on which option creates the shorter list.

If your system dependencies are already installed, you can install LNXlink directly from PyPI:

pipx install lnxlink
lnxlink -sc lnxlink.yaml

Use -s to run only the setup workflow. After editing the generated configuration, start LNXlink with:

lnxlink -c lnxlink.yaml

On Arch Linux and derivatives, install the AUR package:

yay -S python-lnxlink
# or
paru -S python-lnxlink

Create and edit the configuration file:

mkdir -p ~/.config/lnxlink
cp /usr/share/doc/python-lnxlink/config.yaml.example ~/.config/lnxlink/config.yaml
$EDITOR ~/.config/lnxlink/config.yaml

Enable and start the user service:

systemctl --user enable --now lnxlink

Some modules may not work yet.

This command will download the LNXlink image and set up the configuration file:

Create a docker compose file:

Run docker compose image:

Install and follow the setup instructions by running it. A new configuration file will be created at ~/Documents/LNXlink/config.yaml.

Some modules are not supported like bluetooth, sys_updates, boot_select.

You will also need to manually create a systemd service to start LNXlink on boot by creating a service file.

This must be enabled to start on boot:

This installs LNXlink as a development platform which is helpful if you want to create your own changes or create a new module. Read on the Development section for more information.

Run sudo commands

Some modules need to run specific commands as root. To fix this, allow only the required command to run without asking for a password:

# Edit the sudoers file:
sudo visudo
# Boot Select module (replace USER with your username):
USER ALL=(ALL) NOPASSWD: /usr/bin/efibootmgr

# WOL module:
USER ALL=(ALL) NOPASSWD: /usr/sbin/ethtool

Uninstall

Remove LNXlink from your system.

Last updated