WoodCentral Forums

Est. 1998 — 27 years of woodworking knowledge

Half of computers currently in use are about to become scrap this month

Posts

Re: Half of computers currently in use are about to become scrap this month

#26

I haven't had a windows machine since windows 7 - and then it was my wife's machine, I just maintained it.
Been running linux since around 2002 which is when it was getting easy to install and maintain - package managers for installation and upgrades, etc.

Re: Half of computers currently in use are about to become scrap this month

#27

admin

@John in NM,

Cool. What distro would you recommend for those with zero Linux experience and would like to install and try it as an alternative to Windows?

Re: Half of computers currently in use are about to become scrap this month

#28

I tend to stick to PCLinuxOS with a KDE desktop environment because I dislike change for the sake of change :D

It is friendly to casual users and easy to install with a little research about the choices one makes (like partitioning - these days I just do the recommended single large partition).  The latest machine I set up has a UEFI boot and the OS handled it fine.  I've been using this OS since around 2005.  I'm sure if one is into the whole Ubuntu kind of experience and used to it, that is what one tends to stick to.

The main thing when choosing a distro is to pick a popular one that will have a robust development approach and keeps up to date on hardware compatibility.  Worst case, if the OS doesn't function well with your hardware, you just install an alternate, wiping out the one you didn't like.  That has been less of a problem the last decade or so though.  The newer machine I set up came from Star Labs with MXLinux pre-installed.  I expect I would have stuck with that if I didn't have a long history and comfort level with PCLinuxOS.

The one thing I still tend to have trouble with is getting printers to work with linux machines.  I think it's that new printers come out so rapidly (or they did last time I struggled with it) that there weren't specific drivers in the linux repositories (where your OS gets software following the basic install) for the one you had.  That meant using a "close enough" version that often wasn't or a generic driver that just didn't quite work.  The place I worked until 2015 was all linux and my machine simply worked with their network printer.  Not the case where I work now (they are enamored with macs).  But I really haven't kept up with this problem, as I don't need to print often at home and at work I just print from the work issued mac and do most of my work on my personal linux machine.

Re: Half of computers currently in use are about to become scrap this month

#29

Peter Martin

585279527_796833006681663_6837025078106748364_n_928.jpg

Re: Half of computers currently in use are about to become scrap this month

#30
John in NM wrote:

I tend to stick to PCLinuxOS with a KDE desktop environment because I dislike change for the sake of change :D

It is friendly to casual users and easy to install with a little research about the choices one makes (like partitioning - these days I just do the recommended single large partition).  The latest machine I set up has a UEFI boot and the OS handled it fine.  I've been using this OS since around 2005.  I'm sure if one is into the whole Ubuntu kind of experience and used to it, that is what one tends to stick to.

The main thing when choosing a distro is to pick a popular one that will have a robust development approach and keeps up to date on hardware compatibility.  Worst case, if the OS doesn't function well with your hardware, you just install an alternate, wiping out the one you didn't like.  That has been less of a problem the last decade or so though.  The newer machine I set up came from Star Labs with MXLinux pre-installed.  I expect I would have stuck with that if I didn't have a long history and comfort level with PCLinuxOS.

The one thing I still tend to have trouble with is getting printers to work with linux machines.  I think it's that new printers come out so rapidly (or they did last time I struggled with it) that there weren't specific drivers in the linux repositories (where your OS gets software following the basic install) for the one you had.  That meant using a "close enough" version that often wasn't or a generic driver that just didn't quite work.  The place I worked until 2015 was all linux and my machine simply worked with their network printer.  Not the case where I work now (they are enamored with macs).  But I really haven't kept up with this problem, as I don't need to print often at home and at work I just print from the work issued mac and do most of my work on my personal linux machine.


my solution for this, saying this half in jest, is to be cheap. refurbished past generation wireless brother printer. Just luck. It became, to me, the only tolerable printer to have at some point in the past. 

the only other printer I've had that I actually liked was an old HP 12A. Cheap, super simple, but it was black and white and no wireless. I remember telling my wife how much of a pain she was being because she didn't want to have to plug her computer into anything to print. Now the printer resides to the left of me in the corner of the basement where I do most of my work when WFH. Now I don't want the kids or wife coming down to the basement, and using plugging a printer in as their excuse to voice every other measure of discontent that wouldn't have laid on me but for the opportunity to stand here printing.  

Being a runner is probably not a job anywhere these days, but I will gladly run printouts up on a somewhat regular basis.

Re: Half of computers currently in use are about to become scrap this month

Edited #31

Peter Martin

Below is a single self-contained Bash script that:

✅ Detects the user’s Linux distro (Debian/Ubuntu, Fedora/RHEL, Arch/Manjaro/EndeavourOS)
✅ Prompts the user to choose Install Everything or Clean Up Extras
✅ Runs the appropriate commands for that distro
✅ Is safe for beginners and easy to post or share

You can save this as

printer_setup.sh

or just paste it directly into a terminal.


🟦 UNIVERSAL PRINTER INSTALL / CLEAN-UP SCRIPT

Copy/paste the entire script:

#!/usr/bin/env bash
# Peter Martin, 2025-11-21, MIT License

set -e

echo "==========================================="
echo "  Universal Printer Setup / Clean-up Tool"
echo "==========================================="
echo
echo "1) Install EVERYTHING printing-related"
echo "2) Clean up / remove extra drivers"
echo "q) Quit"
echo
read -rp "Choose an option (1/2/q): " CHOICE

