Linux-Misc Digest #979, Volume #26               Wed, 31 Jan 01 06:13:01 EST

Contents:
  Inetd (Diether De Praetere)
  kernel 2.4.1 compilation (Loo)
  Re: kernel 2.4.1 compilation (Loo)
  Re: Is Netscape 6 on Linux more stable than previous versions? (Loo)
  Re: Software RAID5 Performance Tuning (JJK)
  Re: MS to Enforce Registration - or Else (Ian Davey)
  USB Epson Stylus Color 680 (aka 777) under RH 7 (Crni Gorac)
  Convert Word-DOC to PostScript ("[BRDLocutus")
  Re: MS to Enforce Registration - or Else (Nick Condon)
  Re: RedHat 7.0 startup ("JJ")
  Re: Backup remotely ? (Dave Brown)
  Re: Errors In Partition Table ("Werner Fangmeier")
  SMP on HP Vectra XU 5/133 ([EMAIL PROTECTED])
  Re: Errors In Partition Table ("Werner Fangmeier")
  Re: implementation of colored man pages (Martin Gregorie)

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

From: Diether De Praetere <[EMAIL PROTECTED]>
Subject: Inetd
Date: Wed, 31 Jan 2001 10:15:41 +0100

Hi there,


Somebody installed a RH6.2 on a system here, but apparently didn't
configure the inetd-stuff. ==>  a telnet session from another host
doesn't work: "Unable to connect to remote host: Connection refused"

I checked the inetd.conf file and that's OK.

But can somebody tell me what the default RH configuration file is.
Maybe the inetd-parameter is switched of over there. (I know it is the
/etc/rc.config in the Suse distr.)


But even if I start up inetd manually, a telnet doe not work...

If it is something else, maybe you know...


Thx,
Diether

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

From: Loo <[EMAIL PROTECTED]>
Subject: kernel 2.4.1 compilation
Date: Wed, 31 Jan 2001 16:46:31 +0800

I got the following errors when compiling the 2.4.1 kernel.  Any idea?
======
ld -m elf_i386 -T /usr/src/linux/arch/i386/vmlinux.lds -e stext 
arch/i386/kernel/head.o arch/i386/kernel/init_task.o init/main.o 
init/version.o \
        --start-group \
. 
. 
. 
        --end-group \
        -o vmlinux
init/main.o: In function `check_fpu':
init/main.o(.text.init+0x53): undefined reference to 
`__buggy_fxsr_alignment'
make: *** [vmlinux] Error 1 


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

From: Loo <[EMAIL PROTECTED]>
Subject: Re: kernel 2.4.1 compilation
Date: Wed, 31 Jan 2001 17:13:16 +0800

I made a sucessfully compilation with multiple cpu support enable.  So......

Loo wrote:

> I got the following errors when compiling the 2.4.1 kernel.  Any idea?
> ------
> ld -m elf_i386 -T /usr/src/linux/arch/i386/vmlinux.lds -e stext
> arch/i386/kernel/head.o arch/i386/kernel/init_task.o init/main.o
> init/version.o \
>         --start-group \
> .
> .
> .
>         --end-group \
>         -o vmlinux
> init/main.o: In function `check_fpu':
> init/main.o(.text.init+0x53): undefined reference to
> `__buggy_fxsr_alignment'
> make: *** [vmlinux] Error 1
> 



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

From: Loo <[EMAIL PROTECTED]>
Subject: Re: Is Netscape 6 on Linux more stable than previous versions?
Date: Wed, 31 Jan 2001 17:05:49 +0800

I suggest you try mozilla 0.7 or daily built instead.  Though they still 
have some bugs, they run much faster than the Netscape 6 and do not have 
the installer problem.

[EMAIL PROTECTED] wrote:

