]> git.lyx.org Git - lyx.git/blob - development/keystest/setup.sh
Adding binary path for Homebrew on MacOS-arm64 (bug 12619).
[lyx.git] / development / keystest / setup.sh
1
2 #This won't work on an RPM based distro. Easy to fix though.
3 sudo apt-get install xclip xvkbd wmctrl xvfb libqt4-dbg icewm #svn pylint
4 sudo adduser keytest < /dev/null
5
6 if ! grep keytest /etc/sudoers
7 then
8         echo allowing admin users to switch to keytest user
9         #echo '%adm ALL =(keytest) NOPASSWD: ALL' >> /etc/sudoers
10 fi
11 # cat /mnt/jaunty/etc/cups/printers.conf |grep -o '[^ ]*>$' |grep -v '^<'| sed 's/>$//'
12
13 #we should really handle each printer seperately, but this will work if they are similar 
14 if grep AllowUser /etc/cups/printers.conf
15 then
16         echo printer: using whitelisting, nothings needs be done.
17         exit
18 fi
19         
20 if grep DenyUser /etc/cups/printers.conf
21 then
22         echo There are already denied users. We do not support this yet, exiting
23         exit
24 fi
25
26 #(cd /etc/cups/ppd/ && ls *.ppd) | sed s/.ppd$// | while read L
27 cat /etc/cups/printers.conf |grep -o '[^ ]*>$' |grep -v '^<'| sed 's/>$//' | while read L
28 do
29         echo $L
30         echo lpadmin -p $L -u deny:keytest
31         lpadmin -p $L -u deny:keytest
32 done