System :: cups-1.3.5



Thanks - so far I've managed to script creating folders in /var, copying default conf files to /etc if they are not in the backup and starting the cups scheduler.

The final hurdle is starting the cups browser interface in firefox:
Code Sample
$ firefox http://localhost:631

starts the browser interface, but it looks "weird" and various buttons are missing. This does not happen if I load the same draft extension and enter the various commands manually.

Any ideas? Edit: fixed, I'd deleted some files I shouldn't have deleted in ../share/docs/cups

One of the last remaining issues before I can submit the extension is that /usr/bin/lp, lpr, lpstat & /usr/sbin/lpc need to be replaced with symlinks to /opt/cups-1.3.5/bin/ for printing to work from some applications (or perhaps just removed, if I make symlinks from /opt/cups-1.3.5/bin/ --> /opt/bin).

For ease of use, it might make sense if the menu item/icon script does the above, but then the original files will be missing when the extension is unloaded. I guess I could also make an uninstall menu item/icon script to put them back, but then things start to get longwinded.

Any comments?

Almost forgot - is there are way to test if the root password is set and prompt to set it if not? Did I see somewhere that the latest versions of dsl have a password script?

I am not on my DSL box, but here is what may work for setting a password:


#!/bin/bash

if ! sudo passwd -S root | grep P; then
sudo passwd
fi

It may have to be tweaked for DSL with Busybox and such, but it is an idea.  It works from a terminal in another distro.

Quote
Almost forgot - is there are way to test if the root password is set and prompt to set it if not? Did I see somewhere that the latest versions of dsl have a password script?

One thing you could try is to grep for "secure"  in /proc/cmdline (maybe showbootcodes | grep secure?). That would cover what's set at boot, but not after.

EDIT: Jason beat me -- I was going to add that a grep to passwd should be adequate for this.

Thanks - I'm away from a dsl machine at the moment so I cannot check this out at the moment. If the root password had not been set, then the script would have to open a terminal window for the user to be able to enter a password, no?
Next Page...
original here.