mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-22 05:12:27 +00:00
Merge 8e935fbcc0
into 696110eae5
This commit is contained in:
commit
6936e38493
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
|
31
core/tabs/utils/printers/install-epson-printer-drivers.sh
Normal file
31
core/tabs/utils/printers/install-epson-printer-drivers.sh
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
#!/bin/sh -e
|
||||||
|
|
||||||
|
. ../../common-script.sh
|
||||||
|
. ./install-cups.sh
|
||||||
|
|
||||||
|
# Function to install drivers for Epson printers
|
||||||
|
installEpsonPrinterDriver() {
|
||||||
|
clear
|
||||||
|
|
||||||
|
case "$PACKAGER" in
|
||||||
|
pacman)
|
||||||
|
"$AUR_HELPER" -S --noconfirm epson-inkjet-printer-escpr
|
||||||
|
;;
|
||||||
|
apt-get | nala)
|
||||||
|
"$ESCALATION_TOOL" "$PACKAGER" install -y printer-driver-escpr
|
||||||
|
;;
|
||||||
|
dnf)
|
||||||
|
"$ESCALATION_TOOL" "$PACKAGER" install -y epson-inkjet-printer-escpr
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
printf "%b\n" "${RED}Unsupported package manager ${PACKAGER}${RC}"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
checkEnv
|
||||||
|
checkEscalationTool
|
||||||
|
checkAURHelper
|
||||||
|
installCUPS
|
||||||
|
installEpsonPrinterDriver
|
|
@ -76,6 +76,21 @@ name = "Set Resolution"
|
||||||
description = "This script is designed to change the resolution of monitors connected to your system"
|
description = "This script is designed to change the resolution of monitors connected to your system"
|
||||||
script = "monitor-control/set_resolutions.sh"
|
script = "monitor-control/set_resolutions.sh"
|
||||||
|
|
||||||
|
[[data]]
|
||||||
|
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]]
|
||||||
|
name = "Install Epson printer drivers"
|
||||||
|
script = "printers/install-epson-printer-drivers.sh"
|
||||||
|
description = "This script will install the Epson printer drivers."
|
||||||
|
task_list = "I"
|
||||||
|
|
||||||
[[data]]
|
[[data]]
|
||||||
name = "User Account Manager"
|
name = "User Account Manager"
|
||||||
|
|
||||||
|
|
|
@ -141,6 +141,11 @@ For more information visit: https://rpmfusion.org/
|
||||||
- **Set Primary Monitor**: This script is designed to set a Primary monitor in your system
|
- **Set Primary Monitor**: This script is designed to set a Primary monitor in your system
|
||||||
- **Set Resolution**: This script is designed to change the resolution of monitors connected to your system
|
- **Set Resolution**: This script is designed to change the resolution of monitors connected to your system
|
||||||
|
|
||||||
|
### 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.
|
||||||
|
|
||||||
### User Account Manager
|
### User Account Manager
|
||||||
|
|
||||||
- **Auto Mount Drive**: This utility is designed to help with automating the process of mounting a drive on to your system.
|
- **Auto Mount Drive**: This utility is designed to help with automating the process of mounting a drive on to your system.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user