Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (6) </ 1 2 [3] 4 5 6 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: cups-1.3.5, /var and epsgs< Next Oldest | Next Newest >
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: April 02 2008,05:24 QUOTE

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
Back to top
Profile PM 
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: April 02 2008,12:58 QUOTE

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?
Back to top
Profile PM 
Jason W Offline





Group: Members
Posts: 260
Joined: Nov. 2006
Posted: April 02 2008,15:05 QUOTE

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.
Back to top
Profile PM 
lucky13 Offline





Group: Members
Posts: 1478
Joined: Feb. 2007
Posted: April 02 2008,15:06 QUOTE

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.


--------------
"It felt kind of like having a pitbull terrier on my rear end."
-- meo (copyright(c)2008, all rights reserved)
Back to top
Profile PM WEB 
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: April 02 2008,17:51 QUOTE

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?
Back to top
Profile PM 
29 replies since Feb. 10 2008,10:11 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (6) </ 1 2 [3] 4 5 6 >/
reply to topic new topic new poll
Quick Reply: cups-1.3.5

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code