Linux-Misc Digest #211, Volume #27               Sat, 24 Feb 01 08:13:01 EST

Contents:
  Sound Blaster 16 only works as root (Eric Ho)
  Re: Odd Question ("The Spook")
  Re: php ("The Spook")
  Tcpdump 3.6.2 ("Rick Goh")
  RAID-1 under 2.2.18 or 2.4.2? (Ken Williams)
  Re: configuration options - modem (Glitch)
  Re: AOL + Linux (Glitch)
  Re: Another great Linux Hard Drive Mystery (Glitch)
  Re: NIC Help (Glitch)
  Re: [Q] How do I boot without a keyboard connected? (David Griffith)
  how to make a /pub folder?
  Re: usb mass storage support (Vandenheede Bjorn)
  Re: how to make a /pub folder? (Drew Roedersheimer)
  trouble compiling gnome-utils (Robert Schweikert)
  Posting Test (OMM)
  Re: Posting Test (Drew Roedersheimer)
  Re: Vi Editor that shows comments in different colors (Villy Kruse)
  Re: Tcpdump 3.6.2 (Dean Thompson)
  Re: Help--Program exists, but can't execute (Uwe Malzahn)
  Re: Is my server sending information to Redhat? (Mark)
  Re: get POP3 accounts (Michael Heiming)
  Bad Magic Number ? - Recovery ? (Kosmas Chatzimichalis)
  Re: mkdir from within a kernel module (Kasper Dupont)

----------------------------------------------------------------------------

From: Eric Ho <[EMAIL PROTECTED]>
Subject: Sound Blaster 16 only works as root
Date: 24 Feb 2001 09:12:17 GMT

Hi, I have just reinstalled Slackware 7.1, everything is mostly ok,
but my sound blaster 16 card only works as root. There must be some
simple way to fix it ..... please help guys.
I am using 2.2.18 kernel.

Thanks very much.

Best Regards,
Eric Ho



------------------------------

From: "The Spook" <[EMAIL PROTECTED]>
Subject: Re: Odd Question
Date: Sat, 24 Feb 2001 10:17:24 +0100

Lipid wrote ...
-- Cut --
>   When I try, it gives me the following errors:
>
># rm --atime-preserve
>rm: unrecognized option `--atime-preserve'
>Try `rm --help' for more information.
-- Cut --

The easiest way is to prepend the "current directory" indicator, i.e. "rm
./--atime-preserve".

BTW: On my system, "man rm" says in the first page how to remove files
starting in a dash (the author shows how to remove a file called "-f" with
either "rm -- -f" or "rm ./-f"). The lesson here should be: RTFM ("Read the
Fine Manual" -- Yeah, I know, some people have quite another definition of
the F).

  /TRY



------------------------------

From: "The Spook" <[EMAIL PROTECTED]>
Subject: Re: php
Date: Sat, 24 Feb 2001 10:18:51 +0100

Wong Ching Kuen Frederick wrote ...
>in php4.0.1/linux, how can i control the user in which directory that they
>can run php code just like cgi?! thanks.

Try the newsgroup "alt.comp.lang.php".

  /TRY



------------------------------

From: "Rick Goh" <[EMAIL PROTECTED]>
Crossposted-To: 
comp.unix.programmer,comp.os.linux.networking,alt.os.linux,comp.dcom.net-management,alt.os.linux.mandrake
Subject: Tcpdump 3.6.2
Date: Sat, 24 Feb 2001 17:52:29 +0800

I'm working on a socket programming project:  requires me to find out the
time-stamp when i send and receive the same data i sent to the echo server.

Is there any way i can out the actual DATA into a file along with its
time-stamps ??

I can use Ethereal to see the DATA but however, there is no time-stamp along
with the DATA.

Do you know the command for tcpdump to show the DATA along with the
time-stamp??


Regards.




------------------------------

Crossposted-To: comp.os.linux.setup
From: [EMAIL PROTECTED] (Ken Williams)
Subject: RAID-1 under 2.2.18 or 2.4.2?
Date: Sat, 24 Feb 2001 10:02:54 GMT

I plan on implementing software RAID1 on my new linux box with twin scsi 
barracudas.  Can 2.2.18 do it well or should I be looking at 2.4.2 instead?  I 
need it to work well the first time with no problems.  

Can anyone suggest anything?  What should I know or do?  Is the RAID code in 
2.2.18 just as good as it is in 2.4.2?

------------------------------

Date: Sat, 24 Feb 2001 04:38:32 -0500
From: Glitch <[EMAIL PROTECTED]>
Subject: Re: configuration options - modem