# --- Detect Distro --------------------------------------------------------

detect_distro() {
    if [ -f /etc/debian_version ]; then
        DISTRO="debian"
    elif [ -f /etc/fedora-release ] || [ -f /etc/redhat-release ]; then
        DISTRO="fedora"
    elif [ -f /etc/arch-release ]; then
        DISTRO="arch"
    else
        echo "Unsupported or unknown distribution."
        exit 1
    fi
}

# --- Install Everything: Debian ------------------------------------------

install_debian() {
    echo "Installing full printer support for Debian/Ubuntu/Mint/MX..."

    sudo apt update

    sudo apt install -y \
        cups cups-client cups-bsd cups-filters \
        avahi-daemon \
        ipp-usb \
        printer-driver-all \
        hplip hplip-data printer-driver-hpcups hplip-gui \
        system-config-printer

    sudo systemctl enable --now cups avahi-daemon ipp-usb
    sudo usermod -aG lpadmin "$USER"

    echo "Done. Reboot or log out/in to finish."
}

# --- Clean-up: Debian ----------------------------------------------------

cleanup_debian() {
    echo "Cleaning up extra drivers on Debian/Ubuntu..."

    read -rp "Remove ALL extra non-essential drivers? (y/n): " YN
    if [[ "$YN" == "y" ]]; then
        sudo apt purge -y printer-driver-all
    fi

    read -rp "Remove HP support (you don't own an HP)? (y/n): " YN
    if [[ "$YN" == "y" ]]; then
        sudo apt purge -y hplip hplip-data printer-driver-hpcups hplip-gui
    fi

    sudo apt autoremove -y
    echo "Cleanup completed."
}

# --- Install Everything: Fedora ------------------------------------------

install_fedora() {
    echo "Installing full printer support for Fedora/RHEL..."

    sudo dnf install -y \
        cups cups-libs cups-filters cups-browsed \
        avahi avahi-tools nss-mdns \
        ipp-usb \
        system-config-printer \
        gutenprint gutenprint-cups \
        hplip hplip-gui

    sudo systemctl enable --now cups.service
    sudo systemctl enable --now avahi-daemon.service
    sudo systemctl enable --now ipp-usb.service
    sudo usermod -aG lpadmin "$USER"

    echo "Done. Reboot or log out/in to finish."
}

# --- Clean-up: Fedora -----------------------------------------------------

cleanup_fedora() {
    echo "Cleaning up extra drivers on Fedora..."

    read -rp "Remove Gutenprint (non-HP drivers)? (y/n): " YN
    if [[ "$YN" == "y" ]]; then
        sudo dnf remove -y gutenprint*
    fi

    read -rp "Remove HP support (you don't own an HP)? (y/n): " YN
    if [[ "$YN" == "y" ]]; then
        sudo dnf remove -y hplip hplip-gui
    fi

    echo "Cleanup completed."
}

# --- Install Everything: Arch ---------------------------------------------

install_arch() {
    echo "Installing full printer support for Arch/Manjaro/EndeavourOS..."

    sudo pacman -Syu --noconfirm

    sudo pacman -S --noconfirm \
        cups cups-filters cups-pdf \
        avahi nss-mdns \
        ipp-usb \
        system-config-printer \
        gutenprint \
        foomatic-db-engine foomatic-db foomatic-db-nonfree \
        hplip

    sudo systemctl enable --now cups.service
    sudo systemctl enable --now avahi-daemon.service
    sudo systemctl enable --now ipp-usb.service
    sudo usermod -aG lpadmin "$USER"

    echo "Done. Reboot or log out/in to finish."
}

# --- Clean-up: Arch -------------------------------------------------------

cleanup_arch() {
    echo "Cleaning up extra drivers on Arch..."

    read -rp "Remove Gutenprint and Foomatic drivers? (y/n): " YN
    if [[ "$YN" == "y" ]]; then
        sudo pacman -Rns --noconfirm gutenprint foomatic-db-engine foomatic-db foomatic-db-nonfree cups-pdf
    fi

    read -rp "Remove HP support (you don't own an HP)? (y/n): " YN
    if [[ "$YN" == "y" ]]; then
        sudo pacman -Rns --noconfirm hplip
    fi

    echo "Cleanup completed."
}

# --- MAIN LOGIC -----------------------------------------------------------

detect_distro

case "$CHOICE" in
    1)
        case "$DISTRO" in
            debian) install_debian ;;
            fedora) install_fedora ;;
            arch)   install_arch ;;
        esac
        ;;
    2)
        case "$DISTRO" in
            debian) cleanup_debian ;;
            fedora) cleanup_fedora ;;
            arch)   cleanup_arch ;;
        esac
        ;;
    q|Q)
        echo "Exiting."
        exit 0
        ;;
    *)
        echo "Invalid choice."
        exit 1
        ;;
esac

echo
echo "All done!"

MIT License


📌 How to save and use this script

Save as:

printer_setup.sh

Make it executable:

chmod +x printer_setup.sh

Run it:

./printer_setup.sh

➤ Not cleaning up will NOT slow down your system in any noticeable way. Unneeded driver packages will be installed, but the space they use is negligible on modern computers. The worst case is a few background services using a tiny amount of memory.

🎉 This solves the biggest pain point for new Linux users

  • One script that works everywhere

  • Installs everything or cleans it up

  • Removes distro confusion

  • No more “Linux won’t detect my printer” headaches

👍 This page answered my questions

Your vote helps other woodworkers quickly find the answers and techniques that actually work in the shop.