custom network intefaces during boot for Debian
Hello Here is a script modification for /etc/init.d/networking in Debian so that your list of network interfaces can be reconfigured during boot. Why would you like to have a script like this? Well, in my case, I have a laptop with a lan based eth0 and a wifi based eth1. If I am not connected to a lan during boot, I have to wait for the network interface on eth0 to time out with its dhcp request. With this script, it displays the current network config and gives me a chance to modify it. Here is an example of the script running: bic:~# /etc/init.d/networking restart Current interfaces: auto lo eth1 Customize networking y Enter interfaces besides lo. eth0 lo eth0 New interfaces are: auto lo eth0 * /etc/network/options is deprecated. Setting up IP spoofing protection...done (rp_filter). Reconfiguring network interfaces...ifup: interface lo already configured Internet Software Consortium DHCP Client 2.0pl5 Copyright 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved. Please contribute if you find this software useful. For info, please visit http://www.isc.org/dhcp-contrib.html Listening on LPF/eth0/00:0d:60:b0:4e:50 Sending on LPF/eth0/00:0d:60:b0:4e:50 Sending on Socket/fallback/fallback-net DHCPREQUEST on eth0 to 255.255.255.255 port 67 DHCPREQUEST on eth0 to 255.255.255.255 port 67 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8 DHCPOFFER from 10.0.0.4 DHCPREQUEST on eth0 to 255.255.255.255 port 67 DHCPACK from 10.0.0.3 bound to 10.0.0.70 -- renewal in 21600 seconds. done. bic:~# Here is the modification: bic:/etc/init.d# diff -Naur networking.arc networking --- networking.arc 2006-02-16 10:39:20.0 -0500 +++ networking 2006-02-16 10:18:40.0 -0500 @@ -9,6 +9,26 @@ PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin +echo Current interfaces: +foo=`grep -e ^auto /etc/network/interfaces` +echo $foo +echo Customize networking +read userinput +if [ $userinput = y ] ; then + echo Enter interfaces besides lo. + save=$1 + read userinput + myinterfaces=lo $userinput + echo $myinterfaces + sed -i -e s/^auto\ .*/auto\ $myinterfaces/ /etc/network/interfaces + echo New interfaces are: + foo=`grep -e ^auto /etc/network/interfaces` + echo $foo +fi + + + + [ -x /sbin/ifup ] || exit 0 . /lib/lsb/init-functions -- John F. Davis JD http://www.skink.net
problem with cvsweb
Hello I need help configuring cvsweb. I installed cvs and cvsweb to my webserver. I created a small repository and I can add and remove files. However, when I use cvsweb to read the repository, it can not output the change logs for the individual files. i.e, http://www.skink.net/cgi-bin/cvsweb is my url. If you click on the files in repository, you get a error message about not being able to parse the RCS output. What is the deal? John Davis
ssh keys keep changing.
Hello I keep getting HOST IDENTIFICATION HAS CHANGED! errors. How do I prevent these errors and how do I ensure that my machines are not under attack from someone? On one machine, I get this message everytime I connect to it. I have tried to reinstall ssh via apt-get remove/install ssh, and I still get the error message everytime. John The facts, suit:~$ ssh mrfan @@@ @ WARNING: HOST IDENTIFICATION HAS CHANGED! @ @@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that the host key has just been changed. Please contact your system administrator. Add correct host key in /home/davis/.ssh/known_hosts to get rid of this message. Agent forwarding is disabled to avoid attacks by corrupted servers. X11 forwarding is disabled to avoid attacks by corrupted servers. Are you sure you want to continue connecting (yes/no)? no suit:~$ John Davis
perl says the year is 0100
hello I have the latest perl for slink, but perl reports the year is 0100. Any idea what I should do? John Davis
failed ppp setup
Hello I need help with a partially configured ppp server. I have dial in working, but I can't get ppp to start. Currently, I can login to the proposed ppp server (via the modem from another linux computer using minicom) and get a shell. However, when I try to login as the ppp user, I get a permission deinied error and ppp doesn't start. Here's the minicom log: login as: ppp password: /etc/motd snipped No mail. /etc/ppp/ppplogin: Permission denied --- The facts The computer/os info: Debian Linux slink (2.1 with latest patches installed.) i386 2.0.36 kernel Viking serial modem connected to COM1 (ttyS0). - The setup files and their contents - mgetty related - /etc/inittab: (relevant line only) s0:23:respawn:/sbin/mgetty ttyS0 -n1 /etc/mgetty/mgetty.config: (complete) debug 4 fax-id speed 38400 ppp related - /etc/ppp/options (complete file contents) asyncmap 0 crtscts lock modem debug proxyarp lcp-echo-interval 30 lcp-echo-failure 4 noipx lock domain johndavis.net /etc/passwd: (relevant line only) ppp:x:1003:30:ppp,,,:/tmp:/etc/ppp/ppplogin /etc/group: (relevant line only) dip:x:30:ppp /etc/shells:(relevant line only) /etc/ppp/ppplogin /etc# ls -l /usr/sbin/pppd -rwsr-xr-- 1 root dip105532 Jun 18 1998 /usr/sbin/pppd /etc/ppp/ppplogin: #!/bin/sh mesg -n stty -echo exec /usr/sbin/pppd -detach crtscts modem #exec /usr/sbin/pppd passive crtscts modem So that ppp is not started on boot, I have no_ppp_on_boot file in /etc/ppp John Davis
RE: telnet not working on home LAN
Hmm. I think its because 10.x.x.x domains are not routable. John -Original Message- From: Nathan E Norman [SMTP:[EMAIL PROTECTED] Sent: Wednesday, November 03, 1999 10:18 AM To: Patrick Kirk Cc: Debian User List Subject: Re: telnet not working on home LAN On Wed, 3 Nov 1999, Patrick Kirk wrote: : Hi all, : : Just put Debian on a second PC and having problems telnetting in from work. : : Trying 10.0.0.2... : Connected to 10.0.0.2. : Escape character is '^]'. : Connection closed by foreign host. : : Anyone know why I'm not getting a login? Is there a way to use the : connection...perhaps telnetd isn't installed but I thought it was. $ dpkg -l telnetd will verify your assumption To solve your problem, comment out the line ALL: PARANOID from /etc/hosts.deny -- Nathan Norman MidcoNet 410 South Phillips Avenue Sioux Falls, SD mailto:[EMAIL PROTECTED] http://www.midco.net finger [EMAIL PROTECTED] for PGP Key: (0xA33B86E9) -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null
fetchmail, sendmail, and mutt and sending mail with the correct a ddress
Hello I thought I had my mail system setup correctly, but then I noticed a problem. When I send mail from my linux box (which is connected to the internet via ppp,) it sends mail as if its coming from suit.ntrnet.net which is wrong. Suit is my hosthame and ntrnet.net is my isp domain. Ntrnet doesn't know about my hostname and thus can't forward mail to me. How can I configure my mailsystem so it sends mail as if its from ntrnet.net? ie., [EMAIL PROTECTED] instead of [EMAIL PROTECTED] Do I need to mess with the sendmail configuration, fetchmail, or mutt? Clueless in NC - John
Looking for GCC developer and compiler backend people
Hello I work for a company that wants to hire a couple of gcc developers. This jobs requires some heavy thinking. You will be writing/modifying C/C++ compilters and must be comfortable with the GNU tools. If you got what it takes, please drop me a line. I'll forward your resume to the appropiate folks. Thanks. ps. I'm an engineer just like you and not a headhunter.
small fonts in Netscape packaged with Slink
Hello Why is that even though I have both the 75dpi and 100dpi fonts installed for X windows, Netscape still uses tiny unreadable fonts?
vim 5.3, gzip files, and Debian Slink
Hello I recently discovered that vim allows editing of gzip'd files. However, in my case, this capability is only available on my stock debian installation where I installed the vim package and not on my custom debian installation where I installed/Make'd vim myself. I tried to rebuild/config/make vim with gzip options, but I couldn't find any such option. (I searched for gzip, and gz in the man page of vim, the vim Makefile, vim feature.h, and vim configure but never found it.) I did notice that vim --version on the two machines were slightly different. The most obvious of which was that the stock debian version included a -DDEBIAN switch. I also looked for that define in the vim source config files, but I didn't find it either. Does Debian somehow do something to the gzip files before vim edits them or something? Is magic involved? Many Thanks.
make-kpkg doesn't make different kernel source revs.
Hello Why is that when I build a new kernel via make-kpkg, it doesn't make a new kernel rev. Scenario: Previously, I built a new kernel using: make-kpkg --rev Custom.1.0 kernel_image This command built my kernel and put an file in my /usr/src directory called. kernel-image-2.0.36_1.00_i386.deb. Then I built a newer kernel using: make-kpkg --rev Custom.2.0 kernel_image This command did change the date on the existing kernel package but did not call it kernel-image-2.0.36_2.00_i386.deb nor did it put the word custom in file name either. Is this the way this thing is supposed to work? Other simple questions: 1. When I used to do regular kernel builds, I used to do a make dep; make clean; make zImage, make modules; make modules_install. If I build kernels the debian way (aka make-kpkg), do I still need to do this? How about cleaning or rebuilding the dependicy list? ie. do I need to a make clean; make dep before I do the make-kpkg? 2. Does apt-get dist-upgrade get new kernel patches? Is there a way to get new kernel patches?
pcmcia and the debian way.
Hello This is somewhat related to my previous question concerning make-dpkg. Please correct me if I am wrong, but these are the steps I used to get my laptop working with a 3COM pcmcia ethernet card. I am still somewhat confused by this process and I would like to get confirmations on the process. In fact, I'd like to help document it for an official debian document if possible. All of this was done using kernel 2.0.36. 1. Installed pcmcia source from cd 2. 2. In /usr/src/modules/, i did a make-kpkg modules image. 3. In /usr/src/modules/pcmcia-cs, I did a debian/rules binary. 4. In /usr/src/linux, I did a make menuconfig Notable switches of interest were, Loadable Module Support - Enable Loadable Module Support - YES Loadable Module Support - Kernel Daemon Support - YES Network Device Support - Dummy NetDriver Support - YES (MODULE) Network Device Support - Ethernet 10/100 Support - YES 5. In /usr/src/linux, I did a make-kpkg -rev PcmciaTry.1 kernel_image. (Which did make a new kernel deb package, but it didn't include the name PcmciaTry in the file name.) Brian Servis on this list told me that the Pcmcia string probably didn't show up in the name because it didn't recognize the -rev switch. I only used the -rev switch, becuase the -r switch was unrecognized and that's what the how/faq said to use. 6. In /usr/src/, I did a dpkg --install _kernel_image_name. 7. Reboot. 8. In the /usr/src/modules/, I did a dpkg --install _pcmcia_module_image_name 9. In the /usr/src, I did a dpkg --install _pcmcia_modules_images_name. Note, I can't remember the names exactly for the two different files in step 8 and 9, but they were different. Results, this did get my pcmcia ether card working. Looking back on the steps and reading Brian's helpfull, text, I should have added a make-kpkg clean between steps 4 and 5. Is there anything else that's obvious? Lastly, if I get the latest pcmcia source using apt-get, do I need to get a newer kernel source?
cracklib
Hello I get messages in my root mailbox about cracklib. It always prints the same two numbers. What does this mean?
intall hang: 'unknown pci device'
Greetings! I know this is a classic problem but I don't know how (or if) it can be circumvented. I've bought a nice new laptop and have partitioned it with win95 and OS/2 and thought I'd make a trio and put Linux on it. (Note: I'm not a _complete_ newbie to Linux - I've recompiled the kernel and futzed about but I'm not a veteran either; my domicile is in OS/2 land.) When I use my trusty bootdisk (which I made months ago for my desktop machine), it _hangs_ on the error: WARNING: UNKNOWN PCI DEVICE (1039:5107). PLEASE READ INCLUDE/LINUX/PCI.H The system, purchased from AT-Computers (http://www.montananet.com), is: Sager Computers Laptop (NP6287A) P166MMX PnP System Soft SiS-510X (6x00-05-13) BIOS Ver: 1.01.26 05-13 Date: 06/16/97 Is there hope for a workaround? If I can't run Linux I have to consider returning the system. Probably won't return it but is that the prospect I'm facing? Can I find something in pci.h - I haven't had a chance to look on my desktop machine - which I could remove and still boot? (Oh, and I sent a message to [EMAIL PROTECTED]) I'd _really_ appreciate some help. Felmon Davis --- Felmon John Davis [EMAIL PROTECTED] [EMAIL PROTECTED] Union College / Schenectady, NY meine meinung ist mir os/2 - ma kauft koi katz em sack --- -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .