LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-05-2002, 02:57 PM   #1
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
Man Page Formatting


I use ssh to connect to my home box from work. I was using RH 7.3 until a few days ago when I switched to RH 8.0. Since then, I have been having problems reading my man pages on my ssh clients ( OpenSSH on cygwin and PuTTy - $TERM=cygwin and $TERM=xterm respectively ). As you can see below, some of the formatting characters arent being interpreted right, they get printed on the screen and make it funny looking and partially unreadable. I have a feeling that it could be a groff/nroff option ( or whatever formats the pages ) that I need to change here. What do you guys think?


mkraid(8) mkraid(8)

NAME
mkraid â initializes/upgrades RAID device arrays

SYNOPSIS
mkraid [ââconfigfile] [ââversion] [ââforce] [ââupgrade]
[âcvfu] </dev/md?>+

DESCRIPTION
mkraid sets up a set of block devices into a single RAID array. It
looks in its configuration file for the md devices mentioned on the
command line, and initializes those arrays. mkraid works for all types
of RAID arrays (RAID1, RAID4, RAID5, LINEAR and RAID0).

Note that initializing RAID devices destroys all of the data on the
consituent devices.

OPTIONS
âc, ââconfigfile filename
Use filename as the configuration file (/etc/raidtab is used by
default).

âf, ââforce
Initialize the consituent devices, even if they appear to have
data on them already.

âh, ââhelp
Displays a short usage message, then exits.

âo, ââupgrade
This option upgrades older arrays to the current kernelâs RAID
version, without destroying data. Although the utility detects
various pitfalls like mixed up disks and inconsistent
superblocks, this option should be used with care.

âV, ââversion
Displays a short version message, then exits.

NOTES
The raidtools are derived from the mdâtools and raidtools packages,
which were originally written by Marc Zyngier, Miguel de Icaza, Gadi
Oxman, Bradley Ward Allen, and Ingo Molnar.

BUGS
Probably many.

SEE ALSO
raidtab(5), raidstart(8), raid0run(8), raidstop(8)

Last edited by nxny; 12-05-2002 at 03:03 PM.
 
Old 12-05-2002, 03:06 PM   #2
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Original Poster
Rep: Reputation: 30
Here is the relevant section from /etc/man.config


# Useful paths - note that COL should not be defined when
# NROFF is defined as "groff -Tascii" or "groff -Tlatin1";
# not only is it superfluous, but it actually damages the output.
# For use with utf-8, NROFF should be "nroff -mandoc" without -T option.
#
TROFF /usr/bin/groff -Tps -mandoc
NROFF /usr/bin/nroff -c -mandoc
JNROFF /usr/bin/groff -Tnippon -mandocj
EQN /usr/bin/geqn -Tps
NEQN /usr/bin/geqn -Tlatin1
JNEQN /usr/bin/geqn -Tnippon
TBL /usr/bin/gtbl
# COL /usr/bin/col
REFER /usr/bin/grefer
PIC /usr/bin/gpic
VGRIND
GRAP
PAGER /usr/bin/less -isr
CAT /bin/cat
#
# The command "man -a xyzzy" will show all man pages for xyzzy.
# When CMP is defined man will try to avoid showing the same
# text twice. (But compressed pages compare unequal.)
#
CMP /usr/bin/cmp -s
#
# Compress cat pages
#
COMPRESS /bin/gzip
COMPRESS_EXT .gz
#
# Default manual sections (and order) to search if -S is not specified
# and the MANSECT environment variable is not set.
#
MANSECT 1:8:2:3:4:5:6:7:9:tcl:n:l
#
# Default options to use when man is invoked without options
# This is mainly for the benefit of those that think -a should be the default
# Note that some systems have /usr/man/allman, causing pages to be shown twice.
#
#MANDEFOPTIONS -a
#
# Decompress with given decompressor when input file has given extension
# The command given must act as a filter.
#
.gz /bin/gunzip -c
.bz2 /usr/bin/bzip2 -c -d
.z
.Z /bin/zcat
.F
.Y
 
Old 12-05-2002, 04:53 PM   #3
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
I've had the exactly same problem .. don't remember if my messed up man pages were like that exactly.

The original /etc/sysconfig/i18n looks like
Quote:
LANG="en_US.UTF-8"
SUPPORTED="en_US.UTF-8:en_US:en"
SYSFONT="latarcyrheb-sun16"
So how come? I've surly never selected something like that ... my /etc/sysconfig/i18n (the fixed one) looks like
Quote:
LANG="en_US"
SUPPORTED="en_US:en"
SYSFONT="lat0-sun16"
SYSFONTACM="iso01"

Hope this helps ;-)

Last edited by markus1982; 12-05-2002 at 05:02 PM.
 
Old 12-06-2002, 12:19 PM   #4
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Original Poster
Rep: Reputation: 30
Indeed it helped!! You must've tried 'a few' options before you figured it out. Good for me. Thanks markus.
 
Old 12-06-2002, 12:38 PM   #5
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
Well it was the 2nd option I tried ;-)
 
Old 01-06-2003, 08:52 PM   #6
grmoc
LQ Newbie
 
Registered: Jan 2003
Posts: 5

Rep: Reputation: 0
That helped, but not yet solved...

That helped, but I still get some formatting errors.
My system is RH8.0 (why couldn't they get this right at least?)
(<sigh>)

In manpages, options such as this:

−hard‐disk‐boot

(from man mkisofs)

the first dash shows up just fine, but any following dashes show up as empty-(I don't know how to print this character)-squares

My etc/sysconfig/i18n looks like:
#LANG="en_US.UTF-8"
LANG="en_US:en_us.UTF-8"
#SUPPORTED="en_US.UTF-8:en_US:en"
SUPPORTED="en_US:en:en_US.UTF-8"
SYSFONT="latarcyrheb-sun16"
#SYSFONT="lat0-sun16"
SYSFONTACM="iso01"



Any ideas?
 
Old 01-06-2003, 08:56 PM   #7
grmoc
LQ Newbie
 
Registered: Jan 2003
Posts: 5

Rep: Reputation: 0
Uh.. nevermind.

That -did- fix it.

I was looking at an old terminal.
 
Old 01-06-2003, 08:59 PM   #8
grmoc
LQ Newbie
 
Registered: Jan 2003
Posts: 5

Rep: Reputation: 0
doh, there is some misinformation there.

Don't use that config (the one I posted two postings above)

Use the one the guys above tell you to.

i.e the following works. I've left in the originals in comments.

LANG="en_US.UTF-8"
LANG="en_US"

#SUPPORTED="en_US.UTF-8:en_US:en"
SUPPORTED="en_US:en"
#SUPPORTED="en_US"

SYSFONT="latarcyrheb-sun16"

SYSFONTACM="iso01"
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
getting out of a man page! naijaguy Linux - Newbie 11 04-10-2018 06:21 PM
man alsamixer not showing the man page nosaku Slackware 1 12-20-2004 09:52 AM
Is there a man page on how to use man page? jdruin Linux - Software 2 10-30-2004 10:29 AM
how to produce a text file from man w/o formatting? spyghost Linux - Newbie 2 07-30-2003 07:05 PM
MAN page formatting incorrect via telnet/SSH pederslie Linux - Newbie 3 12-11-2002 03:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration