🖥️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 | bashYou 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 installationsUse the module selector whenever you want to enable or disable modules without editing YAML by hand:
lnxlink -m -c lnxlink.yamlThe 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.yamlUse -s to run only the setup workflow. After editing the generated configuration, start LNXlink with:
lnxlink -c lnxlink.yamlOn Arch Linux and derivatives, install the AUR package:
yay -S python-lnxlink
# or
paru -S python-lnxlinkCreate 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.yamlEnable and start the user service:
systemctl --user enable --now lnxlinkThis 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/ethtoolUninstall
Remove LNXlink from your system.
Last updated