> I have the netscape-installer downloaded, but I
> run it, and it just freezes. I looked at some of
> the .ini files for it, and it appears to be simply
> ftp'ing, but I never see any ftp's going on...I
> haven't been able to get it to run all the way
> through yet, and I have tried several times over a
> very reliable internet connection.
> 
> Anyone else having this same issue? BTW I am
> running Mandrake with 2.2.13 kernel, and glibc2.0
> 
> Thanks!
> 
> In article <942rab$onv$[EMAIL PROTECTED]>,
>   [EMAIL PROTECTED] wrote:
> > Hmmm... Under windows where Netscape uses smart download Netscape 6
> > works ok but has a few errors.  Under Linux with my internet connection
> > being somewhat unreliable I have no been able to download the whole
> > thing yet.  Ray
> >
> > In article <W3296.7064$[EMAIL PROTECTED]>,
> >   "Matt O'Toole" <[EMAIL PROTECTED]> wrote:
> > >
> > > "Steve" <[EMAIL PROTECTED]> wrote in message
> > > news:[EMAIL PROTECTED]...
> > >
> > > > Use Mozilla it's now at .07 and very stable without any of the
> > > > commerical junk that's in Netscape v6.
> > > >
> > > > <www.mozilla.org>
> > >
> > > Mozilla is indeed better than Netscape (even though it's officially
> > > unfinished), but I still don't like it as much as the others.  The
> > screen
> > > design and interface isn't as good.
> > >
> > > Unfortunately, there's a lot of mindless boosterism going on in the
> > Linux
> > > community, with little rigor applied to how good the products really
> > are.
> > >
> > > Matt O.
> > >
> > >
> >
> > Sent via Deja.com
> > http://www.deja.com/
> >
> 
> 
> Sent via Deja.com
> http://www.deja.com/



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

From: [EMAIL PROTECTED] (JJK)
Subject: Re: Software RAID5 Performance Tuning
Date: Wed, 31 Jan 2001 09:30:42 GMT

is DMA support enabled in the kernel? If your IDE drives cannot do UDMA then 
performance will suck no matter what you try; you can see if DMA is enabled 
using
  hdparm /dev/hdg /dev/hdh /dev/hdi /dev/hdk

If DMA is not enabled, rebuild your kernel with DMA support enabled 
  make menuconfig
  IDE/ATA
  enable 'Generic PCI IDE support'
  enable 'Use PCI DMA by default'
  enable the chipset drivers (Promise and whatever the BestBuy card is - 
should be listed in /var/log/dmesg)

and try again.

hmmm, don't know if you can set this in ReiserFS but whenever I use ext2 on 
SW-RAID-5 I always use
  stride = 8
for 32 kb chunks and 4 kb block size (32 / 4 = 8 duh). This has a *HUGE* 
impact on performance, esp write performance.

Have you tried running some disk tests on the RAID (e.g. 'bonnie')

HTH,

JJK

In article <956nu8$6m1$[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote:
>Good morning,
>
>  Several months ago I decided I wanted LOTS of disk space.. mostly for
>archiving digital photos, video, music and the like.  I have a 9Gb
>10kRPM Scsi drive for playback and any software I use frequently, but I
>wanted somewhere to store stuff.  I decided I would go with four 80Gb
>Maxtor drives.  I had two ATA/66 controllers (four buses) but they're
>different brands.  One's a Promise, and the other is a no-name from Best
>Buy.  I added md support to the kernel, built a nice 240Gb RAID-5 array,
>and put ReiserFS on it for a journaling filesystem (fscking a 240gig
>drive gives me the willies).  I went with a 32kb chunk size on the
>array, and Reiser is using 4k block sizes.  /proc/mdstat has this to say
>about the array:
>
>+---------------
>Personalities : [linear] [raid0] [raid1] [raid5]
>read_ahead 1024 sectors
>md0 : active raid5 hdk1[3] hdi1[2] hdg1[1] hde1[0]
>      240082944 blocks level 5, 32k chunk, algorithm 2 [4/4] [UUUU]
>
>unused devices: <none>
>+---------------
>
>Now, my questions:
>
>Is it normal for a set up like this to take over TWO DAYS for md to
>build/rebuild the array?
>
>Is it normal for my system to run at a constant load of 0.10 even when
>it's not doing anything?
>
>Is it normal for kapmd to be using 53% of the CPU?
>PID USER     PRI  NI  SIZE  RSS SHARE STAT  LIB %CPU %MEM   TIME COMMAND
>2   root      17   0     0    0     0 RW      0 53.0  0.0 16508m kapmd
>
>Is it normal for me to only be achieving about 200kb/sec transfer rates
>to the array? (My DSL modem can almost outpace this puppy, and the LAN
>stomps it.)
>
>The rest of the machine's stats:
>PIII/500
>128MB RAM
>Two ethernet cards (home LAN router)
>Linux 2.4.0-test9
>Redhat 6.2 initially, with lots of changes
>
>Could anyone give me some advice on performance tuning a software RAID
>array under Linux?  I'm going to spend a few days trying to decrease IO
>latency in the kernel (online opinions seem to abound on this topic),
>but I suspect I'm missing something big here.  Should I be using much
>larger chunk/block sizes because of the size of the array?  Does having
>two different brands of controllers do me in?   Any suggestions on a
>systematic way of collecting more performance data?
>
>With the array taking two days to build, trial-and-error is pretty much
>out of the question. ;)
>
>Any help is appreciated!
>
> -- Greg
> [EMAIL PROTECTED]
>
>
>Sent via Deja.com
>http://www.deja.com/

===========================
JJK / Jan Just Keijser
Unix/Linux Systems Engineer
smtp: [EMAIL PROTECTED]

flames > /dev/null 2>&1
===========================

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

Crossposted-To: comp.os.linux.advocacy
From: [EMAIL PROTECTED] (Ian Davey)
Subject: Re: MS to Enforce Registration - or Else
Date: Wed, 31 Jan 2001 09:33:20 GMT

In article <[EMAIL PROTECTED]>, "Aaron R. Kulkis" <[EMAIL PROTECTED]> wrote:
>> >Atheism is active disbelief, Agnisticism is skepticism about the belief.
>> 
>>         No, atheism is lack of belief.
>
>No..that's agnosticism.

Nope, agnosticism is a position similar to "I've not made my mind up yet." 
That's not a lack of belief, just an admission of not really knowing what to 
believe.

>A theism *IS* a belief....specifically a belief in the null postulate.

This seems more the typical Christian expression of Atheism, trying to 
position it as a belief system. It means "without theism" in the same way that 
amoral means "without morality". So you can argue semantics, and some may try 
and turn Atheism into a belief system, especially Christians because they 
like to paint it that way. It's not something you practice or follow though, 
you don't actually need to do or believe anything to be an Atheist.

As far as Atheists are concerned, god doesn't exist any more than Santa Claus 
or the Easter Bunny. You don't have to actively not believe in their 
existence, they merely exist as nice stories for people who feel they need 
them (IMHO).

ian. 

 \ /
(@_@)  http://www.eclipse.co.uk/sweetdespise/ (dark literature)
/(&)\  http://www.eclipse.co.uk/sweetdespise/libertycaptions/ (art)
 | |

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

From: Crni Gorac <[EMAIL PROTECTED]>
Subject: USB Epson Stylus Color 680 (aka 777) under RH 7
Date: Wed, 31 Jan 2001 09:36:18 GMT

Any idea how to have above printer working? I've read that there is
special character sequence that should be somehow sent to printer in
order to let him know that USB interface will be used, but was unable
to find exact instructions. I'm using kernel 2.4.0 and have all
necessary USB items compiled in. Used printtool to create /etc/printcap
records, but now when I sent somethin to printer by lpr, job is
sitting in queue for while and then deleted without anything printed.

Thanks.


Sent via Deja.com
http://www.deja.com/

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

From: "[BRDLocutus" <[EMAIL PROTECTED]>
Subject: Convert Word-DOC to PostScript
Date: Wed, 31 Jan 2001 10:23:28 +0100

Hi,
can anyone here tell me where to find a Linux-Tool to convert Word Documents
to PS (PDF would be ok, too) ?



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

From: [EMAIL PROTECTED] (Nick Condon)
Crossposted-To: comp.os.linux.advocacy
Subject: Re: MS to Enforce Registration - or Else
Date: 31 Jan 2001 09:57:53 GMT

[EMAIL PROTECTED] (Aaron R. Kulkis) wrote:
>Johan Kullstam wrote:
>> "Aaron R. Kulkis" <[EMAIL PROTECTED]> writes:
>> > Nick Condon wrote:
>> > > Microsoft has a centrally planned, state granted, exclusive
>> > > monopoly. That's not very libertarian.
>> >
>> > No, it's not "state granted"  If it was, they wouldn't have been
>> > CONVICTED of criminal conduct in Federal Court.
>> 
>> sure it is.  what do you think copyright is?  copyright is a state
>> enforced monopoly.  no state enforcement, no copyright -- look at
>> middle/far east.
>
>By that definition EVERYBODY is a monopolist, as you retain the
>copyright for whatever you create.

Copyright is a state-granted, state-enforced, exclusive monopoly just like 
the monopoly on tea held by the East India Company that contributed to the 
American Revolution.

The British government believed that granting monopolies was necessary to 
encourage risky ventures (like setting up trading posts in India). Does 
that remind you of anything?

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

