Settings not saved or restored


Forum: Other Help Topics
Topic: Settings not saved or restored
started by: WoofyDugfock

Posted by WoofyDugfock on Sep. 27 2004,13:02
Having heroically worked out how to configure the web proxy settings, connect to the net via my LAN and connect to my LAN printer (with the generous help of posters on this board), I now find I can't seem to save my settings, despite hours of searching on this board and the web and various experiments.

Here are the steps I am trying in detail in as far as I am able to determine these - I've put questions in square brackets to make my depraved confusion explicit and all the more humiliating:


1. Open a shell
Type " sudo su "  to become root
Type " cd /opt "
Type " scite bootlocal.sh "

Enter the following lines in bootlocal.sh and save, substituting the appropriate numbers for expressions between apostrophes:

ifconfig eth0 'my_internal_ip' netmask '255.255.255.0' broadcast 'lan_broadcast_addr'
route add default gw 'My internal gateway ip'
export PRINTER='MyLANPrinterName'.

[But where does nameserver go (is there a resolve.conf as for Red Hat?)? Where are the 'MyLANPrintersName' settings that I
made and how are these backed up?]

2. Open filetool.lst and ensure that the following lines are present so that bootlocal will load the internet connection details and dillo & wgetrc load the web proxy address:

/opt/bootlocal.sh
/home/dsl/.dillo
/home/dsl/.wgetrc

3. Save filetool.lst to the backup media eg floppy.

[Why do posters say this and not just hit the backup function to floppy  doesn't make sennse - what is the point of the backup.tar.gz created by the backup/restore function if we don't use it? Also - where is bootlocal.sh backed up?].

4. Re-boot via F2 options > select dsl restore={floppy}.

And it doesn't work.  


----------------------------------------------------------
'We don't need know stinkin' Windows' - Jack Messman (Novell)

< http://news.zdnet.co.uk/software/linuxunix/0,39020390,39149796,00.htm > :angry:

Posted by henk1955 on Sep. 27 2004,13:22
1. there is a /etc/resolv.conf
add a line like
Code Sample

echo "nameserver yournameserver" >/etc/resolv.conf

i have no experianvce on LANprinters only the printer from dsl

2. right.

3. you have two options:
a. do a manual backup ( use the backup-button)
b. have an automatic backup at shutdown( add /opt/shutdown.sh
    to the filetool.lst, remove the # infront of the line:
    filetool.sh backup noprompt)
all files named in filetool.lst are packed into the file backup.tar.gz on the device you selected for backup.

4.
Quote
dsl restore={floppy}

i think you should use restore=floppy ( no spaces, no brackets)

Posted by ke4nt1 on Sep. 27 2004,13:28
Another possible issue,

My backup.tar.gz is over 100MB in size..
restore=floppy just won't work for me ever..
( or just "restore", since the floppy is the default unless you entered another location in your startup string )

Backups during shutdown should be automatic/default since DSL 0.8

73
ke4nt

Posted by cbagger01 on Sep. 27 2004,16:08
Automatic backups was not true for my DSL 0.8.1.1 USB poorman's install.

In order to activate automatic backups I needed to type:

sudo scite /opt/powerdown.sh

and remove the "#" at the beginning of the filetool line.

From then on it worked fine.

Posted by ke4nt1 on Sep. 28 2004,12:20
Yep, your right..

I must have been carrying over an edited version of powerdown.sh
thru versions inside my backup.tar.gz ..

73
ke4nt

Posted by WoofyDugfock on Sep. 29 2004,10:05
Okay, I've:

1. Added Henk1955's line to bootlocal.sh - to write nameserver "MynameserverIP" to resolv.conf;

2. Abandoned the floppy in favour of backing up to a hard disk and have used the backup/restore function, minus the {}.

AND IT WORKS!! (woof woof!)  All net settings & webproxy files are restored and loaded. Phew.  Thanks to all respondents especially Henk1955.

Now for the NEXT problem.  I can now configure my printer settings and print across the LAN no problem but these settings are not being restored properly somehow.  This is what I have done - I've added the following to filetool.lst - I named my printer HPlaserJ5000 during the original setup & appsfilter creates/alters these three files (maybe more - but the appsfilter screed only mention s 2 files but gives locations for these that don't seem to exist in DSL???):

