mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-25 14:30:11 +00:00
Compare commits
2 Commits
8d84574c27
...
367f9fa07b
Author | SHA1 | Date | |
---|---|---|---|
|
367f9fa07b | ||
|
8e935fbcc0 |
28
core/tabs/utils/printers/install-cups.sh
Normal file
28
core/tabs/utils/printers/install-cups.sh
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
#!/bin/sh -e
|
||||||
|
|
||||||
|
. ../../common-script.sh
|
||||||
|
|
||||||
|
# Function to install CUPS for printers
|
||||||
|
installCUPS() {
|
||||||
|
clear
|
||||||
|
|
||||||
|
case "$PACKAGER" in
|
||||||
|
pacman)
|
||||||
|
"$ESCALATION_TOOL" "$PACKAGER" -S --noconfirm cups
|
||||||
|
;;
|
||||||
|
apt-get | nala)
|
||||||
|
"$ESCALATION_TOOL" "$PACKAGER" install -y cups
|
||||||
|
;;
|
||||||
|
dnf)
|
||||||
|
"$ESCALATION_TOOL" "$PACKAGER" install -y cups
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
printf "%b\n" "${RED}Unsupported package manager ${PACKAGER}${RC}"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
checkEnv
|
||||||
|
checkEscalationTool
|
||||||
|
installCUPS
|
|
@ -1,29 +1,31 @@
|
||||||
#!/bin/sh -e
|
#!/bin/sh -e
|
||||||
|
|
||||||
. ../../common-script.sh
|
. ../../common-script.sh
|
||||||
|
. ./install-cups.sh
|
||||||
|
|
||||||
# Function to install drivers for Epson printers
|
# Function to install drivers for Epson printers
|
||||||
installEpsonPrinterDriver() {
|
installEpsonPrinterDriver() {
|
||||||
clear
|
clear
|
||||||
|
|
||||||
case "$PACKAGER" in
|
case "$PACKAGER" in
|
||||||
pacman)
|
pacman)
|
||||||
"$AUR_HELPER" -S --noconfirm epson-inkjet-printer-escpr
|
"$AUR_HELPER" -S --noconfirm epson-inkjet-printer-escpr
|
||||||
;;
|
;;
|
||||||
apt-get|nala)
|
apt-get | nala)
|
||||||
"$ESCALATION_TOOL" "$PACKAGER" install -y printer-driver-escpr
|
"$ESCALATION_TOOL" "$PACKAGER" install -y printer-driver-escpr
|
||||||
;;
|
;;
|
||||||
dnf)
|
dnf)
|
||||||
"$ESCALATION_TOOL" "$PACKAGER" install -y epson-inkjet-printer-escpr
|
"$ESCALATION_TOOL" "$PACKAGER" install -y epson-inkjet-printer-escpr
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
printf "%b\n" "${RED}Unsupported package manager ${PACKAGER}${RC}"
|
printf "%b\n" "${RED}Unsupported package manager ${PACKAGER}${RC}"
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
checkEnv
|
checkEnv
|
||||||
checkEscalationTool
|
checkEscalationTool
|
||||||
checkAURHelper
|
checkAURHelper
|
||||||
|
installCUPS
|
||||||
installEpsonPrinterDriver
|
installEpsonPrinterDriver
|
||||||
|
|
|
@ -79,6 +79,12 @@ script = "monitor-control/set_resolutions.sh"
|
||||||
[[data]]
|
[[data]]
|
||||||
name = "Printers"
|
name = "Printers"
|
||||||
|
|
||||||
|
[[data.entries]]
|
||||||
|
name = "Install CUPS"
|
||||||
|
script = "printers/install-cups.sh"
|
||||||
|
description = "This script will install the CUPS system, required for most printer drivers on Linux."
|
||||||
|
task_list = "I"
|
||||||
|
|
||||||
[[data.entries]]
|
[[data.entries]]
|
||||||
name = "Install Epson printer drivers"
|
name = "Install Epson printer drivers"
|
||||||
script = "printers/install-epson-printer-drivers.sh"
|
script = "printers/install-epson-printer-drivers.sh"
|
||||||
|
|
|
@ -143,6 +143,7 @@ For more information visit: https://rpmfusion.org/
|
||||||
|
|
||||||
### Printers
|
### Printers
|
||||||
|
|
||||||
|
- **Install CUPS**: This script will install the CUPS system, required for most printer drivers on Linux.
|
||||||
- **Install Epson printer drivers**: This script will install the Epson printer drivers.
|
- **Install Epson printer drivers**: This script will install the Epson printer drivers.
|
||||||
|
|
||||||
### User Account Manager
|
### User Account Manager
|
||||||
|
|
Loading…
Reference in New Issue
Block a user