From: "JJ" <[EMAIL PROTECTED]>
Subject: Re: RedHat 7.0 startup
Date: Wed, 31 Jan 2001 10:53:17 +0100

"pascal gauthier" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> In article <95344g$6kq$[EMAIL PROTECTED]>, "JJ" <[EMAIL PROTECTED]> wrote:
>
> what bootloader do you use on the MBR ?
>
> this smells like the original lilo is on the MBR, but you are updating
> the one in /dev/hda2
>
> try making a fdisk /mbr ( with a bootdisk ) to see how it react.

I have found the problem. I use Win2k bootloader and then have an Linux
option which starts LILO via a bootsect.lnx file. I hadn't update the
bootsect.lnx file ;-(

Anyway the new kernel 2.4 didn't work so I have to go into this problem.

// Jocke



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

From: [EMAIL PROTECTED] (Dave Brown)
Subject: Re: Backup remotely ?
Reply-To: [EMAIL PROTECTED]
Date: 31 Jan 2001 01:32:26 -0600

In article <95809l$16f$[EMAIL PROTECTED]>, Wong Sai-kee wrote:
>...
>Then, is there a more elegant way ?  I thought of rsh (remote shell)
>but from the combination of rsh + tar, it doesn't work.

It works for me...  What part is not working for you? Are you making 
connection? or not properly capturing the tar datastream?

-- 
Dave Brown  Austin, TX

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

From: "Werner Fangmeier" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.setup,microsoft.public.win98.gen_discussion
Subject: Re: Errors In Partition Table
Date: Wed, 31 Jan 2001 11:28:15 +0100

Appreciate your help, Svend Olaf. I think, I understand a little bit more
now :-).

If I get you right, the "end cylinder" for line 4 (PCyl=1306, N=2) should
read "2901*" instead of "3392*"? And accordingly, in line 6 (PCyl=2612,
N=2), it should be "3290*" instead of "3392*" (this I meant with "russian
doll" structure as opposed to "chaining", what is what you seem to prefer),
and finally, line 8 (PCyl=2902/N=2) should have an "end cylinder" value of
"3328*" instead of "3392*"?
The "Num" values should be changed "accordingly" - does this mean:
  - change (3392-2612+1)*255*63=12,546,765 to (2901-2612+1)*255*63 =
4,658,850, and
  - change (3392-2902+1)*255*63=7,887,915   to (3290-2902+1)*255*63 =
6,249,285, and finally
  - change (3392-3291+1)*255*63=1,638,630   to (3328-3291+1)*255*63 =
610,470 ?

Moreover, I now see how the "Rel" values of "1" in line 7 and 9 can be
explained (as opposed to "63" in lines 1,3 and 5). There are simply zero
unused sectors following the extended partition table, while others waste 62
sectors on this occasion. OK! This perfectly fits with the changes I
outlined above, since 6,249,285-1=6,249,284 and 610,470-1=610,469.

Am I right up to here ?

But, what I do not yet quite understand, is this:
> The "NB" may be the result of the actual partition space being a little
smaller than according to the partition tables.
> This is as it should be, since "end sector" should be 63.
All "end sectors" ARE 63 (it's the third-to-last column, isn't it?) ?
And how can one compute the amount of "actual partition space" ?

So, what more changes could I apply, especially with respect to the "#" and
"*" notation.?

With what kind of tool could one try to commit the changes to the partition
tables (of course, after backing up all vital data)? PTEDIT from a Win9x
Boot Disk/bootable CD-ROM, or editpart under Linux booted from a floppy or
bootable CD-ROM?

TIA. Werner.


"Svend Olaf Mikkelsen" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]...
> "Werner Fangmeier" <[EMAIL PROTECTED]> wrote:
> >Findpart, version 3.95.
> >Copyright Svend Olaf Mikkelsen, 2001.
> >OS:  DOS 7.10   WINDOWS 4.10     Partition tables:
> >Disk: 1   Cylinders: 3722   Heads: 255   Sectors: 63   MB: 29196
> >-PCyl N ID -----Rel -----Num ---MB -Start CHS- --End CHS-- BS  CHS
> >    0 1*0C       63 20980827 10244    0   1  1 1305*254 63 OK   OK
> >    0 2 0F 20980890 34925310 17053 1306*  0  1 3479*254 63      OK
> > 1306 1 0B       63 20980827 10244 1306*  1  1 2611*254 63 OK   OK
> > 1306 2 05 20980890 12546765  6126 2612*  0  1 3392*254 63      OK
> > 2612 1 83       63  4658787  2274 2612#  1  1 2901*254 63 OK   OK
> > 2612 2 05 25639740  7887915  3851 2902*  0  1 3392*254 63      OK
> > 2902 1 83        1  6249284  3051 2902#  0  2 3290*254 63 NB   OK
> > 2902 2 05 31889025  1638630   800 3291*  0  1 3392*254 63      OK
> > 3291 1 82        1   610469   298 3291#  0  2 3328*254 63      OK
> The partition tables seems OK, although not standard.
> The "end cylinder" for link to next extended partition table (ID 05)
> usually is the same as end cylinder for the following logical
> partition. Example: End cylinder (not the actual entry) in the
> extended partition table cylinder 1306, entry 2, should be 2901. The
> "Num" field should be corrected accordingly.
> The logical partition belonging to an extended partition table usually
> begins at a head 1, sector 1, meaning that there are (sectors-1)
> unused sectors between the partition table and the partition. In your
> tables two partitions begin in the sector following the extended
> partition table.
> The "NB" may be the result of the actual partition space being a
> little smaller than according to the partition tables. This is as it
> should be, since "end sector" should be 63.
> A "*" at the cylinder number indicates that the actual entry is 1023,
> the largest cylinder number that fits in the tables.
> A "#" indicates that the actual CHS entry is 1023/(heads-1)/sector.
> In extended partition tables I prefer CHS entries as (cylinder mod
> 1024)/head/sector.
> In the primary partition table I prefer 1023/(heads-1)/sector for
> cylinders > 1023.




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

