Exim & global procmailrc
Hello If I set up a global /etc/procmailrc file for using spamassassin, it seems to be ignored (ie, spamassassin doesn't ever get run). So is there any setting that needs to be changed / made to the plain vanilla exim of the testing distribution to allow this? Cheers, Sven PS: Please CC: me -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Mail cleaning script
Dear Debian Mates (I'd like to be CC'ed on replies) I am looking for a script that cleans out mails contained in the mail-files in /var/spool/mail/ that are older than a specific date, say 6 months, for example. Is there any such beast? Cheers, Sven
ipchains and logging to the console
Hi fellow debs Short and simple question: How can ipchains be told not to log to /dev/console? It can get quite annoying when your terminal gets all messed up with packet logs ... Cheers! Sven -- Powered by Debian GNU/Linux
Re: [OT] Perl: exec and $variables
On Sat, Jul 21, 2001 at 10:36:55AM -0500, Andrew Perrin wrote: > my $template = '^$'; > my $no = 99; > my $bla = $template; > $bla =~ s/%no%/$no/g; > > > $replace{no} = 99; > $bla =~ s/%(.+?)%/$replace{$1}/g; > > Disclaimer: these are trivial and not terribly robust solutions; take them > as a starting point, not a complete solution. I didn't do things your way, but I can always re-use your ideas sometime later. :-) Thanks for your help! Sven
Re: [OT] Perl: exec and $variables
On Sat, Jul 21, 2001 at 04:53:35PM +0200, Joost Kooij wrote: > What is the need for the seperate variable $BEGINREGEX? It > complicates things enormously when you want a variable $no to be > evaluated whenever $BEGINREGEX is evaluated. The only sane way out is > to completely reevaluate $BEGINREGEX after each change to $no. To do > that successfully, you have to escape '$', '"', and '\' and then > escape some of the escapes, but others not, depending on wheter they > should never be expanded, expanded in the eval or expanded when > applying the regexp. I wouldn't touch that with a ten foot pole if I > were you. If you succeed at it, you have great job security, and a > maintenance nightmare. Right, I agree. > Easier is to not use a $BEGINREGEX at all: > > $line =~ m(^$); > > should always work, for the current value of $no. Which is what I ended up doing. I made a function getBeginRegex() and getEndRegex() which return the string I then use as a regex for searching. This way I don't have to write the regex string many times over in the program, which is what I was trying to avoid when I did the $BEGINREGEX thing. Thanks a lot for your help! Sven
Re: [OT] Perl: exec and $variables
On Sat, Jul 21, 2001 at 01:46:25PM +0200, Joost Kooij wrote: > On Sat, Jul 21, 2001 at 01:04:40PM +0200, Sven Burgener wrote: > > my $BEGINREGEX = "sprintf(\"^\$\")"; > > Please tell us what you're trying to accomplish first. It is unclear > what assumptions you are making. What I want is the variable $BEGINREGEX to contain a string like so: ^$ or ^$ The digit after the "news" should be whatever $no is set to at that point in the script. > > my $no = 1; > > my $bla = eval($BEGINREGEX); > > print "$bla\n"; > > > > $bla is empty for some reason. > > You probably do not want to use eval here, or at least not in this way. What should I do then? It's simple, really. I am sure I am just making a stupid mistake. my $BEGINREGEX = "sprintf(\"^\$\")"; my $no = 99; my $bla = eval($BEGINREGEX); print "regex string: $bla\n"; What should be printed: regex string: ^$ But it isn't, so what am I doing wrong here? Cheers, Sven -- The best way to escape from a problem is to solve it.
[OT] Perl: exec and $variables
Hello I have a problem with some perl code. I know this is off-topic, but there are numerous knowledgeable people on deb-usr, so forgive me for posting this. Now to my problem. Given the following variable, my $BEGINREGEX = "sprintf(\"^\$\")"; the following eval() call doesn't substitute $no for what it is and return the new string with the substituted $no in it: my $no = 1; my $bla = eval($BEGINREGEX); print "$bla\n"; $bla is empty for some reason. So how would I go about having $no substituted in $BEGINREGEX for whatever it happens to be set to at a particular point in the script? Cheers! Sven -- The best way to escape from a problem is to solve it.
Re: [perl] glob() and filenames w/ spaces
On Tue, Apr 24, 2001 at 07:33:49PM -0500, will trillich wrote: > or, maybe try > > use File::Find; > my @list = (); > find( \&iterator , "./path/one" , "/another/path/here"); > &munge( @list ); > > sub iterator { > push @list,$File::Find::name > if $File::Find::name =~ m{$pattern}o > or &conditions_are_just_so($something); > } > > see the camel book for more on File::Find. Thanks for your help. I ended up doing it with readdir() which works fine. > -- > DEBIAN NEWBIE TIP #30 from Will Trillich <[EMAIL PROTECTED]>: > Which COMMANDS pertain to ? Try "apropos ", > "info ", and "man -k ". > > Also see http://newbieDoc.sourceForge.net/ ... Nice idea! Sven -- Powered by Debian GNU/Linux
[perl] glob() and filenames w/ spaces
Hi all Sorry if this is too off-topic, but on debian-user there is usually excellent help, so I cannot resist. =) How do I deal with the situation where glob("*") is used and where there are files that contain spaces in their file names? I know spaces in file names suck. I have no choice. It's the way it is. What I like about glob() is that it returns the whole path as opposed to readdir(DIR) which only returns the top of the path. That is very useful for my situation, so I need this property. So, is there any way to make glob("*") smart about files with spaces in their names? Has anyone dealt with something similar before? Cheers, Sven -- $ debian/rules
experiences w/ linuxconf
Hi fellow debs If anyone has made any experiences with linuxconf on Debian, would they mind sharing it with me? I have never used it and I would merely like to know how well it works on Debian and not so much whether it's a good idea to use it or not. =) In other words: is it 'well-integrated' with the Debian-Way of Things? Cheers, Sven -- Redundancy bores the intelligent, confuses the dumb, and tires the ignorant.
[OT] _("STRING") notation
(This applies to programming in C) What is the significance of the '_' character in the following usage? printf(_("This is fetchmail release %s"), VERSION); Why the '_' and why the additional ()'s around the string constant? This looks like _ does something special to the ()-part...? Could the following have done the job just as well instead? printf("This is fetchmail release %s", VERSION); Thanks for any insight
resizing /
hey debs is there any way to resize the slash partition without physically 'moving' the hard disk into a different computer? is this at all possible?? resize2fs tells me about slash being mounted and that it's not possible to resize a partition in such a state... i suppose i have to use a special boot disk filled with tools for this task... ? (pointers for that, anyone?) cheers sven -- $ debian/rules
simple shell question
Hello Can one determine *when* a file was moved into a specific directory? I guess not, as that means making a change to the directory in question and not the file. Cheers Sven PS: Please *DO* CC: me. Thank you.
redirecting to diff. machine with ipchains
is it possible to redirect incoming traffic onto some other machine's port, that is not publically accessible (private address), using only ipchains. if so, cool. if not, what other tools / methods are needed to accomplish this? thanks Sven
Crash?!?
Hello everyone Last night something weird happened. I was locally on my Debian GNU/Linux machine, doing some chatting, whilst suddenly the whole system seemed to get into an unusable state. I could still switch VTs, but could not login on any of them. Funnily was I able to login remotely, though. Today, I noticed the following (rather long) dump in /var/log/syslog. It doesn't look like a usual Oops, so I am unsure what caused this. Does anyone have a clue what was going on?? Thanks. Okay, here follows the dump: Feb 3 02:08:12 host kernel: Feb 3 02:08:12 host kernel: freesibling Feb 3 02:08:12 host kernel: task PCstack pid father child younger older Feb 3 02:08:12 host kernel: init 1 S C17F9EF8 5136 1 0 4438 Feb 3 02:08:12 host kernel:sig: 0 : X Feb 3 02:08:12 host kernel: kflushd2 S C17B5FA4 5656 2 1 3 Feb 3 02:08:12 host kernel:sig: 0 : X Feb 3 02:08:12 host kernel: kupdate3 S C17B3FB8 5868 3 1 4 2 Feb 3 02:08:12 host kernel:sig: 0 fffd : X Feb 3 02:08:12 host kernel: kpiod 4 S 0F00 6976 4 1 5 3 Feb 3 02:08:12 host kernel:sig: 0 : X Feb 3 02:08:12 host kernel: kswapd 5 S C17AFFC4 5436 5 1 129 4 Feb 3 02:08:12 host kernel:sig: 0 : X Feb 3 02:08:12 host kernel: syslogd 10 S 7FFF 5252 129 1 131 5 Feb 3 02:08:12 host kernel:sig: 0 : X Feb 3 02:08:12 host kernel: klogd 12 R C145C000 0 131 1 220 129 Feb 3 02:08:12 host kernel:sig: 0 : X Feb 3 02:08:12 host kernel: dhcpcd 8 S C151FF78 4 220 1 224 131 Feb 3 02:08:12 host kernel:sig: 0 : X Feb 3 02:08:12 host kernel: named 9 S C14D7EF8 376 224 1 229 220 Feb 3 02:08:12 host kernel:sig: 0 : X Feb 3 02:08:12 host kernel: inetd 7 S 7FFF 4932 229 1 235 224 Feb 3 02:08:12 host kernel:sig: 0 : X Feb 3 02:08:12 host kernel: nmbd 14 S C0325EF8 5988 235 1 237 229 Feb 3 02:08:12 host kernel:sig: 0 1080 : X Feb 3 02:08:12 host kernel: smbd 15 S 7FFF 6272 237 1 4005 244 235 Feb 3 02:08:12 host kernel:sig: 0 1080 : X Feb 3 02:08:12 host kernel: sshd 16 S 7FFF 5252 244 1 4483 249 237 Feb 3 02:08:12 host kernel:sig: 0 : X Feb 3 02:08:12 host kernel: atd 17 S C0F13F78 5732 249 1 253 244 Feb 3 02:08:12 host kernel:sig: 0 : X Feb 3 02:08:12 host kernel: cron 19 S C0CA7F78 3120 253 1 261 249 Feb 3 02:08:12 host kernel:sig: 0 : X Feb 3 02:08:12 host kernel: apache22 S C0B1BEF8 5508 261 1 1521 267 253 Feb 3 02:08:12 host kernel:sig: 0 : X Feb 3 02:08:12 host kernel: getty 21 S 7FFF 5448 267 1 268 261 Feb 3 02:08:12 host kernel:sig: 0 : X Feb 3 02:08:12 host kernel: getty 23 S 7FFF 0 268 1 269 267 Feb 3 02:08:12 host kernel:sig: 0 : X Feb 3 02:08:12 host kernel: getty 24 S 7FFF 2720 269 1 270 268 Feb 3 02:08:12 host kernel:sig: 0 : X Feb 3 02:08:12 host kernel: getty 25 S 7FFF20 270 1 4185 269 Feb 3 02:08:12 host kernel:sig: 0 : X Feb 3 02:08:12 host kernel: apache26 S C0A9BE74 5316 271 261 272 Feb 3 02:08:12 host kernel:sig: 0 : X Feb 3 02:08:12 host kernel: apache27 S C0A93E74 6064 272 261 273 271 Feb 3 02:08:12 host kernel:sig: 0 : X Feb 3 02:08:12 host kernel: apache28 S C0A87E74 6016 273 261 274 272 Feb 3 02:08:12 host kernel:sig: 0 : X Feb 3 02:08:12 host kernel: apache29 S C0A7DE74 6016 274 261 275 273 Feb 3 02:08:12 host kernel:sig: 0 : X Feb 3 02:08:12 host kernel: apache30 S C0A73E74 5936 275 261 1517 274 Feb 3 02:08:12 host kernel:sig: 0 : X Feb 3 02:08:12 host kernel: apache41 S C0C5DE74 5
Re: .procmailrc multiple actions
On Fri, Feb 02, 2001 at 07:02:01PM +0100, Marc A. Donges wrote: > On Friday, February 02, 2001 at 18:41:16 (+0100), Sven Burgener wrote: > > --8<-- > > :0 > > * ^From: Mail Delivery Subsystem > > | (formail -I "To: [EMAIL PROTECTED]") |\ > > (formail -I "CC: [EMAIL PROTECTED], [EMAIL PROTECTED]") | $SENDMAIL -t > > > > :0 > > ! [EMAIL PROTECTED] > > --8<-- > > The first recipy is a delivering one. This means that if the first > pattern matches, the mail won't get to the second. True, but ... > If you want to have both actions taken, you must specify the "c" flag > on the first one (":0c" instead of ":0"). ... that wasn't my question. It is not my intention to apply both the formail'ing and the '!' forwarding to one particular email. > Furthermore, your first recipy will almost certainly create > mail-loops: If [EMAIL PROTECTED] cannot be delivered to, the mail will > be bounced to the account that did the above procmail-filtering, in > turn being forwarded to [EMAIL PROTECTED] You should therefore specify > "-f '<>'" on the sendmail-command-line to create a > zero-return-address. Thanks for the info about this issue. I'll take that into account. > Why do you want those headers to appear in the message? I merely want the mail to appear to be destined to "[EMAIL PROTECTED]" instead of the user on the system that has the above .procmailrc file and that receives this email in the first place. Additionally, I want to add a CC: to the message on-the-fly, overwriting an existing one, if there. I must apologise, the above code *does* work. My test scenario / test setup was misleading me. /me blushes Thank you for your time and insight, though. Sven -- "{sum += $2} END {print sum}", said Tom awkwardly.
.procmailrc multiple actions
Is it possible to specify multiple "action" lines for any given procmail rule? Like, say I want to achieve the following requirements: o rewrite the To: header field such that it will appear as what I rewrite it at the recepient. o do the same (or insert) a CC: header field. o then send it off to whoever's in the To: / CC: fields I just rewrote. I have this, which doesn't do the job, though: --8<-- :0 * ^From: Mail Delivery Subsystem | (formail -I "To: [EMAIL PROTECTED]") |\ (formail -I "CC: [EMAIL PROTECTED], [EMAIL PROTECTED]") | $SENDMAIL -t :0 ! [EMAIL PROTECTED] --8<-- I suppose I need to rewrite Envelope headers, correct? How'd I go about doing that? TIA Sven
Permissions in /var/log; logrotate
Hi all What should permissions and ownerships for files under /var/log be? I have the following: (really long list) /var/log/: total 4281 drwxr-xr-x2 root root 1024 Jan 14 02:26 apache -rw-r-1 root adm120381 Feb 1 19:08 auth.log -rw-r-1 root adm 50427 Jan 14 02:30 auth.log.0 -rw-r-1 root adm 9422 Jan 7 03:24 auth.log.1.gz -rw-r-1 root adm 15228 Dec 31 13:54 auth.log.2.gz -rw-r-1 root adm 28811 Nov 19 06:26 auth.log.3.gz -rw---1 root root 10 Jan 6 18:02 auth.log.offset -rw-rw-r--1 root utmp 3840 Jan 27 11:01 btmp -rw-rw-r--1 root utmp 768 Dec 30 12:21 btmp.1 -rw-r-1 root adm161134 Feb 1 19:07 daemon.log -rw-r-1 root adm 51344 Jan 14 02:21 daemon.log.0 -rw-r-1 root adm 6847 Jan 7 03:10 daemon.log.1.gz -rw-r-1 root adm 36185 Dec 31 13:34 daemon.log.2.gz -rw-r-1 root adm 72215 Nov 19 06:10 daemon.log.3.gz -rw---1 root root 10 Jan 6 18:02 daemon.log.offset -rw-r-1 root adm 0 Jan 14 02:35 debug -rw-r-1 root adm 0 Jan 7 03:25 debug.0 -rw-r-1 root adm28 Dec 31 14:01 debug.1.gz -rw-r-1 root adm 311 Dec 9 13:12 debug.2.gz -rw-r-1 root adm 325 Aug 20 20:58 debug.3.gz -rw-r--r--1 root root 3262 Feb 1 09:49 dmesg drwxr-xr-x2 mail mail 1024 Jan 20 10:03 exim -rw-r--r--1 root root24168 Feb 1 18:28 faillog -rw-r-1 root adm174773 Feb 1 17:54 kern.log -rw-r-1 root adm 90265 Jan 14 02:21 kern.log.0 -rw-r-1 root adm 17629 Jan 7 03:10 kern.log.1.gz -rw-r-1 root adm 44277 Dec 31 13:31 kern.log.2.gz -rw-r-1 root adm 291 Nov 18 20:15 kern.log.3.gz drwxr-xr-x2 root root 1024 Jan 20 10:04 ksymoops -rw-rw-r--1 root utmp 294044 Feb 1 18:59 lastlog -rw-r-1 root adm 0 Jan 14 02:35 lpr.log -rw-r-1 root adm 0 Jan 7 03:24 lpr.log.0 -rw-r-1 root adm30 Dec 31 14:01 lpr.log.1.gz -rw-r-1 root adm30 Nov 19 06:49 lpr.log.2.gz -rw-r-1 root adm30 Aug 18 21:35 lpr.log.3.gz -rw-r-1 root adm 0 Jan 14 02:35 mail.err -rw-r-1 root adm 0 Jan 7 03:24 mail.err.0 -rw-r-1 root adm31 Dec 31 14:01 mail.err.1.gz -rw-r-1 root adm31 Nov 19 06:49 mail.err.2.gz -rw-r-1 root adm 148 Aug 19 00:03 mail.err.3.gz -rw-r-1 root adm 0 Jan 14 02:35 mail.info -rw-r-1 root adm 0 Jan 7 03:24 mail.info.0 -rw-r-1 root adm32 Dec 31 14:01 mail.info.1.gz -rw-r-1 root adm32 Nov 19 06:49 mail.info.2.gz -rw-r-1 root adm 284 Sep 15 23:07 mail.info.3.gz -rw-r-1 root adm 0 Jan 14 02:35 mail.log -rw-r-1 root adm 0 Jan 7 03:25 mail.log.0 -rw-r-1 root adm31 Dec 31 14:01 mail.log.1.gz -rw-r-1 root adm31 Nov 19 06:49 mail.log.2.gz -rw-r-1 root adm 283 Sep 15 23:07 mail.log.3.gz -rw---1 root root6 Jan 6 18:02 mail.log.offset -rw-r-1 root adm 0 Jan 14 02:35 mail.warn -rw-r-1 root adm 0 Jan 7 03:24 mail.warn.0 -rw-r-1 root adm32 Dec 31 14:01 mail.warn.1.gz -rw-r-1 root adm32 Nov 19 06:49 mail.warn.2.gz -rw-r-1 root adm 149 Aug 19 00:03 mail.warn.3.gz -rw-r-1 root adm189829 Feb 1 19:09 messages -rw-r-1 root adm 96139 Jan 14 02:30 messages.0 -rw-r-1 root adm 18519 Jan 7 03:19 messages.1.gz -rw-r-1 root adm 48772 Dec 31 13:57 messages.2.gz -rw-r-1 root adm 533 Nov 19 06:27 messages.3.gz -rw---1 root root 11 Jan 6 18:02 messages.offset drwxr-sr-x2 news news 1024 Aug 18 21:35 news -rw-r--r--1 root root 181278 Feb 1 09:55 nmb -rw-r-1 root adm 0 Aug 18 22:38 ppp-connect-errors -rw-r-1 root adm 2368 Jan 20 10:06 setuid.changes -rw-r-1 root adm 2074 Jan 19 20:56 setuid.changes.0 -rw-r-1 root adm 448 Jan 18 17:54 setuid.changes.1.gz -rw-r-1 root adm 444 Jan 17 19:25 setuid.changes.2.gz -rw-r-1 root adm 437 Jan 16 19:55 setuid.changes.3.gz -rw-r-1 root adm 440 Jan 15 19:05 setuid.changes.4.gz -
Re: How to make apt-get upgrade interactive?
On Sat, Jan 20, 2001 at 01:09:30PM -0600, Richard Cobbe wrote: > APT::Get::Show-Upgraded "true"; I have the following and it works: APT::Get::Show-Upgraded "yes"; Cheers, Sven -- "{sum += $2} END {print sum}", said Tom awkwardly.
Re: /etc/init.d/portmap
On Sat, Jan 13, 2001 at 04:34:21PM -0800, Bob Nielsen wrote: > $ dpkg -S /etc/init.d/portmap > netbase: /etc/init.d/portmap > > ?? Thanks for the info, but I run woody. Cheers, Sven -- "{sum += $2} END {print sum}", said Tom awkwardly.
Re: /etc/init.d/portmap
On Sat, Jan 13, 2001 at 06:30:58PM -0600, ktb wrote: > On Sun, Jan 14, 2001 at 01:04:41AM +0100, Sven Burgener wrote: > > > > $ dlocate /etc/init.d/portmap > > $ dpkg -S /etc/init.d/portmap > > dpkg: /etc/init.d/portmap not found. > > > > Apparently this doesn't belong anywhere. How did it get onto the system > > then? > > It belongs to base/netbase as described at - > http://cgi.debian.org/cgi-bin/search_contents.pl? > word=portmap&case=insensitive&version=stable&arch=i386&directories=yes Yes, but that's for stable. I run woody/testing. Since woody does portmap have its own package. Now, as I have /etc/init.d/portmap on my system, I thought I must have portmap (the pkg) installed. But, apparently, /etc/init.d/portmap doesn't belong anywhere according to the searches I have done / posted. That was my question. Cheers, Sven -- "{sum += $2} END {print sum}", said Tom awkwardly.
/etc/init.d/portmap
Hello Could anyone tell me what package this file belongs to? $ dlocate /etc/init.d/portmap $ dpkg -S /etc/init.d/portmap dpkg: /etc/init.d/portmap not found. Apparently this doesn't belong anywhere. How did it get onto the system then? Cheers Sven -- "{sum += $2} END {print sum}", said Tom awkwardly.
Re: Linux 2.4.0 & root fs problem (*help*, *help*)
On Thu, Jan 11, 2001 at 01:19:41PM -0700, Gary Hennigan wrote: > Well, it's a pain but I'd go through the config the old-fashioned way, > eg.: > > make clean > make-kpkg clean > make distclean > make (xconfig|config|menuconfig) > make-kpkg > > Something obviously didn't get built right in your 2.4 kernel. At > least I can't think of any other possible reason it can't see you're > HD, especially with 2.2.18 booting fine. Well, I have done just that now but the problem persists. I don't know what to do. I am attaching my .config for 2.4.0 to this mail, so that perhaps someone could point out what I might be missing. Cheers, Sven - who is desparate to run 2.4.0 # # Automatically generated make config: don't edit # CONFIG_X86=y CONFIG_ISA=y # CONFIG_SBUS is not set CONFIG_UID16=y # # Code maturity level options # # CONFIG_EXPERIMENTAL is not set # # Loadable module support # CONFIG_MODULES=y # CONFIG_MODVERSIONS is not set CONFIG_KMOD=y # # Processor type and features # # CONFIG_M386 is not set # CONFIG_M486 is not set # CONFIG_M586 is not set CONFIG_M586TSC=y # CONFIG_M586MMX is not set # CONFIG_M686 is not set # CONFIG_M686FXSR is not set # CONFIG_MPENTIUM4 is not set # CONFIG_MK6 is not set # CONFIG_MK7 is not set # CONFIG_MCRUSOE is not set # CONFIG_MWINCHIPC6 is not set # CONFIG_MWINCHIP2 is not set # CONFIG_MWINCHIP3D is not set CONFIG_X86_WP_WORKS_OK=y CONFIG_X86_INVLPG=y CONFIG_X86_CMPXCHG=y CONFIG_X86_BSWAP=y CONFIG_X86_POPAD_OK=y CONFIG_X86_L1_CACHE_SHIFT=5 CONFIG_X86_USE_STRING_486=y CONFIG_X86_ALIGNMENT_16=y CONFIG_X86_TSC=y # CONFIG_TOSHIBA is not set # CONFIG_MICROCODE is not set # CONFIG_X86_MSR is not set CONFIG_X86_CPUID=y CONFIG_NOHIGHMEM=y # CONFIG_HIGHMEM4G is not set # CONFIG_HIGHMEM64G is not set # CONFIG_MATH_EMULATION is not set # CONFIG_MTRR is not set # CONFIG_SMP is not set # CONFIG_X86_UP_IOAPIC is not set # # General setup # CONFIG_NET=y # CONFIG_VISWS is not set CONFIG_PCI=y # CONFIG_PCI_GOBIOS is not set # CONFIG_PCI_GODIRECT is not set CONFIG_PCI_GOANY=y CONFIG_PCI_BIOS=y CONFIG_PCI_DIRECT=y # CONFIG_PCI_NAMES is not set # CONFIG_EISA is not set # CONFIG_MCA is not set # CONFIG_HOTPLUG is not set # CONFIG_PCMCIA is not set CONFIG_SYSVIPC=y CONFIG_BSD_PROCESS_ACCT=y CONFIG_SYSCTL=y CONFIG_KCORE_ELF=y # CONFIG_KCORE_AOUT is not set CONFIG_BINFMT_AOUT=y CONFIG_BINFMT_ELF=y CONFIG_BINFMT_MISC=y # CONFIG_PM is not set # CONFIG_APM is not set # # Memory Technology Devices (MTD) # # CONFIG_MTD is not set # # Parallel port support # # CONFIG_PARPORT is not set # # Plug and Play configuration # # CONFIG_PNP is not set # CONFIG_ISAPNP is not set # # Block devices # CONFIG_BLK_DEV_FD=y # CONFIG_BLK_DEV_XD is not set # CONFIG_PARIDE is not set # CONFIG_BLK_CPQ_DA is not set # CONFIG_BLK_CPQ_CISS_DA is not set # CONFIG_BLK_DEV_DAC960 is not set # CONFIG_BLK_DEV_LOOP is not set # CONFIG_BLK_DEV_NBD is not set # CONFIG_BLK_DEV_RAM is not set # CONFIG_BLK_DEV_INITRD is not set # # Multi-device support (RAID and LVM) # CONFIG_MD=y # CONFIG_BLK_DEV_MD is not set # CONFIG_MD_LINEAR is not set # CONFIG_MD_RAID0 is not set # CONFIG_MD_RAID1 is not set # CONFIG_MD_RAID5 is not set CONFIG_BLK_DEV_LVM=y CONFIG_LVM_PROC_FS=y # # Networking options # CONFIG_PACKET=y # CONFIG_PACKET_MMAP is not set CONFIG_NETLINK=y CONFIG_RTNETLINK=y # CONFIG_NETLINK_DEV is not set CONFIG_NETFILTER=y # CONFIG_NETFILTER_DEBUG is not set # CONFIG_FILTER is not set CONFIG_UNIX=y CONFIG_INET=y # CONFIG_IP_MULTICAST is not set CONFIG_IP_ADVANCED_ROUTER=y CONFIG_RTNETLINK=y CONFIG_NETLINK=y # CONFIG_IP_MULTIPLE_TABLES is not set # CONFIG_IP_ROUTE_MULTIPATH is not set # CONFIG_IP_ROUTE_TOS is not set # CONFIG_IP_ROUTE_VERBOSE is not set # CONFIG_IP_ROUTE_LARGE_TABLES is not set # CONFIG_IP_PNP is not set # CONFIG_NET_IPIP is not set # CONFIG_NET_IPGRE is not set # CONFIG_INET_ECN is not set # CONFIG_SYN_COOKIES is not set # # IP: Netfilter Configuration # CONFIG_IP_NF_CONNTRACK=y CONFIG_IP_NF_FTP=y CONFIG_IP_NF_IPTABLES=y CONFIG_IP_NF_MATCH_LIMIT=y CONFIG_IP_NF_MATCH_MAC=y CONFIG_IP_NF_MATCH_MARK=y CONFIG_IP_NF_MATCH_MULTIPORT=y CONFIG_IP_NF_MATCH_TOS=y CONFIG_IP_NF_MATCH_STATE=y CONFIG_IP_NF_FILTER=y CONFIG_IP_NF_TARGET_REJECT=y CONFIG_IP_NF_NAT=y CONFIG_IP_NF_NAT_NEEDED=y CONFIG_IP_NF_TARGET_MASQUERADE=y CONFIG_IP_NF_TARGET_REDIRECT=y CONFIG_IP_NF_MANGLE=y CONFIG_IP_NF_TARGET_TOS=y CONFIG_IP_NF_TARGET_MARK=y CONFIG_IP_NF_TARGET_LOG=y # # # # CONFIG_IPX is not set # CONFIG_ATALK is not set # CONFIG_DECNET is not set # CONFIG_BRIDGE is not set # # Telephony Support # # CONFIG_PHONE is not set # CONFIG_PHONE_IXJ is not set # # ATA/IDE/MFM/RLL support # CONFIG_IDE=y # # IDE, ATA and ATAPI Block devices # CONFIG_BLK_DEV_IDE=y # # Please see Documentation/ide.txt for help/info on IDE drives # # CONFIG_BLK_DEV_HD_IDE is not set # CONFIG_BLK_DEV_HD is not set CONFIG_BLK_DEV_IDEDISK=y # CONFIG_IDEDISK_MULTI_MODE is not set # CONFIG_BLK_DEV_IDEDISK_VENDOR is not set # CON
Re: Linux 2.4.0 & root fs problem
On Thu, Jan 11, 2001 at 02:13:25PM -0500, Bob Billson wrote: > On Thu, Jan 11, 2001 at 07:35:08PM +0100, Sven Burgener wrote: > > VFS: Cannot open root device "803" or 08:03 > > Please append a correct "root=" boot option > > Kernel panic: VFS: Unable to mount root fs on 08:03 > > Did you remember to say 'yes' *not* 'module' for ext2 support in the kernel > (under General Setup) and scsi disks? I simply used the configurations for my 2.2.18 kernel and then did a "make oldconfig". So, yes, I did select ext2 support built-in, as I did in 2.2.18. Still seeking help! Sven
Re: Linux 2.4.0 & root fs problem
On Thu, Jan 11, 2001 at 12:07:00PM -0700, Gary Hennigan wrote: > "Sven Burgener" <[EMAIL PROTECTED]> writes: > > Just to clarify: > > > $ rdev /boot/vmlinuz-2.2.18 > > > Root device /dev/sda3 > > > > (Booting with 2.2.18 works) > > > > > $ rdev /boot/vmlinuz-2.4.0 > > > Root device /dev/sda3 > > > > ... but not with 2.4.0. > > That's a bit strange. You did compile your 2.4.0 kernel with the > appropriate SCSI driver built into the kernel, right? Yes, I did: $ grep '^[^#]' /boot/config-2.2.18 | grep -i scsi CONFIG_SCSI=y CONFIG_SCSI_MULTI_LUN=y CONFIG_SCSI_CONSTANTS=y CONFIG_SCSI_AM53C974=y $ grep '^[^#]' /boot/config-2.4.0 | grep -i scsi CONFIG_SCSI=y CONFIG_SCSI_MULTI_LUN=y CONFIG_SCSI_CONSTANTS=y CONFIG_SCSI_AM53C974=y It *is* strange, indeed. Still seeking help! Cheers, Sven
Re: Linux 2.4.0 & root fs problem
Just to clarify: On Thu, Jan 11, 2001 at 07:35:08PM +0100, Sven Burgener wrote: > $ rdev /boot/vmlinuz-2.2.18 > Root device /dev/sda3 (Booting with 2.2.18 works) > $ rdev /boot/vmlinuz-2.4.0 > Root device /dev/sda3 ... but not with 2.4.0. Thanks in advance! Sven
Linux 2.4.0 & root fs problem
Hello After having built and installed my custom linux-2.4.0-deb, I get the following when booting: [boot msgs] VFS: Cannot open root device "803" or 08:03 Please append a correct "root=" boot option Kernel panic: VFS: Unable to mount root fs on 08:03 After which booting halts. $ rdev /boot/vmlinuz-2.2.18 Root device /dev/sda3 $ rdev /boot/vmlinuz-2.4.0 Root device /dev/sda3 Weird. Help, anyone? Thanks, Sven
Re: Apache graceful as non-root
Hello Nate [yes, do CC: me] Nate Amsden wrote: > > Sven Burgener wrote: > > > > Is there a way to do "apachectl graceful" as non-root user? Because when > > I do, I get an error about denied permission for binding to port 80. > > you could i bet if you made apachectl setuid root but if security is > an issue i wouldn't reccomend it. to do this do chmod u+s apachectl Tried it. Doesn't work; Linux seems to silently drop suid root privilges on shell scripts. > or you could configure sudo (haven't really messed with sudo can't > help ya there ..) Still requires you to enter the user's password though, right? I don't want to be putting that in the shell script that's callling "apachectl graceful". Cheers, Sven
Apache graceful as non-root
Hello Is there a way to do "apachectl graceful" as non-root user? Because when I do, I get an error about denied permission for binding to port 80. Cheers, Sven
Re: useradd problem(!)
On Sat, Jan 06, 2001 at 05:44:04PM +, Malcolm Parsons wrote: > useradd and adduser are two different programs from two different pacakges, > the configuration of one does not affect the other: > > [EMAIL PROTECTED]:~$ dpkg -S /usr/sbin/useradd > passwd: /usr/sbin/useradd > [EMAIL PROTECTED]:~$ dpkg -S /usr/sbin/adduser > adduser: /usr/sbin/adduser Yes, quite true. I got them mixed up. All my fault. :) Cheers, Sven
useradd problem(!)
Hello When I first installed Debian GNU/Linux on this machine, I reconfigured it so that there is a "central" user-group called "users" which all users of this system belong to. I have now reconfigured it back to the default: /etc/adduser.conf [...] USERGROUPS=yes [...] When running useradd, though, I get the following: # useradd -m test # ls -l /home [...] drwxr-sr-x 18 svn users1024 Jan 4 23:28 svn drwxr-xr-x2 test users1024 Jan 4 23:30 test There. The new user 'test' still belongs to 'users' and doesn't get a new group called 'test'. I was curious, so I ran strace over adduser: [first deleted 'test' again] # strace useradd -m test [...] open("/etc/default/useradd", O_RDONLY) = -1 ENOENT (No such file or directory) [...] access("/home/test", F_OK) = -1 ENOENT (No such file or directory) mkdir("/home/test", 0) = 0 [...] chown("/home/test", 1001, 100) = 0 <-- why GID 100? [...] (sorry for the long lines) First, why is useradd looking for a file at /etc/default/useradd? Is this an old location or what? I have only the following there: total 8 -rw-r--r--1 root root 92 Aug 18 23:32 devpts -rwxr--r--1 root root 641 Aug 18 23:33 rcS Second, and this is my main problem, why is the GID 100? I have explicitly configured "USERGROUPS=yes" in /etc/adduser.conf! I run an up-to-date woody/testing here. Help greatly appreciated, Sven -- Powered by Debian GNU/Linux
Restarting Apache as non-root
Hello all [please CC me on replies] Is there a way to restart Apache gracefully as a non-root user? I don't want to write a wrapper suid program and I don't want to execute the shell script (doing the graceful restart) as root. I mean, Apache is already up and running as root (father process), so I fail to see why a simple 'graceful' shouldn't work as non-root. Help appreciated, Sven
Re: newbee -- route (in file ?) ipchains ( in file ?)
On Tue, Jan 02, 2001 at 06:41:27PM +0100, M.B.Midden wrote: > * where should i put rules like these to load them when i Boot or > should i wright a script ( <--scripting howto ??) ? ; > > /sbin/ifconfig eth0 netmask 255.255.255.0 > /sbin/ifconfig eth1 10.10.10.1 netmask 255.255.255.0 > > /sbin/route add default gw netmask 0.0.0.0 metric 1 Look at /etc/network/interfaces. man interfaces for its definition. man {ifup,ifdown} for a further reading about the Debian Way of Networking. > * Should i add also these or is that automatically generated ? Default routes to the networks of all the interfaces are generally added automatically. > > * and where should i put these? > [snipped ipchain rules] Create a script and place it somewhere like /root/scripts/ipchains.sh. Now, make sure this is run whenever you want. If you want this started at boot time, either use a CRON entry (check out "@reboot"). Or you could create an init script controlling that script. If you want that, copy /etc/init.d/skeleton as a template and check out update-rc.d for creating the necessary links for the SysV-init (/etc/init.d/README). Best of luck Sven -- Have you rebooted your NT box today?
Re: Running something in a terminal
On Mon, Jan 01, 2001 at 04:40:13PM +, Colin Watson wrote: > Sven Burgener <[EMAIL PROTECTED]> wrote: > > On Mon, Jan 01, 2001 at 09:11:08AM -0600, Richard Cobbe wrote: > > > The bigger margin allows for more deeply-nested attributions > > > before the lines start wrapping, that's all. > > > > That can be cured, though. > > > > In vi (vim), I use the key-combination 'gqj'. > > I tend to use 'gq}' to wrap entire paragraphs (or 'gqip' if I'm inside > the paragraph in question), but each to their own. Didn't know about them... > > This wraps lines nicely to the right length (set with ':set > > textwidth=72'). It even re-arranges the quote '>' characters nicely. > > I don't know whether this requires "vim-rt". > > No, it doesn't, it's a vim builtin. > > Something like 'au FileType mail set textwidth=72' in your .vimrc is > nice to have - that does require vim-rt, but you've got that anyway, > right? :) Well, not quite. I use "set editor="vim -c 'set tw=72'"" in my .muttrc. > > I just haven't figured out how to "replace" the powerquote (like > > "sven> ") with plain '>'s if that can easily be done... > > My .vimrc has a macro stolen from /usr/share/doc/vim/examples/mail: > > " ,kpq kill SuperCite (aka PowerQuote) quote (replacing it by `>') > map ,kpq :%s/^> *[a-zA-Z]*>/> >/ > > Season to taste depending on whether you use '>' or '> ' as your quote > prefix. Cool!! Thanks! I just can't stand that unreadable power-quote stuff. > I found 'set comments' in vim the other day, too. It makes editing > Debian changelogs, and other things formatted as bullet-point lists, > so much more pleasant. vi(m) is just nice, ey? 8-) Cheers, Sven
Re: Running something in a terminal
On Mon, Jan 01, 2001 at 09:11:08AM -0600, Richard Cobbe wrote: > Lo, on Monday, January 1, Rob VanFleet did write: > > On Mon, Jan 01, 2001 at 03:04:30AM -0800, kmself@ix.netcom.com wrote: > > > ...set your linewrap to 72 chars. > > > > Sorry, did some pasting in my last message and I guess I mucked things > > up a bit. Any particular reason as to 72? I was originally wrapping at > > 79 chars, which seemed to work well enough (no one complained at least). > > The bigger margin allows for more deeply-nested attributions before the > lines start wrapping, that's all. That can be cured, though. In vi (vim), I use the key-combination 'gqj'. This wraps lines nicely to the right length (set with ':set textwidth=72'). It even re-arranges the quote '>' characters nicely. I don't know whether this requires "vim-rt". I just haven't figured out how to "replace" the powerquote (like "sven> ") with plain '>'s if that can easily be done... Sven
Re: locale problem
On Mon, Jan 01, 2001 at 12:44:57PM +0100, Erich Baur wrote: > > Another thing is when I upgrade packages, in the process of doing so, > > I get this printed to the console: > > > > [...] > > perl: warning: Setting locale failed. > > perl: warning: Please check that your locale settings: > > LANGUAGE = (unset), > > LC_ALL = (unset), > > LC_TIME = "de_CH", > > LC_NUMERIC = "de_CH", > > LC_CTYPE = "de_CH", > > LC_MONETARY = "de_CH", > > LC_COLLATE = "de_CH", > > LANG = "de_CH.ISO-8859-1" > > are supported and installed on your system. > > perl: warning: Falling back to the standard locale ("C"). > > host:~# > > > > My locale should be set to "de_CH" (Switzerland, German part). > > Am I missing a package that should be installed? > > > > What things might need some fixing? > > Do that: > > localedef -i de_CH -f ISO-8859-1 de_CH (as root) Done that. Hope it's fixed. Cheers Sven
Re: locale problem
On Mon, Jan 01, 2001 at 03:34:20AM +0100, Sven Burgener wrote: > For one thing, I still cannot use German Umlauts with 'less'; it just > prints '?'s instead of the actual characters... Correction: Umlauts *work* with 'less', but not with mutt. > Another thing is when I upgrade packages, in the process of doing so, > I get this printed to the console: > > [...] > perl: warning: Setting locale failed. > perl: warning: Please check that your locale settings: > LANGUAGE = (unset), > LC_ALL = (unset), > LC_TIME = "de_CH", > LC_NUMERIC = "de_CH", > LC_CTYPE = "de_CH", > LC_MONETARY = "de_CH", > LC_COLLATE = "de_CH", > LANG = "de_CH.ISO-8859-1" > are supported and installed on your system. > perl: warning: Falling back to the standard locale ("C"). > host:~# This issue remains... > My locale should be set to "de_CH" (Switzerland, German part). > Am I missing a package that should be installed? > > What things might need some fixing? Same here...
locale problem
Hello Since doing a rather large dist-upgrade to woody recently, I have been experiencing problems with my locale settings. For one thing, I still cannot use German Umlauts with 'less'; it just prints '?'s instead of the actual characters... Another thing is when I upgrade packages, in the process of doing so, I get this printed to the console: [...] perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_TIME = "de_CH", LC_NUMERIC = "de_CH", LC_CTYPE = "de_CH", LC_MONETARY = "de_CH", LC_COLLATE = "de_CH", LANG = "de_CH.ISO-8859-1" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). host:~# My locale should be set to "de_CH" (Switzerland, German part). Am I missing a package that should be installed? What things might need some fixing? Cheers Sven
Re: 'testing' & dep conflicts
On Thu, Dec 28, 2000 at 05:44:55PM -0600, Nathan E Norman wrote: > On Fri, Dec 29, 2000 at 12:10:41AM +0100, Sven Burgener wrote: > > 1. Why are packages kept back like follows? [ snip ] > First, since you're upgrading from potato to woody (you've changed > distributions), you should use `apt-get dist-upgrade'. [ snip ] > No, now that I look at it the problem is that libc6 is being held > back. Try the dist-upgrade method instead. Righto. Thanks. Yes, that did it. Sven -- L I N U X .~. The Choice /V\ of a GNU /( )\ Generation ^^-^^
'testing' & dep conflicts
Hello I am running 'testing', upgraded from potato a few days ago. Two questions: 1. Why are packages kept back like follows? $ apt-get update && apt-get upgrade Hit http://security.debian.org potato/updates/main Packages Hit http://security.debian.org potato/updates/main Release Hit http://security.debian.org potato/updates/contrib Packages Hit http://security.debian.org potato/updates/contrib Release Hit http://security.debian.org potato/updates/non-free Packages Hit http://security.debian.org potato/updates/non-free Release Hit http://non-us.debian.org testing/non-US/main Packages Hit http://non-us.debian.org testing/non-US/main Release Hit http://non-us.debian.org testing/non-US/contrib Packages Hit http://non-us.debian.org testing/non-US/contrib Release Hit http://non-us.debian.org testing/non-US/non-free Packages Hit http://non-us.debian.org testing/non-US/non-free Release Hit http://non-us.debian.org testing/non-US/main Sources Hit http://non-us.debian.org testing/non-US/main Release Hit http://non-us.debian.org testing/non-US/contrib Sources Hit http://non-us.debian.org testing/non-US/contrib Release Hit http://non-us.debian.org testing/non-US/non-free Sources Hit http://non-us.debian.org testing/non-US/non-free Release Hit http://http.us.debian.org testing/main Packages Hit http://http.us.debian.org testing/main Release Hit http://http.us.debian.org testing/contrib Packages Hit http://http.us.debian.org testing/contrib Release Hit http://http.us.debian.org testing/non-free Packages Hit http://http.us.debian.org testing/non-free Release Hit http://http.us.debian.org testing/main Sources Ign http://http.us.debian.org testing/main Release Hit http://http.us.debian.org testing/contrib Sources Ign http://http.us.debian.org testing/contrib Release Hit http://http.us.debian.org testing/non-free Sources Ign http://http.us.debian.org testing/non-free Release Reading Package Lists... Building Dependency Tree... Reading Package Lists... Building Dependency Tree... The following packages have been kept back base-passwd bin86 bsdgames bsdutils cpp cron e2fsprogs ed fetchmail fileutils findutils ftp g++ gcc libc6 libc6-dev libreadline4 libstdc++2.10-dev locales login mount ntop passwd patch pciutils setserial telnet traceroute util-linux wget The following packages will be upgraded debianutils dialog gettext-base gnupg groff info libnewt0 libstdc++2.10 procmail whiptail 10 packages upgraded, 0 newly installed, 0 to remove and 30 not upgraded. Sorry, but the following packages have unmet dependencies: debianutils: PreDepends: libc6 (>= 2.1.97) but 2.1.3-13 is to be installed E: Internal Error, InstallPackages was called with broken packages! 2. Why is it that the above dependency conflict arouse? How can I fix this? Cheers Sven -- Windows is great - I used it to download Linux
'testing' & dep conflicts
Hello I am running 'testing', upgraded from potato a few days ago. Two questions: 1. Why are packages kept back like follows? $ apt-get update && apt-get upgrade Hit http://security.debian.org potato/updates/main Packages Hit http://security.debian.org potato/updates/main Release Hit http://security.debian.org potato/updates/contrib Packages Hit http://security.debian.org potato/updates/contrib Release Hit http://security.debian.org potato/updates/non-free Packages Hit http://security.debian.org potato/updates/non-free Release Hit http://http.us.debian.org testing/main Packages Hit http://http.us.debian.org testing/main Release Hit http://http.us.debian.org testing/contrib Packages Hit http://http.us.debian.org testing/contrib Release Hit http://http.us.debian.org testing/non-free Packages Hit http://http.us.debian.org testing/non-free Release Hit http://http.us.debian.org testing/main Sources Hit http://non-us.debian.org testing/non-US/main Packages Hit http://non-us.debian.org testing/non-US/main Release Hit http://non-us.debian.org testing/non-US/contrib Packages Hit http://non-us.debian.org testing/non-US/contrib Release Hit http://non-us.debian.org testing/non-US/non-free Packages Hit http://non-us.debian.org testing/non-US/non-free Release Hit http://non-us.debian.org testing/non-US/main Sources Ign http://http.us.debian.org testing/main Release Hit http://http.us.debian.org testing/contrib Sources Ign http://http.us.debian.org testing/contrib Release Hit http://non-us.debian.org testing/non-US/main Release Hit http://non-us.debian.org testing/non-US/contrib Sources Hit http://non-us.debian.org testing/non-US/contrib Release Hit http://http.us.debian.org testing/non-free Sources Ign http://http.us.debian.org testing/non-free Release Hit http://non-us.debian.org testing/non-US/non-free Sources Hit http://non-us.debian.org testing/non-US/non-free Release Reading Package Lists... Building Dependency Tree... Reading Package Lists... Building Dependency Tree... The following packages have been kept back base-passwd bin86 bsdgames bsdutils cpp e2fsprogs ed fetchmail fileutils findutils ftp g++ gcc libc6 libc6-dev libreadline4 libstdc++2.10-dev locales login mount ntop passwd patch pciutils setserial telnet traceroute util-linux wget The following packages will be upgraded debianutils dialog gettext-base gnupg groff info libnewt0 libstdc++2.10 procmail whiptail 10 packages upgraded, 0 newly installed, 0 to remove and 29 not upgraded. Sorry, but the following packages have unmet dependencies: debianutils: PreDepends: libc6 (>= 2.1.97) but 2.1.3-13 is to be installed E: Internal Error, InstallPackages was called with broken packages! 2. Why is it that the above dependency conflict arouse? How can I fix this? Cheers Sven -- Windows is great - I used it to download Linux
modprobe module problem (char-major-10-135)
Hello debs, How do I fix the following? modprobe: modprobe: Can't locate module char-major-10-135 This appears when booting my potato box. Why does this come up? I mean, what is missing / wrong? Cheers Sven -- c:\> deltree /y \windows
Re: dpkg snapshot
On Sun, Nov 12, 2000 at 04:50:16PM +0100, Sven Burgener wrote: > On Sun, Nov 12, 2000 at 10:32:47AM -0500, Paindavoine, Matthieu > (MPAINDAV) wrote: > > > > I have a hosed system, and I'd like to do a clean reinstall... I would like > > to keep the .deb configuration I had. Is there a way using eg dpkg to take a > > snapshot of the packages installed now, and feed this file at a later time > > to select the packages to install? > > a) prior to reinstall: > > $ dpkg --get-selections \* > dpkg-selections.txt > > b) save file to (floppy) disk(s) > > c) after having installed the base system: > > $ dpkg --set-selections < dpkg-selections.txt Oops, forgot to mention the following final step: d) run to apply the changes apt-get: $ apt-get dselect-upgrade Sven -- Have you rebooted your NT box today?
Re: dpkg snapshot
On Sun, Nov 12, 2000 at 10:32:47AM -0500, Paindavoine, Matthieu (MPAINDAV) wrote: > > I have a hosed system, and I'd like to do a clean reinstall... I would like > to keep the .deb configuration I had. Is there a way using eg dpkg to take a > snapshot of the packages installed now, and feed this file at a later time > to select the packages to install? a) prior to reinstall: $ dpkg --get-selections \* > dpkg-selections.txt b) save file to (floppy) disk(s) c) after having installed the base system: $ dpkg --set-selections < dpkg-selections.txt > Thanks, HTH / good luck Sven -- Have you rebooted your NT box today?
Re: Some Newbie Questions
On Tue, Nov 07, 2000 at 08:28:06PM +1100, Damien wrote: > as root, edit /etc/inittab, and put a # at the start of every line that > doesn't already have one. you can then uncomment the services you want as you > go. this file controls stuff like telnet, ftp etc. just to clarify: he must have meant /etc/inetd.conf here and not /etc/inittab.
Re: Setting Reply-To && From fields dynamically
Anthony Fox wrote: > > > This is on a Linux machine and mail is sent using mailx's mail program. > > The MTA is sendmail (which I know little about). > > > > If there's anything as simple as setting an appropriate environment > > variable, that'd be just cool. The mail sending is done inside a > > (bourne) shell script. > > You could call sendmail itself from the shell script. i.e. > > #!/bin/bash > > [EMAIL PROTECTED] > [EMAIL PROTECTED] > > /usr/sbin/sendmail -t < To: $TO > From: $FROM > Subject: Whatever > > The message > > EOF > > This way, you could dynamically set TO and FROM variables to whatevery you > want. Thanks tons! Exactly what I was looking for!! Amazing list this is! Cheers Sven
Setting Reply-To && From fields dynamically
Hello This is rather urgent: does anybody know how I can simply set the Reply-To: and the From: fields for mails "dynamically"? This is on a Linux machine and mail is sent using mailx's mail program. The MTA is sendmail (which I know little about). If there's anything as simple as setting an appropriate environment variable, that'd be just cool. The mail sending is done inside a (bourne) shell script. TIA Sven (please CC me)
Re: calculating disk space
On Fri, Oct 20, 2000 at 08:30:43PM +1300, C. Falconer wrote: > C * H * S * kilobytes per sector Just what I needed. Cheers. Sven -- Powered by Debian GNU/Linux aka "The Rock"
calculating disk space
Hello all How can one calculate the amount of space a hard disk provides given only the disk's CHS values? Cheers Sven
Re: http port open?? how can that be?
On Fri, Oct 13, 2000 at 11:50:40AM -0500, William Jensen wrote: > I do not have apache installed, nmap localhost does not show http being open, > however, if I go to a friends machine and nmap my ip it shows http being > open. Also grc.com's port probe shows http being open. Thing is I just don't > see how this is possible considering I'm running iptables and the default > policy is drop. Anyone have any ideas what could be sneaking and letting port > 80 open? What says "lsof | grep www"? Here I get: # lsof | grep www apache 245 root 16u IPv4206 TCP *:www (LISTEN) apache 254 root 16u IPv4206 TCP *:www (LISTEN) apache 255 root 16u IPv4206 TCP *:www (LISTEN) apache 256 root 16u IPv4206 TCP *:www (LISTEN) apache 257 root 16u IPv4206 TCP *:www (LISTEN) apache 258 root 16u IPv4206 TCP *:www (LISTEN) apache 1346 root 16u IPv4206 TCP *:www (LISTEN) apache 1347 root 16u IPv4206 TCP *:www (LISTEN) apache 1348 root 16u IPv4206 TCP *:www (LISTEN) Sven -- The UNIX Guru's view of sex: unzip ; strip ; touch ; finger mount ; fsck ; more ; yes ; umount sleep
Re: Books suggestions / ports question
On Tue, Oct 10, 2000 at 02:22:37PM -0700, kmself@ix.netcom.com wrote: > Shell and tools "cook book": > > Jerry D. Peek, Tim O'Reilly, Mike Loukides, _UNIX Power Tools, 2nd > Edition_, O'Reilly, Ā© 1997, 1120 pages, ISBN: 1-56592-260-3, US$55 I'll probably get this one next. :) > You want to reach out and touch someone? The NAG, as it's > affectionately known, is available online in electronic format, but you > can take the hardcopy to your favorite cafe, the beach, or that most > popluar of technical reading environments, the WC. :) > Simson Garfinkel, Gene Spafford, _Practical Unix and Internet > Security_, O'Reilly, Ā© 1996, 1004 pages, ISBN: 1-56592-148-8 > > Wes Sonnenreich, Tom Yates, _Building Linux and OpenBSD Firewalls_, > John Wiley & Sons, Ā© 2000, 384 pages. ISBN: 0-47135-366-3. US$40 ... those are in the queue of pending books ... > As Richard Stallman says, using vi isn't a sin, it's a pennance. This > handy pocket guide will give you (or answer) a prayer. > > Arnold Robbins, _vi Editor Pocket Reference_, O'Reilly, ISBN > 1-56592-497-5, US$6.95 ... and this one, too ... :) Thanks a lot to all who replied. Highly appreciated. Sven
Books suggestions / ports question
Fellow debs, o First, can anyone tell me if the book "UNIX Power Tools" is any good? It's from O'Reilly. If not, what alternatives are there to it? Any other book(s) one simply *must* own? :) Topics: UNIX / Linux / Networking / C Programming My current collection comprises "DNS & BIND", "Linux in a Nutshell", "Learning the Bash shell", "Learning Debian/GNU Linux" (sucky) and finally "Linux Network Administrator's Guide", all from O'Reilly. o Second, where can I find infos on what ports Napster uses. Seems to work just fine with my current ruleset. I'd like to *know* what's going on though. :) Cheers Sven -- I can't be wrong, my modem's got error-correction.
Re: Off Topic: mutt and threading
On Tue, Oct 03, 2000 at 09:09:53PM -0400, Mike wrote: > Sven Burgener wrote: > > If I leave a mailbox having new mails, they become _O_ld. I don't > > like this. Can this be changed so that mails stay _N_ew even when I > > leave a mailbox and return to it later? > I hated that too. Turns out that adding: > set nomark_old > to my ~/.muttrc was the magic needed. I couldn't find this in /usr/doc/mutt/manual.txt.gz. So I am using "unset mark_old" like Chris Gray suggested. Thank ya all Sven -- The UNIX Guru's view of sex: unzip ; strip ; touch ; finger mount ; fsck ; more ; yes ; umount sleep
Re: Off Topic: mutt and threading
On Tue, Oct 03, 2000 at 01:23:20PM -0500, will trillich wrote: > On Mon, Oct 02, 2000 at 09:11:21PM -0500, William Jensen wrote: > > When I change into debian-user folder I have to always use o t for sort by > > thread. There has to be a way that I can tell mutt to always use threaded > > mode? > > you've got part of the answer. > > what if you also want the mailboxes displayed in date order? > > there may be another way, but here's how i did it: > > % alias m 'mutt -y -e "push Od"' Neat. I also have a mutt-related question: If I leave a mailbox having new mails, they become _O_ld. I don't like this. Can this be changed so that mails stay _N_ew even when I leave a mailbox and return to it later? -- "We will run this with the same kind of openness we have run Windows," Steve Ballmer on their .net service
Problems with samba / printing
Hello Whereabouts do you think the following problem lies? I can print on the system directly using "lpr", but when accessing the printer via its Samba share, there is only a file written to the printer spool directory (with the correct permissions and all), but nothing is actually printed out. I then have to do a "lpr $THATFILENAME" and the thing gets printed out; just as originally intended. "lpd" is up and running. The printer is a Canon BJC-4550. I can't provide you with any further details just now, as I don't have access to that system now. I'd be glad for any hints on things to look into. Thanks in advance Sven -- The program required me to install Windows 95 or better ... ... so I installed Linux.
Re: SW under /usr/local/
On Fri, Sep 29, 2000 at 11:47:29AM +0100, Colin Watson wrote: > >"Colin" == Colin Watson <[EMAIL PROTECTED]> writes: > >> Sven Burgener <[EMAIL PROTECTED]> wrote: > >>> I use GNU stow, but never actually saw anyone suggesting this to be > >>> *the* method. > > > >> You have now ;) That's exactly how I deal with it, and I haven't > >> seen anything that can do the job as well ... :) > >> And the symlink algorithm it uses just *rocks*. Sure does. > When you want to uninstall the package, you just cd to /usr/local/stow > again and type 'stow -D ', and it'll do the symlink magic > in reverse; then you can delete /usr/local/stow/ in one > go. That's the whole beauty of it. Thanks for all the replies. Sven -- The best way to escape from a problem is to solve it.
SW under /usr/local/
Quick question on administration: what exactly is the best way to deal with locally installed software from source under the /usr/local/ or /opt/ tree? I use GNU stow, but never actually saw anyone suggesting this to be *the* method. How do you guys best deal with this? Comments anyone? Regards Sven -- Have you rebooted your NT box today?
Re: udp or tcp?
On Sun, Sep 24, 2000 at 10:57:06AM -0500, Jeremy Gaddis wrote: [snip protocol stuff] Thanks, informative. > > This seems to be a broadcast by the DHCP server of my cable provider, > > right? > 67 == BOOTP server, 68 == BOOTP client. > It appears to be a machine (10.209.80.109) broadcasting a > request for an IP address (DHCP). Yes, because the packet is destined for the /server/ port, right. I will just ignore such packets (silently because I hate them appearing all over the logs). Sven -- Windows does *not* have bugs. It just develops random features.
Re: udp or tcp?
On Sun, Sep 24, 2000 at 05:33:09PM +0200, Oswald Buddenhagen wrote: > > Sep 24 15:20:25 host kernel: Packet log: input DENY eth0 \ > > PROTO=17 10.209.80.109:68 255.255.255.255:67 \ > > L=576 S=0x00 I=9145 F=0x4000 T=32 (#11) > > > proto=17 -> look at /etc/protocols -> yes, udp > > > This seems to be a broadcast by the DHCP server of my cable provider, > > right? > > > :68 -> look at /etc/services -> bootp - similar to dhcp. Thanks, good answer. Sven -- Windows does *not* have bugs. It just develops random features.
udp or tcp?
Hello Is the following a tcp or a udp packet? How do I tell? Sep 24 15:20:25 host kernel: Packet log: input DENY eth0 \ PROTO=17 10.209.80.109:68 255.255.255.255:67 \ L=576 S=0x00 I=9145 F=0x4000 T=32 (#11) This seems to be a broadcast by the DHCP server of my cable provider, right? Thanks Sven -- Windows does *not* have bugs. It just develops random features.
logged packets
Hi boys'n girls I have these entries in my logs: Sep 23 22:07:27 host kernel: Packet log: input DENY eth0 PROTO=17 \ 62.2.XX.XX:67 62.2.XX.XX:68 L=328 S=0x00 I=59001 F=0x4000 T=250 (#32) Sep 23 22:07:27 host kernel: Packet log: input DENY eth0 PROTO=17 \ 62.2.XX.XX:67 62.2.XX.XX:68 L=328 S=0x00 I=59002 F=0x4000 T=250 (#32) I cannot understand why they get logged. The responsible ipchains commands are: ${ipchains} -I input -p tcp -s 0.0.0.0 bootps --dport bootpc \ -i eth0 -j ACCEPT ! -y ${ipchains} -I input -p udp -s 0.0.0.0 bootps --dport bootpc \ -i eth0 -j ACCEPT What do I need to change for them to be able to *enter*? Sven -- "We will run this with the same kind of openness we have run Windows," Steve Ballmer on their .net service
Allow port 113? / IRC question
Hello Should I allow packets coming into my port 113? auth113/tcp authentication tap ident When doing ftp and also irc, I get packets onto that port. So, should I allow them to enter or is it unsafe to do so? Or is the better solution to REJECT those packets explicitly? (I currently DENY all by default.) Bitchx / IRC doesn't seem to function without auth working properly...? What - ports, etc. - do I need to enable for me to be able to do irc with 'bitchx'? I've not used bitchx before, so I'm a newbie in that respect. Any other things I should know? Regards Sven -- The best way to escape from a problem is to solve it.
Apache with Servlet support
Hello I'd simply like to know how easy it is to run Apache with Servlet support under Debian. Has anyone experiences with this? I am trying to compile Apache with Servlet support (JServ) and am having troubles with it. I use JDK and Sun's JSDK. (Intentionally not posting errors now) Anyone experiences with that setup? Sven -- The best way to escape from a problem is to solve it.
Port 118
Hello What's port 118 for? I can't find it in /etc/services though I have it in my logs as a denied (outgoing) packet (destination port is 118). Regards Sven -- I can't be wrong, my modem's got error-correction.
Re: Finding owner of IP
On Fri, Sep 15, 2000 at 10:27:54PM +0100, Jeff Green wrote: > whois Thanks to all. whois is good. Sven -- "We will run this with the same kind of openness we have run Windows," Steve Ballmer on their .net service
Finding owner of IP
Hi guys Given an IP, how can I find out who the owner is with the tools available on my potato box here? Thanks Sven -- "We will run this with the same kind of openness we have run Windows," Steve Ballmer on their .net service
Re: suid root
On Thu, Sep 14, 2000 at 10:18:37PM -0400, Jonathan D. Proulx wrote: > If this machine is in your home *and* your internet connection is via > intermittent dial-up with dynamic IP adressing, I say no big deal. > If you have persistant internet connection (via LAN, xDSL, Cable) your > risk goes way up. Quite true. > In order for this "security hole" to be exploited someone needs to > have shell access to your machine (by remote exploit or sniffing user > passwords from telnet, pop, and othe rplain text methods). Just how bad is it to fetch mails from a POP3 account right 'through' the Internet? (By that I mean having Inet connectivity at some (cable) provider and polling a mail account at some other provider, therefore passing various routers / gateways along the way) Regards Sven -- "We will run this with the same kind of openness we have run Windows," Steve Ballmer on their .net service
Re: corruption during power loss
On Thu, Sep 14, 2000 at 10:13:53PM -0800, Ethan Benson wrote: > your other option is using a Journeling filesystem such as Reiser or > ext3 (reiser i think is more mature at this point but still has some > serious limitations such as being unsuitable for use on /) It's time for Linux to integrate a journaling FS. Will this be happening with the upcoming 2.4? I mean 'integrated by default'. Also, which of the journaling FS projects will be the one integrated into the main kernel source tree (sometime)? Sven -- "We will run this with the same kind of openness we have run Windows," Steve Ballmer on their .net service
Re: DHCP client setup for @Home
Sorry to reply to my own mail, but hey, I finally got my cable connection working and I'm willing to share what I've learnt. ;-) The problems I experienced were with the method my cable provider uses to get their clients authenticated / initialized / connected. This is what happens: o First, you connect with some DHCP client program. You get an IP in the 10.x range. Then, you start your browser (lynx here) and you immediately jump onto a CISCO page where you are prompted to identify yourself with ID / password. o Having done that, it says that you are "registered". The web page tells you to "log off" / restart your computer. Now here is where the problem lied. What I did was "killall dhcpcd". That's *wrong*. I later found out about "dhcpcd -k". (-> wasn't documented anywhere!) Thing is, if I just kill the dhcpcd process, I don't correctly get logged off their system. And that led to the situation that I kept on getting "DHCP_NAK" in the logs the next time I tried to re-connect. Now that I am finally up and running here, I just need to configure some scripts, tweak some settings until I'm all set. :) I hope these infos are of some help to someone experiencing similar problems sometime later. :) (Cable speed rocks. Throughput averages at ~15 to 20KB/s) Regards Sven -- The best way to escape from a problem is to solve it.
Re: masq settings with /etc/init.d/networking script
On Wed, Sep 13, 2000 at 02:23:13PM -0700, C. R. Oldham wrote: > I just setup my Linux box to use the new /etc/init.d/networking startup > script. I was using the old /etc/init.d/network script from the > sysvinit examples. Can someone tell me where I'm supposed to put calls > to ipchains to setup my firewalling and masquerading? This has been asked a few times before. I do it as follows: /etc/init.d/fire.sh <- contains calls of the following firewall scripts: /etc/ppp/firewall_off.sh /etc/ppp/firewall_on.sh /etc/ppp/firewall_on.sh.bw /etc/ppp/firewall_on.sh.sol /etc/ppp/firewall_on.sh.sol.loose I have so many scripts as I am currently in the transition phase from ISDN dial-up to cable modem. Use the program update-rc.d to create links for the various runlevel-dirs if you use the SysV init. (See /etc/init.d/README and /usr/doc/sysvinit/README.runlevels.gz for more infos on this) I've not experienced downsides with this approach so far. HTH Sven -- L I N U X .~. The Choice /V\ of a GNU /( )\ Generation ^^-^^
Re: Debian VS. Red Hat
On Mon, Sep 11, 2000 at 11:02:45AM -0500, William Jensen wrote: > > Maybe the software in the distributions is about the same, but the > > distros themselves sure aren't. Right. > Support. OH yes support. The first time I set up RH (first linux ever) I > naturally had some problems and questions. I bought the retail version so > I had access to tech support from RH. The first mail I sent them was a "how > do you see colors in the directories when you do a ls" type of mail. The > reply came 13 days later and said (paraphrase) "I am so and so and I will > be your grade 3 support technician. What you asked about is already set > up and is part of the standard distribution, if it isn't working for you > then you changed something in your configuration and we are not responsible > for that." And that was it. And there was NO color with ls. I had a very similar experience with SuSE: first I had a jolly hard time getting through their automatic mail supporter to someone "human". Once there, the supporter told me that the question went beyond their scope of support. :-! I don't remember the exact Q I had, but it surely was something newbie-ish. Anyway, on this list, I'd have gotten a real useful reply in no time. Regards Sven -- The best way to escape from a problem is to solve it.
Re: /etc/rc.boot (new Q: 'outputting' manpage)
On Sat, Sep 09, 2000 at 06:15:25PM -0700, kmself@ix.netcom.com wrote: > You might also try: > > $ man foo | col -b > > ...to output straight ascii. Thanks, that's simple and nice. Regards Sven -- The UNIX Guru's view of sex: unzip ; strip ; touch ; finger mount ; fsck ; more ; yes ; umount sleep
Re: /etc/rc.boot (new Q: 'outputting' manpage)
On Sat, Sep 09, 2000 at 11:41:32PM +0100, Glyn Millington wrote: > OK. The trick is to get "man" to output in PostScript format: > man -t will do it. > > Then use the utility "psnup" (one of the GNU pstools package.). > It will print two or more pages of the man output onto one page, > thus saving some paper. > > man -t fetchmail | psnup -2 | lpr > > will print out your fetchmail man pages with two 'pages' to a > sheet. Thanks for the tip. Also thanks to all who replied with something similar. I will keep it for later reference, but I was merely interested in getting the contents of a manual page in plain text, so that I can can quote something from a man page when I compose a mail with mutt / vim. "zcat /path/to/man/page.gz | nroff -man" seems to do what I want. If there's anything better / simpler, I'd like to hear about it. :) Thanks to all Sven
Re: /etc/rc.boot (new Q: 'outputting' manpage)
On Sat, Sep 09, 2000 at 01:29:32PM -0700, Krzys Majewski wrote: > Sven Burgener <[EMAIL PROTECTED]> writes: > > > > Another way would be to directly use troff/nroff. > > > > Which is how? Never done this so please help me out a little. > > Well you can do something like this: > > 13:27:57$ zcat man.1.gz | nroff -man > ~/tmp/woo That seems to do a fine job. I cannot find a documentation of that "-man" parameter anywhere. Where would that be? (checked the man page of *roff) Regards Sven -- "We will run this with the same kind of openness we have run Windows," Steve Ballmer on their .net service
Re: /etc/rc.boot (new Q: 'outputting' manpage)
On Sat, Sep 09, 2000 at 09:59:55PM +0200, Christoph Groth wrote: > Sven Burgener <[EMAIL PROTECTED]> writes: > > How do I properly print out the contents of a manpage? > > When I do ":r! man blabla" in vi, I get funny characters at some places. > > Using man's --ascii option didn't help. > You can use Emacs (Even if this is hard for vi users ;-) ). Just type > M-x man and then write the buffer to a file with C-x w . Aaargh. This box is a p90 with little RAM. I want no GUI, nothing fancy, nothing bloaty. ;-) Besides I never used *Emacs, so that would take me some time to get into. Also, I like vi and don't need / want anything new now. > Another way would be to directly use troff/nroff. Which is how? Never done this so please help me out a little. Thanks Sven -- "We will run this with the same kind of openness we have run Windows," Steve Ballmer on their .net service
Re: /etc/rc.boot (new Q: 'outputting' manpage)
On Sat, Sep 09, 2000 at 10:41:06AM -0700, Krzys Majewski wrote: > What's the story with /etc/rc.boot/? Is it deprecated? Is it good? Taken from "man rc.boot": [snip] The /etc/rc.boot directory is obsolete. It has been superĀ seded by the /etc/rcS.d directory. At boot time, first the /etc/rcS.d directory is scanned and then, for backwards compatibility, the /etc/rc.boot directory. [snip] > Should its files be run by /etc/inittab via /etc/rcS? I suggest you place your scripts in /etc/init.d/ and run update-rc.d to create the appropriate links. ** Now I have a question: ** How do I properly print out the contents of a manpage? When I do ":r! man blabla" in vi, I get funny characters at some places. Using man's --ascii option didn't help. Sven -- I can't be wrong, my modem's got error-correction.
Re: hdparm
On Sat, Sep 09, 2000 at 09:44:15AM -0500, Jamie Raymond wrote: > Where's the best place to put a call to hdparm so that it gets invoked > upon booting? (would inserting it into an existing file in /etc/init.d > be appropriate?) Perhaps /etc/init.d/bootmisc.sh? Otherwise, just create your own script from /etc/init.d/skeleton and run update-rc.d. HTH Sven -- I am the "ILOVEGNU" signature virus. Just copy me to your signature. This email was infected under the terms of the GNU General Public License.
Re: core dump & few Qs
On Fri, Sep 08, 2000 at 09:24:27PM +0200, Sven Burgener wrote: > that the *actualy 2.2.17 is out? (Currently -pre6-1) s/*actualy/actual/ :-P
core dump & few Qs
Hello Some questions to be answered: o How, if possible, can I deliberately cause a core dump on Linux? (Running potato / 2.2.17-pre6-1 kernel from the sources available in potato.) o Will the 2.2.17 sources for potato be updated anytime soon, now that the *actualy 2.2.17 is out? (Currently -pre6-1) o I suppose "dlocate" is woody-and-later only? :) Thanks Sven -- "{sum += $2} END {print sum}", said Tom awkwardly.
Free X Server for WinDos
Hello The subject says it all. I found MI/X, but that seems not to be free anymore. Isn't there anything that's good *and* free? Anyone share some experiences? Cheers Sven -- The program required me to install Windows 95 or better ... ... so I installed Linux.
Re: DHCP client setup for @Home
On Wed, Sep 06, 2000 at 01:53:19PM -0500, John Reinke wrote: > Read Sven's message below again - dhcpcd - this is not server software. Yup, note the 'c' in dhcpcd. Stands for client. And the binary behaves like a daemon in the way that it disconnects from the terminal and keeps running the way usual daemons do -> in the background. That's why there's also a 'd' in it. # sudo dhcpcd --help DHCP Client Daemon v.1.3 [snip] > It worked for me before I even had a clue what I was doing! Same here. With the exception of not being able to actually do much more than "signing" on. (Just as I explained in my original mail) > It automatically is assigned the DNS servers, etc, so all you need to > do is turn it on and it works (even easier than static IP), unless @home > doesn't do "pure" DHCP. Oops, perhaps I should have stated that I do *not* use @home. I am not located in the United States, but in Switzerland, Europe. Oh, incase it matters: I'm running potato. Regards Sven -- The program required me to install Windows 95 or better ... ... so I installed Linux.
Re: How to get proposed-updates.
On Wed, Sep 06, 2000 at 03:39:09PM +1100, Brendan J Simon wrote: > How do I edit my /etc/apt/sources.list to access the proposed-updates or > potato-proposed-updates directory on the Debian mirrors. What are those "proposed updates"? How do they differ from the usual packages available online? Regards Sven -- The program required me to install Windows 95 or better ... ... so I installed Linux.
Re: DHCP client setup for @Home
On Wed, Sep 06, 2000 at 11:30:13AM -0500, Phil Brutsche wrote: > dhclient (that's the name of the executable in the dhcp-client package) is > the best (imo) dhcp client for unix-type systems. That would explain why > NetBSD, OpenBSD, and FreeBSD use dhclient in their bootup sequence when > you select "automatic interface configuration" (or something like that). How about dhcpcd? **--**--** Package: dhcpcd Priority: optional Section: net Installed-Size: 102 Maintainer: Dennis Kelly <[EMAIL PROTECTED]> Architecture: i386 Version: 1:1.3.17pl2-8 Replaces: dhcpcd-sv Depends: libc6 (>= 2.1.2) Conflicts: dhcpcd-sv Filename: dists/stable/main/binary-i386/net/dhcpcd_1.3.17pl2-8.deb Size: 37178 MD5sum: c843acf777bf739206ccfca1769de412 Description: DHCP client for automatically configuring IPv4 networking This package contains both the 0.70 and 1.3.x version of dhcpcd and should work with any Linux kernel. **--**--** Thing is, I am having trouble with getting my cable connection working. I can use "dhcpcd eth0" to get connected. I get an IP address, my default route gets set, and my /etc/resolv.conf is changed. So far so good, all *seems* well. Now, what I can do is ping the default gateway, but not the DHCP server. Also, I cannot resolve DNS names. Can anyone judge to say what *could* be the problem? Thing is exactly the same situation occurs under WinDos. (Them stupid support folks first told me to use WinDos instead of Linux - they don't support Linux!) Anyway, I am waiting for the cable company to respond / fix the problems. My guess is that their network is somewhat fsck'ed. > You weren't doing anything wrong. pump simply doesn't work very well. Has anyone ever had any problems when using dhcpcd instead of dhclient? I never tried dhclient. Thanks Sven -- The program required me to install Windows 95 or better ... ... so I installed Linux.
Re: Debian vs. Red Hat
On Tue, Sep 05, 2000 at 08:04:19PM +0518, USM Bish wrote: > MCSE ? In our part of the world that stands for "Must > Consult a Second Expert" ! Does M$ have some other > version of this acronym ? Yes, sure: "Minesweeper Consultant, Solitaire Expert". :) Sven -- The UNIX Guru's view of sex: unzip ; strip ; touch ; finger mount ; fsck ; more ; yes ; umount sleep
Re: sendmail reports I/O problem
On Mon, Sep 04, 2000 at 12:44:11PM -0700, Nate Amsden wrote: > > (Although I didn't know that they "proxy" our outgoing SMTP connects. > > Is this "usual"? Never seen it before. I can only see it in the headers.) > While i haven't encountered it personally im not suprised that a cable > ISP(i think you said the box was on a cablemodem ??) does this they are > real overprotective of the clients doing all kinds of weird things like > bandwidth capping, packet filtering, traffic monitoring, and i guess now > some network redirection. Yes, quite true. And most of all - at least in my case - NAT. ;-) But, it's none of their fsck'ing business what I do behind my little 468/25 box. :-P I mean, I pay for their service, regardless of how intensively I use it. Regards Sven -- Powered by Debian GNU/Linux 2.2 aka potato
Re: sendmail reports I/O problem
Hi guys, it's me again. Problem's solved. On Mon, Aug 28, 2000 at 03:29:08AM -0700, Nate Amsden wrote: > i agree with robert, it must be a prob with your ISP. In fact you're correct. The problem was at our provider whose routers / mail servers weren't playing like they intended them to. (Although I didn't know that they "proxy" our outgoing SMTP connects. Is this "usual"? Never seen it before. I can only see it in the headers.) Sven
Re: networking problem
On Sun, Sep 03, 2000 at 02:28:30PM -0500, Mike McNally wrote: > route add -host 127.0.0.1 lo > success (but isn't this supposed to be done by a bootup script ifup?) Sorry to butt into the middle of this thread like this, but I shouldn't the default route be re-set by "ifup -a"? If I set the default route to a different ethX interface, it doesn't get re-set onto the original eth0 if I do "/etc/init.d/networking restart", which is rather annoying. What am I missing? Thanks Sven -- "{sum += $2} END {print sum}", said Tom awkwardly.
short-key in /etc/inittab
Hello I have happily been using the Alt-Up key-combination, which can be configured in /etc/inittab: -- /etc/inittab snippet -- # Action on special keypress (ALT-UpArrow). #kb::kbrequest:/bin/echo "Keyboard Request--edit /etc/inittab to let this work." kb::kbrequest:/usr/sbin/pppd call bw ipparam mail -- /etc/inittab snippet -- Now, is there any way for utilizing more of those? Like Alt-{Down,Left,Right,Whatever} or some other key-combination? Cheers Sven -- The best way to escape from a problem is to solve it.
Re: ssh from nt?
On Sat, Sep 02, 2000 at 03:06:33PM -0500, William Jensen wrote: > KEA to use any sort of ssh? Alternatively, does anyone know of a windows > terminal package that is completely freeware that can use ssh? Place a search on Google for "TeraTerm". Download it and also get the SSH extension to it. Nice program. There are probably others, too. Just search on Google with appropriate keywords; something like "free SSH client NT" or something of the sort. Sven
BIND setup
Hello When starting bind, I get the following entries syslog'd: Sep 2 21:04:41 host named[1753]: Zone "168.192.in-addr.arpa" \ (file /etc/bind/homelan.ch.rev): No default TTL set using SOA \ minimum instead [...] Sep 2 21:04:41 host named[1753]: Zone "0.0.127.in-addr.arpa" \ (file /etc/bind/localhost.rev): No default TTL set using SOA \ minimum instead [...] Here is the probably relevant snippet of /etc/bind/homelan.ch.rev: @ IN SOA host.homelan.ch. svn.homelan.ch. ( 1999030300 ; serial no. 172800 ; refresh every other day 3600; retry 1 hour 360 ; expire 42 days 604800) ; minimun ttl for RRs --> 100hrs Where lies the misconfiguration? Regards Sven -- Have you rebooted your NT box today?
Re: howto recreate /dev/null ?
On Fri, Sep 01, 2000 at 03:09:05PM -0500, Will Trillich wrote: > On Fri, Sep 01, 2000 at 09:09:21PM +0200, Sven Burgener wrote: > > Not to be mean or anything, but FYI fetchmail can be made > > silent with "-s": > > -s, --silent work silently > > > > But then again, you probably already knew that. :) > you're half right. i suspected, but hadn't explored the > docs to find out. is there a performance penalty comparing > these two > some_verbose_command > /dev/null > versus > some_verbose_command --silent_running I *guess* --silent-running would be better in that respect as it doesn't print anything that needs to be redirected anywhere -> less "traffic". But hey, correct me if I'm wrong, anyone. > good eye. i thought about that one just after i hit the > SEND button. (i guess i need a shorter send button.) :) Sven -- "We will run this with the same kind of openness we have run Windows," Steve Ballmer on their .net service
Re: howto recreate /dev/null ?
On Thu, Aug 31, 2000 at 11:35:46PM -0500, Will Trillich wrote: > what's redirecting to '/dev/null' good for? here's > an example. if you're not running 'fetchmail' as its > own background daemon, to yank your email from various > servers, you can have cron do it for you. the thing is, > you get lots of tripe in the output. it tells you all > about how each message contains X octets, and how it's > downloading the data... none of which you really need. > > 15 * * * * fetchmail > /dev/null 2>&1 Not to be mean or anything, but FYI fetchmail can be made silent with "-s": -s, --silent work silently But then again, you probably already knew that. :) > you can also use /dev/null for STDIN as in > somecommand < /dev/null > in which case for ANY 'read' that the command does > from STDIN, it'll get EOF forever. Yup, just like the following line demonstrates nicely: :) > Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] \ > < /dev/null Sven -- Have you rebooted your NT box today?
Config'ing new 3Com NIC
Hello I got a new NIC for my system! It's a 3Com Etherlink XL PCI 3C900B-TPO. Apparently, dmesg reports nothing about it when rebooting: pcnet32.c: PCI bios is present, checking for devices... Found PCnet/PCI at 0xffe0, irq 10. eth0: PCnet/PCI 79C970 at 0xffe0, 08 00 09 9e 73 2e assigned IRQ 10. pcnet32.c:v1.25kf 26.9.1999 [EMAIL PROTECTED] That's only my primary NIC I've been using all the time so far. Has anyone got the same NIC working on his system? Which things do I need to enable / which drivers need compiling into the kernel? What exactly do I need to put into /etc/network/interfaces for this NIC to have it go up at boot-time? (Will be using DHCP for a cable modem connection on the NIC :) Cheers Sven -- I can't be wrong, my modem's got error-correction.
Re: Debian 2.2 and security - SecurityPortal article
On Wed, Aug 30, 2000 at 10:47:53PM +0200, Sven Burgener wrote: > Debian "back-ported" the relevant security patches that were available > up until potato was released. Be sure to check out the slashdot story > going on about this. I need to correct myself: Security upgrades are released after the distribution has become stable, also. I didn't mean to imply the opposite. :) Regards Sven
Re: Debian 2.2 and security - SecurityPortal article
On Wed, Aug 30, 2000 at 02:47:44PM +0200, Thomas Guettler wrote: > Complain about old Apache, ProFTP: If you always want the latest > fixes, you need to get the stuff from the sources (Eg www.apache.org) Debian "back-ported" the relevant security patches that were available up until potato was released. Be sure to check out the slashdot story going on about this. Regards Sven -- The UNIX Guru's view of sex: unzip ; strip ; touch ; finger mount ; fsck ; more ; yes ; umount sleep
Re: kernel 2.2.2 newbie question
On Mon, Aug 28, 2000 at 12:01:12PM -0700, Dale L . Morris wrote: > That's what I'm confused about, I am thinking, perhaps in error that > 2.2.2 is a later version than 2.2.16. Is that wrong? Yes, 2 is smaller than 16. It's not ".20" versus ".16". Regards Sven -- Windows does *not* have bugs. It just develops random features.
Re: sendmail reports I/O problem
Nate Amsden wrote: > are all the mails going to different hosts? or is your isp doing relay > for you ? could be a problem with the ISP, according to the sendmail Yes, just one relay. > FAQ. from the looks of what you pasted everything seems to be going thru > 1 remote host, if this is the case, then i'd suggest reconfiguring > sendmail so this does not happen to see if that host is causing trouble > or not. in any case it doesn't look to be on sendmail's end. I can't reconfig it that way as I'd then get a problem with namespace. Trust me, I tried it. > also see: > http://www.sendmail.org/faq/section3.html#3.10 This applies to PPP / SLIP lines. Sorry, my fault, I forgot to mention that this is a cable modem link. I still can't get to the bottom of this... Sven -- -- Sven Burgener Object Engineering GmbH mailto:[EMAIL PROTECTED]Birmensdorferstr. 32 Tel: ++41 (0) 1 400 47 00 CH-8142 Uitikon-Waldegg/Zuerich Fax: ++41 (0) 1 400 47 07 http://www.objeng.ch
sendmail reports I/O problem
Hello I have a truly annoying and urgent problem with sendmail. Particularly bigger mails containing attachments cannot be delivered. They always end up sitting around in the queue with I/O errors, after unsuccessful attempt of delivery. On the system, there are many sendmail processes up, yet there is no activity towards the internet. # mailq Mail Queue (4 requests) --Q-ID-- --Size-- -Q-Time- Sender/Recipient LAA22085 150805 Mon Aug 28 11:18 MAILER-DAEMON (I/O error: Input/output error) <[EMAIL PROTECTED]> HAA21130 148476 Mon Aug 28 07:00 [EMAIL PROTECTED] 8BITMIME (Warning: could not send message for past 4 hours) <[EMAIL PROTECTED]> WAA17490 249014 Sat Aug 26 22:00 [EMAIL PROTECTED] 8BITMIME (I/O error) <[EMAIL PROTECTED]> QAA16860* 246703 Sat Aug 26 16:00 [EMAIL PROTECTED] 8BITMIME (I/O error) <[EMAIL PROTECTED]> I do not know what to do about this one. A fsck didn't change anything, nor did rebooting / restarting the services. The machine has a cable modem connection to the Internet and any other type of traffic from / to the Internet goes smooth. A verbose debug run shows: ~ # sendmail -vvv -q Running LAA22085 (sequence 1 of 4) <[EMAIL PROTECTED]>... Connecting to mail.provider.com. via relay... 220 mail.provider.com ESMTP server (Post.Office v3.5.3 release 223 ID# 127-58610 U1000L100S0V35) ready Mon, 28 Aug 2000 11:23:52 +0200 >>> EHLO mail.ourdomain.com 250-mail.provider.com 250-HELP 250-EXPN 250-XREMOTEQUEUE 250-ETRN 250-PIPELINING 250 SIZE 52428800 >>> MAIL From:<> SIZE=150895 250 Sender <> and extensions (SIZE=150895) Ok >>> RCPT To:<[EMAIL PROTECTED]> 250 Recipient <[EMAIL PROTECTED]> Ok >>> DATA 354 Ok Send data ending with . [EMAIL PROTECTED] ... I/O error Waah! It takes ages until the final "I/O error" appears. Any help *greatly* welcomed. Please *do* CC me. Thanks Sven Burgener
Re: Hosts.all/Hosts.deny vs. a firewall?]
On Sun, Aug 27, 2000 at 04:42:13PM +, Pollywog wrote: > Since the most recent IP address change, I have been seeing in my > logs attempted connections to ports 137, 138, and 139 but I am > not concerned because I am guessing that someone was running a > server there before I got the IP address. On a cable modem machine I, too, often see connects to ports 137-139. Now, are these intentional? They obviously *can* be. What if a windos user goes into the "network environment" and searches and so forth... those broadcasts'll get logged, too, right? That would explain why those are the ports that most frequently get logged. > I run portsentry and logcheck together and it works well for me. I can't find portsentry in potato. Is the name mispelled or is it woody-only? Cheers Sven
Re: procmail receipes
Hello I find the following snippet useful: # Official debian mailing lists :0 H: * ^X-Loop: [EMAIL PROTECTED] * ^X-Loop: debian-\/[EMAIL PROTECTED] $DEBIAN/debian-$MATCH This'll place debian-WHATEVER in the file ~/Mail/debian/debian-WHATEVER. It is flexible. AFAIR, the first rule is just for making sure. It'll prolly work without it. Sven