doug edmunds wrote:
> 
> I an connecting 2 boxes, A and B:
> Each is setup as dual-boot win98/linux.
> Each has its own 56k modem (not winmodems)
> which currently work either in win98 or in linux.
> I am going to connect A and B  with a
> crossover cable, with Dlink 10/100 nics.
> 
> At any given time, either or both may be running
> win98 or linux.    I would like to just use box A
> to tap into the phone line.  Box B would use the
> modem in box A. These are the possibilities:
> 
> A linux - B linux
> A linux  -B win98
> A win98 - B linux
> A win98  - B win98.
> 
> I want to a setup that will allow all of these 4 options.
> What are my options for setting up the modems?
> Thanks.
> 


just get the modems working. No special configuration is needed as far
as the modems go. Beyond that you will need to implement ip masquerading
on the 'linux' machine and a proxy server on the 'Windows' machine so
that one can pass thru the other in order to access your outside
network.

you will need to assign IP addresses to both computers in both operating
systems.

Obvioulsy your work is doubled.

------------------------------

Date: Sat, 24 Feb 2001 04:44:20 -0500
From: Glitch <[EMAIL PROTECTED]>
Subject: Re: AOL + Linux


> My wife uses it. I use a different ISP (a two-ISP household), but I use
> my AOL account for my online ID. I get to fix my wife's computer
> problems, so I've spent more time than I'd like with AOL. Suffice it to
> say that the smartest thing I've done for her is to copy her AOL 'PFC'
> automatically at boot-up (so a few times a day). If only she'd switch.

ever hear of against one's own will? lol

------------------------------

Date: Sat, 24 Feb 2001 04:46:23 -0500
From: Glitch <[EMAIL PROTECTED]>
Subject: Re: Another great Linux Hard Drive Mystery

or try a different distro altogether and see what happens

Stanislaw Flatto wrote:
> 
> Two things come to mind.
> a) The newer distributions need 586 or higher CPU's.(not sure I don't
> use RH)
> b) "If it works don't fix it"
> 
> Stanislaw.
> Slack user from Ulladulla.
> 
> mike wrote:
> 
> > Hi,
> >     I have Redhat 5.1 installed on an old Fujitsu 428mb hard drive
> > on a 486 DX2-66 Gateway with 16mb ram. It works well. I decided
> > to try to upgrade it with Redhat 6.2. When I try to do the upgrade,
> > the installation program says that it can't find the hard drive. I
> > tried Redhat 6.1 and it says there are no Linux partitions on the
> > drive. I tried to do a clean install of either and it comes up with
> > an error indicating that it can't recognize the drive. Since
> > nothing actually got installed in this whole process, my
> > Redhat 5.1 still boots and works fine.
> >
> >                                                         Thanks
> >                                                                 Mike

------------------------------

Date: Sat, 24 Feb 2001 04:49:07 -0500
From: Glitch <[EMAIL PROTECTED]>
Subject: Re: NIC Help


> 
> I have the source cd but do not have the source installed.
> 
> I have unzipped the only file on the cd containing the word source which did
> contain some .h and .c files.
> 
> I then followed the instructions but only got as far as the make menuconfig
> before the OS informed n=me that it was stopping that process because no
> rules were supplied.
> 
> When I try to use Lothar to get the network card configured the screen
> freezes.
> 
> Can you tell me how to get the kernel source into the /usr/src/linux
> directory please? and also the best way to get this netowrk card working?
> 
> Thanks very much,
> 
> Steve


download the kernel source from ftp://ftp.kernel.org

use tar zxvf kernel.2.4.2.tar.gz  in /usr/src  to decompress it

remember to rm the alreayd existing link named 'linux' as when u
decompress the above it will create a new directory called linux. you
will want to rename this to something like linux.2.4.1 and recreate your
'linux' link to this directory

then do a 'make xconfig' while in an xterm

read the README that comes with the source. it will explain theprocess

------------------------------

From: David Griffith <[EMAIL PROTECTED]>
Subject: Re: [Q] How do I boot without a keyboard connected?
Date: Sat, 24 Feb 2001 10:18:38 +0000

Rudy Taraschi wrote:

> Hi folks,
>
> I've got an old steam powered Olivetti M4 that I want to use as a
> simple X10 home controller tucked away somewhere.  The problem is that
> I don't want to have a keyboard connected, yet the BIOS has no visible
> option to bypass the keyboard check.  My questions are:
>
> 1) can I jump some pins on the keyboard connector to fool the BIOS, and
>    if so, which ones?
>
> 2) what if I plug a PS/2 mouse into the keyboard connector?  Will it
>    fool the BIOS, and, more importantly, will something fry in trying?
>
> Any answers or thoughts would be appreciated!  Cheers!
>
> --
> Rudy
>
> My real email address is <rudy at see aye ee dot see aye>

What happens if you boot with KBD, then pull it out?
Is this acceptable, or do you require unattended reboot.



------------------------------

From: <[EMAIL PROTECTED]>
Subject: how to make a /pub folder?
Date: Sat, 24 Feb 2001 11:00:17 GMT

Dear newsgroup,

i would like to make a /pub folder, every user is able to access=20
(reading, writing, execute, making new dirs, removing dirs made by other=
=20
users).

How can it be achived, that data written by a user can be modiefied by=20
another one?

Thanx in advance, c

____________________
                    \     [EMAIL PROTECTED]
Christian Verbeek    \    http://ais.gmd.de/~verbeek
Bergstrasse 18a       \   phone: +49 2241 142404   =20
53757 Sankt Augustin   \         +49 2241 333041   =20
Germany                 \___________________________

------------------------------

From: Vandenheede Bjorn <[EMAIL PROTECTED]>
Subject: Re: usb mass storage support
Date: Sat, 24 Feb 2001 11:05:02 GMT

Vandenheede Bjorn wrote:
> 
> Hello
> 
> I would like to compile support for usb mass storage in a 2.2.18 kernel,
> but I'm not able to select the option.  What other option do I have to
> select before I can select the usb mass storage option.
> 
> TIA
> Bjorn
I found out on www.linux-usb.org that USB-storage is not supported in
the 2.2 line of kernels.

Thanks anyway

------------------------------

From: [EMAIL PROTECTED] (Drew Roedersheimer)
Subject: Re: how to make a /pub folder?
Reply-To: [EMAIL PROTECTED]
Date: Sat, 24 Feb 2001 11:12:03 GMT

On Sat, 24 Feb 2001 11:00:17 GMT, [EMAIL PROTECTED] wrote:
>Dear newsgroup,
>
>i would like to make a /pub folder, every user is able to access 
>(reading, writing, execute, making new dirs, removing dirs made by other 
>users).
>
>How can it be achived, that data written by a user can be modiefied by 
>another one?
>
>Thanx in advance, c
>
>____________________
>                    \     [EMAIL PROTECTED]
>Christian Verbeek    \    http://ais.gmd.de/~verbeek
>Bergstrasse 18a       \   phone: +49 2241 142404    
>53757 Sankt Augustin   \         +49 2241 333041    
>Germany                 \___________________________


Sorry to be so blunt, but: 

`man chmod`

(HINT: the key is in the "others or all users" permissions...)

-DR

------------------------------

From: Robert Schweikert <[EMAIL PROTECTED]>
Subject: trouble compiling gnome-utils
Date: Sat, 24 Feb 2001 06:22:47 -0500

Hi,

I am trying to set up a linux system completely from scratch, i.e.
compile all the source myself. Following the LFS (linux from scratch)
instructions compiling the basic system was no problem. However, trying
to compile gnome is a different story. When I try to compile gnome-utils
I get the following link error.

