Linux-Misc Digest #3, Volume #28 Fri, 1 Jun 01 15:13:02 EDT
Contents:
Wine (codeweavers) and LM8? ([EMAIL PROTECTED])
Re: how do i fake root? (Alex Yung)
Re: Bummed by debian apt-get (John Hasler)
Re: SO5.2 file error (Kevin)
Re: lsof and special characters (Dan Mercer)
Re: Bummed by debian apt-get (John Hasler)
Re: lsof and special characters (Dan Mercer)
resolution problem ("Antoine De Groote")
Re: preventing OS / platform info on connect ([EMAIL PROTECTED])
Re: Bummed by debian apt-get (Jerome Mrozak)
Re: SO5.2 file error (David)
Re: lsof and special characters (Lew Pitcher)
Linux IO issues ("Shirish")
Re: Installing TrueType Fonts (Lee Webb)
Re: How to get the distribution name/version (Lee Webb)
Re: Converting flock() to fcntl() ("Peter T. Breuer")
Re: How to get the distribution name/version (David)
increasing max group memberships in kernel 2.2.x ("James Mackie")
Re: How to get the distribution name/version (Lew Pitcher)
Modules Alias ("Martin Greco")
----------------------------------------------------------------------------
From: [EMAIL PROTECTED]
Subject: Wine (codeweavers) and LM8?
Date: 1 Jun 2001 17:14:43 GMT
Hello all,
I had Codeweavers Wine (preview 3) working fine under LM7.2 (atleast had
notepad and word going). But ever since I upgraded (reinstalled) to 8.0, I
get the following problem:
- installation of rpm goes through fine
- when I run 'winesetup' as a user, the configuration goes through fine
(atleast no error messages)
- then when I attempt to run notepad.exe using the following command:
cd /mnt/windows/windows
wine notepad.exe
I get a whole bunch of errors (quite possibly from xfs because it eats up a
lot of CPU cycles) complaining that a particular encodeing in my fonts is not
valide. NOTE: I did apply the newly available drakfont tool and installed
MSWindows fonts.
Any help would be much appreciated.
----- Posted via NewsOne.Net: Free (anonymous) Usenet News via the Web -----
http://newsone.net/ -- Free reading and anonymous posting to 60,000+ groups
NewsOne.Net prohibits users from posting spam. If this or other posts
made through NewsOne.Net violate posting guidelines, email [EMAIL PROTECTED]
------------------------------
From: [EMAIL PROTECTED] (Alex Yung)
Subject: Re: how do i fake root?
Date: 1 Jun 2001 17:12:59 GMT
Reply-To: [EMAIL PROTECTED]
alpha ([EMAIL PROTECTED]) wrote:
: tried the prefix method, not working, it said "cannot open Packages
: index using db1 - Permission denied (13).
You probably need to change dbpath since user would not have
permission to update the rpmdb. Try:
rpm -Uvh --prefix /some/dir --dbpath /some/dir your-package.rpm
------------------------------
From: John Hasler <[EMAIL PROTECTED]>
Subject: Re: Bummed by debian apt-get
Date: Fri, 1 Jun 2001 14:55:52 GMT
Peter T. Breuer writes:
> Doesn't dist-upgrade do more than upgrade?
'upgrade' will upgrade all of your packages to the most recent versions if
possible but it will not remove anything. 'dist-upgrade' is more
aggressive and will remove 'less important' packages if needed to install
'more important' ones. This often necessary when upgrading between major
releases because of things like 'conflicts and replaces'.
> I thought it looked at dselect choices pending.
You're thinking of 'dselect-upgrade'.
> I don't know if woody is all there right yet!
All of them are always 'all there' (though 'testing' was screwed up for a
while recently for a while).
> It's the "unstable" distro.
No. 'potato' is 'stable'. 'woody' is 'testing'. 'sid' is 'unstable' (I
wish people would stop using the code names).
> I don't have console-apt and I'm mostly on testing.
It was removed a while back and just recently restored: perhaps it hasn't
made it to 'testing' yet.
--
John Hasler
[EMAIL PROTECTED]
Dancing Horse Hill
Elmwood, Wisconsin
------------------------------
From: [EMAIL PROTECTED] (Kevin)
Reply-To: [EMAIL PROTECTED]
Subject: Re: SO5.2 file error
Date: Fri, 01 Jun 2001 17:23:05 GMT
In article <[EMAIL PROTECTED]>,
Dave Uhring <[EMAIL PROTECTED]> writes:
> Did you install staroffice with the /net option?
Yes.
> Do you have an office52 directory in your home directory?
Yes.
I've used soffice for many things file edits, all of
which have thusfar been files in my home directory
tree. The error appeared for the first time when I tried
editing a file in the /tmp directory. Michael Perry's
response agrees with my observation.
Cheers...
--
Unless otherwise noted, the statements herein reflect my personal
opinions and not those of any organization with which I may be affiliated.
------------------------------
From: [EMAIL PROTECTED] (Dan Mercer)
Subject: Re: lsof and special characters
Date: 1 Jun 2001 17:28:48 GMT
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Vic Abell) writes:
> [EMAIL PROTECTED] (Villy Kruse) writes:
>
>>On Wed, 30 May 2001 17:01:57 GMT, Bolt Thrower <[EMAIL PROTECTED]> wrote:
>>>
>>>I've noticed that lsof 4.47 misreports filenames that have "special
>>>characters" in them ...
>>>... Is this a bug in lsof?
>
>>A design decission, I would say.
>
> It's really a security feature, and it's documented in the OUTPUT
> section of the lsof man page.
>
> "Lsof only outputs printable ASCII characters. Non-printable
> characters are printed in one of three forms: the C
> ``\[bfrnt]'' form; the control character `^' form (e.g.,
> ``^@''); or hexadecimal leading ``\x'' form (e.g.,
> ``\xab''). Space is non-printable in the COMMAND column
> (``\x20'') and printable elsewhere."
>
> For example, names with backspaces in them are sometimes used to hide
> the true name of the file or process.
>
> Lsof prints a character only when isprint(3) returns true. If
> isprint(3) returns false, lsof prints the character in one of the forms
> described above.
>
> Vic Abell, lsof author
Vic,
isprint will return true for characters printable in the current
LANG if you make the program NLS aware. You do that with
setlocale(3C). I created a file named /home/dam/News/aaa���ooo���.
I modified the 4.51 lsof by adding an #include <locale.h> to
main.c (just as a quick and dirty exercise) and then added
setlocale(LC_CTYPE,"");
immediately after the main. Then I:
$ exec 3<aaa���ooo���
$ lsof -a -p$$ -d3 -Fn
p19844
n/home/dam/News/aaa\xe4\xe4\xe4ooo\xd6\xd6\xd6
$ LANG=da_DK.iso88591 lsof -p$$ -a -d3 -Fn
p19844
n/home/dam/News/aaa���ooo���
$ LC_CTYPE=da_DK.iso88591 lsof -p$$ -a -d3 -Fn
p19844
n/home/dam/News/aaa���ooo���
Tested on hpux 11
--
Dan Mercer
[EMAIL PROTECTED]
Opinions expressed herein are my own and may not represent those of my employer.
------------------------------
From: John Hasler <[EMAIL PROTECTED]>
Subject: Re: Bummed by debian apt-get
Date: Fri, 1 Jun 2001 16:35:44 GMT
Jerome Mrozak writes:
> I hope to get a Progeny install upgraded to woody and Gnome 1.2.
Progeny? I thought you said you had Stormix. I have not been following
Progeny, but IIRC it is based on woody (IIrc it also includes a Gnome
desktop).
> Is Gnome part of woody?
Gnome is in woody, yes (BTW Gnome is not a single thing).
> If so, then shouldn't "apt-get upgrade" with "woody" in the "deb ..."
> lines get it?
No. It would upgrade it, if the version in woody is newer than the one you
have installed, and it can be upgraded without removing anything.
> Try this question: If my sources.list file has "deb ... stable ...", then
> I suppose "apt-get upgrade" will fetch "testing".
Two errors here.
a) 'stable' is 'potato'. 'woody' is 'testing'.
b) 'apt-get upgrade' won't "fetch" anything. It will upgrade any of the
packages you already have installed that have newer versions in any of the
archives mentioned in your apt.sources.
> With the same sources.list (the one with "testing") I went for "apt-get
> dist-upgrade" and didn't see what I thought I should
What messages did apt-get print?
> This is my prior comment again...do these lines attempt to upgrade
> "testing" to "unstable"?
No. They attempt to upgrade whatever you have to 'testing'.
deb http://http.us.debian.org/debian unstable main contrib non-free
tells apt to look at 'unstable'. You should not do this, though.
'unstable' has that name for a reason.
> When the upgrade is done, should I expect to be able to search my file
> system and find these files named task-* ?
No. You should be able to do 'apt-get install task-gnome-desktop' and have
apt install all the gnome stuff needed for a "desktop", or do 'apt-get
install task-kde' and have it get all the KDE stuff needed for a KDE
desktop.
You could also do 'apt-get install tasksel' and then run tasksel and select
task packages from the list it shows you.
> I have done that before and found it like sipping from a firehose. A
> hundred or so emails a day.
Seems to me that there are more messages on this newsgroup each day than
there are on debian-user.
--
John Hasler
[EMAIL PROTECTED]
Dancing Horse Hill
Elmwood, Wisconsin
------------------------------
From: [EMAIL PROTECTED] (Dan Mercer)
Subject: Re: lsof and special characters
Date: 1 Jun 2001 17:33:35 GMT
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Lew Pitcher) writes:
> On Fri, 01 Jun 2001 15:32:32 GMT, Bolt Thrower <[EMAIL PROTECTED]> wrote:
>
>>Vic Abell <[EMAIL PROTECTED]> wrote:
>>
>>> It's really a security feature, and it's documented in the OUTPUT
>>> section of the lsof man page.
>>
>>Woops. Shoulda RTFM.
>>
>>> "Lsof only outputs printable ASCII characters. Non-printable
>>> characters are printed in one of three forms: the C
>>> ``\[bfrnt]'' form; the control character `^' form (e.g.,
>>> ``^@''); or hexadecimal leading ``\x'' form (e.g.,
>>> ``\xab''). Space is non-printable in the COMMAND column
>>> (``\x20'') and printable elsewhere."
>>
>>But characters like '�' seem to me to be just as printable as anything
>
> But it's _not_ ASCII. Valid ASCII codepoints extend from 0x00 to 0x7f, with the
> printable range of codepoints limited to 0x20 through 0x7e. Any codepoint
> outside of that range is considered to be unprintable, and only those codepoints
> between 0x00 and 0x1f, and codepoint 0x7f are eligable for interpretation as a
> print or control escape sequence.
But it is printable depending on the LANG. I just posted a message
to Vic showing how this can easily be accomplished with a simple
two line fix by adding a "#include <locale.h>" and a
setlocale(LC_CTYPE,"");
to main.h. Course, it won't be a simple two line fix when you
try to make it portable, since it will have to be wrapped in an
ifdef, but it is doable and supportable and reasonable.
--
Dan Mercer
[EMAIL PROTECTED]
>
> You have a glyph (�) that maps to a codepoint (0xf6) in whatever characterset
> _you_ use, but this doesn't guarantee that that glyph maps to *any* codepoint,
> let alone *the same* codepoint in another characterset. As for ASCII, it doesn't
> have a glyph � and codepoint 0xf6 is outside of it's range of valid codepoints,
> so it *can't* map codepoint 0xf6 to glyph �.
>
>>else. I can't imagine a scenario where munging those characters
>>would improve security. In fact, if I'm editing my exploit file
>>called 'r��tk�t', the sysadmin will be none the wiser with lsof,
>>since the file will appear in the listing as 'r\xf6\xf8tk\xfft'.
>>
>>> For example, names with backspaces in them are sometimes used to hide
>>> the true name of the file or process.
>>
>>I would agree with you here. I'd classify backspaces, along with
>>control characters, as "non-printing".
>>
>>--
>>Steve <[EMAIL PROTECTED]>
>>Now playing: The Monolith
>>(Memento Mori - "Rhymes of Lunacy")
>
> Lew Pitcher
> IT Consultant, Development Services
> Toronto Dominion Bank Financial Group
>
> (Opinions expressed are my own, not my employers')
Opinions expressed herein are my own and may not represent those of my employer.
------------------------------
From: "Antoine De Groote" <[EMAIL PROTECTED]>
Subject: resolution problem
Date: Fri, 1 Jun 2001 20:04:44 +0200
Hi there,
I'm very new to linux, I installed RedHat 6 this afternoon. But now I have a
problem.
When I startx, Gnome comes, but in a resolution so that I only see a small
part of the entire screen.
What do I have to do to change it?
Regards
antoine
------------------------------
From: [EMAIL PROTECTED]
Subject: Re: preventing OS / platform info on connect
Date: Fri, 01 Jun 2001 18:08:56 GMT
>Edit /etc/rc.d/rc.local
>and comment out these lines.
>
># This will overwrite /etc/issue at every boot. So, make any changes
>you
># want to make to /etc/issue here or you will lose them when you reboot.
># echo "" > /etc/issue
># echo "$R" >> /etc/issue
># echo "Kernel $(uname -r) on $a $SMP$(uname -m)" >> /etc/issue
>#
># cp -f /etc/issue /etc/issue.net
># echo >> /etc/issue
>
>
>Then you can edit the /etc/issue and issue.net files with what ever you
>want to put in them.
>
>--
>Confucius say: He who play in root, eventually kill tree.
>Registered with the Linux Counter. http://counter.li.org
>ID # 123538
>Completed more W/U's than 99.225% of seti users. +/- 0.01%
Yup - thanks to both respondents - that did the trick.
------------------------------
From: Jerome Mrozak <[EMAIL PROTECTED]>
Subject: Re: Bummed by debian apt-get
Date: Fri, 01 Jun 2001 13:27:56 -0500
I'm making a mess of this conversation. Let me try to straighten things
out...
John Hasler wrote:
>
> Jerome Mrozak writes:
> > I hope to get a Progeny install upgraded to woody and Gnome 1.2.
>
> Progeny? I thought you said you had Stormix. I have not been following
> Progeny, but IIRC it is based on woody (IIrc it also includes a Gnome
> desktop).
I had Stormix and Progeny both, but seem to have lost the Stormix disk.
I thought I'd go to Mandrake but that thing has got its own problems...
If I got my head on straight I'd try a Debian install again, and that
would be with the Progeny disks. I have my own problems with the
straight potato images (like from linuxiso.org), and find Stormix or
Progeny a more comfortable starting place.
> > Is Gnome part of woody?
>
> Gnome is in woody, yes (BTW Gnome is not a single thing).
I know that Gnome encompasses the gmc, the Office, utilities, etc., but
have had my doubts that the woody distro encompasses that. For example,
if in the future I got woody ISO from (somewhere), would the Gnome
packages be on the CDs? Apparently the answer will be "yes".
> > If so, then shouldn't "apt-get upgrade" with "woody" in the "deb ..."
> > lines get it?
>
> No. It would upgrade it, if the version in woody is newer than the one you
> have installed, and it can be upgraded without removing anything.
So 'upgrade' will only get more recent versions of existing packages,
ones with exactly the same base names? And if Gnome 1.2 has different
package names than Gnome 1.0 then "upgrade" won't fetch them. Am I
right?
> > Try this question: If my sources.list file has "deb ... stable ...", then
> > I suppose "apt-get upgrade" will fetch "testing".
>
> Two errors here.
> a) 'stable' is 'potato'. 'woody' is 'testing'.
> b) 'apt-get upgrade' won't "fetch" anything. It will upgrade any of the
> packages you already have installed that have newer versions in any of the
> archives mentioned in your apt.sources.
I originally want to say "apt-get dist-upgrade". I guess that
"dist-upgrade" will fetch everything in the testing directory tree
(main, contrib., non-free). If my sources point at "stable", will a
dist-upgrade fetch everything from "stable" or "testing". In short,
does "dist-upgrade" point to the next version, or fetch everything for
the version the source points at? If the former, then pointing at
"unstable" and doing a "dist-upgrade" should always be a no-op, I guess.
> > With the same sources.list (the one with "testing") I went for "apt-get
> > dist-upgrade" and didn't see what I thought I should
>
> What messages did apt-get print?
I got a list of packages ready to be downloaded, and apt-get waited for
my approval. I examined this list and didn't see the sorts of files I'd
expect to be in Gnome 1.2 or KDE, so I cancelled the dist-upgrade.
>
> > This is my prior comment again...do these lines attempt to upgrade
> > "testing" to "unstable"?
>
> No. They attempt to upgrade whatever you have to 'testing'.
>
> deb http://http.us.debian.org/debian unstable main contrib non-free
>
> tells apt to look at 'unstable'. You should not do this, though.
> 'unstable' has that name for a reason.
So ".../debian unstable main contrib non-free" then "upgrade" gets the
*same* packages as you already have, but looks to "unstable" for their
versions. I suppose that "dist-upgrade" would do everything that
"upgrade" does, plus fetch whatever packages I don't already have
installed. For example, if my current distro didn't have gimp or emacs
installed, would the "dist-upgrade" cause apt to fetch them from the
unstable branch, since that is where my source points at?
> > When the upgrade is done, should I expect to be able to search my file
> > system and find these files named task-* ?
>
> No. You should be able to do 'apt-get install task-gnome-desktop' and have
> apt install all the gnome stuff needed for a "desktop", or do 'apt-get
> install task-kde' and have it get all the KDE stuff needed for a KDE
> desktop.
When I try this, will apt-get look to my hard disk to find out what
"task-gnome-desktop" does, or will it look to the places sources.list
points at to find out the meaning of task-gnome-desktop?
> You could also do 'apt-get install tasksel' and then run tasksel and select
> task packages from the list it shows you.
Never heard of that one before. I think I'll try it this weekend.
>
> > I have done that before and found it like sipping from a firehose. A
> > hundred or so emails a day.
>
> Seems to me that there are more messages on this newsgroup each day than
> there are on debian-user.
No comment.
Thanks a real great deal for the console-apt suggestion! I started
dselect and its packages lists had nothing special on a Progeny
installation. I started console-apt and it found KDE2, lots of task-*
files, on the distribution. I'm going to find out more about this
program.
> --
> John Hasler
> [EMAIL PROTECTED]
> Dancing Horse Hill
> Elmwood, Wisconsin
--
Jerome Mrozak "Never buy a dog and bark for yourself"
[EMAIL PROTECTED] --"Slippery" Jim DiGriz
(the Stainless Steel Rat)
------------------------------
From: David <[EMAIL PROTECTED]>
Subject: Re: SO5.2 file error
Date: Fri, 01 Jun 2001 18:23:57 GMT
Kevin wrote:
>
> In article <[EMAIL PROTECTED]>,
> Dave Uhring <[EMAIL PROTECTED]> writes:
> > Did you install staroffice with the /net option?
>
> Yes.
>
> > Do you have an office52 directory in your home directory?
>
> Yes.
>
> I've used soffice for many things file edits, all of
> which have thusfar been files in my home directory
> tree. The error appeared for the first time when I tried
> editing a file in the /tmp directory. Michael Perry's
> response agrees with my observation.
>
> Cheers...
Just an idea but have you checked /etc/fstab to see if /tmp is set to be
a read only (ro) file system?
--
Confucius say: He who play in root, eventually kill tree.
Registered with the Linux Counter. http://counter.li.org
ID # 123538
Completed more W/U's than 99.228% of seti users. +/- 0.01%
------------------------------
From: [EMAIL PROTECTED] (Lew Pitcher)
Subject: Re: lsof and special characters
Reply-To: [EMAIL PROTECTED]
Date: Fri, 01 Jun 2001 18:26:16 GMT
On 1 Jun 2001 17:33:35 GMT, [EMAIL PROTECTED] (Dan Mercer) wrote:
>In article <[EMAIL PROTECTED]>,
>[EMAIL PROTECTED] (Lew Pitcher) writes:
>> On Fri, 01 Jun 2001 15:32:32 GMT, Bolt Thrower <[EMAIL PROTECTED]> wrote:
>>
>>>Vic Abell <[EMAIL PROTECTED]> wrote:
>>>
>>>> It's really a security feature, and it's documented in the OUTPUT
>>>> section of the lsof man page.
>>>
>>>Woops. Shoulda RTFM.
>>>
>>>> "Lsof only outputs printable ASCII characters. Non-printable
[snip]
>>>But characters like '�' seem to me to be just as printable as anything
>>
>> But it's _not_ ASCII. Valid ASCII codepoints extend from 0x00 to 0x7f, with the
[snip]
>But it is printable depending on the LANG. I just posted a message
>to Vic showing how this can easily be accomplished with a simple
>two line fix by adding a "#include <locale.h>" and a
>
> setlocale(LC_CTYPE,"");
>
>to main.h. Course, it won't be a simple two line fix when you
>try to make it portable, since it will have to be wrapped in an
>ifdef, but it is doable and supportable and reasonable.
Certainly. But as it stands, lsof interprets names as ASCII and that
interpretation is what the OP was grumping about. <g> I was responding to his
grump about accented characters, explaining _why_ the ASCII interpretation
doesn't show them properly.
As you say, it takes a change to lsof to make it interpret data in other
charactersets (albeit, a two line change <g>). I don't have an issue with that;
in fact, I would prefer that sort of change be implemented in every utility that
works with variable-character-set data.
Lew Pitcher
IT Consultant, Development Services
Toronto Dominion Bank Financial Group
(Opinions expressed are my own, not my employers')
------------------------------
From: "Shirish" <[EMAIL PROTECTED]>
Subject: Linux IO issues
Date: Fri, 1 Jun 2001 11:21:16 -0700
Does Linux have an IO scalability issue. We here have 25 drives attached to
a server with two fibre controller cards. The max thruput we can arrive at
is around 40MB/s, thats like 5% PCI efficiency. If I have the same
configuration under windows, I can easily do 250~300MB/s using the same HW
configuration. Any clues!!
-s
------------------------------
From: [EMAIL PROTECTED] (Lee Webb)
Subject: Re: Installing TrueType Fonts
Date: 1 Jun 2001 18:30:03 GMT
Reply-To: [EMAIL PROTECTED]
On Thu, 31 May 2001 22:04:19 +0100, Alex Meaden wrote:
> Please can someone tell me how to install TrueType fonts on Linux? I am
> running Red Hat 7.1, KDE, XFree86 4.0.3. Is there a GUI program I can use?]
>
> TIA,
> Alex.
There's no GUI app as far as I know, but it's not really needed anyway:
http://www.linuxdoc.org/HOWTO/mini/TT-XFree86.html
Lee.
------------------------------
From: [EMAIL PROTECTED] (Lee Webb)
Subject: Re: How to get the distribution name/version
Date: 1 Jun 2001 18:37:40 GMT
Reply-To: [EMAIL PROTECTED]
On 1 Jun 2001 00:01:25 -0700, joshua wrote:
> Hi all,
> I want to get the name/version of linux dist like
> Red Hat 7.1; Red Hat 6.2 ,,,,,
> Is there a command for this?
> Where is the information stored?
>
> Just like we use 'uname -a' or -s or -n for other info,
> I would like to get 'Dist name/ver'.
o>
I'm not sure how scientific this is, but does the following work for
you?
(i.e., I don't know if this'll work on EVERY distribution):
dmesg | head -1 | awk -F '(' '{print $4}' | cut -d ')' -f 1
Make use of the first line of dmesg and look for the distribution name.
Lee.
------------------------------
From: "Peter T. Breuer" <[EMAIL PROTECTED]>
Subject: Re: Converting flock() to fcntl()
Date: Fri, 1 Jun 2001 20:39:56 +0200
Bernie Cosell <[EMAIL PROTECTED]> wrote:
> "Peter T. Breuer" <[EMAIL PROTECTED]> wrote:
> } Bernard Cosell <[EMAIL PROTECTED]> wrote:
> } > The problem-de-jour, for example, is mail delivery. Both sendmail's
> } > mail.local [our MDA] and qpopper [our pop3 daemon] use flock and don't
> }
> } Sendmail uses dotlocking. All mail clients except pine use dotlocking,
> } or can be compiled to use it.
> We've looked at that/are looking at that. We have other apps that need to
> mess with mailboxes and so it'd be nice to use something a bit less adhoc
> than the dot-locking stuff. Also, in the past we did have occasional
> trouble with a daemon dieing [I think it was usually pop3d] and leaving a
> lock behind we'd have to seek out and remove by hand... But if necessary I
This is a well know bug in in.pop3d, and is why people prefer
cucipop, which does not have the flaw. It's a programming error,
nothing to do with dotlocking in itself.
> can throw the config switches on the various servers/daemons and go to
> dot-locking. Thanks!
Peter
------------------------------
From: David <[EMAIL PROTECTED]>
Subject: Re: How to get the distribution name/version
Date: Fri, 01 Jun 2001 18:57:28 GMT
> On 1 Jun 2001 00:01:25 -0700, joshua wrote:
> > Hi all,
> > I want to get the name/version of linux dist like
> > Red Hat 7.1; Red Hat 6.2 ,,,,,
> > Is there a command for this?
> > Where is the information stored?
> >
> > Just like we use 'uname -a' or -s or -n for other info,
> > I would like to get 'Dist name/ver'.
> o>
On a redhat system you can do it with "cat" like this.
cat /etc/redhat-release
--
Confucius say: He who play in root, eventually kill tree.
Registered with the Linux Counter. http://counter.li.org
ID # 123538
Completed more W/U's than 99.228% of seti users. +/- 0.01%
------------------------------
From: "James Mackie" <[EMAIL PROTECTED]>
Subject: increasing max group memberships in kernel 2.2.x
Date: Fri, 01 Jun 2001 19:00:54 GMT
Good afternoon everyone..
I have been searching for this for a while, I need to increase the maximum
group membership limit in a Linux 2.2.x kernel. I beleive that it is set by
default to 32 and I need to raise it to about 256 or so.
This is for a server with many users on it each having their own primary
group (RH 6.2) and one user (Program) needs to be made a member of ALL of
these groups to have access to all of the files for read access only (under
most circumstances).
However with the current level set to 32 only the first 32 entries in
/etc/passwd actually get the group permission to work and to get any others
to work then you need to make all the files and directories world readable
for the program to be able to read the files.
This means of course that any of these users can potentially read each
others files (and this is a BAD thing in this example) and we need to
prevent this from being possible.
If anyone could be so kind as to point me to which .h file I need to modify
(or whatever else) it would be greatly appreciated.
------------------------------
From: [EMAIL PROTECTED] (Lew Pitcher)
Subject: Re: How to get the distribution name/version
Reply-To: [EMAIL PROTECTED]
Date: Fri, 01 Jun 2001 19:03:09 GMT
On 1 Jun 2001 18:37:40 GMT, [EMAIL PROTECTED] (Lee Webb) wrote:
>On 1 Jun 2001 00:01:25 -0700, joshua wrote:
>> Hi all,
>> I want to get the name/version of linux dist like
>> Red Hat 7.1; Red Hat 6.2 ,,,,,
>> Is there a command for this?
>> Where is the information stored?
>>
>> Just like we use 'uname -a' or -s or -n for other info,
>> I would like to get 'Dist name/ver'.
>o>
>
>I'm not sure how scientific this is, but does the following work for
>you?
>(i.e., I don't know if this'll work on EVERY distribution):
>
>dmesg | head -1 | awk -F '(' '{print $4}' | cut -d ')' -f 1
>
>Make use of the first line of dmesg and look for the distribution name.
Well, my dmesg buffer has rolled over, and the first line now looks like
78 S=0x00 I=2159 F=0x0000 T=103
Anyway, I don't believe that the first line of dmesg (even in it's unrolled
state) consistantly reports the _distribution_. It likely only reports the
kernel version, and may report the distribution for certain distros only.
AFAIK, there is no *consistant, generic* way to determine which distribution of
Linux you are using, other than to ask the person who installed it. Even then,
is Red Hat Linux 7.0 with an upgraded Apache server, ReiserFS root filesystem,
and DB2/UDB _still_ "Red Hat 7.0"? My belief is that it is not, and I couldn't
tell you what it should be called.
Lew Pitcher
IT Consultant, Development Services
Toronto Dominion Bank Financial Group
(Opinions expressed are my own, not my employers')
------------------------------
From: "Martin Greco" <[EMAIL PROTECTED]>
Subject: Modules Alias
Date: Fri, 1 Jun 2001 15:33:04 -0300
I have a question.
i installed the ppp support as modules.
I want to put them in the modules.conf, but I don't know the alias, that's
it
for parallel port is parport_lowlevel, for NIC eth for Soundcar is sound
I tried ppp, and ppp0, but it doesn't load all the modules.
Is any way to know this names as well as any other.
Thanks
--
-
Martin Greco
Soporte Residencial - int. 2001
Sinectis Rosario - Rioja 1659
Tel: 0810-999-0700
------------------------------
** 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
******************************