Re: Kernel recompile problems (fwd)

2000-07-26 Thread Pavel M. Penev


From: Pavel M. Penev <[EMAIL PROTECTED]>
Subject: Re: Kernel recompile problems

> Then why not try moddep -a -e?
I meant "depmod" here.

Sorry,
Pavel






Re: "Cannot find map file"

2000-07-26 Thread Pavel M. Penev


On Tue, 25 Jul 2000, Krzys Majewski wrote:

> What does this mean? -chris
> 
> Jul 25 08:42:33 cr275960-a kernel: Cannot find map file.
> Jul 25 08:42:33 cr275960-a kernel: No module symbols loaded.

See klogd(8) for explanation.

Hope this is enoug,
Pavel





Re: chroot bind in debian

2000-07-26 Thread Pavel M. Penev


On Tue, 25 Jul 2000, Noah L. Meyerhans wrote:

> -BEGIN PGP SIGNED MESSAGE-
> 
> Hey all.  I'm looking for some documentation on setting up chroot bind
> (for security reasons) on a potato system.  Specifically I'm looking for
> info on exactly how to accomplish it and how well the Debian package
> system will handle the changes wheneven bind is upgraded.  Can anybody
> point me to such resources?  Thanks.

No other documentation than dpkg(8) and chroot(8) :). I myself have been
running bind in a chroot-ed environment (it really had a nasty security
hole). What I did was:

1. cd to the chroot point
2. tar xvfz
/debian/dists/stable/main/disks-i386/current/base2_1.tgz
3. dpkg --instdir= -G -i bind_<...>
And then set up some other utilities needed by bind
(e.g. sendmail, (ana)cron, ...).

Hope I help,
Pavel





Re: sound

2000-07-26 Thread Pavel M. Penev


On Tue, 25 Jul 2000, Dale Morris wrote:

> I just got debian up and running and now have to figure my Yamaha sound card. 
> Can anyone direct me to a faq or give me some directions on how to configure?
> thanks

I have a Yamaha on my machine. It's working perfectly. The kernel supports
"OPL[1-3x]". You would also have to include the MSS (Microsoft Sound
System) and possibly others (depending on the card). See
/Documentation/sound/OPL*. Where "*" is the appropriate
for your case.

Success,
Pavel




Re: Kernel recompile problems

2000-07-26 Thread Pavel M. Penev


On Wed, 26 Jul 2000, Andr? Dahlqvist wrote:

> > My first problem is that after the recompile and setting up lilo,
> > when I reboot my computer, every single module fails to load because
> > of a huge number of unresolved symbol errors.
>  
> It sounds like you forgot to install the modules, or installed them in
> the same directory as the old modules. Modules reside in
> /lib/modules/KERNEL_VERSION. When installing new modules you should
> either remove or move the old directory before running modules_install.
> So ifyou have a directory named /lib/modules/2.2.16 you could rename
> that to /lib/modules/2.2.16_old and then run modules_install.
> 
> After I went back to the original kernel, I'm having problems with
> vfat.o and fat.o.
> 
> Probably because you overwrote the old modules with the new ones, and
> the kernel you're running now wasn't compiled at the same time as these
> modules.

Then why not try moddep -a -e?

Try,
Pavel





Re: Tape backup software?

2000-07-26 Thread Pavel M. Penev


On 25 Jul 2000, Riku Saikkonen wrote:

> Has anyone tried recovering damaged .tar.bz2 files? Any success /
> failure?

Hi, guys. Here's what I did:

# cd /tmp
# tail -c 1048576 /dev/hda > t.bulk.o
# cat t.bulk.o | bzip2 -1 > t.bulk.bz2
# echo "Damage string to insert before actual bz2 image" > tmp.1
# cat tmp.1 t.bulk.bz2 > t.bulk.dmg.bz2
# bunzip2 -k t.bulk.dmg.bz2
bunzip2: t.bulk.dmg.bz2 is not a bzip2 file.
# bzip2 -vvt t.bulk.dmg.bz2
  t.bulk.dmg.bz2: bad magic number (file not created by bzip2)

