Re: Getting X working with onboard NVidia 9400

2009-02-20 Thread Dan Christensen
Dan Christensen j...@uwo.ca writes:

 I've just bought the following motherboard

   Gigabyte GA-E7AUM-DS2H, 9400G IGP, 512MB

 but can't get X to run.  I'm using an old Debian etch installation, but
 I have upgraded X and the kernel to lenny.  I used the nvidia installer
 to install driver version 180.29, and have confirmed that the kernel
 module of that version number is loading.  The error I get in Xorg.log is

 (EE) NVIDIA(0): Failed to initialize the NVIDIA graphics device PCI:2:0:0. 
 (EE) NVIDIA(0): Please see the COMMON PROBLEMS section in the README for
 (EE) NVIDIA(0): additional information.
 (EE) NVIDIA(0): Failed to initialize the NVIDIA graphics device!

 In dmesg, I get:

 [ 2765.100578] NVRM: loading NVIDIA UNIX x86 Kernel Module  180.29  Wed Feb  
 4 23:44:25 PST 2009
 [ 2774.450899] NVRM: RmInitAdapter failed! (0x31:0x:1018)
 [ 2774.450906] NVRM: rm_init_adapter(0) failed

 I'm using an xorg.conf file generated by nvidia-xconfig.  I've put my
 xorg.conf and the full Xorg.log at

   http://jdc.math.uwo.ca/tmp/nvidia/

 The X version is X.Org X Server 1.4.2 and the kernel is
 linux-image-2.6.26-1-686 2.6.26-13.

 I've also tried compiling the Debian nvidia-kernel-source package,
 version 180.22, from experimental, with the same results.

 As an experiment, I tried the Debian nv driver, but it is too old to
 support this card, and I tried the vesa driver and got mtrr errors.
 A rescue CD I tried was able to bring up a basic X session, and I
 haven't yet done so again to see what config it used.

 Any thoughts?  Should I try asking in the nvidia forum?

 Dan

I've figured this out, and for the sake of the archives, here's my
solution:  all I did was upgrade grub from etch to lenny and run
grub-install (hd0), and then after a reboot things worked!

Also for the record, I posted lots of information here:

  http://www.nvnews.net/vbulletin/showthread.php?t=128535

Dan


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Getting X working with onboard NVidia 9400

2009-02-14 Thread Dan Christensen
I've just bought the following motherboard

  Gigabyte GA-E7AUM-DS2H, 9400G IGP, 512MB

but can't get X to run.  I'm using an old Debian etch installation, but
I have upgraded X and the kernel to lenny.  I used the nvidia installer
to install driver version 180.29, and have confirmed that the kernel
module of that version number is loading.  The error I get in Xorg.log is

(EE) NVIDIA(0): Failed to initialize the NVIDIA graphics device PCI:2:0:0. 
(EE) NVIDIA(0): Please see the COMMON PROBLEMS section in the README for
(EE) NVIDIA(0): additional information.
(EE) NVIDIA(0): Failed to initialize the NVIDIA graphics device!

In dmesg, I get:

[ 2765.100578] NVRM: loading NVIDIA UNIX x86 Kernel Module  180.29  Wed Feb  4 
23:44:25 PST 2009
[ 2774.450899] NVRM: RmInitAdapter failed! (0x31:0x:1018)
[ 2774.450906] NVRM: rm_init_adapter(0) failed

I'm using an xorg.conf file generated by nvidia-xconfig.  I've put my
xorg.conf and the full Xorg.log at

  http://jdc.math.uwo.ca/tmp/nvidia/

The X version is X.Org X Server 1.4.2 and the kernel is
linux-image-2.6.26-1-686 2.6.26-13.

I've also tried compiling the Debian nvidia-kernel-source package,
version 180.22, from experimental, with the same results.

As an experiment, I tried the Debian nv driver, but it is too old to
support this card, and I tried the vesa driver and got mtrr errors.
A rescue CD I tried was able to bring up a basic X session, and I
haven't yet done so again to see what config it used.

Any thoughts?  Should I try asking in the nvidia forum?

Dan


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: Upgrading kernel on a system that won't boot

2009-02-12 Thread Dan Christensen
Ron Johnson ron.l.john...@cox.net writes:

 On 02/11/2009 09:39 PM, Dan Christensen wrote:
 I have a system running etch.  I believe it has this kernel installed:

   linux-image-2.6.18-5-k7  2.6.18.dfsg.1-13etch2 

 The motherboard failed a few days ago, and I've just got a new
 motherboard and cpu.  However, the machine won't boot.

 The new cpu is a Core2Duo, but even though the kernel is -k7, that
 doesn't seem to be the problem.  Grub finds the kernel and it starts
 fine, but it has trouble when trying to mount the real root filesystem.
 This filesystem is raid 1 (md), and the kernel can't find either device.

 Probably it's device letter has changed.  At the Grub prompt, edit
 the command line to point it to the correct partition.

I don't think that's it, as the earlier kernel messages don't list the
hard drives as being found at all.

My first guess is that I need a newer kernel, but it occurred to me that
maybe all I need to do is update the initrd to include additional kernel
modules.  Is this plausible?  How would I do this using a live CD?

By the way, the new motherboard is a Gigabyte GA-E7AUM-DS2H:

  
http://www.gigabyte.com.tw/Products/Motherboard/Products_Spec.aspx?ClassValue=MotherboardProductID=2946ProductName=GA-E7AUM-DS2H

It doesn't say what chipset it has for SATA, although the manual
mentions NV SATA.

Dan


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: Upgrading kernel on a system that won't boot

2009-02-12 Thread Dan Christensen
Michael Pobega pob...@gmail.com writes:

 What I would do is put a live system on a USB flash drive (System Rescue
 CD is what I usually use) and mount the unbootable hard drive from
 within the live system. At that point you could wget a kernel deb from
 http://ftp.uk.debian.org onto your old mounted hard drive. chroot into
 your drive's mount point, dpkg -i linux-image-*, and you're done; your
 system should now be bootable.

Thanks, I suspected that that would be a reasonable plan, and I've just
checked that this doesn't seem to require upgrades to user space.

Now one thing about my system is that mounting /usr will be a bit
awkward, since it is lvm over several raid 5 devices.  Can anyone think
of a way to install a kernel .deb without having /usr mounted?  If I
just unpack it with dpkg-deb, copy the kernel, initrd and modules dir
to the right place, and update grub, will that be enough??

Thanks,

Dan


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: Upgrading kernel on a system that won't boot

2009-02-12 Thread Dan Christensen
Dan Christensen j...@uwo.ca writes:

 Michael Pobega pob...@gmail.com writes:

 What I would do is put a live system on a USB flash drive (System Rescue
 CD is what I usually use) and mount the unbootable hard drive from
 within the live system. At that point you could wget a kernel deb from
 http://ftp.uk.debian.org onto your old mounted hard drive. chroot into
 your drive's mount point, dpkg -i linux-image-*, and you're done; your
 system should now be bootable.

 Thanks, I suspected that that would be a reasonable plan, and I've just
 checked that this doesn't seem to require upgrades to user space.

 Now one thing about my system is that mounting /usr will be a bit
 awkward, since it is lvm over several raid 5 devices.  Can anyone think
 of a way to install a kernel .deb without having /usr mounted?  If I
 just unpack it with dpkg-deb, copy the kernel, initrd and modules dir
 to the right place, and update grub, will that be enough??

I see that the .deb doesn't contain a default initrd, so one needs to be
generated.  

1) Is there an easy way to do this without using dpkg to install the
.deb?

2) I'm wondering whether the initrd generated while running the kernel
from the livecd will work with the newly installed kernel.  Any
thoughts?

Dan


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: Upgrading kernel on a system that won't boot

2009-02-12 Thread Dan Christensen
Michael Pobega pob...@gmail.com writes:

 On Thu, Feb 12, 2009 at 06:16:32PM -0500, Dan Christensen wrote:
 
 Now one thing about my system is that mounting /usr will be a bit
 awkward, since it is lvm over several raid 5 devices.  

 Can anyone think of a way to install a kernel .deb without having
 /usr mounted?

 Run from a LiveCD and use dpkg with the --root option. Read dpkg(1) for
 more information.

It turns out /var is also on lvm, so that probably wouldn't work either.

