Re: resolve.conf specification
I like your script (I used to something very similar), but I have since modified mine to use the PPP_IPPARAM feature of later pppd's. In my /etc/ppp/peers/ispX file I just add the ipparam option which is passed to the ip-up/ip-down scripts. It made my life a bunch esier than trying to figure out who I called by with IP address I ended up with. D.L. On Mon, 7 Dec 1998, Jameson Burt wrote: #!/bin/bash # BEGINNING OF /etc/ppp/ip-up.d/dns-mail-news-time_jameson . # Some first line like the above is obligatory for run-parts. # This files controlling program, /etc/ip-up, sets the following # alpha-numberic variables, # PPP_IFACE # PPP_TTY # PPP_SPEED # PPP_LOCAL #LOCAL IP ADDRESS, NEEDED FOR DYNAMIC PPP # PPP_REMOTE # PPP_IPPARAM # case $PPP_REMOTE in 206.239*|206.55*) ###This is my ISP mnsinc.com. ##/bin/cp /etc/named.conf.mnsinc-version \ snipage # logger working with mnsinc.com\ #used for debugging this script. ;; 198.69.131*) ###This is my ISP pressroom.com. ##/bin/cp /etc/named.conf.pressroom-version \ more snipage # logger working with pressroom.com \ #used for debugging this script. ;; *) logger '/etc/ppp/ip-up: Oh no! Can not recognize \ the IP address of the now connected ISP provider.' ;; esac final snipage -- Jim Burt, NJ9L, Fairfax, Virginia, USA [EMAIL PROTECTED] http://www.mnsinc.com/jameson [EMAIL PROTECTED] (703) 235-5213 ext. 132 (work) / David Lutz --- [EMAIL PROTECTED] --- http://www.pobox.com/~lutzd \ | Those of you who think you know everything : KD6GNS Portland, OR | \ are annoying those of us who really do.: '97 Toyota Tacoma SR5 /
RE: PPP options for different providers - how ? (LONG Re:)
Sorry for being so late in getting this response out, but I was quite busy and away from my machine last week, so here it is for anyone wants it. In my situation I connect to two different ISP's. pppconfig works great for setting up the connection, but fails to handle /etc/hosts and /etc/resolv.conf so I wrote a little perl script to be called by ip-up/ip-down to take care of things. Included in this message is perl script and sample scripts for the ip-up.d and ip-down.d directories. I run a cache only nameserver on my machine while disconnected or connected to ISP-1, when I am connected to ISP-2 I use their nameservers. With this setup I do have to modify the files in /etc/ppp/peers created by pppconfig and make sure the ipparm option is included. (I remember when pppd didn't have that option and I had to figure out which ISP I was connected to by examining the local IP address, ipparam is much nicer.) So without further ado here are my sample scripts and the mkhost.pl script. Good Luck and Have FUN!!! D.L. - - - ip-up.d/00config-isp1 #!/bin/bash # # This script will set up our networking parameters for ISP-1. # # First bail out if this is not the connection to ISP-1! if [ $PPP_IPPARAM != ISP-1 ]; then exit 0 fi # Use my handy-dandy mkhost.pl script to adjust /etc/hosts and resolv.conf logger -p local2.info -t ip-up -i Setting up network files for ISP-1 /etc/ppp/mkhost.pl --ip=$PPP_LOCAL --domain=isp-1.com --name=`hostname` --nameserver=127.0.0.1 - - - ip-up.d/00config-isp2 #!/bin/bash # # This script will set up our networking parameters for ISP-2. # # First bail out if this is not the connection to ISP-2! if [ $PPP_IPPARAM != ISP-2 ]; then exit 0 fi # Use my handy-dandy mkhost.pl script to adjust /etc/hosts and resolv.conf logger -p local2.info -t ip-up -i Setting up network files for ISP-2 /etc/ppp/mkhost.pl --ip=$PPP_LOCAL --domain=isp-2.com --name=`hostname` --nameserver=nnn.nnn.nnn.nnn --nameserver=nnn.nnn.nnn.nnn - - - ip-down.d/00config-restore #!/bin/bash # # This script will restore us to a non-networking mode # logger -p local2.info -t ip-down -i Restoring network config files /etc/ppp/mkhost.pl --ip=127.0.0.1 --name=`hostname` --domain=private.net --nameserver=127.0.0.1 - - - /etc/ppp/mkhost.pl #! /usr/bin/perl # # mkhost.pl # David Lutz ([EMAIL PROTECTED]) # # This program is free for everybody (in every sense of the word). # Anybody can use/modify this program as they best see fit. # Have Fun and don't blame me if it deletes your root file system. # # Auto-Generate /etc/hosts and /etc/resolv.conf from template files. # Maybe even update /etc/hostname and set hostname(1). # # required: # --ip ip address in dotted four # --domain domain name # --nameshort hostname # --nameserver ip address of nameserver, can be listed multiple times # # optional: # --hostsfile template file for /etc/hosts # --resolvfile template file for /etc/resolv.conf # # These files can contain the follow macros which will be expanded. # %%IPADDR%% = --ip parameter # %%DOMAIN%% = --domain parameter # %%NAME%%= --name parameter # %%NSx%% = the x'th --nameserver parameter # # If --hostsfile or --resolvfile is specified these templates will # be used to auto-generate the output. # /etc/hosts: # 127.0.0.1localhost # %%IPADDR%% %%NAME%%.%%DOMAIN%% %%NAME%% # # /etc/resolv.conf # domain %%DOMAIN%% # nameserver %%NS1%% # nameserver %%NS2%% # nameserver %%NS3%% # # When creating /etc/resolv.conf any line that expands to # nameserver (null) # will not be included in the output. So you don't have to specify # all three nameservers. # use Getopt::Long; GetOptions( ip=s = \$Opt_ip, domain=s = \$Opt_domain, name=s = \$Opt_name, nameserver=s = [EMAIL PROTECTED], hostsfile=s = \$Opt_hostsfile, resolvfile=s = \$Opt_resolvfile, ); if( !defined $Opt_ip || !defined $Opt_domain || !defined $Opt_name || !defined $Opt_nameserver[0] ) { die You must specify ip, name, domain, and nameserver(s); } open HOSTS, /etc/hosts or die I can't open /etc/hosts: $!; open RESOLV, /etc/resolv.conf or die I can't open /etc/resolv.conf: $!; # Work on /etc/hosts first if( defined $Opt_hostsfile ) { open HOSTTMPL, $Opt_hostsfile or die I can't open $Opt_hostsfile: $!; while( HOSTTMPL ) { s/%%IPADDR%%/$Opt_ip/g; s/%%DOMAIN%%/$Opt_domain/g; s/%%NAME%%/$Opt_name/g; s/%%NS(\d)%%/$Opt_nameserver[${1}-1]/g; print HOSTS $_; } } else { print HOSTS EOH; 127.0.0.1\tlocalhost $Opt_ip\t$Opt_name.$Opt_domain $Opt_name EOH } # Now lets do /etc/resolv.conf if( defined $Opt_resolvfile ) { open RESOLVTMPL, $Opt_resolvfile or die I can't open $Opt_resolvfile: $!; while( RESOLVTMPL ) { s/%%IPADDR%%/$Opt_ip/g; s/%%DOMAIN%%/$Opt_domain/g; s/%%NAME%%/$Opt_name/g; s/%%NS(\d)%%/$Opt_nameserver[${1}-1]/g; print RESOLV $_ unless
Problems with StarOffice 5.0 Registration
Steve, I am having the same problem registering StarOffice 5.0 that you explained. When I try to do an online registration I get the HTML page and email with my Customer Number and Registration Key, but there is a failure. When I try to enter the Customer Number and Registration Key by hand the Enable Key button is greyed out. If you manage to get past this problem can forward on your solution. Thanks. D.L. / David Lutz --- [EMAIL PROTECTED] --- http://www.pobox.com/~lutzd \ | Those of you who think you know everything : KD6GNS Portland, OR | \ are annoying those of us who really do.: '97 Toyota Tacoma SR5 /
qt1g (= 1.30) where ???
Arrgh!!! Where is qt1g (= 1.30)? I can't find this package anywhere and it seems to be required for QWeb and KDE which I would like to try out. Thanks. D.L. / David Lutz --- [EMAIL PROTECTED] --- http://www.pobox.com/~david \ | Those of you who think you know everything : KD6GNS Portland, OR | \ are annoying those of us who really do.: '97 Toyota Tacoma SR5 / -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Re: [OFFTOPIC] rc5-race is running!
So far I have read a lot about everybody joining in, what name to run under and how to split the money. But I have only seen two URL's on where to get info for this. One is the at upenn.edu where I could only find a precompiled binary, but NO Documentation or Source Code. I also saw a reference to the stats Web Page, but that page had no reference to any Documentation or Source Code. Where can one find this vital info? I don't relish the idea of running a binary that is in constant communication with another host on the internet if I can't get my hands on some Documentation and Source Code. I am sure this exists somewhere on the net, but it would be nice if someone would post a pointer to it on the list here. Thanks. D.L. / [EMAIL PROTECTED]Virtual .sig file #2342371. You are \ \ David Lutz viewer number #63. Have a nice Day! / -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED]
Re: Set up PPP for two ISPs
My kludgy, but servicable and robust approach to this is to keep two sets of files. Mine are named *.isp1 and *.isp2. I then have two connect pre-scripts that simple copy all the correct files and then call the ppp-on script or whatever you use to start up ppp. The files of interest are: /etc/resolv.conf /etc/ppp/options (and any files referenced here, like chatscripts) /etc/ip-up(if you use them) /etc/ip-down Basically any file that you have to alter for the second ISP. As an example here is my ppp.aracnet script that I use to connect to aracnet.com: #!/bin/bash cp /etc/resolv.conf.aracnet /etc/resolv.conf cp /etc/ppp/options.aracnet /etc/ppp/options /etc/ppp/ppp.up I use an options file with chatscript built right in (Not much chatting to do with a PAP login), and ppp.up is basically just a loop that keeps trying to dial every 20 seconds or so until it finds the link up. It is sort of a poorman's redialler. I am sure that there are many fancy ways to this sort of thing, but this method has working steadily for me for about 3 years now. I suppose you could play tricks with some of the other files in /etc also. I am not sure how some programs like their hostname changing underneath them, so I leave HOSTNAME alone. Good Luck. D.L. / [EMAIL PROTECTED]Virtual .sig file #2342371. You are \ \ David Lutz viewer number #63. Have a nice Day! / On Mon, 30 Dec 1996, gli wrote: Dear Debian users, I am using Debian 1.2. I set up my box to connect to an ISP using PPP, I invoke the connection by the script pon, it all work out fine. Now I want to join another ISP. How do I set up my box, to connect to two ISP, one at a time? Please help. Godfrey -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED]
Re: Grrr! Dangling links in /usr/lib/
From [EMAIL PROTECTED] Wed Dec 18 22:25:06 1996 On Wed, 18 Dec 1996, David Lutz wrote: of Debian Packages. I would like to know how I can fix the problem however. Dselect swears that the binutils package is up-to-date and refuses to attempt to reload it. Does anybody have any suggestions? Reinstalling might indeed be a good thing. Get the binutils.deb file and use dpkg --install to install it. Christian This was exactly the thing. Thanks. I guess dselect was trying to out guess me. D.L. -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED]
Grrr! Dangling links in /usr/lib/
I am upgrading my mostly Debian 1.1 system to Debian 1.2. According to symlinks I have these dangling links: dangling: /usr/lib/libbfd.so.2.7.0.3 - libbfd.so.2.7.0.3.dpkg-tmp dangling: /usr/lib/libopcodes.so.2.7.0.3 - libopcodes.so.2.7.0.3.dpkg-tmp (Actually I have a few other, mostly in /usr/doc/..., but these are the most annoying.) I can no long compile/link any program. The compile always dies with this error message: /usr/i486-linux/bin/as: can't load library 'libbfd.so.2.7.0.3' I assume this is my fault as I upgraded my binutils without the use of Debian Packages. I would like to know how I can fix the problem however. Dselect swears that the binutils package is up-to-date and refuses to attempt to reload it. Does anybody have any suggestions? # ls -l libbfd* libopcodes* -rw-r--r-- 1 root root 290560 Oct 16 07:20 libbfd.a lrwxrwxrwx 1 root root 26 Dec 14 13:46 libbfd.so.2.7.0.3 - libbfd.so.2.7.0.3.dpkg-tmp -rw-r--r-- 1 root root49882 Oct 16 07:21 libopcodes.a lrwxrwxrwx 1 root root 30 Dec 14 13:46 libopcodes.so.2.7.0.3 - libopcodes.so.2.7.0.3.dpkg-tmp Thanks, D.L. -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED]