Cups setup
Usb Bus durchreichen in lxc container
Abschnitt betitelt „Usb Bus durchreichen in lxc container“lxc.mount.entry: /dev/bus/usb dev/bus/usb none bind,create=dir 0 0Install cups
Abschnitt betitelt „Install cups“apt-get install cupscupsctl --share-printers --remote-adminsystemctl restart cupsInstall printer drivers
Abschnitt betitelt „Install printer drivers“Link unten ist für alle driver gleichzeitig.
wget https://download.brother.com/welcome/dlf006893/linux-brprinter-installer-2.2.4-1.gzgunzip linux-brprinter-installer-2.2.4-1.gzbash linux-brprinter-installer-2.1.1-1 DCP-195CAlles mit yes bestätigen und device URI -> A (Auto)
Cups einrichten
Abschnitt betitelt „Cups einrichten“Auf http://192.168.178.113:631/ gehen und Verwaltung. Username + Passwort: root + root PW. Drucker hinzufügen -> Brother DCP-195C -> Guide folgen. Am Ende über Drucker und test druck machen.
Scanner einrichten
Abschnitt betitelt „Scanner einrichten“Install Sane
Abschnitt betitelt „Install Sane“apt-get install saneapt install libusb-0.1-4 #wichtig für druckerFind Scanner
Abschnitt betitelt „Find Scanner“sane-find-scannerTry Scanner
Abschnitt betitelt „Try Scanner“scanimage -L #or for more info SANE_DEBUG_DLL=3 scanimage -LTest Scan
Abschnitt betitelt „Test Scan“scanimage --mode "24bit Color" --resolution 300 --format=pdf > doc.pdfscanimage --mode "Black & White" --resolution 300 --format=pdf > doc.pdfHilfe bei Fehlern
Abschnitt betitelt „Hilfe bei Fehlern“Unplug and Plug in again
Abschnitt betitelt „Unplug and Plug in again“Manchmal scheint es als wäre gerade nach Installationen besser, wenn man den Drucker ein und wieder einsteckt.
Falls Rechte fehlen für Drucker
Abschnitt betitelt „Falls Rechte fehlen für Drucker“ lsusb | grep -i brother | sed 's/://' | awk '{printf "/dev/bus/usb/%s/%s", $2,$4}' | xargs -i -t chmod 666 "{}" # Ergebnis ausführenList all files
Abschnitt betitelt „List all files“dpkg -L brscan3 | sortSane looking in wrong directory
Abschnitt betitelt „Sane looking in wrong directory“mkdir -p /usr/lib/x86_64-linux-gnu/saneln -s /usr/lib64/sane/libsane-brother3.so.1 /usr/lib/x86_64-linux-gnu/sane/libsane-brother3.so.1ln -s /usr/lib64/sane/libsane-brother3.so.1 /usr/lib/x86_64-linux-gnu/sane/libsane-brother3.soln -s /usr/lib64/libbrscandec3.so.1 /usr/lib/x86_64-linux-gnu/libbrscandec3.so.1ln -s /usr/lib64/libbrscandec3.so.1 /usr/lib/x86_64-linux-gnu/libbrscandec3.soldconfigprintf "usb 0x04f9 0x0222\n" > /etc/sane.d/brother3.confHost Scanner App
Abschnitt betitelt „Host Scanner App“Install NVM
Abschnitt betitelt „Install NVM“Link to repo: https://github.com/nvm-sh/nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bashnvm install --ltsnvm use --ltsInstall Bun
Abschnitt betitelt „Install Bun“Installation Guide: https://bun.com/docs/installation
apt install unzip -ycurl -fsSL https://bun.com/install | bash -s "bun-v1.2.21"Install pm2
Abschnitt betitelt „Install pm2“npm install pm2 -g