Linux-Misc Digest #845, Volume #25 Sat, 23 Sep 00 16:13:02 EDT
Contents:
Re: get user ID from user name (Andreas K�h�ri)
Re: Netscape fonts (Andreas K�h�ri)
Re: Linux on ZIP Floppy? ("David Turley")
Re: get user ID from user name (Leejay Wu)
Re: What kind of Editor/Browser to read *.sgml files? (Andreas K�h�ri)
Downloaded files with * next to them?? ("Dextrose")
CD-ROM Encyclopedia under Linux (jabali)
Re: CD-RW help!
terminal program to dial modem ("Brett W. Denner")
Re: get user ID from user name - Thanks (Amit)
Re: Kernel 2.2.17 ( problem to get vfat support) ("Peter T. Breuer")
Re: Downloaded files with * next to them?? ("Peter T. Breuer")
Problam with RealPlayer 5.0 (Me)
Re: get user ID from user name (David Rysdam)
Re: non-interactive mail client (David Rysdam)
Re: cuecat dejavu (William McBrine)
Re: terminal program to dial modem (Andrew Purugganan)
Re: cuecat dejavu (Christopher Browne)
Re: non-interactive mail client ([EMAIL PROTECTED])
----------------------------------------------------------------------------
Crossposted-To: alt.os.linux,comp.os.linux.networking
Subject: Re: get user ID from user name
From: Andreas K�h�ri <[EMAIL PROTECTED]>
Date: 23 Sep 2000 20:11:45 +0100
In article <8qipm5$hpd$10$[EMAIL PROTECTED]>,
Martin Adler <[EMAIL PROTECTED]> wrote:
>What programming language are we talking about here?
>
>in c++ i think it is getuid(username);
>
>check the c++ reference manual
>
>Martin
>"Amit" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
>news:[EMAIL PROTECTED]...
>>
>>
>> Thanks
>> I want to use this in a program, do we have any function in Linux that
>> can do the same.. The second option obviously is to buffer the shell
>> command.
>>
>> -Amit
>>
>
>
The 'getuid' function is not specific to C++ (you may use it in C
too). It's a standard POSIX function that returns the user ID of the
user running the current process. You might also be interested in the
'getpwuid' and 'getpwnam' functions.
Read the manual pages for these functions (i.e. "man getuid" etc.).
Perl has similar functions (and I'll bet Python and other languages
has too). Try e.g. "perldoc -f getpwuid".
/A
--
Andreas K�h�ri, <URL:http://hello.to/andkaha/>. Junk mail, no.
========================================================================
What part of "GNU" did you not understand? <URL:http://www.gnu.org/>
------------------------------
Crossposted-To: comp.os.linux.X
Subject: Re: Netscape fonts
From: Andreas K�h�ri <[EMAIL PROTECTED]>
Date: 23 Sep 2000 20:13:48 +0100
In article <[EMAIL PROTECTED]>,
Gregory Propf <[EMAIL PROTECTED]> wrote:
>Can anyone tell me if there is a quick fix to the crappy fonts in Linux
>Netscape? Is there a particular set of fonts I can download from
>somewhere that can fix this? What I'm talking about is the way certain
>web pages come up with either VERY tiny fonts or fonts that are
>obviously the wrong size and shape from what the webpage designer
>intended. I'm running RedHat 6.2 and Netscape 4.72. TIA
>
>--
>Moon is following me, must...run...faster...
This is a *so* common problem that there was a mini-HOWTO written
about it. Read the "XFree86 Font Deuglification Mini HOWTO" at
<URL:http://www.linuxdoc.org/HOWTO/mini/FDU/index.html>.
/A
--
Andreas K�h�ri, <URL:http://hello.to/andkaha/>. Junk mail, no.
========================================================================
What part of "GNU" did you not understand? <URL:http://www.gnu.org/>
------------------------------
From: "David Turley" <[EMAIL PROTECTED]>
Subject: Re: Linux on ZIP Floppy?
Crossposted-To: comp.os.linux.setup
Date: Sat, 23 Sep 2000 17:17:14 GMT
In article <[EMAIL PROTECTED]>, Steve Withers
<[EMAIL PROTECTED]> wrote:
> I have a P-166 with 64MB of RAM.....and a spare IDE ZIP floppy drive
> (roughly 97MB capacity). I'd like to install a basic Linux sytem on the
> ZIP floppy that would support my ethernet card and a text-based user
> interface.
ZipSlack
www.slackware.com
--
David Turley
[EMAIL PROTECTED]
------------------------------
From: Leejay Wu <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.networking
Subject: Re: get user ID from user name
Date: Sat, 23 Sep 2000 14:07:12 -0400
Excerpts from netnews.comp.os.linux.misc: 23-Sep-100 get user ID from
user name by [EMAIL PROTECTED]
> How to get the ID (uid) of any user ? Is there any function in
> Linux/Unix that returns the user id if I have user name as input
> ......getuid(username)?
(C)
Use getpwnam(), then get the pw_uid field from the returned
structure.
FWIW, the very same function appears to behave differently on
Solaris in terms of dynamic vs. static structure allocation.
Be prepared to #ifdef if you care 'bout portability.
--
| [EMAIL PROTECTED] | the silly student |
|--------------------------| he writes really bad haiku |
| #include <stddiscl.h> | readers all go mad |
------------------------------
Subject: Re: What kind of Editor/Browser to read *.sgml files?
From: Andreas K�h�ri <[EMAIL PROTECTED]>
Date: 23 Sep 2000 20:26:57 +0100
In article <[EMAIL PROTECTED]>,
Ulrich Brachvogel <[EMAIL PROTECTED]> wrote:
>Hi,
>maybe a dumb question: but I couldn't find anything about the sgml-format.
>NetScape / StarOffice refuse to read or give only text inclusive tags.
SGML is a meta language, used to describe markup languages such as
HTML, TEI, LinuxDoc, DocBook etc. You generally don't want to browse
SGML files.
Some pointers:
<URL:http://www.isgmlug.org/whatsgml.htm>
<URL:http://etext.lib.virginia.edu/sgml.html>
/A
--
Andreas K�h�ri, <URL:http://hello.to/andkaha/>. Junk mail, no.
========================================================================
What part of "GNU" did you not understand? <URL:http://www.gnu.org/>
------------------------------
From: "Dextrose" <[EMAIL PROTECTED]>
Subject: Downloaded files with * next to them??
Date: Sat, 23 Sep 2000 11:24:21 -0700
It seems as though every file I download ends up with a * at the end of its
name. Why is this? And it also appears that even as root...I can't change
the damn read, write, execute attributes on them. Any suggestions?
-=[ Dextrose ]=-
------------------------------
From: jabali <[EMAIL PROTECTED]>
Subject: CD-ROM Encyclopedia under Linux
Date: Sat, 23 Sep 2000 19:49:37 +0100
Is there any CD-ROM encyclopedia, such as Grolier, Webster, etc, which will run
under Linux ?
--
jabali
------------------------------
From: <[EMAIL PROTECTED]>
Subject: Re: CD-RW help!
Date: Sat, 23 Sep 2000 18:54:51 GMT
Not sure about Mandrake, but to make it all work under RedHat you need=20
the following:
scsi_mod (core scsi support - may be built into the kernel)
sr_mod (scsi cdrom support - ditto)
ide-scsi (pretend the ide drive is a scsi drive)
for whatever reason, cdrecord requires a scsi device. The ide-scsi modul=
e=20
will allow you to see the cdwriter as a scsi device.
However, you should be able to mount it read-only as an ide device. Unti=
l=20
I managed to get it all working I could use mine as a regular cdrom=20
device.
There's quite a bit of documentation on this out there do a google searc=
h=20
on "Linux cdwriter". It's more detailed than this (although I had to=20
experiment quite a bit to get it to work properly - not to mention=20
rebuilding my kernel a dozen times - the sr_mod module was a pain to get=
=20
working - I don't know why).
Good Luck,
- Mark R. Sizer
>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<
On 9/22/00, 5:30:03 PM, <[EMAIL PROTECTED]> wrote regarding CD-RW help!=
:
> okay, my IDE CD-RW is acting up. I have an HP 9100 IDE/ATAPI. For so=
me
> reason, Linux refuses to recognize it. Every so often I would be able=
to
> use it, but once I rebooted I couldn't anymore. I have reinstalled
> Mandrake about 15 times and even installed it from the CD-RW. My DVD
> works just fine. As a last resort, I tried removing
> Mandrake's "Supermount Technology" and opted to mount removable drives=
> myself. My DVD mounted OK, my zip the same, but when I went to mount =
my
> CD-RW, it said "mount: The kernel does not recognize /dev/cdrom as a
> block device (maybe 'insmod driver'?)". I also logged on as root and
> typed cdrecord -scanbus. This was the error message I received "No su=
ch
> file or directory. Cannot open SCSI driver." Another observation I
> made: whenver the CD-RW was working (the rare occasions) I would go i=
nto
> the HardDrake configuration utility and listed under the category CD-R=
OM
> Drives would be the following:
> Toshiba SD-M1212 DVD
> HP CD-Writer Plus 9100
> Unknown (When I clicked on this it was identified as a SCSI device.
> Perhaps it was a driver used for SCSI emulation???)
> Anyway, whenever the CD-RW didn't work, I would go into the HardDrake
> again and see the following:
> Toshiba SD-M1212 DVD
> HP CD-Writer Plus 9100
> The unknown SCSI device disappeared. Am I correct in my assumption th=
at
> the unknown device was a SCSI emulator? Is this why my CD-Writer isn'=
t
> working? If it is a SCSI driver, how do I reinstall it? Thanks for
> helping me on this mind-boggling problem!
> --
> Posted via CNET Help.com
> http://www.help.com/
------------------------------
From: "Brett W. Denner" <[EMAIL PROTECTED]>
Subject: terminal program to dial modem
Date: Sat, 23 Sep 2000 19:02:49 GMT
I need a terminal-like program that will dial my modem to connect with
my employer's computer.
When I use kppp to dial the modem, a terminal pops up, but it's too
primitive to be of much use. I can't just ftp or telnet, either: I need
to be able to dial to a local phone number and communicate from within a
decent terminal program. This kind of program exists in Win98, but I
haven't found one for Linux, yet. Can anyone refer me to such a
program?
Thanks,
Brett
------------------------------
From: Amit <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux,comp.os.linux.networking
Subject: Re: get user ID from user name - Thanks
Date: Sat, 23 Sep 2000 15:15:08 -0700
"Andreas K�h�ri" wrote:
> In article <8qipm5$hpd$10$[EMAIL PROTECTED]>,
> Martin Adler <[EMAIL PROTECTED]> wrote:
> >What programming language are we talking about here?
> >
> >in c++ i think it is getuid(username);
> >
> >check the c++ reference manual
> >
> >Martin
> >"Amit" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
> >news:[EMAIL PROTECTED]...
> >>
> >>
> >> Thanks
> >> I want to use this in a program, do we have any function in Linux that
> >> can do the same.. The second option obviously is to buffer the shell
> >> command.
> >>
> >> -Amit
> >>
> >
> >
>
> The 'getuid' function is not specific to C++ (you may use it in C
> too). It's a standard POSIX function that returns the user ID of the
> user running the current process. You might also be interested in the
> 'getpwuid' and 'getpwnam' functions.
>
> Read the manual pages for these functions (i.e. "man getuid" etc.).
>
> Perl has similar functions (and I'll bet Python and other languages
> has too). Try e.g. "perldoc -f getpwuid".
>
> /A
>
> --
> Andreas K�h�ri, <URL:http://hello.to/andkaha/>. Junk mail, no.
> ------------------------------------------------------------------------
> What part of "GNU" did you not understand? <URL:http://www.gnu.org/>
It seems "getpwnam" will solve my problem.
Thanks everyone
-Amit
------------------------------
From: "Peter T. Breuer" <[EMAIL PROTECTED]>
Subject: Re: Kernel 2.2.17 ( problem to get vfat support)
Date: 23 Sep 2000 19:02:22 GMT
Josef Oswald <[EMAIL PROTECTED]> wrote:
: I found out that my version of the gcc compiler was _too_ old to do
: the job.... Had a hard time getting the compiler to work so right now
There is no such thing as too old. I use gcc 2.7.2 for almost all work.
It certainly compiles kernels fine (disclaimer, I don't know about the
2.4.0test series ... but it probably works fine there too. I'll vouch
for it up to about 2.2.15)
Peter
------------------------------
From: "Peter T. Breuer" <[EMAIL PROTECTED]>
Subject: Re: Downloaded files with * next to them??
Date: 23 Sep 2000 19:05:34 GMT
Dextrose <[EMAIL PROTECTED]> wrote:
: It seems as though every file I download ends up with a * at the end of its
Hilarious. Come back when both your neurons fire at once ... (hint:
you just need time to think about it). I refuse to answer this person
and publicly announce my willingness to take the flames for my
unwarrantedly rude behaviour until he stops asking why is everything all
dark, while wearing sunglasses.
Peter
------------------------------
From: Me <[EMAIL PROTECTED]>
Subject: Problam with RealPlayer 5.0
Date: 23 Sep 2000 18:53:40 GMT
Does anyone have any suggestions on getting Realplayer 5.0 to work with
RH6.1? I downloaded the RPM and installed it, but I keep getting
segmentation faults. (Upgrading to a newer version of Realplayer is not
an option, they won't run on my machine.)
--
Please respond only in the newsgroup.
If one studies too zealously, one easily loses his pants.
-- A. Einstein.
------------------------------
From: [EMAIL PROTECTED] (David Rysdam)
Crossposted-To: alt.os.linux,comp.os.linux.networking
Subject: Re: get user ID from user name
Date: 23 Sep 2000 18:31:23 GMT
Reply-To: [EMAIL PROTECTED]
=====BEGIN PGP SIGNED MESSAGE=====
Hash: SHA1
If you are calling from a program, you'll have to use "getpwnam()"
which gets a passwd file entry based on username. Then there is a
"pw_uid" field of the returned struct that contains the UID.
If you are working from the command line, "id" will do it. Of course,
you could also grep the passwd file, but that won't work if you are
using NIS.
And Amit Spoke:
>How to get the ID (uid) of any user ? Is there any function in
>Linux/Unix that returns the user id if I have user name as input
>......getuid(username)?
>
>-Amit
>
- --
My public encryption key is available from www.keyserver.net
=====BEGIN PGP SIGNATURE=====
Version: GnuPG v1.0.0 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE5zPcz8mkEvJSZJO8RAjfFAJ4hDjUSI95E/qAVzpUgoJ9w2sQC5ACePcGH
okKJgU+z/pd1VpQkKuouJH4=
=SWre
=====END PGP SIGNATURE=====
------------------------------
From: [EMAIL PROTECTED] (David Rysdam)
Subject: Re: non-interactive mail client
Date: 23 Sep 2000 18:34:17 GMT
Reply-To: [EMAIL PROTECTED]
=====BEGIN PGP SIGNED MESSAGE=====
Hash: SHA1
There's probably an easier way to do this, but here's an idea:
"Attachments" are really just multi-part mail messages. Send an email
with an attachment to yourself and then look at the mailbox directly
(without using pine) to see how it is formatted. There's no reason
you couldn't create the same thing via a script and then pipe THAT to
"mail".
And [EMAIL PROTECTED] Spoke:
>Hi,
>
>Any help on this would be great.
>
>I've got this script I run on my SuSe 6.4 server. At the moment it
>requires user input - but I want to make it interactive so I can run it
>via cron. The last action is to send an email with two attachments - a
>CSV file and a plain text file. At the moment I am using this command
>
> pine [EMAIL PROTECTED] -attachlist file.csv file.txt
>
>Which takes me into to pine and composes an empty message to the
>address given with the two files as attachments. I have to manually add
>a subject, message body and send it. pine has a -I flag to include
>keystrokes - but it seems to ignore the control codes for sending the
>mail.
>
>Of course I could do something like
>
> cat file.csv file.txt | mail [EMAIL PROTECTED]
>
>but I don't want them in the body, I want them as attachments.
>
>Does anyone know how I can do this?
>
>Thanks
>
>Paul
>
>
>
>Sent via Deja.com http://www.deja.com/
>Before you buy.
- --
My public encryption key is available from www.keyserver.net
=====BEGIN PGP SIGNATURE=====
Version: GnuPG v1.0.0 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE5zPfi8mkEvJSZJO8RAlMcAJ9oC6Qp9TQh1qjstNdQO80shGsuHgCglv1m
D7mcpa0QDHS2aDZIAsLGzqg=
=TyU0
=====END PGP SIGNATURE=====
------------------------------
From: William McBrine <[EMAIL PROTECTED]>
Subject: Re: cuecat dejavu
Date: Sat, 23 Sep 2000 19:21:14 GMT
Christopher Browne <[EMAIL PROTECTED]> wrote:
> Steps:
> -Plug it into the keyboard port on your PC.
> -Plug keyboard into the socket on CueCat
> -Head over to a virtual console or an xterm where nothing crucial
> is happening...
> -Swipe barcode off a book/magazine.
> - Watch something like: .C3nZC3nZC3nZE3vWCxb7CNnY.fHmc.C3b1C3nZCxr0CNn3.
> "magically" appear. (That's the UPC off a box of Kleenex.)
Yeah, that's what I had expected to happen, but I wasn't getting anything;
hence my question. I thought, either it needs the driver, or the unit is
bad, or my swiping technique is all wrong. :)
Trying some other items, I did finally get it to scan. There's a wide
variation in scanability. On the first thing I tried, I can only get a
result one time out of ten. Only one item comes up consistently every time.
Thanks.
--
William McBrine <[EMAIL PROTECTED]>
------------------------------
From: [EMAIL PROTECTED] (Andrew Purugganan)
Subject: Re: terminal program to dial modem
Date: 23 Sep 2000 19:20:19 GMT
Brett W. Denner ([EMAIL PROTECTED]) wrote:
[ I need a terminal-like program that will dial my modem to connect with
[ my employer's computer.
[ When I use kppp to dial the modem, a terminal pops up, but it's too
[ primitive to be of much use. I can't just ftp or telnet, either: I need
[ to be able to dial to a local phone number and communicate from within a
[ decent terminal program. This kind of program exists in Win98, but I
[ haven't found one for Linux, yet. Can anyone refer me to such a
[ program?
minicom comes with some distros & is easy to use if you know your basics
--
jazz
Registered linux user no. 164098 +--+--+--+ Litestep user no. 386
Doesn't it bother you, that we have to search for intelligent life
--- OUT THERE??
------------------------------
From: [EMAIL PROTECTED] (Christopher Browne)
Subject: Re: cuecat dejavu
Reply-To: [EMAIL PROTECTED]
Date: Sat, 23 Sep 2000 19:31:07 GMT
Centuries ago, Nostradamus foresaw a time when William McBrine would say:
>Christopher Browne <[EMAIL PROTECTED]> wrote:
>> Steps:
>> -Plug it into the keyboard port on your PC.
>> -Plug keyboard into the socket on CueCat
>> -Head over to a virtual console or an xterm where nothing crucial
>> is happening...
>> -Swipe barcode off a book/magazine.
>
>> - Watch something like: .C3nZC3nZC3nZE3vWCxb7CNnY.fHmc.C3b1C3nZCxr0CNn3.
>> "magically" appear. (That's the UPC off a box of Kleenex.)
>
>Yeah, that's what I had expected to happen, but I wasn't getting anything;
>hence my question. I thought, either it needs the driver, or the unit is
>bad, or my swiping technique is all wrong. :)
>
>Trying some other items, I did finally get it to scan. There's a wide
>variation in scanability. On the first thing I tried, I can only get a
>result one time out of ten. Only one item comes up consistently every time.
It's certainly not a driver issue; the device pretends to be part of
your keyboard, so if you have a PS/2-style keyboard, there should be _no_
problem there.
There seems to be some variability in the readability of some bar codes;
I haven't seen it to be terribly sensitive to variations in how I scan
things.
That suggests a third option, namely that your scanner may be of dubious
operational integrity. You might want to get another one next time
you're near Radio Shack...
--
[EMAIL PROTECTED] - <http://www.ntlug.org/~cbbrowne/lsf.html>
Never lend your car to anyone to whom you have given birth to.
--Erma Bombeck
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: non-interactive mail client
Date: Sat, 23 Sep 2000 19:27:55 GMT
> mutt.
>
Thanks - that works beautifully
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
** 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 (and comp.os.linux.misc) via:
Internet: [EMAIL PROTECTED]
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
******************************