Linux-Development-Sys Digest #352, Volume #6 Sun, 31 Jan 99 01:14:20 EST
Contents:
Re: Modest next goal for Linux (Matthias Warkus)
[HELP] How to determine daemon's TCP/IP ports? (Lam Dang)
Re: make -j [Was: Parallel C for Linux] (Tor Arntsen)
Re: password validation (Peter Samuelson)
Re: Help: Socket limits in Linux, Blackdown JDK 1.1.x (Dave Hearn)
Re: Linux Phase 2: A Consumer Operating System (Peter Samuelson)
Re: Why I'm dumping Linux, going back to Windblows (Leslie Mikesell)
Re: linux on an overclocked PII ("Frank T. Lofaro")
Re: Notif-0.1 (Joseph H Allen)
Re: disheartened gnome developer (Nix)
Re: Parallel C for Linux (Nix)
Re: How to flush the file cache ? (Vasiliy)
Re: Parallel C for Linux (Ian D Romanick)
Re: Debugger ? (Erik de Castro Lopo)
Re: password validation ("David D. Gitchell")
----------------------------------------------------------------------------
From: [EMAIL PROTECTED] (Matthias Warkus)
Crossposted-To: comp.os.linux.advocacy
Subject: Re: Modest next goal for Linux
Date: Sun, 24 Jan 1999 21:47:47 +0100
Reply-To: [EMAIL PROTECTED]
It was the 24 Jan 1999 18:43:25 GMT...
..and [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Provided that one has a reasonable amount of ram and a multithreading X11,
> I think at least the mouse would be very smooth.
>
> I use XFree86 (single thread) but also have a separate font server, 64mb ram,
> and irq4 set to max priority. Even with this setup I have too REALLY push
> X to force it to swap bad enough to get "jerky".
Are there multi-threaded implementations of X11? What do they use threads
for?
mawa
--
Matthias Warkus | [EMAIL PROTECTED] | Dyson Spheres for sale!
My Geek Code is no longer in my .signature. It's available on e-mail request.
It's sad to live in a world where knowing how to program your VCR actually
lowers your social status...
------------------------------
From: Lam Dang <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.misc
Subject: [HELP] How to determine daemon's TCP/IP ports?
Date: 28 Jan 1999 09:39:46 -0500
Given an executable running on, say, Red Hat
5.2, is it possible to determine the TCP/IP port
or ports it responds to, without documentation and
source? If so, what's the best way to do it?
--
Lam Dang
PGP key available as [EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED] (Tor Arntsen)
Subject: Re: make -j [Was: Parallel C for Linux]
Date: 30 Jan 1999 16:59:45 GMT
In article <[EMAIL PROTECTED]>,
Nix <$}xin{[email protected]> writes:
>[EMAIL PROTECTED] (Petter Reinholdtsen) writes:
>
>> This is the normal GNU make. Use 'make -j <num>' to compile <num>
>> files in parallell.
>
>And watch it get its dependencies in a tangle :(
>
>make -j on a multiprocessor system (or with the Custom libs across a
>network) is not exactly perfect yet. :(
It works fine, of course it cannot figure out dependencies by itself if
you (or implicit rules) haven't done it -- how on Earth could it do that?
If you don't use make -j [n] then you can sometimes get away without getting
your dependencies right, or, rather, it *looks* like it's going ok but you'll
notice that sometimes you don't get what you want unless you do
'make clean; make'.
make -j works fine if the dependencies are correct. I can build XEmacs
in 2 minutes flat on an old 4-CPU SGI Challenge with 'make MAKE="make -j6"'.
And XEmacs is quite big.
- Tor
------------------------------
From: [EMAIL PROTECTED] (Peter Samuelson)
Subject: Re: password validation
Date: 30 Jan 1999 21:17:43 -0600
Reply-To: Peter Samuelson <[EMAIL PROTECTED]>
[Nicholas Todd Lawrence <[EMAIL PROTECTED]>]
> I trying to write an application (using GNU C++) on a linux machine
> that needs to check the password file to validate a user's login ID.
getpwnam(). But you knew that.
> The problem with this I'm only a ordinary user, and the system uses a
> shadowed password file.
SOL. Only privileged users have access to the shadow file. So
getpwnam() returns a blank or invalid password field. But you knew
that too.
> Does anyone know of C function/library routine that I can use to
> check the entered password against the encrypted password?
getpwnam() works fine if it's root. If not, you have to think of some
way to *become* root -- a setuid helper process, etc. Alternatively
get yourself into some group that has read access to the shadow file.
If there were a C function or library that could do what you want, it
would defeat the whole purpose of shadow files.
If you are running NIS, by the way, you may be able to use the
well-known fact that standard NIS, by design, can't keep shadow files
secret. So:
sprintf(buf, "ypmatch %s passwd", username);
infile = popen(buf, "r");
--
Peter Samuelson
<sampo.creighton.edu!psamuels>
------------------------------
From: Dave Hearn <[EMAIL PROTECTED]>
Crossposted-To:
comp.lang.java.programmer,comp.lang.java.api,comp.lang.java.help,comp.os.linux.networking
Subject: Re: Help: Socket limits in Linux, Blackdown JDK 1.1.x
Date: Sun, 31 Jan 1999 03:45:41 +0000
Al Nios wrote:
>
>
> I have attempted recompiling the kernel and updating OPEN_MAX, FD_SETSIZE
> and NR_OPEN to 2048 - this causes a core dump when a 600 sockets connections
> are established.
Err - did you analise the core dump? If so - what did it say went wrong? I think
thins is the obvious way to track the problem down...
>
>
> What is the solution to this problem if any? Who do I need to contact to
> resolve this issue? Is there a tested solution that someone can recommend.
>
> Al Nios
> [EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED] (Peter Samuelson)
Crossposted-To: alt.os.linux,comp.os.linux.development.apps,comp.os.linux.setup
Subject: Re: Linux Phase 2: A Consumer Operating System
Date: 30 Jan 1999 20:52:15 -0600
Reply-To: Peter Samuelson <[EMAIL PROTECTED]>
[Paul D. Smith <[EMAIL PROTECTED]>]
> > 3) It really annoys me how it scans through the entire suite of
> > 1500 packages any time I want to add one new one. I don't see
> > why it can't just jump right to the package I
> > added/removed/whatever and deal with that one directly.
[Sam Holden <[EMAIL PROTECTED]>]
> A workaround I used to use is to mount the cdrom so that you can
> access it from your ftp server. Then you tell dselect to use that ftp
> as the source. You get the best of both worlds.
apt (Advanced Package Tool, or something like that), which comes with
slink (Debian 2.1), is slicker in every way than the old dpkg-ftp and
dpkg-http. Perhaps it fixes this problem with CD (or other mounted)
trees as well. I don't know since I have only used it with http.
--
Peter Samuelson
<sampo.creighton.edu!psamuels>
------------------------------
From: [EMAIL PROTECTED] (Leslie Mikesell)
Crossposted-To: alt.os.linux,comp.os.linux.development.apps,comp.os.linux.setup
Subject: Re: Why I'm dumping Linux, going back to Windblows
Date: 30 Jan 1999 22:02:12 -0600
In article <78ur7u$[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote:
>
>>Perhaps we would understand if you gave an example that is somehow
>>better than your description???
>
>"3.1.1 Creating a directory tree from number of files
>
>this:
> $cd wdir
> $cvs import -m "sources" yoyodyne/rdir yoyo start"
>
>Here was see the author say "An example is probably
>the easiest way to explain how.."
Urk.. That's not a man page, that's a full-blown 150 page book!
Of course it is appropriate to have examples, discussions and
discussions about the examples in such a lengthy work. Man
pages are supposed to be concise references where you can
quickly see all the options at once. Note that cvs also has
a normal man page and I suspect that the 2nd time you import
something you will get it right faster if you do:
man cvs
/import
and see what the choices mean.
>An example HELP explain things, a simple concept that you can not
>grasp for some reason.
I'm not opposed to examples where they make the reference more
concise, but I haven't generally seen that to be the case.
>The above btw is from "Version management with CVS"
>by Per Cederqvist et al.
>No one is saying that one should use something before they
>understand it, the point is: examples help one in speeding
>the understanding process.
>
>It is really very simple concept, what about it you can
>not understand??
I think you are the one who doesn't understand the point I
am trying to make. If you don't understand the concept or
the syntax you shouldn't be looking at a man page. You
should be reading a tutorial, overview, guide, or somesuch,
or asking someone who knows. The man pages should not be
cluttered with the kind of thing that you only want to see
once. They should be the place you look when you know what
you want to do but you need to fine tune the options. If
you turn the man pages into fluff for people that haven't
learned the language, then you'll also have to re-write the
real reference again for the people that need it.
>> find /dir -name 'wild*' -print | xargs chmod g+w
>> dump 0f - /source | (cd /dest ; restore xf -)
>> rsh remotehost 'cd /dir ; tar -cf - . ' | dd obs=10k of=/dev/tape
>>Which man page should contain the example and would you clutter all of
>>them with the quoting, grouping, piping details that are really done
>>by the shell?
>
>Look at VMS help and you'll see what I mean.
Do people typically combine many tools in VMS with pipelines and
command grouping as they do in unix?
>>You really have this backwards. Most people can learn if they take
>>the time. What we are trying to point out is that acting without
>>understanding can be dangerous, and that is the way I see blindly
>>following textbook examples.
>
>What we are trying to point, is that examples help one understand.
>And without examples, many will not understand well.
I don't disagree here - I just don't want to see them more than
once, and I don't think everyone else would either.
Les Mikesell
[EMAIL PROTECTED]
------------------------------
From: "Frank T. Lofaro" <[EMAIL PROTECTED]>
Subject: Re: linux on an overclocked PII
Date: 31 Jan 1999 00:51:22 GMT
In <[EMAIL PROTECTED]> on 26 Jan 1999 01:53:42 GMT, Frank Hale
<[EMAIL PROTECTED]> wrote in comp.os.linux.development.system:
>I overclocked my PII 266 to 300 and upped the bus speed to 75 mhz. Now
>when I boot Linux turns off DMA on my hard drives. Is this bad? What
>does DMA do anyway?
>By the way I am on 2.2.0-final (aka 2.2.0-pre9)
>Jan 25 20:12:06 FranksPC kernel: hdb: timeout waiting for DMA
This is a driver ERROR!
>Jan 25 20:12:06 FranksPC kernel: hdb: irq timeout: status=0x58 {
>DriveReady SeekComplete DataRequest }
IRQ timeouts are BAD!
>Jan 25 20:12:06 FranksPC kernel: hda: DMA disabled
>Jan 25 20:12:06 FranksPC kernel: hdb: DMA disabled
>Jan 25 20:12:06 FranksPC kernel: ide0: reset: success
Linux is trying to protect your system from severe filesystem
corruption by turning off any optional features (DMA, etc) and
RESETTING the ide controller. This is to hopefully shut off anything
causing a problem and get the controller in a working, sane state.
Basically, you system won't run stable at that speed, and Linux
detected and handled the error. Hoepfully any bad writes got retried
and then worked, etc and you didn't corrupt anything. Hopefully no bad
reads got bad data into memory which was later written out. Otherwise
you may have damaged your filesystem.
Basically, you overclocked, and you lost.
Set the speed back where it should be and hope you didn't damage your
files or your hardware. Yes a CPU can be damaged by overclocking,
_even if it doesn't overheat_ (electromigration, etc). You could also
have damaged other components on the bus.
>Jan
>--
>From: Frank Hale
>Email: [EMAIL PROTECTED]
>ICQ: 7205161
>Website: http://www.franksstuff.com/
>"Microsoft - How many times do you want to reboot today?"
------------------------------
Crossposted-To: comp.os.linux.advocacy,comp.os.linux.development.apps,comp.os.linux.x
From: [EMAIL PROTECTED] (Joseph H Allen)
Subject: Re: Notif-0.1
Date: Sun, 31 Jan 1999 04:20:43 GMT
In article <[EMAIL PROTECTED]>,
Frank Hale <[EMAIL PROTECTED]> wrote:
>> I have been working on a new freeware widget library for X/Linux. If you
>> are unsatisfied with Qt, Lesstif, Tk and GTK, try Notif!
>> ftp://virek.vwis.com/pub/jhallen/notif-0.1.tar.Z.
>I Sure would like try this. Ooh too bad its a dead link. Go
>figure.......
It verified fine. Several people have already downloaded it. The only
problem I can think of is that the period on the end is not part of the
link (sorry). It's just a period:
ftp://virek.vwis.com/pub/jhallen/notif-0.1.tar.Z
--
/* [EMAIL PROTECTED] (192.74.137.5) */ /* Joseph H. Allen */
int a[1817];main(z,p,q,r){for(p=80;q+p-80;p-=2*a[p])for(z=9;z--;)q=3&(r=time(0)
+r*57)/7,q=q?q-1?q-2?1-p%79?-1:0:p%79-77?1:0:p<1659?79:0:p>158?-79:0,q?!a[p+q*2
]?a[p+=a[p+=q]=q]=q:0:0;for(;q++-1817;)printf(q%79?"%c":"%c\n"," #"[!a[q-1]]);}
------------------------------
From: Nix <$}xin{[email protected]>
Crossposted-To: comp.os.linux.advocacy,comp.os.linux.development.apps,comp.os.linux.x
Subject: Re: disheartened gnome developer
Date: 30 Jan 1999 03:38:10 +0000
[EMAIL PROTECTED] (jedi) writes:
> supporting the
> whole cult of Hitler.
This thread's utility has now officially declined to zero.
(It's the first time I've ever seen Godwin's Law invoked accidentally...)
--
`I didn't want the bug *fixed*, I wanted to bitch pointlessly.' - Matthew
R. Williams on alt.religion.emacs
------------------------------
From: Nix <$}xin{[email protected]>
Subject: Re: Parallel C for Linux
Date: 30 Jan 1999 01:49:02 +0000
[EMAIL PROTECTED] (Petter Reinholdtsen) writes:
> This is the normal GNU make. Use 'make -j <num>' to compile <num>
> files in parallell.
And watch it get its dependencies in a tangle :(
make -j on a multiprocessor system (or with the Custom libs across a
network) is not exactly perfect yet. :(
--
`I didn't want the bug *fixed*, I wanted to bitch pointlessly.' - Matthew
R. Williams on alt.religion.emacs
------------------------------
From: Vasiliy <[EMAIL PROTECTED]>
Subject: Re: How to flush the file cache ?
Date: Sat, 30 Jan 1999 21:12:36 +0600
Renaud Lottiaux wrote:
> Is anybody know how to flush the file cache
> quickly and easily ?
sync
WBR, Vasiliy
------------------------------
From: [EMAIL PROTECTED] (Ian D Romanick)
Subject: Re: Parallel C for Linux
Date: 30 Jan 1999 11:00:23 -0800
Nix <$}xin{[email protected]> writes:
>[EMAIL PROTECTED] (Petter Reinholdtsen) writes:
>
>> This is the normal GNU make. Use 'make -j <num>' to compile <num>
>> files in parallell.
>
>And watch it get its dependencies in a tangle :(
>
>make -j on a multiprocessor system (or with the Custom libs across a
>network) is not exactly perfect yet. :(
It would be *nice* if GNU make worked like Sequent's make. You just add
'$&' to a target whose dependencies can be built in parallel:
foo: $& foo.c bar.c thpt.c
It then looks at an env variable called PARALLEL to determine how many
process to run at one time. It's VERY nice. :)
--
Famous last words: "The internal works of this software is quite complcated.
The user need not know about this complexity."
My last words are at http://www.cs.pdx.edu/~idr/
------------------------------
From: Erik de Castro Lopo <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps,comp.unix.bsd.freebsd.misc
Subject: Re: Debugger ?
Date: Sun, 31 Jan 1999 16:13:27 +1100
Kintug wrote:
>
> Greetings,
>
> Could anyone recommend good assembler-level debugger (x86) for
> Linux/FreeBSD? Something like adb would rock.
I don't know adb but the combination of gdb and ddd will do
the job.
Erik
--
+-------------------------------------------------+
Erik de Castro Lopo [EMAIL PROTECTED]
+-------------------------------------------------+
Windows NT : An evolutionary dead end.
------------------------------
From: "David D. Gitchell" <[EMAIL PROTECTED]>
Subject: Re: password validation
Date: Sat, 30 Jan 1999 22:38:00 -0600
Nicholas,
Look at "man 3 shadow" for the utilities dealing with the shadow
password file. Note that your cgi-bin executable will have to be setuid
root to use those utilities -- you must be VERY careful.
Nicholas Todd Lawrence wrote:
>
> I trying to write an application (using GNU C++) on a linux machine that
> needs to check the password file to validate a user's login ID. The
> problem with this I'm only a ordinary user, and the system uses a shadowed
> password file.
>
> Does anyone know of C function/library routine that I can use to check the
> entered password against the encrypted password? Since my plan is to run
> this from a web browser I can't use an interactive script to do the job
> for me.
-- Dave
============================================================
#include <std_disclaimer.h> /* I speak for myself, only. */|
============================================================
LCDR David D. Gitchell, USN (Retired), Hutchinson, KS, USA
[EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]
------------------------------
** 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.development.system) 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-Development-System Digest
******************************