-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCups-setup.sh
55 lines (40 loc) · 1.33 KB
/
Cups-setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/bash
echo "Installing Cups and Extra Pakages..."
sudo pacman -S --noconfirm cups cups-filters cups-pdf cups-pk-helper libcups
sudo systemctl start cups
sudo systemctl enable cups
echo "Installing avahi and nss-mdns for printer discovery"
sudo pacman -S --noconfirm nss-mdns avahi
sudo systemctl start avahi-daemon
sudo systemctl enable avahi-daemon
echo "Setup /etc/nsswitch.conf"
sudo cp /etc/nsswitch.conf /etc/nsswitch.conf.backup
sudo cp nsswitch.conf /etc/nsswitch.conf
echo "Updated /etc/nsswitch.conf:"
cat "$file" | grep "hosts:"
echo "Installing system-config-printer for GUI support"
sudo pacman -S --noconfirm system-config-printer
while true; do
read -p "Do you want to install footmatic & gutenprint generic printer driver? (y/n) " yn
case $yn in
[yY] ) echo ok, we will proceed;
break;;
[nN] ) echo exiting...;
exit;;
* ) echo invalid response;;
esac
done
echo Installing Driver...
sudo pacman -S --noconfirm foomatic-db-nonfree-ppds foomatic-db-nonfree foomatic-db-ppds foomatic-db gutenprint foomatic-db-gutenprint-ppds
while true; do
read -p "Do you want to install samsung printer driver(This will need yay)? (y/n) " yn
case $yn in
[yY] ) echo ok, we will proceed;
break;;
[nN] ) echo exiting...;
exit;;
* ) echo invalid response;;
esac
done
echo Installing Driver...
sudo yay -S splix samsung-unified-driver