From: [EMAIL PROTECTED]
Subject: SMP on HP Vectra XU 5/133
Date: Wed, 31 Jan 2001 10:17:32 GMT

I have installed Debian linux (potato) on a HP
Vectra XU 5/133 Dual Pentium box.
Everything works fine, but only with one
processor.
The BIOS finds the second CPU.
I have compiled a new kernel from the 2.2.17pre6
sources with
*SMP = Y
*APM = N
*RTC support = Y
*MTTR = Y
as in the SMP-HOWTO.
This kernel boots, but doesn't find the second CPU
and reports problems with the parport module,
although I did also compile new modules.
How can I make linux find the second CPU?

The Vectra XU has a Intel 430NX Chipset (I opened
the box to check this), but lspci claims it is an
430LX.
Can this be the reason why linux doesn't find the
second CPU?


Sent via Deja.com
http://www.deja.com/

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

From: "Werner Fangmeier" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.setup,microsoft.public.win98.gen_discussion
Subject: Re: Errors In Partition Table
Date: Wed, 31 Jan 2001 11:30:18 +0100


Appreciate your help, Svend Olaf. I think, I understand a little bit more
now :-).

If I get you right, the "end cylinder" for line 4 (PCyl=1306, N=2) should
read "2901*" instead of "3392*"? And accordingly, in line 6 (PCyl=2612,
N=2), it should be "3290*" instead of "3392*" (this I meant with "russian
doll" structure as opposed to "chaining", what is what you seem to prefer),
and finally, line 8 (PCyl=2902/N=2) should have an "end cylinder" value of
"3328*" instead of "3392*"?
The "Num" values should be changed "accordingly" - does this mean:
  - change (3392-2612+1)*255*63=12,546,765 to (2901-2612+1)*255*63 =
4,658,850, and
  - change (3392-2902+1)*255*63=7,887,915   to (3290-2902+1)*255*63 =
6,249,285, and finally
  - change (3392-3291+1)*255*63=1,638,630   to (3328-3291+1)*255*63 =
610,470 ?

Moreover, I now see how the "Rel" values of "1" in line 7 and 9 can be
explained (as opposed to "63" in lines 1,3 and 5). There are simply zero
unused sectors following the extended partition table, while others waste 62
sectors on this occasion. OK! This perfectly fits with the changes I
outlined above, since 6,249,285-1=6,249,284 and 610,470-1=610,469.

Am I right up to here ?

But, what I do not yet quite understand, is this:
> The "NB" may be the result of the actual partition space being a little
smaller than according to the partition tables.
> This is as it should be, since "end sector" should be 63.
All "end sectors" ARE 63 (it's the third-to-last column, isn't it?) ?
And how can one compute the amount of "actual partition space" ?

So, what more changes could I apply, especially with respect to the "#" and
"*" notation.?

With what kind of tool could one try to commit the changes to the partition
tables (of course, after backing up all vital data)? PTEDIT from a Win9x
Boot Disk/bootable CD-ROM, or editpart under Linux booted from a floppy or
bootable CD-ROM?

TIA. Werner.

"Svend Olaf Mikkelsen" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]...
> "Werner Fangmeier" <[EMAIL PROTECTED]> wrote:
> >Findpart, version 3.95.
> >Copyright Svend Olaf Mikkelsen, 2001.
> >OS:  DOS 7.10   WINDOWS 4.10     Partition tables:
> >Disk: 1   Cylinders: 3722   Heads: 255   Sectors: 63   MB: 29196
> >-PCyl N ID -----Rel -----Num ---MB -Start CHS- --End CHS-- BS  CHS
> >    0 1*0C       63 20980827 10244    0   1  1 1305*254 63 OK   OK
> >    0 2 0F 20980890 34925310 17053 1306*  0  1 3479*254 63      OK
> > 1306 1 0B       63 20980827 10244 1306*  1  1 2611*254 63 OK   OK
> > 1306 2 05 20980890 12546765  6126 2612*  0  1 3392*254 63      OK
> > 2612 1 83       63  4658787  2274 2612#  1  1 2901*254 63 OK   OK
> > 2612 2 05 25639740  7887915  3851 2902*  0  1 3392*254 63      OK
> > 2902 1 83        1  6249284  3051 2902#  0  2 3290*254 63 NB   OK
> > 2902 2 05 31889025  1638630   800 3291*  0  1 3392*254 63      OK
> > 3291 1 82        1   610469   298 3291#  0  2 3328*254 63      OK
> The partition tables seems OK, although not standard.
> The "end cylinder" for link to next extended partition table (ID 05)
> usually is the same as end cylinder for the following logical
> partition. Example: End cylinder (not the actual entry) in the
> extended partition table cylinder 1306, entry 2, should be 2901. The
> "Num" field should be corrected accordingly.
> The logical partition belonging to an extended partition table usually
> begins at a head 1, sector 1, meaning that there are (sectors-1)
> unused sectors between the partition table and the partition. In your
> tables two partitions begin in the sector following the extended
> partition table.
> The "NB" may be the result of the actual partition space being a
> little smaller than according to the partition tables. This is as it
> should be, since "end sector" should be 63.
> A "*" at the cylinder number indicates that the actual entry is 1023,
> the largest cylinder number that fits in the tables.
> A "#" indicates that the actual CHS entry is 1023/(heads-1)/sector.
> In extended partition tables I prefer CHS entries as (cylinder mod
> 1024)/head/sector.
> In the primary partition table I prefer 1023/(heads-1)/sector for
> cylinders > 1023.




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