But I tried sysresccd 1.1.5 and found that it automatically assembled
the raid devices and started lvm!  All I needed to do was vgchange -a
y to make them available.  So I just got everything mounted and used
the chroot method.

The machine is up and running again.

Thanks so much for your help!

Dan


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Upgrading kernel on a system that won't boot

2009-02-11 Thread Dan Christensen
I have a system running etch.  I believe it has this kernel installed:

  linux-image-2.6.18-5-k7  2.6.18.dfsg.1-13etch2 

The motherboard failed a few days ago, and I've just got a new
motherboard and cpu.  However, the machine won't boot.

The new cpu is a Core2Duo, but even though the kernel is -k7, that
doesn't seem to be the problem.  Grub finds the kernel and it starts
fine, but it has trouble when trying to mount the real root filesystem.
This filesystem is raid 1 (md), and the kernel can't find either device.

The hard drives are SATA, and the BIOS lets me configure them as Legacy
ATA, RAID or AHCI.  I've tried Legacy ATA and AHCI, and neither works.

A recent live CD is able to see the drives without any trouble, so I
suspect I need a newer kernel.

Finally my question:  can someone explain how to boot from a live CD and
upgrade the kernel I have installed?  Do I just mount the various
filesystems into a subtree, chroot to the root of that subtree, 
adjust sources.list, and do the upgrade?

Secondary question: Will the dependencies allow this without essentially
upgrading to lenny?  Or is there an etch backport of a more recent
kernel?  Or maybe I should just compile one from source for now?

Or is there an alternative, manual way to drop a new pre-compiled kernel
onto the existing system?

Thanks for any help,

Dan


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



kbdrate doesn't work from apmd_proxy

2004-06-10 Thread Dan Christensen
If I run kbdrate as root from the command line:

  # kbdrate -r 23
  Typematic Rate set to 21.8 cps (delay = 250 ms)

it works fine.  But if I run it from a script in /etc/apmd/event.d

  #!/bin/sh
  case $1 in
  resume)
  kbdrate -r 23 21 | logger
  ;;
  esac

I get

  ioctl(KDKBDREP): Inappropriate ioctl for device

in my log files.

Any idea how to work around this?

Please cc me on replies.

Thanks,

Dan


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



recovering /var, especially /var/lib/dpkg

2002-10-21 Thread Dan Christensen
I had a laptop stolen and shortly afterwards the two hard drives on a
server both failed.  Unfortunately, those drives contained the backups
of my laptop, and I wasn't able to recover my backup of /var.  So on
my new laptop I have restored everything except /var, and the question
is whether it will be possible to recover the essential parts of /var.

Luckily, before running each backup I save the output of dpkg -l in
/root, so I have a list of all installed packages and what version is
installed.

Is it possible to use this information to recreate the data dpkg needs
to operate?  What exactly is needed?