opt/apsfilter/HPLaserJ5000/appsfilterrc
opt/apsfilter/HPLaserJ5000/smbclient.conf
opt/printcap

I boot with dsl restore=hd and start the printer driver from right-click>System>.., then open a textfile in Ted.  Ted has the printer name in its little box and cat /opt/printcap shows this ok.  About this time, the little oscilloscope above the slit goes haywire and fills with a band of red squiggles of down-arrow activity.  This lasts at least 4 minutes before dying off (sometimes, otherwise I have to reboot to stop it).  Typing nestat -an shows a number of connections established to different inodes (where - on our LAN?)

What is going wrong here?  Is there something else that needs to be backed up eg other samba files? Does samba need to be launched somehow during the restore?

FYI re my appsfilter setup if it helps: I am printing to this HP printer across the LAN via these options: generic PS driver, WinNT/Samba, and I know the netBIOS name of the printer server and the printer share name by looking at the printer's setup in stinkin' Windows.  I know the printer server's ip by looking at netstat-an in stinkin' Windows2k while printing. I log on with an account (not guest).

Hoping you can assist ....

--------------------------------------------------------------
"We don't need no stinkin' Windows"

Posted by henk1955 on Sep. 29 2004,10:46
i did not put my lp settings in filetool.lst (but it is still posible), i createad a spool_lp.tar.gz. it is loaded at startup like if it where a dsl extension.
it contains
Quote

/opt/apsfilter/
/opt/printcap
/var/spool/lpd/lp/acct
/var/spool/lpd/lp/control.pr
/var/spool/lpd/lp/lock
/var/spool/lpd/lp/log
/var/spool/lpd/lp/status
/var/spool/lpd/lp/status.pr

all the files in /var/spool/lpd/lp have 0 bytes. i create the tar.gz right after setting up the printer
as you may note my printer is called lp
to avoid the need for manual starting of the printer, i added lpd to the bootparams at start up
and lpc reread to bootlocal.sh

Posted by WoofyDugfock on Sep. 29 2004,12:25
Thanks Henk1955.  Duh, the printspooler. Thought there had to be something else. Pity appsfilter onscreen documentation doesn't bother mentioning it as files created/altered.

In case it just might work I've tried adding these lines to filetool.lst:

/var/spool/lpd/LaserJ5000/acct
/var/spool/lpd/LaserJ5000/control.pr
/var/spool/lpd/LaserJ5000/lock
/var/spool/lpd/LaserJ5000/log
/var/spool/lpd/LaserJ5000/status
/var/spool/lpd/LaserJ5000/status.pr

As well I added 'lpc reread' to bootlocal.sh.  I wasn't sure how to add lpd to bootparams, so I didn't.

Anyway it hasn't worked - get the same result as before: much red sqiggle activity and no printing.

So, back to the Henk1955 method: presumably I can create a spool_HPLaserJ5000.tar.gz that is analogous to yours with Ted and then use tar and gzip commands as per < http://heather.cs.ucdavis.edu/~matloff/UnixAndC/Unix/Tar.html >

Sorry - hopefully the last questions on this topic:

1. Where do I save spool_HPLaserJ5000.tar.gz?
2. How so I load it at startup - can this be automatic?
3. How do I add lpd to bootparams?

If I get this working I promise to write a keep-it-simple-stupid "How to" for other newbies in the same situation and post it.

-----------------------------------------------------

'We don't need no stinkin' Windows' -
< http://news.zdnet.co.uk/software/linuxunix/0,39020390,39149796,00.htm >
:O

Posted by henk1955 on Sep. 29 2004,13:31
1. and 2.
if you save it in the same location as you save the dsl-extension  that automaticly load at startup, it loads automaticly at startup.
the location where to put files that you want loaded is explained (in better english) in "Getting Started With DSL 0.8.1 - myDSL - Seamless Extensions for DSL
3.
a. if you are a livecd user then at boot type: dsl lpd ...all the other you type
b. if your frugal, poorman's user add it to lilo.conf
c. if dos-loadlin then add to loadlin.par