From: [EMAIL PROTECTED] (Martin Gregorie)
Subject: Re: implementation of colored man pages
Date: Wed, 31 Jan 2001 10:49:13 GMT

On Tue, 30 Jan 2001 20:52:25 -0500, [EMAIL PROTECTED]
(Steve Ackman) wrote:

>  I don't know for sure, but I believe all recent versions of man 
>output color... just that in some terminal types you don't see the
>color.  For instance, in RH 4.x and 5.x, slipknot, mc and man were 
>b&w in xterms.  At RH 5.1, I upgraded ncurses, and then they were 
>in color in xterms. 
>  Even now, in RH 6.2, though my man pages are in color in X, they're
> still in b&w on a console.
>
>  Do this:  In a console, 'TERM=VT100'  Now even the bold in man
>pages is gone.  Other terminal types give reverse text for bold.
>  In an xterm, do 'TERM=linux-m' and then 'mc'
>Now do 'TERM=vt220' and 'mc'
>
>  I believe man and mc have routines that tell them how to behave
>given certain terminal types and environment variables.  You'd
>have to look at source to be sure though... I'm just guessing
>based on what I see.
>

This tells us that the colours are set by termcap or terminfo
capabilities. Termcap capabilities can be found by reading
/etc/termcap.

However, to save us all from reinventing a wheel:

- does anybody know which capabilities control colours?
- how are the colours encoded in the capabilities?
- is this information documented anywhere?

I've had a pretty good ferret around tme manpages, info system  and
HOWTOs that came with my RH 6.2 distro but I can't find anything
relevant.

I'd like to know how to control colour via termcap/terminfo withion my
own programs as well as in microEmacs.


--
gregorie  | Martin Gregorie
@logica   | Logica Ltd
com       | +44 020 76379111

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


** 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