Linux-Misc Digest #551, Volume #27 Sat, 7 Apr 01 14:13:03 EDT
Contents:
Re: Disk thrashing -- possible memory issue? RH7. (Dave Brown)
Re: The Python is so powerful, easy to use? compared with C++ (Grant Edwards)
Re: rlogin: connection closed ! ("Gary J. Artim")
Re: must lprng listen on tcp/ip...? (Bob Hauck)
Re: The Python is so powerful, easy to use? compared with C++ (Bob Hauck)
Cannot compile source ("Andy Walker")
Re: IP Firewall, MASQ??????? (puppy)
cassette tape to cd (Alan Needleman)
Looking for "drivers.img", where can I find it ? ("Cedric Chausson")
SuSE Installation: found no usable partition (Shane Wilkinson)
Re: Reinstalling Win98 on a dual boot system (Pi)
Re: Looking for "drivers.img", where can I find it ? (tech2kjason)
heavy unexpected problems with... ld.so? (Peter Petersen)
Re: Detecting Users using ssh to connect ("Nathan")
Re: Looking for "drivers.img", where can I find it ? (Raphael Arlitt)
Burning CIF image files in Linux (Marcus =?iso-8859-1?Q?Gran=E9r?=)
Re: Suse 7.1 : which compiler (Zhero Man)
dd and file size limit ("tobi")
----------------------------------------------------------------------------
From: [EMAIL PROTECTED] (Dave Brown)
Subject: Re: Disk thrashing -- possible memory issue? RH7.
Reply-To: [EMAIL PROTECTED]
Date: 6 Apr 2001 22:43:14 -0500
>Bearing in mind the fact that, as I said, I'm a bit new to Linux, I'm afraid
>I really do not know where to start troubleshooting this one or really even
>where to begin describing the issue in detail. It has also been suggested
>that Linux may not be using the full capacity of the memory.
What does "cat /proc/meminfo" show? (Or, for that matter, "top"?
(When you start "top", hit "M" and it will list processes in order of
memory usage.)
Maybe your kernel is not recognizing all your installed memory...
--
Dave Brown Austin, TX
------------------------------
From: [EMAIL PROTECTED] (Grant Edwards)
Subject: Re: The Python is so powerful, easy to use? compared with C++
Date: Sat, 07 Apr 2001 14:40:15 GMT
On Sat, 07 Apr 2001 09:26:50 GMT, Joeri Sebrechts <[EMAIL PROTECTED]> wrote:
>> > Nobody forces you to use ALL of C++ in one program.
>> I should hope not! I question whether anybody but Bjarne even
>> _understands_ all of the language.
>
>I agree. There is a lot in there. But again, if you don't
>understand it, or don't want to understand about it, ignore it.
The problem is you have to know too much to successfully ignore
it. It's too easy to _accidentally_ trip over obscure or
confusing language features -- especially when maintinging
somebody else's code. It's just too hard to look at a piece of
C++ code and know what it does.
>The original question was: is C++ complex ? And my answer was:
>no, it's not.
IMHO, C++ is by _far_ the most complex lanugage with which I'm
familiar. I'm not talking about programs written in C++, I'm
talking about the language itself. Sure, it's possible to write
a simple program in C++ and to write a complex program in
Python. But, the C++ language is still two orders of magnitude
more complex that Python.
After using Python for a month or two, I probably know the
language as well as all but a few people. I know people who've
been writing C++ for years, and still complain that they don't
understand large portions of the language.
--
Grant Edwards grante Yow! We are now enjoying
at total mutual interaction in
visi.com an imaginary hot tub...
------------------------------
From: "Gary J. Artim" <[EMAIL PROTECTED]>
Subject: Re: rlogin: connection closed !
Date: Sat, 07 Apr 2001 07:37:05 -0800
Reply-To: [EMAIL PROTECTED]
Ian Ellis wrote:
>
> Hi,
>
> I resorted to changing the pam file /etc/pam.d/rsh, replacing the 'required'
> clause of each 'auth' line with 'optional'
>
> Opens as big security hole - but never mind (the firewall should protect me
> ....)
>
> Cheers
>
> Ian
>
> "Gary J. Artim" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]...
> > Help anyone,
> > I am trying to use rsh program (a decision made long before I got here)
> > to change users without using passords on the same system.
> > I"m running linux 6.2 redhat and added entries in /etc/hosts.equiv like:
> > myhost myid
> > result is:
> > [gary@hale ~]# /usr/bin/rsh localhost -l dkuc
> > rlogin: connection closed.
> >
> > any suggestions would be greatly appriciated. I've done this on
> > sun/hp's/freebsd
> > systems. Du! what's up with linux or is it me? Much thank for any
> > advise,
> >
> > Gary
I tried this (changing pam.d/rsh) and got the following on the log:
pam_rhosts_auth[1370]: allowed to gary@localhost as dkuc
for command: rsh localhost -l dkuc
I was getting the above before I change /etc/pam.d/rsh .
It must be somehthing with rlogin. Why does it not use rsh?
Thanks for any help. Gary
------------------------------
From: [EMAIL PROTECTED] (Bob Hauck)
Subject: Re: must lprng listen on tcp/ip...?
Reply-To: bobh = haucks dot org
Date: Sat, 07 Apr 2001 14:43:37 GMT
On Fri, 6 Apr 2001 18:25:26 -0700, Matthew Whitworth
<[EMAIL PROTECTED]> wrote:
>Does anyone know if there is a way to disable TCP/IP listening on lprng?
Don't start it.
>Or at least configure it to listen on a specific interface?
That won't do what you think it will. What you can do though is set up
access control rules in /etc/lpd.perms. See "man lpd.perms".
You can also use ipchains to block access except from a given network.
--
-| Bob Hauck
-| To Whom You Are Speaking
-| http://www.haucks.org/
------------------------------
From: [EMAIL PROTECTED] (Bob Hauck)
Subject: Re: The Python is so powerful, easy to use? compared with C++
Reply-To: bobh = haucks dot org
Date: Sat, 07 Apr 2001 14:43:39 GMT
On Sat, 07 Apr 2001 09:26:50 GMT, Joeri Sebrechts
<[EMAIL PROTECTED]> wrote:
>Bob Hauck wrote:
>I obviously agree that for a lot of things there are better languages
>than C++. For example, currently I'm working on a web project, and am
>using PHP for it.
Good example of why sometimes a specialized language is the right
answer. I've also found that in many cases a combination of C and
Python is very powerful. The introspection and dynamic aspects of an
interpreter are really cool, while C is real fast and relatively
simple.
>As for strings and lists being inside a library instead of being inside
>the language itself. This adds a downside and an upside. The downside is
>that you've got to pay attention to what you do with your templates, but
>the upside is that you only use what you really need.
Another downside with templates is that it is really easy to get mega
bloat without realizing why. Plus they're ugly as hell.
> Although it's true that in these days of gigabyte-sized operating
> systems making small programs isn't really to the point anymore.
I do embedded systems work. They don't yet make gigabyte flash chips
yet. Even if they did, there are cost issues.
>But you're not forced to use the extra stuff they put in, you can just
Actually, in some cases you are. See below.
>ignore it if you want to. You can use C++ as C with classes (like, for
>example, the abiword project is doing).
Which is how I generally use it. I like the OOP aspects, but I really
dislike templates. Partly on aesthetic grounds, partly because of the
bloat issue, partly because they make my head hurt. Did I say how ugly
templates are?
For a while there was a proposal for "embedded C++", which I really
liked. But it seems to have died on the basis that subsetting is
deemed bad or something.
> I've only been programming in C++ for two years, but can you tell me
> what it is that they added that you couldn't ignore ?
Exceptions. The standard library now throws exceptions. Namespaces,
which sometimes are supported and sometimes not (this will eventually go
away). They changed the standard header names. They changed the syntax
for casts and some compilers now warn me about old code that used to be
perfectly legal. I can probably think of more given time.
I think that's my single biggest beef regarding the changes. That old
code won't compile without changes on a standard-conforming compiler.
I guess I had the mistaken idea that the standards committe was
supposed to codify things, not invent a whole new language.
> No language is good for everything.
My point exactly. C++ makes a valiant attempt though.
> The original question was: is C++ complex ?
> And my answer was: no, it's not. There is a difference between being
> complex (an interwoven mass of spaghetti) and being large (C++).
I guess we disagree about what C++ is then <g>.
>It's this whole idea of C++ being too complex that has made it so that
>people don't even take a decent look at it.
Oh, I don't think that is true. C++ seems to be the default language in
the commercial world. It has good public relations among suits.
> If more open source projects would use the OO functionality in C++,
> instead of just sticking to basic C, then not only development would be
> faster, but it would be easier for new developers to join the ranks.
> C++ still can be C with OO features, if you want it to.
It looks like we may not be too far apart about which features of C++
are useful and which are cruft <g>. The KDE people are doing about
what you propose. They also have Python bindings (yay!).
Part of the reason that C++ hasn't been used in more open source
projects is that historically the language has been evolving and there
have been major differences between compilers. This made it hard to
write truly portable code. Whereas C has been stable for years and the
issues are known.
Related to this is name mangling. There's no standard, so it is
difficult to compile libraries with one compiler and use them with
another.
Both of these make it more difficult to use C++ in environments where
there's no central control over the toolset.
BTW, Python is being used to build the new kernel compilation system,
which means that soon you'll be able to count on Python being installed
on every Linux box (which is already about 90% true). In combination
with the KDE-Python bindings, that could be interesting. Putting the VB
runtime on every Windows box stimulated a whole sub-industry.
--
-| Bob Hauck
-| To Whom You Are Speaking
-| http://www.haucks.org/
------------------------------
From: "Andy Walker" <[EMAIL PROTECTED]>
Subject: Cannot compile source
Date: Fri, 6 Apr 2001 15:42:45 -0000
I'm trying to get plib to install so I can then get FlightGear going but
when I do ./configure it fails. The message I get is GCC failure but in the
text before that, it actually says that GCC is O.K. when it tests for it's
presence.
I'm using Mandrake7.2 without any upgrades and would like to know if anyone
has had the same problem. Is it something missing on this distribution
because I used the option install everything when I originally installed
Mandrake and I've yet to successfully compile anything at all that works!
Any help would be greatly appreciated.
------------------------------
From: puppy <[EMAIL PROTECTED]>
Subject: Re: IP Firewall, MASQ???????
Crossposted-To: comp.os.linux.networking,comp.os.linux.security
Date: Sat, 07 Apr 2001 14:45:25 GMT
On mar, 02 gen 2001, Derek wrote:
>I have a relatively simple plan that was working with Suse 6.1, now I
>have installed Suse 7.0. All I want to do is let my #1 computer access
>the internet through my #2 computer which is connected to the internet
>via cable ISP. Now before I was using Squid Proxy server and added a
>couple od ipchains that allowed my #1 computer through to the internet
>with its IP Masqueraded, showing the servers IP instead of its own.
>Suse 7 does not come with squid and I tried loading it off the old disks
>and installing it but now the permissions are all not working and will
>start and continue to run. I have tried configuring
>/etc/rc.d.config/rc.firewal.config but I cannot seem to acces the
>internet because I am using Netscape with proxy server setting that
>needs
>a port number to connect to.
>Now this is where I am not sure how to configure what...
>routing,ipchains,firewals,ip-forwarding, or anything. Sorry this is so
>long but I wanted to have all the info needed to have an answer.
>thanks for any help.
>Derek
--
You can configure Apache as Cache Proxy, with this solution you
can use your connection in both pc
bye
-- Filippo
------------------------------
From: Alan Needleman <[EMAIL PROTECTED]>
Subject: cassette tape to cd
Date: Sat, 07 Apr 2001 15:15:39 GMT
Hi,
I'm trying to transfer some music from cassette to cd. I have an old
sb16 sound card and the oss drivers. I have the cd attached to the
line-in of the sound card. When I issue the following command:
ecasound -c -r -i:/dev/dsp -o test.wav
and get the response
- [ Chainsetup/Enabling audio inputs ]
=====================================
(eca-audio-objects) Audio object "/dev/dsp", mode "read".
(audio-io) Format: s16_le, channels 2, srate 44100.
- [ Chainsetup/Enabling audio outputs ]
====================================
(eca-audio-objects) Audio object "test.wav", mode "read/write".
(audio-io) Format: s16_le, channels 2, srate 44100.
the file test.wav file is created when I do the recording but it is
silent when I play it (I have used a variety of software for this with
the same result). I can (using other software) hear the cassette tape
through the speakers. But nothing I have tried for recording seems to
work.
I have tried to RTFM, but have not gotten anyware. Any suggestions much
appreciated.
Alan
------------------------------
From: "Cedric Chausson" <[EMAIL PROTECTED](halteauspam)>
Crossposted-To: comp.os.linux.setup,comp.os.linux.networking
Subject: Looking for "drivers.img", where can I find it ?
Date: Sat, 07 Apr 2001 18:07:24 +0200
Hello all,
I want to install linux via NFS but my Ethernet card does not appear on
the list proposed. I have been told I need a drivers disk with a file
names drives.img on it. But I cant find it anywhere.
I have looked on the CD of my distribution but nothing there.
I have looked on the RH ftp site but but nothing there.
Does anyone know where I can find this ?
Thanks in advance,
------------------------------
From: Shane Wilkinson <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux.suse,comp.os.linux.setup
Subject: SuSE Installation: found no usable partition
Date: Sat, 07 Apr 2001 12:34:55 -0400
Hello! I'm trying to install SuSE and am very excited but have run
into trouble.. YaST gives me an error "Found no usable partition. Your
data will NOT be saved to disk!"
I know this has to do with fdisk, so I aborted installation and ran
fdisk and made partitions:
/dev/hda1 Linux(83) - 10 megs BOOT
/dev/hda2 Linux swap(82) - 100 megs
/dev/hda3 Linux(83) - the rest of the space... ~1.8gigs
Even still, when I boot from CD, SuSE installs to a virtual RAM drive
or something.. how can I get it to install onto the hard disk? If I
need to copy the files to the hard disk, how does one do that after
aborting installation and getting to a command line?
many thanks in advance!
------------------------------
From: Pi <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.portable,linux.redhat
Subject: Re: Reinstalling Win98 on a dual boot system
Date: Sat, 07 Apr 2001 17:50:47 +0100
Roger Levy wrote:
>
> Okay, I run a dual-boot RH7.0/Win98 system on a single harddrive
> (FIPS-partitioned Windows/boot/swap/Linux), and boot with LILO. I seem to
> have screwed up something important on the Windows side so I'm planning on
> reinstalling Windows. However I seem to remember that this can be
> dangerous for the Linux system. In particular I seem to recall that LILO
> can get cavalierly wiped out during a Windows reinstall, but I can't find
> any hard information on the topic.. Anyone have experience with this
> and/or know what I need to watch out for?
>
> Thanks in advance for any advice.
>
> Roger Levy
Could ya not use the DOS software that comes on the RH CD to back up the
MBR, then restore it?
------------------------------
From: tech2kjason <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.setup,comp.os.linux.networking
Subject: Re: Looking for "drivers.img", where can I find it ?
Date: Sat, 07 Apr 2001 12:04:00 -0500
On Sat, 07 Apr 2001 18:07:24 +0200, "Cedric Chausson"
<[EMAIL PROTECTED](halteauspam)> wrote:
>Hello all,
>
>I want to install linux via NFS but my Ethernet card does not appear on
>the list proposed. I have been told I need a drivers disk with a file
>names drives.img on it. But I cant find it anywhere.
>
>I have looked on the CD of my distribution but nothing there.
>
>I have looked on the RH ftp site but but nothing there.
>
>Does anyone know where I can find this ?
>
>Thanks in advance,
The "drivers.img" file can be found on the distribution cd inside the
"images" directory.
------------------------------
From: Peter Petersen <[EMAIL PROTECTED]>
Subject: heavy unexpected problems with... ld.so?
Date: Sat, 07 Apr 2001 19:03:33 +0200
Hello!
>From one day to the next I find my linux system (based upon suse 6.4) in
a strange state:
The day I switched off the computer everything was all right and I
didn't change anything at all; the next time I switched it on, normal
user accounts couldn't any longer launch X, because they got a message:
cannot load library Xext.so.6 etc.
(all those libraries under /usr/X11R6/lib).
But the libraries are there! And "root" can work as usually, not so the
normal user accounts. There wasn't a dirty shutdown either before those
problems. The only explanation that I have (I don't know whether that's
the cause of the changes) is that "cron" might have done unwanted things
before I tried to launch X as a normal user...
If I make (for a test) /etc/ldso.cache world readable, normal users can
launch X again (if I additionally make the X server setuid root).
All that wasn't needed before nor was there a value for LD_LIBRARY_PATH
of a normal user, but still it worked then. The entries in
/etc/ldso.conf are still the same as before...
How could this happen? And how can I repair that in a good way? (not by
tricks like setuid etc.)
Many thanks, and please, if you have a helpful hint, don't hesitate to
answer :)
Peter
------------------------------
From: "Nathan" <[EMAIL PROTECTED]>
Subject: Re: Detecting Users using ssh to connect
Crossposted-To: comp.os.linux.help,comp.os.linux.questions
Date: Sat, 07 Apr 2001 17:10:11 GMT
What distro are you using? Maybe its an older version of who. What
version of ssh are you running?
Nathan
[EMAIL PROTECTED]
> In article <[EMAIL PROTECTED]>,
> [EMAIL PROTECTED] says...
> [snip]
>
>> Do they show up when you do 'last'?
>
> Nope. It shows all my logins as root but nothing from my user who I KNOW
> was logged in. It shows up in the log files but not on who. I don't
> remember setting anything that would do this but who knows.
>
------------------------------
From: Raphael Arlitt <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.setup,comp.os.linux.networking
Subject: Re: Looking for "drivers.img", where can I find it ?
Date: Sat, 7 Apr 2001 19:45:01 +0200
Sorry I just know for suse...
On their ftp server and cdroms they have a
directory called disks where all the images for
floppys (e.g. boot, modules) are inside.
Just dd (man dd) these images to the floppy and you're set.
Raphael
Cedric Chausson wrote:
> Hello all,
>
> I want to install linux via NFS but my Ethernet card does not appear on
> the list proposed. I have been told I need a drivers disk with a file
> names drives.img on it. But I cant find it anywhere.
>
> I have looked on the CD of my distribution but nothing there.
>
> I have looked on the RH ftp site but but nothing there.
>
> Does anyone know where I can find this ?
>
> Thanks in advance,
>
------------------------------
From: Marcus =?iso-8859-1?Q?Gran=E9r?= <[EMAIL PROTECTED]>
Subject: Burning CIF image files in Linux
Date: Sat, 07 Apr 2001 20:46:45 +0300
What is the best program to burn a CIF image file in linux?
------------------------------
From: [EMAIL PROTECTED] (Zhero Man)
Subject: Re: Suse 7.1 : which compiler
Date: Sat, 07 Apr 2001 17:57:59 GMT
"Glitch" <[EMAIL PROTECTED]> �crivait/wrote:
>uh, i don't think any of them have a reason to go into such a complex
>project as making their own compiler. That's sort of along the lines of
>being a job for a separate project group (like KDE).
Glitch indeed!
Mandrake 8.0 will use the non-standard 2.96 development compiler. See:
http://www.mandrakeforum.com/article.php3?sid=20010301105748#Q2
Of course, Mandrake has worked a lot on it since Red Hat introduced
this compiler in a badly broken down state in its 7.0 distro but, as
gcc.gnu says:
(...) any version labeled 2.96, produce object files that are not
compatible with those produced by either GCC 2.95.2 or the forthcoming
GCC 3.0. Therefore, programs built with these snapshots will not be
compatible with any official GCC release.
http://gcc.gnu.org/gcc-2.96.html
As the following message confirms, Mandrake has been working on a
compiler, probably with Red Hat, in complete ignorance
of gcc.gnu, the official maintainer:
http://www.linux-quebec.org/archives/general/msg02023.html
Why would a sensible company go into the pains of writing a new
compiler from a development version? Just for kicks?
If you've got to stay with this stinking piece of shit, at least, ask
for the 2.95.3 standard compiler. (3.0 should be out before the end of
June.) Otherwise the next step might be to forget about ANSI
compliance, make binaries compliant exclusively with the compiler.
We'd then have distros with different directory trees, different
configuration files, different compilers, different libraries... and
different binaries!
Doesn't that scheme sound a bell? That's how Unix died and that's
where Mandrake and Red Hat are leading us to.
Zhero Man
------------------------------
From: "tobi" <[EMAIL PROTECTED]>
Subject: dd and file size limit
Date: Sat, 7 Apr 2001 19:58:59 +0200
hi all,
i try to backup a linux-server (debian 2.2) via dd. booting the server from
a suse rescue cd, mounting a nfs-share and make dd if=/dev/hda
of=/nfs-share/backup.raw.
the backupserver runs debian 2.2 and i can�t backup the whole hda cause of
the 2GB file size limit in kernel 2.2.x
now my question: is it possible to backup (and restore) a 8GB harddisk via
"dd" to a backup-server running kernel 2.4?
thanks in advance for your help
tobi
------------------------------
** 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
******************************