btw.
i save all of /opt/apsfiilter
may thats diferent from you?

Posted by WoofyDugfock on Sep. 29 2004,13:56
Thanks again Henk1955 - you're a great help.  I'll try this tomorrow.

BTW, where is "Getting Started With DSL 0.8.1 - myDSL - Seamless Extensions for DSL".  I've looked for this before - not in the FAQ or on the home page? Is it on the dsl site?

Posted by henk1955 on Sep. 29 2004,15:06
if you start dsl a diilo pops op look at it
Posted by WoofyDugfock on Sep. 30 2004,14:17
Thanks I found the "getting started with mydsl ..." etc.

Today's tries:

Reinstalled my printer settings, removed printer lines from filetoll.lst, backed up, made a spool_HPLaserJ5000.tar.gz as suggested and put it on my hd 'hdb1' where my backup.tar.gz is.  Rebooted via F2 options and typed:

dsl lpd restore=hdb1 dsl mydsl=hdb1

which shows 'lpd started' and 'done' for restore on boot scroll screen. Don't think I saw any message about mydsl though.

{is this the right way to enter it? I also tried:
dsl lpd mydsl=hdb1 restore=hdb1 and got a whole lot of cloop errors and my mouse wouldn't work}.

But get the same problem - lots of squiggles above the slit - and this way Ted doesn't see the printer at all.

Also tried putting opt/appsfilter in filetool.lst instead of full path to appsfilterrc and smbclient.conf as suggested.  Get same result as above.

Sigh. :(

Posted by henk1955 on Sep. 30 2004,15:11
Quote
dsl lpd restore=hdb1 dsl mydsl=hdb1

the "dsl" in the middle should not be there.
do you have any extension in /mnt/hdb1 ?

i have no explanation for
Quote
dsl lpd restore=hdb1 dsl mydsl=hdb1
not working it should work. but a typo in the restore= part is fatal
i have set up a smb printer myself. test it. and it worked.
this is the important part of my filetool.lst ( so this time i do NOT use a printer.tar.gz settings file)
Code Sample
/opt/apsfilter
/opt/printcap
/var/spool/lpd

after reboot the printer works.
i test printing from xterm:
lpr -Pprintername filetool.lst (to print filetool.lst)

Posted by WoofyDugfock on Oct. 01 2004,10:19
Success!!! Thanks Henk!

I put these lines just as they are in filetool.lst, set up the printer and backed up to hdb1:

opt/apsfilter/
opt/printcap
var/spool/lpd/

Reboot with dsl lpd restore=hdb1  AND BINGO.  All of appsfilter was succesfully restored.  I think I had typed something wrong before.  Also, I didn't have "/" on the end of var/spool/lpd before. I'm not sure if it made any difference but I removed the line export PRINTER=HPLaserJ5000 line from bootlocal.sh since Ted apparantly does not need it to see the printer automatically once the driver has started (perhaps this was necessary in an earlier build of dsl?).But the burst of red squiggle activity is STILL there but it does not prevent successful printing and it dies down after a few minutes.  Is it conceivably my printer driver trying to do something defective while it starts? Could it be something to do with my net settings? Typing netstat -an while it is going shows a connection to a server on port 80, not my final external ip according to www.whatismyip.com, presumably beyond my default gateway/webproxy although this path is not shown in netstat. This is a bit puzzling - I will check out this ip though and do a tracert  to it.

Posted by roberts on Oct. 01 2004,19:18
The export of PRINTER name is still a good idea. Ted may not use it but other apps surely will.
The activity you mention on port 80 is normal. When Ted is started DSL is trying to fetch the Ted help files and has nothing to do with your printer driver.

Posted by WoofyDugfock on Oct. 04 2004,11:40
Thanks Roberts.  I will reinsert the export PRINTER=HPLaserJ5000 into bootlocal.sh.

Arin whois says the external ip is the Univ of North Carolina, which I guess is where the Ted help files live. Must take a while to get these over a slowish connection.

Since I haven't yet added a desktop firewall to DSL I still have a suspicion (inherited from years of stinkin' Windows) of connections being established without my knowledge. But Ted help files are fine. :)

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.