-
Notifications
You must be signed in to change notification settings - Fork 0
Linux Setup
This guide will help you install and run Dwellpy on Linux.
- Linux distribution with X11 (Wayland support coming soon)
- Python 3.9 or newer (if using the install script or pip)
- Internet connection for downloads
If you are using a Debian-based distribution (like Debian, Ubuntu, Linux Mint, Pop!_OS, etc.), the recommended way to install Dwellpy is using the .deb package.
- Go to the latest releases page.
- Download the
.debfile for your system's architecture.- For x64 (amd64) systems (most common), download
dwellpy-*-linux-debian-x64.deb. - For ARM64 systems, download
dwellpy-*-linux-debian-arm64.deb.
- For x64 (amd64) systems (most common), download
- Open a terminal and navigate to the directory where you downloaded the file (e.g.,
cd ~/Downloads). - Install the package using
dpkg. Replacedwellpy-version-architecture.debwith the actual filename:For example:sudo dpkg -i dwellpy-version-architecture.deb
sudo dpkg -i dwellpy-0.9.1-linux-debian-x64.deb
- If you encounter any dependency errors, run the following command to fix them. This command will also install Dwellpy if
dpkgfailed due to missing dependencies.sudo apt-get update && sudo apt-get install -f - Once installed, you can run Dwellpy by typing
dwellpyin your terminal or finding it in your application menu.
Note on Architectures: The .deb package for x64 is built with the architecture amd64 in its control file to ensure compatibility with dpkg. Similarly, arm64 is used for ARM64 systems.
To update Dwellpy if you installed it using the .deb package:
- Go to the latest releases page and download the new
.debfile for your architecture. - Open a terminal and navigate to the directory where you downloaded the new version.
- Install the new package. This will typically upgrade the existing installation.
Replace
sudo dpkg -i dwellpy-new-version-architecture.deb
dwellpy-new-version-architecture.debwith the actual filename of the new version. - If you encounter dependency issues, or to ensure all dependencies are correct, run:
sudo apt-get update && sudo apt-get install -f
Alternatively, if Dwellpy was installed and its dependencies were resolved with apt (e.g., after sudo apt-get install -f), you might be able to upgrade using apt directly if you've added a PPA or if the package is in a configured repository (though this guide currently focuses on direct .deb installation):
bash # sudo apt-get update # sudo apt-get install --only-upgrade dwellpy
For direct .deb file downloads, the dpkg -i method is the most straightforward for upgrading.
To uninstall Dwellpy if you installed it using the .deb package:
- Open a terminal.
- Use the following command to remove the package:
sudo apt-get remove dwellpy
- If you also want to remove any system-wide configuration files that were installed with the package (though Dwellpy primarily stores user-specific settings in the user's home directory), you can use:
For most users,
sudo apt-get purge dwellpy
sudo apt-get remove dwellpyis sufficient.
For other Linux distributions, or if you prefer a script-based setup that handles dependencies and creates a desktop entry, you can use our automated install script. This script installs Dwellpy using pip and sets up the environment.
curl -sSL https://raw.githubusercontent.com/code0nwheels/dwellpy/main/utils/linux-install.sh | bashThis script will:
- Detect your Linux distribution.
- Install Python 3 and pip if needed.
- Install Dwellpy and its dependencies using pip.
- Create a launcher script (usually in
~/.local/bin/dwellpy). - Attempt to add the launcher to your PATH.
- Create a desktop menu entry (Dwellpy should appear in your Applications menu).
- Optionally set up autostart (it will ask for your preference).
- Check for X11/Wayland compatibility.
The script aims to support a wide range of distributions, including:
- Ubuntu/Debian/Pop!_OS/Linux Mint (though the .deb package is preferred here)
- Fedora
- CentOS/RHEL/Rocky Linux/AlmaLinux
- Arch Linux/Manjaro
- openSUSE
If your distribution is not listed, the script might still work, especially if it's based on one of the above.
- Desktop Integration: Dwellpy appears in your Applications menu.
- Optional Auto-start: Choose whether Dwellpy starts automatically when you log in.
- Environment Setup: Handles Python, pip, and PATH adjustments.
After installation completes, you can typically:
- Start from command line:
dwellpy - Start from Applications menu: Look for "Dwellpy".
| Method | Pros | Cons |
|---|---|---|
| Debian Package (.deb) | System-wide installation, dependency handling via apt, integrates with package manager, desktop entry. |
Primarily for Debian-based systems (Ubuntu, Mint, etc.). |
| Automated Install Script | Handles dependencies, full desktop integration, auto-start option, works on many distributions. | Requires Python & pip, relies on script compatibility with your system. |
| Manual pip install | Lightweight, latest features directly from PyPI, fine-grained control. | No automatic desktop integration or auto-start setup, requires Python & pip knowledge, PATH management might be needed. |
Recommendation:
- For Debian-based systems (Ubuntu, Mint, etc.): Use the Debian Package (.deb) for the best integration.
- For other Linux distributions: Use the Automated Install Script.
- For advanced users who prefer manual control or are on an unsupported distribution: Use Manual pip install.
If you prefer to install manually or the automated script doesn't work for your system:
Most Linux distributions come with Python but not pip. Install it using your package manager:
sudo apt update
sudo apt install python3-pipsudo dnf install python3-pipsudo pacman -S python-pipCheck your distribution's documentation for installing python3-pip.
pip3 install dwellpydwellpyThe Dwellpy toolbar should appear on your screen!
The installation likely put dwellpy in ~/.local/bin which isn't in your PATH:
-
Add it to your PATH temporarily:
export PATH="$HOME/.local/bin:$PATH"
-
Make it permanent by adding to your shell config:
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc source ~/.bashrc
If you get permission errors during installation, try:
pip3 install --user dwellpyDwellpy currently requires X11. If you're using Wayland:
- Log out of your session
- At the login screen, look for a gear/settings icon
- Select "Ubuntu on Xorg" or similar X11 option
- Log back in and try running Dwellpy
The automated install script will detect Wayland and warn you about this requirement.
The easiest way to enable auto-start is through Dwellpy's built-in settings:
- Open Dwellpy
- Click the Settings button (gear icon)
- Go to the General tab
- Check "Auto-start on system login"
- Click OK
Dwellpy will now automatically start when you log in to your desktop environment. This method creates an XDG autostart entry that integrates properly with your system.
If you prefer to manage auto-start manually:
ls -la ~/.config/autostart/dwellpy.desktoprm ~/.config/autostart/dwellpy.desktop# Copy the desktop entry to autostart
cp ~/.local/share/applications/dwellpy.desktop ~/.config/autostart/dwellpy.desktopYou can also manage auto-start through your desktop environment:
- GNOME: Settings → Applications → Startup Applications
- KDE: System Settings → Startup and Shutdown → Autostart
- XFCE: Settings → Session and Startup → Application Autostart
- Ubuntu: Search for "Startup Applications" in Activities
To disable auto-start:
- Via Settings: Uncheck "Auto-start on system login" in Dwellpy Settings → General
-
Manually: Remove the file
~/.config/autostart/dwellpy.desktop - Desktop Environment: Use your desktop's startup application settings
If you installed manually and want auto-start, create an XDG autostart entry:
# Create autostart directory
mkdir -p ~/.config/autostart
# Create desktop entry
cat > ~/.config/autostart/dwellpy.desktop << EOF
[Desktop Entry]
Type=Application
Name=Dwellpy
Comment=Click by hovering - accessibility tool
Exec=dwellpy
Icon=applications-accessibility
Categories=Accessibility;Utility;
StartupNotify=false
NoDisplay=false
Hidden=false
X-GNOME-Autostart-enabled=true
EOFRe-run the install script to get the latest version:
curl -sSL https://raw.githubusercontent.com/code0nwheels/dwellpy/main/utils/linux-install.sh | bashpip3 install --upgrade dwellpyUse the automated uninstall script:
curl -sSL https://raw.githubusercontent.com/code0nwheels/dwellpy/main/utils/linux-uninstall.sh | bashThis will safely remove:
- All Dwellpy source code and files
- Desktop menu entry
- Auto-start configuration
- Launcher script
- Running Dwellpy processes
- Empty directories (if no other apps use them)
Optional removal: The uninstaller will ask if you want to remove the PATH modification from ~/.bashrc (it backs up the file first).
# Stop running processes
pkill -f "python3 -m dwellpy.main"
# Remove auto-start
rm -f ~/.config/autostart/dwellpy.desktop
# Remove desktop menu entry
rm -f ~/.local/share/applications/dwellpy.desktop
# Remove launcher script
rm -f ~/.local/bin/dwellpy
# Remove source code
rm -rf ~/.local/dwellpy
# Update desktop database
update-desktop-database ~/.local/share/applications 2>/dev/null || truepip3 uninstall dwellpyIf you're still having trouble:
- Check the Troubleshooting Guide
- Open an issue on GitHub
- Include your Linux distribution, desktop environment, and any error messages
Once Dwellpy is running, check out the Configuration Guide to adjust the settings for your needs.