You can use the `bzip2recover' program to attempt to recover
data from undamaged sections of corrupted files.

# bzip2recover t.bulk.dmg.bz2
bzip2recover: searching for block boundaries ...
   block 1 runs from 464 to 305416
   block 2 runs from 305465 to 698960
   block 3 runs from 699009 to 1083281
   block 4 runs from 1083330 to 1398097
   block 5 runs from 1398146 to 1846240
   block 6 runs from 1846289 to 2325383
   block 7 runs from 2325432 to 2584085
   block 8 runs from 2584134 to 2763608
   block 9 runs from 2763657 to 3217006
   block 10 runs from 3217055 to 3483161
bzip2recover: splitting into blocks
   writing block 1 to `rec0001t.bulk.dmg.bz2' ...
   writing block 2 to `rec0002t.bulk.dmg.bz2' ...
   writing block 3 to `rec0003t.bulk.dmg.bz2' ...
   writing block 4 to `rec0004t.bulk.dmg.bz2' ...
   writing block 5 to `rec0005t.bulk.dmg.bz2' ...
   writing block 6 to `rec0006t.bulk.dmg.bz2' ...
   writing block 7 to `rec0007t.bulk.dmg.bz2' ...
   writing block 8 to `rec0008t.bulk.dmg.bz2' ...
   writing block 9 to `rec0009t.bulk.dmg.bz2' ...
   writing block 10 to `rec0010t.bulk.dmg.bz2' ...
bzip2recover: finished
# bzip2 -vvt rec[0-9]*t.bulk.dmg.bz2
  rec0001t.bulk.dmg.bz2: 
[1: huff+mtf rt+rld]
ok
  rec0002t.bulk.dmg.bz2: 
[1: huff+mtf rt+rld]
ok
  rec0003t.bulk.dmg.bz2: 
[1: huff+mtf rt+rld]
ok
  rec0004t.bulk.dmg.bz2: 
[1: huff+mtf rt+rld]
ok
  rec0005t.bulk.dmg.bz2: 
[1: huff+mtf rt+rld]
ok
  rec0006t.bulk.dmg.bz2: 
[1: huff+mtf rt+rld]
ok
  rec0007t.bulk.dmg.bz2: 
[1: huff+mtf rt+rld]
ok
  rec0008t.bulk.dmg.bz2: 
[1: huff+mtf rt+rld]
ok
  rec0009t.bulk.dmg.bz2: 
[1: huff+mtf rt+rld]
ok
  rec0010t.bulk.dmg.bz2: 
[1: huff+mtf rt+rld]
ok
# bunzip2 -c rec[0-9]*t.bulk.dmg.bz2 > t.bulk.dmg
# diff -u t.bulk.o t.bulk.dmg

I also tried "joe"-ing the bz2 file and recovering. It worked as described
in the manual page. (The block I "edited" was lost)

Hope you are happy now,
Pavel




Re: Shaper for ISP

2000-07-25 Thread Pavel M. Penev


On Sun, 23 Jul 2000, Paulo Henrique Baptista de Oliveira wrote:

>   Hi all,
>   I have to install shaper in a Linux box to an ISP that wants to shape it
> client to maximum 64k.
>   What I can do? I know that Linux can shape traffic. Where to put it?
> 

I suggest that you should read
/Documentation/networking/shaper.txt and the help
you could get from the kernel configuration menu. You may also need some
additional software (), and

Success,
Pavel




Re: RPM Packages

2000-07-25 Thread Pavel M. Penev


On Mon, 24 Jul 2000, Luis Gustavo Madrigal Salazar wrote:

> try alien to convert rpm to deb packages!!!

You could alse use rpm under Debian directly, though alien seems to be
better.

> On Mon, 24 Jul 2000, Shel Johnson wrote:
> 
> > Does anyone know of a program that let's us run rpm packages??..
> > 

Hope this is of any use,
Pavel



Re: cannot talk with AT modem

2000-07-23 Thread Pavel M. Penev


On Sun, 23 Jul 2000, Tomasz Barszczak wrote:

> Hi,
> 
> I have just installed slink on my AMD Athlon PC.
> I have an internal USR 56K modem model 2977.
> It is not a winmodem, it uses Hayes AT language.
> Under Windows 98 it is recognized at COM5 and works fine.
> 
> First problem was that in /dev there were only ttyS0-ttyS3 (COM1-COM4)
> with major number 4 and minor numbers 64-67.
> I have created by hand ttyS4-ttyS7 character devices with minor numbers 68-71,
> and same owner, group and permissions and ttyS0-ttyS3.
> I hope they correspond to COM5-COM8.
> 
> However when I run minicom with /dev/ttyS4 I cannot talk to the modem.
> It does not respond to "at", pressing enter, etc., no characters are echoed.
> 
> wvdialconf scans my serial ports, finds active ports at ttyS0 and ttyS1
> (COM1, COM@) with no modem there (it tries to send AT commands), 
> then continues with port scan of ttyS2-ttyS7 without even attempting
> to send AT commands, i.e. I guess it did not find active serial ports there
> at all.
> 
> Does anyone know what I can do?
> 
> Tomasz.

As a metter of fact, there are up to four physical communications ports on
a normal PC. The reason to have devices like COM5 under windows is that it
represents a non-default port configuration by assigning it a new
number. In Linux you have the "/dev/ttyS[0-3]" devices which represent
your physical ports. You can change their configuration (IRQ+I/O base) via
setserial. See the manual page.

Success,
Pavel



Re: howto reset root password with setup disk (or some other way)

2000-07-23 Thread Pavel M. Penev


On Sun, 23 Jul 2000, Corry Opdenakker wrote:

> Hi people,
> 
> for some dark reason is my rootpassword changed.
> 
> does anyone know how I can reset the password for root?
> A while a go someone told me that this is possible by using the install-boot
> disc or cd's.
> 
> I hope I will not have to reinstall my machine.
> 
> All help and tips are welcome!
> kind regards and best wishes, Corry.

Try booting from anywhere (the Debian installation source is a good
choice). Then mount the partition to which you mount "/" (the root file
system). Next open /etc/passwd with some editor ("ae" if from
the Debian install disks). Find the line which looks like this:

root:x:0:0:root:/root:/bin/bash

Change the "x" into "", i.e. so that the line looks like

root::0:0:root:/root:/bin/bash

You no more have a password set for "root" so boot your machine and supply
an empty one to log in.

I also suggest reading passwd(1) :).

Success,
Pavel




Re: /bin/kill : Where art thou?

2000-07-22 Thread Pavel M. Penev


On Fri, 21 Jul 2000, Eric G . Miller wrote:

> I seemed to have lost /bin/kill.  Now, I have /usr/bin/kill, but "poff"
> (and possibily others) are looking for /bin/kill.  I fixed poff, but I
> don't know what else might get broken due to the disappearance of
> /bin/kill.  Anyway, I was wondering if anyone can shed some light on the
> "movement" of kill?  I'd think I'd still want a /bin/kill in case /usr
> isn't mounted.  The culprit seems to be "bsdutils", but I'm not sure.
> 
> Ciao,

As a matter of fact in newer bash-es (I'm not sure since which
version) kill is a shell-built-in command, i. e. there is no separate
executable for kill (in neither /bin/kill, nor /usr/bin/kill). Of course
you can "ln -s /usr/bin/kill to /bin/", or write a script like:

#!/bin/sh
kill $@

and put it in /usr/bin; however, all new packages should be aware of the
in-building of the command and not use explicit paths (like "/bin/kill").

Hope this is delightful,
Pavel



Re: How to install Acroread

2000-07-22 Thread Pavel M. Penev


On Fri, 21 Jul 2000, Nianwei Xing wrote:

> Hi, debians:
> I am a new comer for Debian. I just want to install
> acroread on my machine. I am not the super user and
> also I have download the linux-ar-405.tar.gz.
> Any infomation is appreciated!
> 
> Nianwei

acroread is packaged (there is a .deb in any debian site). So you can
download it. The NORMAL way to install a package is to ask the sysadmin
(the superuser). However, you can try unpacking it (try alien -- hope you
have this at least), and then making an exhausting re-configuration
(e.g. make it use something like /home/user/mypackage/etc instead of /etc
for configuration files). Also not all packages may be installed without
root permissions (I hope acroread is not one of them).

Hope someone makes a better offer,
Pavel



Re: Exim/fetchmail/procmail - bad mail files

2000-07-22 Thread Pavel M. Penev


On Fri, 21 Jul 2000, James Green wrote:

> OK so I give up trying to figure this one out :-(
> 
> I've got exim up and running. I used eximconf and selected option
> 2. I also have fetchmail and procmail up and running.
> 
> Mail comes in from mail.linux.com using imap. The connection is
> tunnelled over ssh. The connection goes fine and my proc.log shows
> mail being received and filtered to my mail folders.
> 
> I can fire up mutt, and point it at a mailbox (any) and I get:
> /home/jg/mail.linux.com/[EMAIL PROTECTED] is not a mailbox.
> This also occurs on loading mutt, but with
> /var/spool/mail/jg instead.
> 
> The mail files themselves look like this:
> 
> Return-Path: <[EMAIL PROTECTED]>
> Received: from mail.linux.com
> by localhost with IMAP (fetchmail-5.3.4)
> for [EMAIL PROTECTED] (single-drop); Fri, 21 Jul 2000 20:47:26 +0100 
> (BST)
> Received: from seralph10.essex.ac.uk (seralph10.essex.ac.uk [155.245.240.160])
> by mail.linux.com (8.9.3/8.9.3) with ESMTP id GAA24469
> for <[EMAIL PROTECTED]>; Fri, 24 Mar 2000 06:57:57 -0800
> Received: from sunlab19.essex.ac.uk
> ([155.245.160.19] helo=sunlab19 ident=jmkgre)
> by seralph10.essex.ac.uk with esmtp (Exim 3.13 #1)
> id 12YVXA-0005xx-00
> for [EMAIL PROTECTED]; Fri, 24 Mar 2000 14:57:56 +
> Date: Fri, 24 Mar 2000 14:57:55 + (GMT)
> From: Green J M K <[EMAIL PROTECTED]>
> X-Sender: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: vrml link
> Message-ID: <[EMAIL PROTECTED]>
> MIME-Version: 1.0
> Content-Type: TEXT/PLAIN; charset=US-ASCII
> Content-Length: 33
> Lines: 3
> 
> http://www.best.com/~rikk/Book/
> 
> 
> [ at which point more emails follow ]
> 
> This format is identical to /var/spool/mail/jg.
> 
> I'm told that the formatting is wrong and that exim is to blame.
> However I am unable to find anyone in IRC who knows exim to help.

As far as I see the problem about the formatting is that you need a

 From <[EMAIL PROTECTED]> 

line at the beginning of every message. You can make it by creating a
little wrapper-script in your favourite programming language (awk, perl,
python, bash, tcsh, even C/C++), and piping the message through the
script in your procmailrc.

Ask for help if you are not a programmer,
Pavel



Re: Why not diff binaries?

2000-07-19 Thread Pavel M. Penev


On 18 Jul 2000, Bruce Stephens wrote:

> "Pavel M. Penev" <[EMAIL PROTECTED]> writes:
> 
> > Can someone tell me a sensible reason for not having a 'diff'
> > equivalent for binary file?
> 
> What do you want to do?
> 
> If you want the following:
> 
> Given a binary (or text) file A and a variant of it A',
> generate a patch delta(A,A') representing the differences.
> 
> Then you can use xdelta.  With xdelta, you can construct and apply
> such binary patches.
> 
> diff is also used to generate human-comprehensible differences, and
> I'm not aware of a tool for doing this for binary files.  
> 
> I'm not sure such a program would be useful, but it probably would be
> for certain kinds of files.  For example, a diff that worked on
> (mostly) text-based files, but used a character-based approach rather
> than a line-based one could be very useful.  At one point algorithms
> for this weren't feasible (hence the line-based nature of diff), but
> IIRC, there's at least one algorithm which generates minimal
> differences in linear time (or thereabouts), for some definition of
> "minimal", so it ought to be usable at the byte level.
> 

Thank you all a lot. I have already been told aboult xdelta (and read its
manual); moreover I think a have seen something with more features (like
recusing into directories). I have what I need. I though this topic was
already closed.

Thaks again,
Pavel





Re: xsession errors

2000-07-19 Thread Pavel M. Penev


On Wed, 19 Jul 100 [EMAIL PROTECTED] wrote:

> Hi there:
> 
> My problem is I can't get into X mode, aparently 'cause of an 
> authorization issue.
> 
> My .xsessionerror file has these lines:
> ===
> xrdb: Can't open display ':0'
> Xlib: connection to ":0.0" refused by server
> Xlib: Client is not authorized to connect to Server
> xmodmap:  unable to open display ':0'
> /usr/bin/X11/WindowMaker fatal error: could not open display ":0"
> ===
> 
> What should I do? Do I have to setuid... what?
> 
> I hope you don't mind such a newbie question.
> Thanks!
> 
> ---
> Este mensaje fue enviado mediante Web E-mail de MegaRed
> INTERNET POR CABLE <
> >http://www.megared.net.mx
> 
> 

X11 is capable of using a number of ways to permit users to connect to it.
Your problem is probably caused because the server and the client run with
different user IDs.

You had better see X(1), xauth(1x), xhost(1x) and iceauth(1x).

Hope I help,
Pavel




Re: midi html tags

2000-07-19 Thread Pavel M. Penev


On Tue, 18 Jul 2000, Jaye Inabnit ke6sls wrote:

> 
> Hello,
> 
> Rather silly querry, but needs asking; I built my website using M$ frontpage,
> and it worked well. browsing it with M$ browsers etc produces midi. Not so
> with netscape. is there a fix to make netscape work with the M$ midi tag?
> 
> I can browse sites that were built with netscape and the midi does work,
> so I will assume that M$ isn't using excepted tags for the midi play.
> 
> any help much appreciated.
> 
> tatah
> 
> -- 
> 
> 
> Jaye:-}
> 
> M.J. Inabnit, KE6SLS e-mail  [EMAIL PROTECTED]
> 707-442-6579 h/m 707-441-7096 p
> http://www.qsl.net/ke6slsICQ# 12741145
> This mail composed with kmail on kde on X on linux warped by debian
> If it's stupid, but works, it ain't stupid.
> 
> 

I don't know what M$ products use to build MIDI into HTML, but the right
way to do it according to HTML v4.01 (see http://www.w3.org/) is to use
objects:

13.3 Generic inclusion: the OBJECT element

 
 

   Start tag: required, End tag: required.

Success,
Pavel




Re: Debian + Windows98 on the same large disk problem

2000-07-19 Thread Pavel M. Penev


On Tue, 18 Jul 2000, Dimitris Dracopoulos wrote:

> Hi,
> 
> I have recently got a new hard disk 40GB, in which I decided to install both
> Windows98 and Debian, FreeBSD. 
> (I never wanted to install this Win98 stuff on my machine but job matters
> force...)
> 
> I repartitioned the hard disk using slink Debian's cfdisk into a first FAT32
> partition of 12GB and 3 more partitions (second is 12GB BSD, and the other
> two, 10 and 5GB Linux). For the cfdisk to work properly with my large disk,
> I had to specify the disk geometry that FreeBSD's fdisk returned to me.
> 
> Following that I installed Windows98 on the first partition of 12GB. I
> checked with the Windows98 fdisk program, and indeed it finds the 4
> partitions mentioning that the 3 last ones are non-DOS. 
> 
> The problem is that when I use the Windows explorer to see what is the
> available space for my C drive (FAT32 partition), I get that available for C
> are 39GB, i.e. the whole of my hard disk and not just the FAT32 partition.
> Despite that, it reports the C volume label to be the same name as that
> reported by the Windows98 fdisk!
> 
> So, I wonder what is happening? Is it just a bug in the Windows Explorer or
> the actual Windows will expand further than their allocated 12GB partition
> when they have no space and delete my Debian and FreeBSD stuff when I
> install them there?
> 
> Has anyone installed both Debian and Windows98 on the same large disk and
> came across anything similar?
> 
> 
> Cheers
> 
> Dimitris
>  
> 
> 

You should see fdisk(8), section DOS 6.x WARNING.

Success,
Pavel





Re: kerneld message / Workaround

2000-07-18 Thread Pavel M. Penev


On Tue, 18 Jul 2000, brian moore wrote:

> > > Perhaps you should file a bug on it?
> > 
> > Don't be that fast.
> 
> Why not?  A bug is a bug.  'man kerneld' is quite clear that kerneld
> should -not- be run on a 2.2 kernel.  Yet /etc/init.d/kerneld is quite
> happy to run it on a 2.2 kernel because it uses an incorrect method for
> testing the version of the kernel.
> 
> Why is that not a bug?
> 

I guess the developers have just left the user decide whether to use
kerneld or not. You are right to think that they could have done it nicer
by using uname, for example. So, I agree -- send a bug report (with
severity of about whishlist) if you would.

Pavel




Re: What is /dev/log ?

2000-07-18 Thread Pavel M. Penev


On Tue, 18 Jul 2000, etienne grossmann wrote:

> 
>   Hello,
> 
>   would anyone know where the file /dev/log comes from? 
> 
> >> ls -l /dev/log
> srw-rw-rw-1 root root0 Jul 18 07:46 /dev/log
> 
>   "RTFM" is an acceptable answer, especially if the man page is
> specified. 
> 
>   Cheers,
> 
>   Etienne
> 
> 

See the manual pages of syslogd and klogd.

Hope you get satisfied,
Pavel




Re: anyone knowledgeable enough pls help! (fwd)

2000-07-18 Thread Pavel M. Penev


Subject: Re: anyone knowledgeable enough pls help!



On Mon, 17 Jul 2000, Ron Rademaker wrote:

> On Mon, 17 Jul 2000, Pavel M. Penev wrote:
> 
> > 
> > 
> > On Mon, 17 Jul 2000, Ron Rademaker wrote:
> > 
> > > For the starting of x-windows, I guess you could but startx in .login in
> > > the users home-dir.
> > > The netscape part it quite a bit more difficult ( I guess you can start it
> > > using .Xsession or something, but you'll have to check the docs of that
> > > for more info), the closing part, here the idea I got on that ( I can't
> > > provide it to you because I'm not good at c):
> > > 
> > > Create a c-program that starts netscape and include signal.h that
> > > intercepts the SIGTERM, when the SIGTERM arrives the user is prompted for
> > > a password (netscape will be closed at that moment), if the
> > > password is correct, the program is terminated and netscape isn't running
> > > anymore, if the password is incorrect, netscape is restarted. 
> > > 
> > > Perhaps this can be of any help.
> > > 
> > > Ron Rademaker
> > >
> > 
> > This here is absolutely wrong. The X11 system uses its own signals,
> > transported via TCP/IP. Clicking File->Quit is just like clicking any
> > other button. Netscape is responsible for handling the event, and it has
> > no reason to kill its parent if run by a system()-like function, or run by
> > exec*() function it will have its own signal-handling table. I have
> > written two small programmes (one for GTK, and one to call it and trap
> > signals). I can send them if you wish.
> 
> Didn't know that... I would like to take a look at those programmes,
> thank.
> 
> Ron Rademaker
> 
> 


Here you are the sources,
Pavel


3.tgz
Description: Here they are.


Re: Subject: Re: anyone knowledgeable enough pls help!

2000-07-18 Thread Pavel M. Penev


On Mon, 17 Jul 2000, Joseph de los Santos wrote:

> Hi Pavel,
> 
>   Thank you. I would really appreciate it if you can send me your
> programs... if you don't mind that is :)
> 
> 
> 
> Pavel M. Penev [EMAIL PROTECTED] wrote:
> 
> This here is absolutely wrong. The X11 system uses its own signals,
> transported via TCP/IP. Clicking File->Quit is just like clicking any
> other button. Netscape is responsible for handling the event, and it has
> no reason to kill its parent if run by a system()-like function, or run by
> exec*() function it will have its own signal-handling table. I have
> written two small programmes (one for GTK, and one to call it and trap
> signals). I can send them if you wish.
> 
> 
> 
> 

Have you still not received the tarball?!

Regards,
Pavel




Re: What is SIOCSIFFLAGS, and when will he be back?

2000-07-18 Thread Pavel M. Penev


On Mon, 17 Jul 2000, Raymond L. Zarling wrote:

> Yes, I have booted linux both from a cold start and after running windows,
> with no difference.  But I guess that indicates some kind of Plug and Play
> problem.  I don't think that's what's going on in my case, since the dmesg
> output (recorded below) says to me that the kernal is talking to the card
> just fine.
> 
> Does anyone, please, know how I could research this problem farther?  Prove,
> for instance, whether it is or is not a Plug and Play problem?

I have had a similar problem (though it DID fix with soft booting). I have
browsed through the drivers source (I think it was kernel 2.2.15?). What I
have found is that the card and the driver have poor media
autosensing. The log shows you are trying to autosense. Also, on a 3com
card (its driver's author is the same) I had some headaches, for the card
seemed PnP, but it lied (you had to programme its parameters via
3c5x9setup). I suggest that you should look for a tool like 3c5x9 for your
card and try programming its IRQ and I/O settings to those autodetected by
the driver, also don't rely on the driver's autosensing.

> --Ray
> 
> >> [EMAIL PROTECTED]
> >> 
> >> 
> >> ** dmesg **
> >> Linux version 2.2.12 ([EMAIL PROTECTED]) (gcc version 2.7.2.3) #2 Thu Aug 
> >> 26
> >> 11:46:26 PDT 1999
> >> ...
> >> tulip.c:v0.91g 7/16/99 [EMAIL PROTECTED]
> >> eth0: Digital DS21143 Tulip rev 65 at 0x6100, 00:C0:F0:3B:F7:91, IRQ 0.
> >> eth0:  EEPROM default media type Autosense.
> >> eth0:  Index #0 - Media MII (#11) described by a 21142 MII PHY (3) block.
> >> eth0:  MII transceiver #1 config 3000 status 7829 advertising 01e1.
> >> 
> >> ** ifconfig -a **
> >> eth0  Link encap:Ethernet  HWaddr 00:C0:F0:3B:F7:91  
> >>  inet addr:192.168.1.13  Bcast:192.168.1.255  Mask:255.255.255.0
> >>  BROADCAST RUNNING MULTICAST  MTU:1500  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:100 
> >>  Base address:0x6100 
> >> 
> >> loLink encap:Local Loopback  
> >>  inet addr:127.0.0.1  Mask:255.0.0.0
> >>  UP LOOPBACK RUNNING  MTU:3924  Metric:1
> >>  RX packets:8 errors:0 dropped:0 overruns:0 frame:0
> >>  TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
> >>  collisions:0 txqueuelen:0 
> >> 
> >> ** lsmod **
> >> Module  Size  Used by
> >> nls_cp437   3548   1  (autoclean)
> >> tulip  29060   0  (unused)
> >> serial 18412   1 
> >> parport 6600   0  (unused)
> >> vfat8972   1 
> >> umsdos 22768   0  (unused)
> >> 
> >> 

Hopefully helpful,
Pavel




Re: How do I get mail archives?

2000-07-18 Thread Pavel M. Penev


On Mon, 17 Jul 2000, Bolan Meek wrote:

> "Pavel M. Penev" wrote:
> > 
> > (I know you like to help, so here is something to make you feel good... )
> 
> Well, thank you for the opportunity!
> 
> > Can you, please, inform me on what is the procedure of getting a mail
> > archive? What I have found is at "http://www.debian.org/contact"; in
> > section "Commonly Requested Addresses":
> > 
> > Mailing List Archives
> > [EMAIL PROTECTED]
> 
> Is this what you need:
> http://www.debian.org/Lists-Archives/ ?

Yes, that fits greatly.

> > (... or at least make you laugh :))
> 
> Whew!  Oh, no:  this would heap up bad "karma".
> 

A huge thanks,
Pavel




Re: Help compiling Xlib

2000-07-18 Thread Pavel M. Penev


On Mon, 17 Jul 2000, Dinesh Nadarajah wrote:

> I tried all sorts of combinations but don't seem to be
> able to get it going. What is the name of the Xlib
> library files? Here are the things I tried. Any other
> advice?
> 
> Thanks.
> 
> --- "Pavel M. Penev" <[EMAIL PROTECTED]>
> wrote:
> > 
> > 
> > On Mon, 17 Jul 2000, Dinesh Nadarajah wrote:
> > 
> > > I am trying to compile a simple X application but
> > I
> > > keep getting the folloeing error:
> > > 
> > > gcc -g -o testapp test1.c -lX11
> > > 
> > > /usr/bin/ld: cannot find -lX11
> > > collect2: ld returned 1 exit status
> > > 
> > > Any suggestions? What are the Xlib libraries
> > called
> > > under Linux.  Thanks.
> > > 
> > > -D
> > > 
> > 
> > xlib6g installs its libraries under /usr/X11R6/lib/
> > (try dpkg --largemem
> > -L xlib6g) and are trying to have names compatible
> > with all other
> > distributions. I think the problem is that xlib6g
> > does not make
> > /usr/lib/X11 to be a symlink to /usr/lib/X11R6 where
> > ld likes to look for
> > the libraries. Either make the symlink, or give ld
> > (gcc will pass
> > appropriate arguments to ld) a "-L/usr/X11R6/lib"
> > switch.
> > 
> > This is for now,
> > Pavel M. Penev
> > 
> 
> 

And what you should have tried is:

gcc -L/usr/X11R6/lib -lX11  

Sorry for "misleading" you in a way.

Hope you suceed this time,
Pavel




Re: kerneld message / Workaround

2000-07-18 Thread Pavel M. Penev


On Mon, 17 Jul 2000, brian moore wrote:

> On Sat, Jul 15, 2000 at 11:51:06AM +0100, Jonathan Heaney wrote:
> > David Wright wrote:
> > > The scripts /etc/init.d/{kerneld,modutils} have to be able to handle
> > > both 2.0 and 2.2 kernels with kerneld or kmod. You will see they do
> > > this by testing for the presence of /proc/sys/kernel/modprobe which
> > > only exists under 2.2.
> 
> But doesn't -always- exist on 2.2:
> 
> [narvi:/etc/init.d] 11:26:37am 136 % ls -l /proc/sys/kernel/modprobe
> ls: /proc/sys/kernel/modprobe: No such file or directory
> [narvi:/etc/init.d] 11:26:39am 137 % uname -a
> Linux narvi 2.2.16 #6 Fri Jun 23 13:51:08 PDT 2000 i686 unknown
> 
> You need to have 'CONFIG_KMOD' set in your kernel build to have it,
> which I don't.
> 
> Seems to me that the logic on that is broken.  /proc/sys/kernel/modprobe
> is not a good way to determine whether kerneld should be run.

What I think is that you are wrong. If you have compiled your kernel with
'CONFIG_KMOD' defined, then you would have kmod built into your
kernel. "kmod" is a REPLACEMENT for kerneld, remember?
 
> Perhaps you should file a bug on it?

Don't be that fast.

Regards,
Pavel




How do I get mail archives?

2000-07-17 Thread Pavel M. Penev
(I know you like to help, so here is something to make you feel good... )
Can you, please, inform me on what is the procedure of getting a mail
archive? What I have found is at "http://www.debian.org/contact"; in
section "Commonly Requested Addresses": 

Mailing List Archives
[EMAIL PROTECTED]

(... or at least make you laugh :))

Yours memberly,
Pavel M. Penev



Re: Help compiling Xlib

2000-07-17 Thread Pavel M. Penev


On Mon, 17 Jul 2000, Dinesh Nadarajah wrote:

> I am trying to compile a simple X application but I
> keep getting the folloeing error:
> 
> gcc -g -o testapp test1.c -lX11
> 
> /usr/bin/ld: cannot find -lX11
> collect2: ld returned 1 exit status
> 
> Any suggestions? What are the Xlib libraries called
> under Linux.  Thanks.
> 
> -D
> 

xlib6g installs its libraries under /usr/X11R6/lib/ (try dpkg --largemem
-L xlib6g) and are trying to have names compatible with all other
distributions. I think the problem is that xlib6g does not make
/usr/lib/X11 to be a symlink to /usr/lib/X11R6 where ld likes to look for
the libraries. Either make the symlink, or give ld (gcc will pass
appropriate arguments to ld) a "-L/usr/X11R6/lib" switch.

This is for now,
Pavel M. Penev




Re: Why not diff binaries?

2000-07-17 Thread Pavel M. Penev


On 17 Jul 2000, Riku Saikkonen wrote:

> "Pavel M. Penev" <[EMAIL PROTECTED]> writes:
> >Can someone tell me a sensible reason for not having a 'diff' equivalent
> >for binary file?
> 
> There is "cmp", but it reports only the position of the first
> differing byte (if any).
> 
> As for why not:
> 
>  * diff is helped a lot by the fact that the input is line-based text.
>And diff doesn't work very well if the lines are very short or
>there are lots of small changes inside lines.
> 
>I don't know if there are algorithms for detecting differences in
>streams of bytes (instead of lines); probably there are, but I
>don't know if they work as well as the text comparison algorithm in
>diff.
> 
>(There is also wdiff, which works word-wise, and seems to work okay
>for what it's designed: calculating differences between reformatted
>paragraphs of text.)
> 
>  * There isn't as much use for binary patches than for textual ones,
>because binary executables are platform-dependent.
> 
> It should be possible to dump the binary files in a textual format
> with "od" (use one byte or word per line, unless you know the data has
> larger structures that you want to compare as a whole) and run diff on
> those, but I don't know how well that would work.
> 
> -- 
> -=- Rjs -=- [EMAIL PROTECTED]
> 
> 
10X! I think I am going to continue my issues in another mail-list.

Gladly,
Pavel M. Penev




Re: anyone knowledgeable enough pls help!

2000-07-17 Thread Pavel M. Penev


On Mon, 17 Jul 2000, Ron Rademaker wrote:

> For the starting of x-windows, I guess you could but startx in .login in
> the users home-dir.
> The netscape part it quite a bit more difficult ( I guess you can start it
> using .Xsession or something, but you'll have to check the docs of that
> for more info), the closing part, here the idea I got on that ( I can't
> provide it to you because I'm not good at c):
> 
> Create a c-program that starts netscape and include signal.h that
> intercepts the SIGTERM, when the SIGTERM arrives the user is prompted for
> a password (netscape will be closed at that moment), if the
> password is correct, the program is terminated and netscape isn't running
> anymore, if the password is incorrect, netscape is restarted. 
> 
> Perhaps this can be of any help.
> 
> Ron Rademaker
>

This here is absolutely wrong. The X11 system uses its own signals,
transported via TCP/IP. Clicking File->Quit is just like clicking any
other button. Netscape is responsible for handling the event, and it has
no reason to kill its parent if run by a system()-like function, or run by
exec*() function it will have its own signal-handling table. I have
written two small programmes (one for GTK, and one to call it and trap
signals). I can send them if you wish.

> 
> On Mon, 17 Jul 2000, Joseph de los Santos wrote:
> 
> > I'm going out of my mind
> > 
> > when a user logs in a terminal this is what will happen:
> >  -automatically starts x-window, all keybindings and or hotkeys will be
> > disabled, run netscape and it can't be closed without asking for the user's
> > password. Can a script be used for this? and anyone kind enough to show me?
> > Also, Maybe this can be done by adding/modifying xmodmap in the user's
> > .xinitrc? if so, how? any help with be greatly appreciated.
> > 
> > btw, what's the difference between keycodes and keysyms?
> > 
> > Thanks in advance :)
> > 
> > 
> > 
> 




Re: Installing.

2000-07-17 Thread Pavel M. Penev


On Mon, 17 Jul 2000, Martin Svensson wrote:

> Hello,
> 
> I work with special designed embedded computers that we have on forklifts
> for warehouse management. The PC consists of one type II PCMCIA slot, where
> we have the harddrive. Usually a SunDisk (flash), or a Calluna disk. And it
> also got two type III PCMCIA for network/radio cards.
> 
> Now I have a problem. I want to install debian on this computer. I have for
> the moment a SunDisk with 175Mb capacity. I've made one 40Mb (MS-DOS)
> partition on it, with the debian installation files. But this computer
> doesn't have a floppy drive, and we cannot connect one either. There is no
> CD-ROM either. I wonder if there is a debian "install package" that I can
> run from ms-dos and just install everything without having to put in any
> floppies. I only have Windows 9x and NT workstations with PCMCIA slots, no
> linux machine. I can also boot from one of the type III PCMCIA slots and
> install on the type II slot, and make the linux partitions there. All I need
> to know if is there is or will be available a complete install package for
> ms-dos. I can install the rest from a network, with a network card running
> ne2000 compatible drivers from the type III slot.
> 
> I hope you understand what my problems is.
> 
> Thankyou in advance
> Martin
> 
> 
> 
> 
> Martin Svensson
> MA-System Control AB
> Teknik Avd. / Technical Department
> 
> e-mail: [EMAIL PROTECTED]
> www: http://www.masystem.se
> phone:  +46-46-325258
> mobile:   +46-709-895258
> 
> 
The answer: yes. In fact you would need to download the disks packages and
the install utilities (found in install/ on the Debian CD). Those would be
enough to start the installation. (I hope these are the "Debian
installation files" you have on your MS-DOS parition). The Debian
installation is capable of installing from HTTP, FTP, NFS, any mountable
drive (disk partition,CD-ROM,etc.). You would need to use an address like
'http://www.xx.debian.org' where "xx" stands for the country
identifier of the mirror site. (You may leave this blank, i. e. use
'http://www.debian.org'). If the site you want to use does not support
HTTP (you can hardly find such, though) you may use "ftp://"; instead
"http://";.

Hope this is enough,
Pavel M. Penev




Re: anyone knowledgeable enough pls help!

2000-07-17 Thread Pavel M. Penev


On Mon, 17 Jul 2000, Joseph de los Santos wrote:

> I'm going out of my mind
> 
> when a user logs in a terminal this is what will happen:
>  -automatically starts x-window, all keybindings and or hotkeys will be
> disabled, run netscape and it can't be closed without asking for the user's
> password. Can a script be used for this? and anyone kind enough to show me?
> Also, Maybe this can be done by adding/modifying xmodmap in the user's
> .xinitrc? if so, how? any help with be greatly appreciated.
> 
> btw, what's the difference between keycodes and keysyms?
> 
> Thanks in advance :)
> 
I gues you already have enough good suggestions on the first two
issues. Now for the password. I think you could create a firewall that
would deny any X11 packets for closing netscape. Then you could add some
tool that would request a password, and if it finds it acceptable it would
change the firewall rules to permit netscape "delete_event". You have a
severe problem. You would need to read tons of documentation (esp. if you
follow my suggestion). I would be curious to know if you succeed to solve
it (and mostly HOW?).

Sorry, I can't offer anything better,
Pavel M. Penev




Re: copy to NT via smbfs problems

2000-07-17 Thread Pavel M. Penev


On Mon, 17 Jul 2000 [EMAIL PROTECTED] wrote:

> Hiya
> 
> i am trying to copy lots of image files from my Debian box to a shared ntfs
> drive on my NT box.  look at what happens :
> 
> lelouvre /home/cdcut/CDWed# cp -af 00 /win2k/images
> cp: /win2k/images/00/16/52/59/1652592a.tif: Operation not permitted
> cp: /win2k/images/00/16/52/59/1652593a.tif: Operation not permitted
> cp: /win2k/images/00/16/52/59/1652591a.tif: Operation not permitted
> cp: /win2k/images/00/16/52/59/1652594a.tif: Operation not permitted
> 
> As you can see... i get this error message "Operation not permitted" which
> i don't understand... the files do seem to
> be successfuly copying regardless of the error message.
> 
> permissions on /win2k/images is :  drwxr-xr-x   1 root root
> 512 Jul 18  2000 /win2k/images

The message "Operation not permitted" is to inform you that the
permissions you have had on your source files could not be duplicated for
your destination files. This often happens for filesystems that does not
support user permissions (like FATxx). However, NTFS DOES SUPPORT
PERMISSIONS. Are using NTFS on your destination partition (see below)?

> 
> Total files to copy is about 350M but when it gets to about 150-190M it
> suddenly stops copying files..."df -h" hangs too as it will
> not bring up the ntfs share /win2k.  It is as if the mounted drive has
> fallen off.  There is nothing in the event log of the NT box either.
> 
> Anyone know what is going on?
> 
> thanx
> 
> Zane
> 

Possible reasons for this are:

1. Your partition has run of space (you shoud see "No space left on
device" error message). In this case df my need some time to calculate the
used space on the device.

2. The NTFS module in kernels <= 2.2.16 and probably newer is somewhat
still EXPERIMENTAL and thereso supports ONLY READ OPERATIONS from a NTFS
partition. In addition it does not handle permissions for now. If you are
really using a NTFS partition you would have a hard problem to solve. You
might consider creating 100-200MB VFAT partition just for transfer
purposes, or try keeping what you want available to the both OSes on in
NTFS partition and accessing from Linux.

Hope this might help you,
Pavel M. Penev




Why not diff binaries?

2000-07-17 Thread Pavel M. Penev
Can someone tell me a sensible reason for not having a 'diff' equivalent
for binary file?

Regards,
Pavel M. Penev