gcc  -g  -o gfloppy  main.o gfloppy.o progress.o fdformat.o badblocks.o
-rdynamic -L/usr/lib -L/usr/X11R6/lib -rdynamic -lgnomeui -lart_lgpl
-lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -lXext -lX11 -lgnome
-lgnomesupport -lesd -laudiofile -lm -ldb-3 -lglib -ldl  -lxml -lglade
-lglade-gnome -lext2fs
/usr/lib/libxml.so: undefined reference to `gzopen'
/usr/lib/libxml.so: undefined reference to `gzread'
/usr/lib/libxml.so: undefined reference to `gzdopen'
/usr/lib/libxml.so: undefined reference to `gzclose'
/usr/lib/libxml.so: undefined reference to `gzwrite'
collect2: ld returned 1 exit status

when I look at the symbl table in lixml.so these are not defined (the
linker is not lieing to me). However, when I check for the symbols in
libxml.so on my working setup they are undefined as well. Thus I do not
understand how this works, or maybe it doesn't  and I just don't know
it.

The question now is how do I get the symbols defined in libxml.so?

A search on google for any of these always points me to PHP, which
appears odd to me that one has to have web server tools installed to
build GNOME floppy support.

Any help is appreciated.

Thanks,
Robert


--
Robert Schweikert                      MAY THE SOURCE BE WITH YOU
[EMAIL PROTECTED]                         LINUX




------------------------------

From: OMM <[EMAIL PROTECTED]>
Subject: Posting Test
Date: Sat, 24 Feb 2001 12:45:21 +0100


This is only a posting test.

------------------------------

From: [EMAIL PROTECTED] (Drew Roedersheimer)
Subject: Re: Posting Test
Reply-To: [EMAIL PROTECTED]
Date: Sat, 24 Feb 2001 11:44:47 GMT

On Sat, 24 Feb 2001 12:45:21 +0100, OMM wrote:
>
>This is only a posting test.

F-  (shamelessly stolen)

try alt.test


-DR

------------------------------

From: [EMAIL PROTECTED] (Villy Kruse)
Subject: Re: Vi Editor that shows comments in different colors
Date: 24 Feb 2001 12:00:15 GMT

On 24 Feb 2001 01:55:44 GMT, Dances With Crows <[EMAIL PROTECTED]> wrote:

>
>For reasons which are opaque to me, RedHat ships their vim without the
>color and ruler options enabled.

Redhat ships three packages related to vim.  Install all of them and
start it with the "vim" command instead of the "vi" command.  




Villy

------------------------------

From: Dean Thompson <[EMAIL PROTECTED]>
Crossposted-To: 
comp.unix.programmer,comp.os.linux.networking,alt.os.linux,comp.dcom.net-management,alt.os.linux.mandrake
Subject: Re: Tcpdump 3.6.2
Date: Sat, 24 Feb 2001 23:17:24 +1100


Hi Rick,

> I'm working on a socket programming project:  requires me to find out the
> time-stamp when i send and receive the same data i sent to the echo server.
> 
> Is there any way i can out the actual DATA into a file along with its
> time-stamps ??

> I can use Ethereal to see the DATA but however, there is no time-stamp
> along with the DATA.
> 
> Do you know the command for tcpdump to show the DATA along with the
> time-stamp??

You may either want to look at tcpdump dumping its contents into a binary file
and then getting tcpdump to play back the file for you.  I know that tcpdump
is capable of time stamping everything for you including going down to the
hundredth of a second.

Another package which you may be interested in is called SNORT.  It is capable
of listening to traffic on the network as well as allowing you to apply
filters to the traffic.  I also think from memory (although I could be wrong)
that SNORT is capable of time stamping everything for you as well.

SNORT allows you to actually see all the packets being sent as they fly past
your network card.

See ya

Dean Thompson

--
+______________________________+____________________________________________+
|   Dean Thompson              | E-mail  - [EMAIL PROTECTED] |
|   Bach. Computing (Hons)     | ICQ     - 45191180                         |
|   PhD Student                | Office  - <Off-Campus>                     |
|   School Comp.Sci & Soft.Eng | Phone   - +61 3 9903 2787 (Gen. Office)    |
|   MONASH (Caulfield Campus)  | Fax     - +61 3 9903 1077                  |
|   Melbourne, Australia       |                                            |
+------------------------------+--------------------------------------------+

------------------------------

From: [EMAIL PROTECTED] (Uwe Malzahn)
Subject: Re: Help--Program exists, but can't execute
Date: Sat, 24 Feb 2001 12:10:31 +0100

In article <[EMAIL PROTECTED]>,
        Chris Carlen <[EMAIL PROTECTED]> writes:
> Hi:
> 
> I have a very strange and serious problem.  On Suse Linux 7.0, I have
> successfully installed the rpm for Eagle 3.55 (A printed circuit design
> program from www.cadsoft.de).  However, when I try to
> run eagle I get:
> 
> ~ $ eagle
> bash: /usr/local/bin/eagle: No such file or directory 

/usr/local/bin/eagle seems to be a script (wrapper) and it seems to try to
access another script/program/file/directory which is simply not there. I
guess you have to kind of "debug" the script to find out what's missing.

Cheers,
Uwe

------------------------------

From: Mark <[EMAIL PROTECTED]>
Subject: Re: Is my server sending information to Redhat?
Crossposted-To: comp.os.linux.redhat,linux.redhat.misc
Date: Sat, 24 Feb 2001 12:47:28 GMT

Isn't this part of the RedHat Network thing?

One of the first things I do after any new install is go through the
list of daemons that automagically start and trim it down.
Same for network services.

At least RH left it in the list, so it is easy turnoffable unlike many of 
M$ crap.  (anyone know how to easiy remove the "use netbios over
tcpip" thing?)

Given the number of updates that are needed to bring a RH 7.0 install
up to snuff, having something like that run for a day or so isn't a bad 
idea.  (although a post install script should run once to see what's new,
and it should pop up and tell you that a) it's running, b) it would be a 
VERY good idea to check)

just my .02


[EMAIL PROTECTED] wrote:

> Ernest <[EMAIL PROTECTED]> did eloquently scribble:
> > Holy Smokes! What's this crap about? This is the kind of BS that
> > Microsoft pulls. Is it time to begin refering to Redhat as the Microsoft
> > of the Linux community? Do all versions of Redhat 7 behave in this way,
> > or is it just the server? I'm really bothered by this. I know that
> > Redhat is trying to be corporate but is it also trying to be big
> > brother?
> 
> > Does SuSE "feature" this same security breech?
> 
> It didn't in SuSE 6.2 (which I'm still using).
> I doubt that has changed in .3 .4 7.0 and 7.1...
> 


------------------------------

Date: Sat, 24 Feb 2001 14:02:22 +0100
From: Michael Heiming <[EMAIL PROTECTED]>
Subject: Re: get POP3 accounts

Jean-Pierre Bergamin wrote:

> Hello there
>
> Could you give me a hint how I can get all POP3 accounts?
>
> I want to write a script that adds all the accounts in a mysql-database (for
> a webmail reader http://popper.ractive.ch) so that every user also gets an
> account for the mailreader.
>
> Thanks
>
> James

Hello,

you could just cat them of /etc/passwd, asuming they are UNIX users on your
system. Now, use awk or perl, or whatever you prefer and manipulate the data to
your needs.

Michael Heiming



------------------------------

From: Kosmas Chatzimichalis <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Crossposted-To: comp.os.linux.questions,comp.os.linux.help
Subject: Bad Magic Number ? - Recovery ?
Date: Sat, 24 Feb 2001 13:07:11 GMT

I'm trying to recover an old /home partition in a different hard 
disk than the one I'm using at the moment.

I've tried a few things but I cannot seem to be able to mount the
partition,
and when I make an entry to /etc/fstab in the new system and reboot,
I've got
the error message 'Bad magic number.....'.

Is there anything I can do to recover all my data from the /home
partition?

Any help would be appreciated :-)

------------------------------

From: Kasper Dupont <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.system
Subject: Re: mkdir from within a kernel module
Date: Sat, 24 Feb 2001 13:09:03 +0000

Massimiliano Caovilla wrote:
> 
>     Hello,
> I need a driver I'm writing (a kernel module) to be able to create
> directories.
> How can I do that from within the kernel? In the source tree of the vfs
> (usr/src/linux/fs) there are do_mkdir() and sys_mkdir() that would do, but I
> have not been able up to now to use them, they seem not to be exported (and
> they are not defined in any include, I think they are internals to namei.c)
> I also tryed to filp_open() the parent and to call mkdir from the parent's
> file_operations: anyway, I don't know how to get a dentry to pass to mkdir
> along with the parent's inode.
>     Can anyone help?
> Please don't tell me I shouldn't mkdir from the kernel because I REALLY need
> to do so (and I was able to do it in Solaris, why shouldn't I be in Linux?)
> 
>     Hello & thanks in advance

In 2.2.x the right way to do this is:
{
   int error;
   lock_kernel();
   error = do_mkdir(tmp,mode);
   unlock_kernel();
}
You perhaps also need to save the filesystem user ID and change it to
something else and restore it afterwards. It is a problem, that
do_mkdir() is a static inline function, I suggest that you simply copy
the entire function to your module.

In 2.4.x things have changed, sys_mkdir is now twice as complicated as
it used to be. do_mkdir has been replaced by vfs_mkdir, which does not
do exactly the same. I don't know exactly how your code should look in
2.4.x, but I think more or less you should copy sys_mkdir() except
from the part that copy the name from userspace to kernelspace and
releases it again.

The good news is that in 2.4.x vfs_mkdir() is exported.

-- 
Kasper Dupont

------------------------------


** FOR YOUR REFERENCE **

The service address, to which questions about the list itself and requests
to be added to or deleted from it should be directed, is:

    Internet: [EMAIL PROTECTED]

You can send mail to the entire list by posting to comp.os.linux.misc.

Linux may be obtained via one of these FTP sites:
    ftp.funet.fi                                pub/Linux
    tsx-11.mit.edu                              pub/linux
    sunsite.unc.edu                             pub/Linux

End of Linux-Misc Digest
******************************

Reply via email to