[I realize that I could just reinstall all the packages from scratch.
But that would entail answering lots of debconf questions, and doing a
lot of merging of conffiles since many packages will have been updated
since the laptop was lost.  (It was a while ago and I follow testing.)
So I'm hoping to avoid a reinstall.]

After getting dpkg working, are there any suggestions about how to
restore the other parts of /var?

Thanks for any advice.  Please cc me on replies.

Dan

-- 
Dan Christensen
[EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: stumped on xfonts-terminus

2002-05-02 Thread Dan Christensen
A reply to several people at once:

Peter De Wachter [EMAIL PROTECTED] writes:

 On Sat, Apr 27, 2002 at 05:16:24PM -0400, Dan Christensen wrote:
 But on a 14 inch 1600x1200 screen it's too small.  Can anyone
 recommend any good fixed-width fonts which are available in 
 large sizes?  (truetype/bitmap/whatever)  

 http://nova.bsuvc.bsu.edu/prn/monofont/ has reviews of several
 monospaced fonts. You'll probably find something to your liking
 there.

Thanks, that is an excellent resource.  There are some fonts out
there that I like, but now I'm having trouble getting xterm to
display them properly.

The biggest problem is the line spacing.  When I do:

  xterm -fa 'Andale Mono' -fs 12

I get a nice, anti-aliased font, but the lines are spaced way too
far apart.  Does this happen to others too?  I'm using xterm 4.1.0-16.

The second problem is than I can't get bold fonts with -fa.  If I do

xterm -fn '-monotype-andale mono-medium-r-normal--0-0-0-0-m-0-iso8859-1'

I get a bold font, but no antialiasing.  Does anyone know how to get
both?

Gary Turner [EMAIL PROTECTED] writes:

 On Sat, 27 Apr 2002 17:16:24 -0400, Dan Christensen wrote:

But on a 14 inch 1600x1200 screen it's too small. 

 Gad! That print must be minuscule.  

The size depends on the font you use.  It's not miniscule at all
for me!  :-)

 You're trying to use a 160 pixel per
 inch resolution.

143, actually.  

 On that small monitor, you'll find it a lot easier to read if
 you make 1024x768 your max size.  

Why throw away resolution?  I'd rather have a crisper font.  I'm
using an LCD and don't want to waste pixels.  But since most bitmap
fonts don't come large enough, this means I have to use truetype
or type1.

Dave Thayer [EMAIL PROTECTED] writes:

 Since you are running Hi-Res on a small screen make sure that you have
 your monitor's dpi or DisplaySize specified in XF86Config so that the
 font server can make sense of the pointsizes.

I put -dpi 143 on the X command line in /etc/X11/xdm/Xservers.  How
do I check if this is working?

Thanks for all the help!

Dan


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: stumped on xfonts-terminus

2002-04-27 Thread Dan Christensen
Tim locke [EMAIL PROTECTED] writes:

 uh, how can I make use of xfonts-terminus? I've
 installed it but there was no readme or man page to
 help out...

There's a readme in /usr/share/doc/xfonts-terminus.

% xterm -fn terminus-20

works for me.

But on a 14 inch 1600x1200 screen it's too small.  Can anyone
recommend any good fixed-width fonts which are available in 
large sizes?  (truetype/bitmap/whatever)  I've searched and
searched and can't find something I like.

Thanks,

Dan


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: ssh port mapping and HTTP

2002-04-26 Thread Dan Christensen
Bill Wohler [EMAIL PROTECTED] writes:

   I can get into my company's intranet with this:

 ssh -n -L 4281:www.secure.com:80 ssh.secure.com sleep 43200

   Then, to access http://www.secure.com/page.html, I use
   http://localhost:4281/page.html. And this works, so long as all of
   links in the page are relative.

I think you could run a proxy on ssh.secure.com (such as junkbuster or
webwasher), and then tunnel a connection from your machine to the
proxy using ssh.  Then set up your browser to use localhost as a proxy.

Dan


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Problem with Audigy soundcard

2002-04-22 Thread Dan Christensen
Hi All

I have a problem with SB Audigy soundcard, i have to do a insmod
emu10k1.o every time i have done a reboot, i tryed to put in a alias in
the file /etc/modutils/aliases no cigar soo i put in the line
alias sound emu10k1 in the file /etc/modules.conf but no luck so now i
dont know anymore.

Anyone ??

Tia 
Dan




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Anti-aliased fonts in Mozilla 0.9.9

2002-04-21 Thread Dan Christensen
John Krasnay [EMAIL PROTECTED] writes:

 I'm running Debian testing and I just got Mozilla 0.9.9. The
 anti-aliasing works, but I'm trying to enable subpixel rendering. I've
 added `match edit rgba = rgb;' to my /etc/X11/XftConfig, but the
 anti-aliasing hasn't changed...it still uses grey for partial pixels.

I've got subpixel rendering working in xterm's, but I can't get either
ordinary anti-aliasing or subpixel rendering working in mozilla 0.9.9.

Can you tell me what you did to get it working for mozilla?  I edited
/etc/mozilla/prefs.js and added lines saying:

pref(font.directory.truetype.4, /usr/share/fonts/truetype/commercial);
pref(font.directory.truetype.5, /usr/lib/X11/fonts/TrueType);

Then I ran:

% export NS_FONT_DEBUG=400
% mozilla

and got output like:

gEnableFreeType2 = 1, nsFontMetricsGTK.cpp 940
gFreeType2Autohinted = 0, nsFontMetricsGTK.cpp 956
gFreeType2Unhinted = 0, nsFontMetricsGTK.cpp 963
gAntiAliasMinimum = 10, nsFontMetricsGTK.cpp 970
gEmbeddedBitmapMaximumHeight = 100, nsFontMetricsGTK.cpp 978
initialize freetype, nsFreeType.cpp 310
anti_alias=1, embedded_bitmap=0, AutoHinted=0, gFreeType2Unhinted = 0, 
size=24px, Microsoft-verdana-iso8859-1, nsFreeType.cpp 624
anti_alias=1, embedded_bitmap=0, AutoHinted=0, gFreeType2Unhinted = 0, 
size=48px, Microsoft-verdana-iso8859-1, nsFreeType.cpp 624

But no antialiasing.

Have you got subpixel rendering working in an xterm?  If not, maybe I
can give you a hand.

By the way, it seems to me that logic for the rgba setting in
XftConfig is reversed.  When I set it to bgr (I'm pretty sure my Dell
Inspiron UXGA screen is bgr, as you go left to right), a small dot is
rendered as a blue pixel to the left of a red pixel, rather than the
other way around.  Anyone else having this problem?

Dan

-- 
Dan Christensen
[EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Tekram 315U PCI

2002-04-01 Thread Dan Christensen,,,

Hi all

Im having som problems with sub, i have dl the driver from tekram, bu it 
only a .c and a .h files, ant i dont know how to compile them so it 
works, or some other way of gettign this scsi controler to work, via a 
moduls. Pleas guide me im a total newbe


TIA Dan



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Some routing advice (connecting through SSH)

2001-10-25 Thread Dan Christensen
Hans Ekbrand [EMAIL PROTECTED] writes:

 On Thu, Oct 25, 2001 at 11:54:56PM +1300, Adam Warner wrote:
 I want to route some traffic though a remote computer (R) to my home
 computer (H). 

[web traffice]

 Another way of doing it, a bit more unsecure maybe, would be to
 install a proxyserver on R and only accept connections from H.

Yes.  For example, just install junkbuster or webwasher on R,
and set your browser on H to use R as a proxy.  I've done this
(for the same reasons as the original poster) several times.

Dan



Re: Some routing advice (connecting through SSH)

2001-10-25 Thread Dan Christensen
Dan Christensen [EMAIL PROTECTED] writes:

 Hans Ekbrand [EMAIL PROTECTED] writes:
 
 On Thu, Oct 25, 2001 at 11:54:56PM +1300, Adam Warner wrote:
 I want to route some traffic though a remote computer (R) to my home
 computer (H). 
 
 [web traffic]
 
 Another way of doing it, a bit more unsecure maybe, would be to
 install a proxyserver on R and only accept connections from H.
 
 Yes.  For example, just install junkbuster or webwasher on R,
 and set your browser on H to use R as a proxy.  I've done this
 (for the same reasons as the original poster) several times.

I should have said that this can be combined with ssh port
forwarding.  You have ssh forward H:1234 to R:5678, run a 
proxy on R listening on 5678, and set your browser to use
H:1234 as a proxy.

Dan



Re: X forwarding problem with SSH.

2001-09-06 Thread Dan Christensen
C. Scott Ananian [EMAIL PROTECTED] writes:

 On Wed, 5 Sep 2001, Dan Christensen wrote:

 In message [EMAIL PROTECTED]

 I'm having what sounds like the same problem.  See bug #96709
 
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=96709repeatmerged=yes
 [...]
[EMAIL PROTECTED]:~$ echo $DISPLAY
   scratchy:10.0

 OK, I just figured out how to make it work (for me at least):

 % export DISPLAY=localhost:10.0
 % xterm -ls

Unfortunately, this doesn't fix the problem for me, so I guess my
problem is different from yours.  Thanks for the suggestion, though.

Dan



Re: X forwarding problem with SSH.

2001-09-05 Thread Dan Christensen
In message [EMAIL PROTECTED]
C. Scott Ananian [EMAIL PROTECTED] writes:

 I installed a machine from debian unstable a few weeks ago, and I've been
 utterly unable to get X forwarding to work when logging into the machine
 remotely. 

I'm having what sounds like the same problem.  See bug #96709

  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=96709repeatmerged=yes

Additional information for the BTS:

  ssh to scratchy.  Then:
  
  [EMAIL PROTECTED]:~$ echo $DISPLAY
  scratchy:10.0
  [EMAIL PROTECTED]:~$ xauth list
  192.168.1.1:0  MIT-MAGIC-COOKIE-1  
  scratchy/unix:0  MIT-MAGIC-COOKIE-1 
  192.168.1.1:0  XDM-AUTHORIZATION-1  (this column deleted)
  scratchy/unix:0  XDM-AUTHORIZATION-1 
  hs240-108.onemeg.uwo.ca:0  MIT-MAGIC-COOKIE-1 
  hs240-108.onemeg.uwo.ca:0  XDM-AUTHORIZATION-1 
  hs240-230.onemeg.uwo.ca:0  MIT-MAGIC-COOKIE-1  
  hs240-230.onemeg.uwo.ca:0  XDM-AUTHORIZATION-1 
  [EMAIL PROTECTED]:~$ env | grep -i xauth
  [EMAIL PROTECTED]:~$ ls -l .Xauthority 
  -rw---1 jdc  jdc   404 Sep  2 23:16 .Xauthority

My machine uses pppoe to connect to the outside world, so its official
hostname changes from time to time.  Could this be related?

Adam McDaniel [EMAIL PROTECTED] writes:

 With the xserver running run the command in an shell prompt:
 $ xhost +

 That'll disable X security while you debug the issue.

This doesn't help me.

Dan



Re: Help setting DISPLAY to an ipmasq'd machine.

2001-06-08 Thread Dan Christensen
[EMAIL PROTECTED] writes:

   ssh -C -X ipmasq_box from work_linux_box
   ssh -C -X xserver_box from ipmasq_box (same session as above)
 
   In a new work_linux_box session: export DISPLAY=ipmasq_box:0.0
 xterm 

Don't set the DISPLAY variable.  ssh does it for you.

Dan



Re: Trials w/ Debian install

2001-06-08 Thread Dan Christensen
Cameron Matheson [EMAIL PROTECTED] writes:

 I'm a little embarrassed.  I've installed debian around 50 times, but
 somehow I can't do it on this computer.  I've started the installer (off
 of floppies), and I've gotten to the point where I should be able to
 install the base system over the network.  I have an 3COM Etherlink III,
 and the 3c509 module was installed w/ no errors, but it wouldn't install
 over the network.  I went into a shell and tried to ping my gateway, but
 I couldn't.  I can't ping anything on the network (except myself).  Not
 sure exactly what's wrong (seeing as the module installed fine), any
 thoughts would be appreciated.

I had the same problem.  I think that card (or at least, some versions
of it) simply don't work under the kernel that ships with Debian.  I
swapped mine for another card, did the install, recompiled a newer
kernel, and then swapped back.  The 3c509 worked fine with a newer
kernel.

Dan



net-pf-10 fork failed, errno 11

2001-05-31 Thread Dan Christensen
I get the following error message once or twice an hour in my syslog:

May 31 13:25:55 ren kernel: request_module[net-pf-10]: fork failed, errno 11

This happens whether or not I have

#alias net-pf-10 off# IPv6

commented out in my /etc/modutils/aliases file (and I did remember
to run update-modules after changing this).

Does anyone know what this might be coming from?

Dan



dif version of debian ??

2001-05-22 Thread Dan Christensen
Hi All

Im thinking about changen to debian from SuSE, so i started to get this list, 
but now im more in dubt about the way debian works and who many dif version 
ther are, i seen versions like 2.2.r2 2.2.r3 woody and the list go on. is 
ther a place to get the info on the versions and what the dif is from version 
to wersion, so i can finde the version best for me.

Sorry if this Q has been up before, but im fearly new to Linux.
TIA
-- 
Best regards/Med venlig hilsen
Dan Christensen
ICQ:2778293
Powered by SuSE Linux 7.1 Pro



Re: Problems using IPMASQ with PPPOE

2001-05-21 Thread Dan Christensen
Philip Bubel [EMAIL PROTECTED] writes:

 I am having problems using IPMASQ with PPPOE.  I'm running kernel 2.4.3 with
 the latest potato packages of IPMASQ and PPPOE, and the kernel is complied
 correctly (I think).  I am able to use PPPOE no problem, as the Linux box can
 connect to the internet, however none of the machines behind the firewall
 can.

With pppoe, there are problems with mtu sizes being mismatched which
cause the connection to freeze.  Running the following (one line)
after the other rules are added fixes this for me:

iptables -I FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pm

See

  http://www.hgfelger.de/mss/mss.html

for more information.

Dan



Re: Problems using IPMASQ with PPPOE

2001-05-21 Thread Dan Christensen
Dan Christensen [EMAIL PROTECTED] writes:

 Philip Bubel [EMAIL PROTECTED] writes:
 
  I am having problems using IPMASQ with PPPOE.  I'm running kernel 2.4.3 with
  the latest potato packages of IPMASQ and PPPOE, and the kernel is complied
  correctly (I think).  I am able to use PPPOE no problem, as the Linux box 
  can
  connect to the internet, however none of the machines behind the firewall
  can.
 
 With pppoe, there are problems with mtu sizes being mismatched which
 cause the connection to freeze.  Running the following (one line)
 after the other rules are added fixes this for me:
 
 iptables -I FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS 

This line got truncated.  The last part should read

  --clamp-mss-to-pmtu

 See
 
   http://www.hgfelger.de/mss/mss.html
 
 for more information.
 
 Dan



Re: Copying one hard drive to another - links

2001-05-15 Thread Dan Christensen
Alvin Oga [EMAIL PROTECTED] writes:

 i dont use hardlinks.. ( creates portability problems )

If you have standard Debian software installed, like gzip, then
you use hardlinks.

[EMAIL PROTECTED]:/# ls -l /bin/*zip*
-rwxr-xr-x4 root root46160 Dec  2  1999 /bin/gunzip*
-rwxr-xr-x4 root root46160 Dec  2  1999 /bin/gzip*

These files have 4 links to them.

 Maggie:/tmp/test# ln -s ./pinerc023592 x.s 
 Maggie:/tmp/test# ln  ./pinerc023592 x.h
 Maggie:/tmp/test# ls -la 
 total 2
 drwxr-xr-x   2 root root 1024 May 14 20:11 ./
 drwxrwxrwt   4 root root 1024 May 14 20:08 ../
 lrwxrwxrwx   2 root root   24 May 14 20:08 pinerc023592 -
 /home/alvin/pinerc023592
 lrwxrwxrwx   2 root root   24 May 14 20:08 x.h -
 /home/alvin/pinerc023592
 lrwxrwxrwx   1 root root   14 May 14 20:11 x.s -
 ./pinerc023592

What unix are you using?  That x.h sure looks like a soft symlink
to me.  On my Debian system:

[EMAIL PROTECTED]:/tmp/test% touch .pine
[EMAIL PROTECTED]:/tmp/test% ln -s ./.pine x.s
[EMAIL PROTECTED]:/tmp/test% ln ./.pine x.h
[EMAIL PROTECTED]:/tmp/test% ls -la
total 8
drwx--2 jdc  jdc  4096 May 15 10:04 ./
drwxrwxrwt   23 root root 4096 May 15 10:03 ../
-rw---2 jdc  jdc 0 May 15 10:03 .pine
-rw---2 jdc  jdc 0 May 15 10:03 x.h
lrwxrwxrwx1 jdc  jdc 7 May 15 10:04 x.s - ./.pine

A hardlink isn't symbolic in that the file name of the target
isn't stored.  Your test shows a softlink.

Dan



Re: Copying one hard drive to another - links

2001-05-15 Thread Dan Christensen
Alvin Oga [EMAIL PROTECTED] writes:

 - yes the hardlinks for gunzip and gzip is not a issue in that
   case since its in the same directory/partitions
   - hardlinks is a problem when it crosses directories
   and partitions since it keeps the leading /

Hardlinks can't cross partitions.  Try it.

The gunzip and gzip hardlinks *do* pose a problem if you use tar
to unpack an archive and /usr is mounted in a non-standard place.
Try it.  I think this is a bug in tar.

Dan



Re: Copying one hard drive to another

2001-05-14 Thread Dan Christensen
Bryan Andersen [EMAIL PROTECTED] writes:

 Osamu Aoki wrote:
  
  On Mon, May 14, 2001 at 01:48:29PM -0500, Bryan Andersen wrote:
 copy /dev/hda1 to /dev/hdb1?
   
mount /dev/hdb1 /mnt
cd mountpoint of /dev/hda1
find -xdev | cpio -padm /mnt
  
   This is the preferred method to copy partitions.  Some files don't
   copy properly with cp or tar
  
  Hi can you enlighten us who uses tar.  What files tar can not but
  cpio can copy?  Are those arguments true for GNU tar?
  
  pipe, softlink, hardlink, device nodes,...
 
 Named pipes and files with holes in their block allocation.

Gnu tar tries to handle the latter, according to the docs.

But I've had trouble with unpacking hardlinks with Gnu tar.  They seem
to be stored in the tar file including the leading /, so they can't
be unpacked with /usr mounted as /mnt/usr, say.

Dan

-- 
Dan Christensen
[EMAIL PROTECTED]



Re: Copying one hard drive to another - links

2001-05-14 Thread Dan Christensen
Alvin Oga [EMAIL PROTECTED] writes:

 i think the problem you have w/ hardlinks is more basic,
 how to create hard links or soft links... not a tar problem

...

 relative links is the preferred methodology ( hard or soft )
 and avoids the leading / and allows the portability of
 the files to be restored or shared in any level of hiercharcy

I don't think relative links make sense for hard links.  My
understanding is that in the file system, hard links are
stored by referencing the inode.  It is only tar that needs
to convert this to a textual form for storage in the tar file.

By the way, the files I had problems unpacking were standard Debian
executables in /usr/bin and /bin.  So I maintain that tar can't
unpack hard links properly.  Test it out yourself if you don't
believe me, Alvin!  :-)

Dan



Re: help with IP Masquerading, 2.4 kernel

2001-04-30 Thread Dan Christensen
Dwayne C. Litzenberger [EMAIL PROTECTED] writes:

 Turn on forwarding:
 
 echo 1 /proc/sys/net/ipv4/ip_forward

That's already done.  As I said, I can connect to remote systems
through the firewall machine, and data flows back and forth.  It's
just that it freezes up within a couple of minutes, usually.

Dan



help with IP Masquerading, 2.4 kernel

2001-04-27 Thread Dan Christensen
My main machine, scratchy, is connected to the net using PPPOE (PPP
over ethernet) over DSL.  I have another machine, cheddar, connected
to a second ethernet card on scratchy with an ethernet crossover
cable.  I am trying to using netfilter (iptables) to masquerade
cheddar behind scratchy, and it is almost working:  pings and DNS
lookups work fine, with no packets dropped and no errors.  telnet and
ssh work as well, until I try to transfer a lot of data at once
(e.g. a screenful, such as appears when you bring up a man page), at
which point the connection freezes.  wget freezes immediately.  But
netstat -i doesn't show any errors or dropped packets, and there is
nothing in the log files of any of the three machines involved.
Connections between cheddar and scratchy and between scratchy and
the outside world work perfectly.

Any suggestions where to look further?

Here's are some settings:

cheddar# ifconfig
eth0  Link encap:Ethernet  HWaddr 00:01:03:85:AC:D8  
  inet addr:192.168.0.2  Bcast:192.168.0.255  Mask:255.255.255.0
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:22 errors:0 dropped:0 overruns:0 frame:0
  TX packets:28 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:100 
  Interrupt:11 Base address:0xd400 

loLink encap:Local Loopback  
  inet addr:127.0.0.1  Mask:255.0.0.0
  UP LOOPBACK RUNNING  MTU:16144  Metric:1
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:0 

cheddar# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric RefUse Iface
192.168.0.0 0.0.0.0 255.255.255.0   U 0  00 eth0
0.0.0.0 192.168.0.1 0.0.0.0 UG0  00 eth0

scratchy# ifconfig
eth0  Link encap:Ethernet  HWaddr 00:80:C8:B9:FD:24  
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:180469 errors:1 dropped:0 overruns:0 frame:16190
  TX packets:173454 errors:87 dropped:0 overruns:0 carrier:153
  collisions:1241 txqueuelen:100 
  RX bytes:113137907 (107.8 Mb)  TX bytes:19757452 (18.8 Mb)
  Interrupt:3 Base address:0x300 

eth1  Link encap:Ethernet  HWaddr 00:E0:98:03:CF:B0  
  inet addr:192.168.0.1  Bcast:192.168.0.255  Mask:255.255.255.0
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:28329 errors:0 dropped:0 overruns:0 frame:0
  TX packets:29667 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:100 
  RX bytes:1911832 (1.8 Mb)  TX bytes:42401143 (40.4 Mb)
  Interrupt:9 Base address:0x320 

loLink encap:Local Loopback  
  inet addr:127.0.0.1  Mask:255.0.0.0
  UP LOOPBACK RUNNING  MTU:16144  Metric:1
  RX packets:26861 errors:0 dropped:0 overruns:0 frame:0
  TX packets:26861 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:0 
  RX bytes:13163203 (12.5 Mb)  TX bytes:13163203 (12.5 Mb)

ppp0  Link encap:Point-to-Point Protocol  
  inet addr:129.100.240.47  P-t-P:129.100.2.1  Mask:255.255.255.255
  UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
  RX packets:84071 errors:0 dropped:0 overruns:0 frame:0
  TX packets:71905 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:3 
  RX bytes:93703135 (89.3 Mb)  TX bytes:6373070 (6.0 Mb)

scratchy# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric RefUse Iface
129.100.2.1 0.0.0.0 255.255.255.255 UH0  00 ppp0
192.168.0.0 0.0.0.0 255.255.255.0   U 0  00 eth1
0.0.0.0 129.100.2.1 0.0.0.0 UG0  00 ppp0

scratchy# iptables -t nat -L
Chain PREROUTING (policy ACCEPT)
target prot opt source   destination 

Chain POSTROUTING (policy ACCEPT)
target prot opt source   destination 
MASQUERADE  all  --  192.168.0.0/24   anywhere   

Chain OUTPUT (policy ACCEPT)
target prot opt source   destination 

Thanks for any help anyone can provide!

Dan



Re: cron: nth weekday of month?

2001-04-27 Thread Dan Christensen
Does anyone have any clever solutions to the following problem of a
similar nature:  I want to run a job at 28 day intervals, i.e. on
every fourth Sunday.

Dan



Re: tulip.o

2001-04-22 Thread Dan Christensen
Jack [EMAIL PROTECTED] writes:

 Here is my problem with the Linksys NIC:
 
   . I have two NICs:  Linksys EtherFast 10/100 and Intel 10/100
   . Using 2.4.3 Kernel and have tulip.o module compiled in it.
   . The Interl NIC is detected as eth0 (btw,  did I compile any support
 for that card?  I dont think so.  it's a integrated NIC)
   . Linksys NIC is not detected at the boot time.  But can be brought up
 by insmod into eth1.
 
 My solusion for this:
 
   - Have a script which insmod tulip and have it called in
 /etc/network/interface,  just after eth0 is up before eth1 settings.

List the needed module in /etc/modules, which tells the kernel 
which modules to load at boot time.

Dan



Re: anyone have a epson stylus photo 870 working?

2001-03-05 Thread Dan Christensen
Ethan Benson [EMAIL PROTECTED] writes:

 On Mon, Mar 05, 2001 at 12:41:29AM -0500, Dan Christensen wrote:
  For the record, the stp driver in gs works great for me with my
  epson stylus color 860.  The print-4.0a3 package, available from
  http://gimp-print.sourceforge.net/, contains instructions for
  recompiling gs with the stp driver which are specifically for
  Debian.
 
 i tried this but it did not even compile

Where did it fail?  The Debian specific instructions are pretty
detailed.  Did you install the packages they say are needed?

-- 
Dan Christensen
[EMAIL PROTECTED]



Re: anyone have a epson stylus photo 870 working?

2001-03-04 Thread Dan Christensen
For the record, the stp driver in gs works great for me with my
epson stylus color 860.  The print-4.0a3 package, available from
http://gimp-print.sourceforge.net/, contains instructions for
recompiling gs with the stp driver which are specifically for
Debian.

Also available there is a .deb of the gimp which has the driver
built in, which allows you to print images.

Dan



capslock as control in console

2001-02-08 Thread Dan Christensen
I use the following to make capslock act as control in the console
window.  What I'm wondering is if there is a way to do this without
installing console-tools, which depends on console-data and
console-tools-libs, which altogether require almost 5M of disk space
on my machine.  Any thoughts?

Dan

loadkeys  EOF
keymaps 0-15
# make capslock produce Control:
keycode 58 = Control
# make left windows key produce control
keycode 125 = Control
EOF



Re: capslock as control in console

2001-02-08 Thread Dan Christensen
kmself@ix.netcom.com writes:

 on Thu, Feb 08, 2001 at 12:00:43PM -0500, Dan Christensen ([EMAIL PROTECTED]) 
 wrote:
  I use the following to make capslock act as control in the console
  window.  What I'm wondering is if there is a way to do this without
  installing console-tools, which depends on console-data and
  console-tools-libs, which altogether require almost 5M of disk space
  on my machine.  Any thoughts?
 
 Which, at current rates of disk storage, costs you about $0.004 --
 that's four cents of a cent, US.  

Of course the actual disk space used is not the issue.  More important
are:  the time required to download new versions when I dist-upgrade;
the time required to unpack and install these; the additional time
taken to perform a backup; the possibility of needing an extra CD to
backup onto (my system is close to overflowing a CD); and, if my
system grows enough, the time required to install a new, larger hard
drive and transfer the system to it.  [My system is a relatively slow
laptop, so all of these costs are real.]

Because of these issues, I try to keep my machines as lean as
possible.

loadkeys works without having console-data installed, so maybe
console-tools should just recommend console-data?

Dan



Re: reiserfs annoyances

2001-02-04 Thread Dan Christensen
Is there a way to convert an existing partition to reiserfs?  Or does
one have to create a new reiserfs partition and copy stuff over?  Is
there documentation outlining the procedure?

Dan



Re: WordPerfect 8 under debian

2001-02-01 Thread Dan Christensen
Stewart James [EMAIL PROTECTED] writes:

 Hi,
 
 Is anyone successfully running wp8 under debian unstable or testing.
 
 On execuation I get an error, can not find libXpm.so.4 it is unstalled it
 is there(/usr/X11R6/lib/). If I copy the library to /usr/lib. wp finds it
 but segfaults.

To install wordperfect, I needed to first install xlib6, libc5 and
xpm4.7.  (The latter is in stable but not unstable, if I recall
correctly.)

Dan



Re: kernel is using 50M of memory

2001-01-04 Thread Dan Christensen
brian moore [EMAIL PROTECTED] writes:

 On Thu, Dec 28, 2000 at 12:44:27PM -0700, Cameron Matheson wrote:
  Hey,
  
  I was looking at the memory usage (gmemusage, and /proc/meminfo),
  and I was noticing that 'linux' was using nearly 50m of memory.  I
  was rather disturbed, and wondering why
 
 Um, /proc/meminfo doesn't say how much the kernel is using (well, not
 directly, anyway -- you can derive it by subtracting how much RAM is in
 your system from the 'MemTotal' portion).
 
 Why do you think it's using 50M?  Sure -you- aren't using it?

I'm a bit confused about memory usage on my system, where I am running
the 2.4.0-test12 kernel.  Similar things seem to be happening with
test5, the only other kernel I've used recently.

In addition to the 3.7M difference between the memory I have installed
(128M) and the MemTotal value, there is also a lot of memory being
used that isn't allocated to any processes that I can find.  For
example, below is the output of top which shows all the processes I
had running at that time (I had killed most things).  Notice that mem
used + swap used - buff - cached is about 16M, even though if you add
up the sizes of the processes you get only 8M or so.  The output of
free confirms this.  Is this normal?  What is using this 8M?  The
kernel already has 3.7M reserved!  And when I when I run the program
gmemusage, it says that linux is using between 4 and 8M.

Anyone have any explanations?

Thanks,

Dan

This is with 2.4.0-test12 after running for about a day:

2:02pm  up 17:19,  1 user,  load average: 0.00, 0.02, 0.00
17 processes: 16 sleeping, 1 running, 0 zombie, 0 stopped
CPU states:   1.1% user,  87.2% system,   0.5% nice,  11.2% idle
Mem:  127320K av,  78360K used,  48960K free,  0K shrd,   1864K buff
Swap: 128516K av,244K used, 128272K free 60008K cached

 PID USER PRI  NI  SIZE  RSS SHARE STAT  LIB %CPU %MEM   TIME COMMAND
3 root  18   0 00 0 SW  0 94.7  0.0 891:41 kapm-idled
12802 root  12   0  1500 1500   756 R   0  0.9  1.1   0:00 top
1 root   9   0   512  508   448 S   0  0.0  0.3   0:09 init
2 root   9   0 00 0 SW  0  0.0  0.0   0:00 keventd
4 root   9   0 00 0 SW  0  0.0  0.0   0:08 kswapd
5 root   9   0 00 0 SW  0  0.0  0.0   0:00 kreclaimd
6 root   9   0 00 0 SW  0  0.0  0.0   0:01 bdflush
7 root   9   0 00 0 SW  0  0.0  0.0   0:03 kupdate
  161 root   9   0   744  744   616 S   0  0.0  0.5   0:03 syslogd
  163 root   9   0  1032 1028   436 S   0  0.0  0.8   0:00 klogd
  351 root  10   0  1420 1420  1064 S   0  0.0  1.1   0:00 bash
12784 root   9   0   480  480   420 S   0  0.0  0.3   0:00 getty
12785 root   9   0   480  480   420 S   0  0.0  0.3   0:00 getty
12786 root   9   0   480  480   420 S   0  0.0  0.3   0:00 getty
12787 root   9   0   480  480   420 S   0  0.0  0.3   0:00 getty
12788 root   9   0   480  480   420 S   0  0.0  0.3   0:00 getty
12803 root  10   0   644  644   524 S   0  0.0  0.5   0:00 less

free:
 total   used   free sharedbuffers cached
Mem:127320  77552  49768  0   1864  60012
-/+ buffers/cache:  15676 111644
Swap:   128516244 128272



input/output errors

2000-11-22 Thread Dan Christensen
Starting today, the two debian machines I maintain have started
producing error messages like the following:

/etc/cron.daily/standard:
find: /var/spool/news/message.id/046/[EMAIL PROTECTED]: Input/output error
[dozens more omitted]

% ls /var/spool/news/message.id/046/\[EMAIL PROTECTED]
ls: /var/spool/news/message.id/046/[EMAIL PROTECTED]: Input/output error
% cat /var/spool/news/message.id/046/\[EMAIL PROTECTED]
cat: [EMAIL PROTECTED]: Input/output error

Can anyone explain what could be causing this?  Could my hard drives
be failing?

Thanks for any help,

Dan

-- 
Dan Christensen
[EMAIL PROTECTED]



Re: horrible single `quotes' in font fixed

2000-11-11 Thread Dan Christensen
Eric G . Miller egm2@jps.net writes:
 On Sat, Nov 11, 2000 at 02:39:47PM +0100, Richard P. Groenewegen wrote:
  I've used the font `fixed' as long as I can remember and I liked the
  fact that the backtick (`) and the single quote (') had a symmetrical
  appearance.  Since I've been using xfree4 this has changed: the
  backtick is slanted backwards and the single quote is completely
  vertical.  How horrible!  Imagine how terrible my TeX-files will look!
  Can anyone tell me how to get my old fixed-font back, or how to `edit'
  this font?
 
 As another poster said, you can change the default fixed font.  

But the question is, where did the old fixed font go?  Can it be
included in the distribution?  Or is there some other place to
find it?  I also liked it better.

 BTW, it
 wouldn't affect you TeX-files at all, since TeX uses it's own fonts --
 Computer Modern -- by default (others if you so choose).

I think he was referring to the .tex source files.  They do look funny
with unsymmetrical quotes.

While we are talking about fonts, does anyone know why the italic
version of the default fixed font looks to bad?  (I'm referring to
the default italic font that shows up in emacs, for example.)  It
has very blotchy vertical lines.

Dan

-- 
Dan Christensen
[EMAIL PROTECTED]



Re: X Server can't find font `fixed'

2000-10-19 Thread Dan Christensen
Michael Abraham Shulman [EMAIL PROTECTED] writes:
 I just upgraded a bunch of packages to unstable and now my X server
 dies saying
 
 Fatal server error:
 could not open default font 'fixed'

This happened to me to.  I downloaded the xfonts-base deb and did dpkg
-i on it (same version I already had installed).  The problem was that
the file

/usr/X11R6/lib/X11/fonts/misc/fonts.alias

was missing, but to be safe I reinstalled the whole package.  I never
figured out what caused this.

BTW, is there a way to get apt to download and reinstall the current
version of a package?

Dan



Re: setting memory limits for ssh and xdm logins

2000-10-03 Thread Dan Christensen
Ethan Benson [EMAIL PROTECTED] writes:
 On Mon, Oct 02, 2000 at 10:36:39PM -0400, Dan Christensen wrote:
  I have put limits in /etc/security/limits.conf to prevent a user from
  bringing down my machine by using up all the memory, and I have
  uncommented the line
  
  sessionrequired   pam_limits.so
  
  in /etc/pam.d/login so that this is read.  When I log in using
  a virtual terminal this works perfectly, but these settings are
  ignored by both ssh and xdm logins.
  
  Moreover, the tcsh limit command and the bash ulimit command are
  also ignored, in all cases.
 
 sprinkle ulimit commands in /etc/X11/Xsession

Ahh, you are right, that solves the xdm problem.  ulimit -v is what I
wanted.  I missed this because I use tcsh which doesn't seem to have
an analog of this limit using its built-in limit command.  Is there a
way to set a limit on virtual memory use within tcsh?

And is there a natural place to put a ulimit -v command for ssh logins?
Somewhere that can't be overridden by users and which works for users
who use tcsh?

Thanks for the help!

Dan

-- 
Dan Christensen
[EMAIL PROTECTED]



setting memory limits for ssh and xdm logins

2000-10-02 Thread Dan Christensen
I have put limits in /etc/security/limits.conf to prevent a user from
bringing down my machine by using up all the memory, and I have
uncommented the line

sessionrequired   pam_limits.so

in /etc/pam.d/login so that this is read.  When I log in using
a virtual terminal this works perfectly, but these settings are
ignored by both ssh and xdm logins.

Moreover, the tcsh limit command and the bash ulimit command are
also ignored, in all cases.

Can anyone suggest a way to set process limits for ssh and xdm logins?

Any help appreciated.

Dan

-- 
Dan Christensen
[EMAIL PROTECTED]



Re: Nessus potato

2000-06-07 Thread Dan Christensen
Pollywog [EMAIL PROTECTED] writes:
 You do need to install nessusd on the machine you are going to scan, right?

Really?  I don't think that is the case.  I thought the whole point
was to be able to scan a machine from the outside

The solution to my problem turns out to be a missing directory:
/var/lib/nessus

Dan



Re: Nessus potato

2000-06-06 Thread Dan Christensen
[EMAIL PROTECTED] [EMAIL PROTECTED] writes:
 anybody gotten this to work? if so what did you do? i can't get it to
 login..i added a user (test/test) but it wont let me login.

I didn't try nessus with potato, but with woody I am having no trouble
logging in.  I made the user name for nessus the same as my linux
user name---not sure if that is why it works for me and not for you.

BUT, I can't get nessus to actually do a scan successfully.  When
I click on Start the scan I get COMMUNICATION ERROR 20091:
Received EOF when block was expected.

I don't know if it is related, but when I start nessusd I get the
warning open : No such file or directory and then it stays running
and accepts logins.

Does anybody know how to fix this?  I'm just sent in a bugreport...

Dan



determining what makes a filesystem busy

2000-05-29 Thread Dan Christensen
Is there an easy way to determine what makes a filesystem busy, e.g.
what prevents me from remounting /usr readonly after an upgrade?
Usually some file that was erased is being held open by a process,
but I don't know an easy way to determine which file or process.
lsof | grep usr is a start, but provides too long a list.  Is
there an easier way?

Dan



Re: determining what makes a filesystem busy

2000-05-29 Thread Dan Christensen
Christophe TROESTLER [EMAIL PROTECTED] writes:
 On Mon, 29 May 2000, Dan Christensen [EMAIL PROTECTED] wrote:
  
  Is there an easy way to determine what makes a filesystem busy, e.g.
  what prevents me from remounting /usr readonly after an upgrade?
  Usually some file that was erased is being held open by a process,
  but I don't know an easy way to determine which file or process.
  lsof | grep usr is a start, but provides too long a list.  Is
  there an easier way?
 
 man fuser

Does that really do what I want?  It seems like that would tell me
what I can't *unmount* a filesystem, but I want to find out why
I can't remount a filesystem readonly.

fuser -m /usr produces about 70 pids...

Dan



what does [shellutils on hurd] mean?

2000-05-03 Thread Dan Christensen
Lately when I've been doing 'apt-get -s dist-upgrade' on my woody system
I often get dozens of things like

Inst kernel-package [shellutils on hurd]

Can someone tell me what this means?  Thanks.

Dan


ssh unable to listen to port

2000-04-06 Thread Dan Christensen
I'm using 

ii  ssh1.2.2-1.4  Secure rlogin/rsh/rcp replacement (OpenSSH)

on a recently updated woody system.  I often use ssh to forward ports.
Sometimes ssh refuses to do so:

[EMAIL PROTECTED]:~# ssh -L 119:news.jhu.edu:119 [EMAIL PROTECTED] 'sleep 6'
Disconnecting: cannot listen port: 119

The previous copy of ssh is no longer running, so the port should
be free.  How can I find out what is preventing ssh from listening
to the port?

Thanks for any help,

Dan

PS:  Here is an excerpt of the output when ssh is given the -v flag:

debug: RSA authentication accepted by server.
debug: Connections to local port 119 forwarded to remote address 
news.jhu.edu:119
debug: Local forwarding listening on 127.0.0.1 port 119.
bind: Address already in use
Disconnecting: cannot listen port: 119

-- 
Dan Christensen
[EMAIL PROTECTED]


sshd pam_putenv error message

2000-04-05 Thread Dan Christensen
When I logout from my Debian machine (recently updated from woody)
after connecting via ssh, the following message is put into my
syslog.  I can't figure out what is causing it.  Any ideas?

scratchy sshd[1415]: PAM pam_putenv: delete non-existent entry; MAIL

Thanks for any help.

Dan

-- 
Dan Christensen
[EMAIL PROTECTED]


ssh X forwarding not working

2000-04-05 Thread Dan Christensen
When I connect to my laptop using ssh, X forwarding doesn't work.
For example:

  [EMAIL PROTECTED]:~% ssh localhost xterm
  X11 connection rejected because of wrong authentication.
  
  X connection to scratchy:11.0 broken (explicit kill or server shutdown).
  [EMAIL PROTECTED]:~% ssh localhost echo \$DISPLAY
  scratchy:12.0

When I connect from the laptop to other machines, forwarding works
properly.  I have forwarding turned on.

  [EMAIL PROTECTED]:~% grep Forward /etc/ssh/*config
  /etc/ssh/ssh_config:### ForwardX11  ForwardAgent
  /etc/ssh/ssh_config:ForwardAgent yes
  /etc/ssh/ssh_config:ForwardX11 yes
  /etc/ssh/sshd_config:X11Forwarding yes

Supplying the appropriate command line options doesn't help.  The
machine is running

ii  ssh1.2.2-1.4  Secure rlogin/rsh/rcp replacement (OpenSSH)

Any suggestions?

Dan

-- 
Dan Christensen
[EMAIL PROTECTED]


running multiple commands via ssh quickly

2000-03-06 Thread Dan Christensen
I have various shell scripts that do something like the following:

if ssh -a -x remote-machine remote-command  local-file
then
  ssh -a -x remote-machine another-command
  local-command
else
  ssh -a -x remote-machine third-command
  another-local-command
fi

and more complicated variations.  The commands in question are
very fast, but the script is slow because ssh needs to authenticate
each time.  (I run ssh-agent and have entered an identity into the
agent before running the script, so no passwords need to be typed.)

What I am looking for is a way to just authenticate once, and then
have the ability to run remote commands getting the error code and
the output on the local machine.

Is there an easy way to do this?

The sort of thing I imagine is running ssh once to forward a local
port to the remote machine, and then somehow sending commands along
the channel and getting the error code and output also on that
channel.  But this seems a bit tricky to set up.

Thanks for any ideas.

Dan

-- 
Dan Christensen
[EMAIL PROTECTED]


files appear corrupt, but aren't; kernel bug?

2000-01-16 Thread Dan Christensen
Over the past few hours, my potato machine has been behaving very
strangely.  Many of the files on my hard drive or which I read from
cdrom have minor errors.  Specifically, at a random point in the file,
two consecutive bytes are changed to 160 and 192 (240 300 octal).
Moreover, this often repeats every 4194305 bytes!  (That 2 to the 22nd
power, plus 1.)  Only large files seem to be affected, and this makes
sense given the large gap between the bad bytes.  However, I believe
that the files on the disks are fine because the problem goes away
sometimes.  For example, during a period when the computer was
misbehaving, I wrote a tar file to cd.  Now I get

% cmp -l copy-on-cdrom copy-on-hard-drive
2078721 240  53
2078722 300  74
6273026 240 127
6273027 300 374
10467331 240  46
10467332 300 304
14661636 240 344
14661637 300 151

Notice that the copy on the hard drive is now ok;  it was misbehaving
when the transfer was done, and so the transfer is corrupt.

Also,

% bzcap kernel-source-2.2.13.tar.bz2  /dev/null

used to produce

  bzcat: Data integrity error when decompressing.

but now has gone back to being silent.  I ran bzip2recover on
the kernel source when it was misbehaving, and the components
differ from what the file now contains by 240 300 at one spot.

Can anyone tell me what might be happening here?  Is there
software I can use to help diagnose this?  

My hardware:  Transmonde Vivante SE, 6G IDE HD, scsi pcmcia card
hooked to Yamaha 4416S cdrw.

I read the list, but you are encouraged to cc your replies
directly to me.

Thanks very much,

Dan

-- 
Dan Christensen
[EMAIL PROTECTED]


Re: files appear corrupt, but aren't; kernel bug?

2000-01-16 Thread Dan Christensen
Scott Henry [EMAIL PROTECTED] writes:
  D == Dan Christensen [EMAIL PROTECTED] writes:
 
 D Over the past few hours, my potato machine has been behaving very
 D strangely.  Many of the files on my hard drive or which I read from
 D cdrom have minor errors.  Specifically, at a random point in the file,
 D two consecutive bytes are changed to 160 and 192 (240 300 octal).
 D Moreover, this often repeats every 4194305 bytes!  (That 2 to the 22nd
 D power, plus 1.)  Only large files seem to be affected, and this makes
 D sense given the large gap between the bad bytes.  However, I believe
 D that the files on the disks are fine because the problem goes away
 D sometimes.  For example, during a period when the computer was
 
 Hmmm, I would suspect either memory, or problems with the SCSI bus. 

Thanks for the suggestion.

It's definitely not a SCSI problem, because it happens on both my IDE
hard drive and on my SCSI cdrom.  And I'm doubtful that memory is the
problem, since the bad bytes are always 160 followed by 192, whereas
I would expect flakey memory to just flip a few random bits.  I
suspect that my memory is fake-parity but I don't know for sure.

Further info:  the problem seems to be completely gone now.  It lasted
for a few hours, and was consistent during those few hours.  Every
file I read that had bad bytes, consistently had the same bytes bad
until the problem went away.  Then the bytes were back to their
correct values.  I don't think this is a caching issue, since I
tested this on lots of very large files, larger than the ram I
have available.  And I have proof that I wasn't just imagining things:
while there were problems I copied a bad file to another file name.
Now the original is file, but the copy is still bad.

Very strange.  Does anyone have any other ideas?

Dan

-- 
Dan Christensen
[EMAIL PROTECTED]


Re: Upgrading pcmcia-* breaks ppp

2000-01-16 Thread Dan Christensen
[EMAIL PROTECTED] writes:
 After buying a pcmcia nic I thought that upgrading the pcmcia-* 
 packages and recompiling the pcmcia modules would be a good 
 idea. 
[...] 
 this broke
 my ppp setup somehow. I have a 56K pcmcia modem, running as 
 ttyS2 (pppd uses /dev/modem which is a symlink pointing to 
 /dev/ttyS2). Now, whenever I fire up pppd I get:
 
 Jan 15 19:16:30 sirius pppd[352]: pppd 2.3.5 started by lehman, uid 1001
 Jan 15 19:16:30 sirius pppd[352]: tcgetattr: Input/output error(5)
 Jan 15 19:16:31 sirius pppd[352]: Exit.
 
 ...just as if the modem wasn't inserted at all.
[...]
 And setserial says:

I found two solutions to this problem.  The easiest is to remove the
setserial package.  Doing this solved my problems immediately, so
unless you need setserial for some reason, it seems like a good
thing for you to try.

A more awkward fix that I stumbled upon by trial and error was
to run the following script near the end of the boot process,
after cardmgr starts and sees the card:

#!/bin/sh

# This seems to make my pcmcia modem work.  Didn't need to do this
# before upgrading from slink to potato.  This assumes that the
# modem will be in slot 0, the top slot.

echo Setting /dev/ttyS1 irq to 7; ejecting cards; inserting cards.
setserial /dev/ttyS1 irq 7
sleep 1
cardctl eject 0
sleep 3
cardctl insert 0

Of course, the irq you choose may need to be different.

Hope this helps.

Dan

-- 
Dan Christensen
[EMAIL PROTECTED]


questions about slink to potato upgrade

1999-11-29 Thread Dan Christensen
, then hopefully they
can be fixed for others who try to upgrade.  I will eventually submit
bug reports but thought I'd start here first.  Thanks for any
information.

Dan

-- 
Dan Christensen
[EMAIL PROTECTED]


bad alternatives symlinks after potato upgrade

1999-11-29 Thread Dan Christensen
I just upgraded my mostly stock slink machine to potato with
apt-get update; apt-get dist-upgrade.  Now I have both /usr/man
and /usr/share/man on my system, and neither is a symlink to the
other.  A quick glance showed no files in common between the
two directories, and they both contain around 7.5M.  man foo
works for foo's in either directory.  But the alternatives
system is messed up, with symlinks pointing to the wrong place.

An example is /etc/alternatives/editor.1.gz, which points to
/usr/man/man1/elvis.1.gz, which does not exist.  However,
/usr/share/man/man1/elvis.1.gz does exist.

What happened?  Would manually changing all the bad symlinks
in /etc/alternatives to point to the right place be the correct
fix?  Is there an automatic way to do this?

Thanks for any suggestions.

Dan

-- 
Dan Christensen
[EMAIL PROTECTED]


Re: questions about slink to potato upgrade

1999-11-29 Thread Dan Christensen
Graham Williams [EMAIL PROTECTED] writes:
 I went that path also (dist-upgrade to get potato) and had some of the
 same problems.  
 
 The most serious for me was that my pcmcia modem card stopped working
 somewhere along the way. 

I also have had this problem.  One thing that makes my modem work
again is to type:

  setserial /dev/ttyS1 irq 0

(You will need to replace the device with the correct one for your
modem.)

irq 0 means to not use interrupts, and instead use a slower polling
method.  So this isn't a long term fix.  My modem does sometimes
work with real irq's, but usually does not.  

Does anyone have any other suggestions?

Dan


Re: ip-up scripts not running

1999-06-14 Thread Dan Christensen
Alisdair McDiarmid [EMAIL PROTECTED] writes:
 I've got a script in /etc/ppp/ip-up.d to run fetchmail on connect,
 but it doesn't appear to be run 
...
 The /etc/ppp/ip-up.d/fetchmail file is just:
 
 /usr/bin/fetchmail --invisible --fetchmailrc /etc/fetchmailrc

According to the run-parts man page:

   Scripts must follow the #!/bin/interpretername  convention
   in  order  to be executed.  They will not automatically be
   executed by /bin/sh.

Dan

-- 
Dan Christensen
[EMAIL PROTECTED]


'cardctl resume' twice kills slink

1999-05-10 Thread Dan Christensen
I have a Transmonde Vivante laptop with a PCMCIA modem running Debian 2.1.
I recompiled kernel 2.0.36 to use apm, and recompiled the kernel modules
as well.  For the most part, my modem is fine.  If I type 'cardctl suspend', 
all is well.  However, if I then type

% cardctl resume; cardctl resume

then my machine crashes.  (I think cardctl forks to the background, so this
is like running two copies at about the same time.)  The crashes come
in different flavors, but almost always happen.  Occasionally I get
what is probably the correct behavior, namely an error message
ioctl(): Device or resource busy.  But most of the time I get a
crash.  Usually thousands of lines of numbers scroll by (if I'm logged
into a virtual terminal when running cardctl), including things like
Call Trace: ... and Code: ... and Aiee, killing interrupt
handler.  Then the machine freezes, and won't respond to anything
but the power off switch.  

Once I managed to get syslog to capture a bit of info.  In my 
/var/log/syslog is

  May  8 19:36:03 scratchy kernel:  out during reset 
  May  8 19:36:03 scratchy kernel: cs: socket 0 timed out during reset 

(This is followed by 14 null characters, and then a fragment of the
directory listing of /dev.  This probably indicates some filesystem
corruption from the crash.)

In case you are wondering how I discovered this, it comes up because
of the way the apmd package is set-up.  In /etc/apm/resume.d/pcmcia is
a script which runs 'cardctl resume' if a file /etc/pcmcia/apm.opts
exists and contains the line APM=suspend.  It occured to me that I
should suspend and resume my cards when suspending and resuming my
machine, so I created a file apm.opts containing that line.  This is
when the crashes started.  I think what is happening is that apmd is
running the equivalent of 'cardctl resume' already.  Thus I think that
those scripts should be removed from the distribution, as they cause
serious problems when used.  Please correct me if I am
misunderstanding something.

The more fundamental problem is with cardctl, which should never
cause the machine to crash.  Could people test this with their machine?
I recommend unmounting unused filesystems and typing sync before doing so.

Anyways, the workaround is simply to not run two copies of 
'cardctl resume' at the same time, but I thought I would report
this to the list in the hopes that the root of the problem is
fixed.

Comments or requests for further information, to the list or
directly to me, are welcome.  Should I submit this to the bug-tracking
system?  I've never done this -- is it self-explanatory?

Dan

-- 
Dan Christensen
[EMAIL PROTECTED]


Re: Exim and fetchmail

1999-05-05 Thread Dan Christensen
Jake Bishop [EMAIL PROTECTED] writes:
 Hello,
 I am having a problem getting exim and fetchmail to work.I just
 installed Slink.I used option #2 in the
 eximconfig menu. when I try to send a message with mutt it only goes to
 /var/spool/mail/jak3b.
 when I try to use fetchmail I get this message: 1 message for jak3b at
 postoffice.pacbell.netetc etc
 reading message 1 of 1 .fetchmail: SMTP listener doesn't like recipient
 address '[EMAIL PROTECTED]'
 fetchmail: can't even send to jak3b!
 fetchmail: SMTP transaction error while fetching from
 postoffice.pacbell.net
 fetchmail: Query status=10.

I had this problem too, and fixed it by adding localhost to my
local_domains setting in /etc/exim.conf:

local_domains = scratchy:localhost

This is the variable which specifies which hostnames should be treated
as aliases for the local host.  (scratchy is the name of my machine.)

I regard this as a bug in the installation procedure.  Either
fetchmail should deliver to user (without the @localhost) 
or exim should be configured by default to accept such mail.

Dan

-- 
Dan Christensen
[EMAIL PROTECTED]


what are the various i486 directories for?

1999-04-29 Thread Dan Christensen
I'm running slink on a Celeron 300 laptop.  Looking around on my disk
I discovered a few directories whose purpose I don't understand.
Could someone explain what the following are for?

/usr/i486-linuxchecker
/usr/i486-linuxlibc1
/usr/lib/gcc-lib/i486-linux
/usr/lib/gcc-lib/i486-linuxchecker

The reason that I'm asking is that I have a Celeron chip, so I
was surprised to see 486 stuff.  Thanks for any info.

Dan

[Replies welcome directly to me, to the list, or to both.]

-- 
Dan Christensen
[EMAIL PROTECTED]