Solved

"man" problem

Posted on 2003-11-12
4
330 Views
Last Modified: 2013-12-15
I have a problem with "man"
when I want see manual of a command, it didn't show normally
inside the manual, there were strange character (like small rectangle)
i think this is about font problem
but I don't know what should I do

can anybody help me?
thanks
0
Comment
Question by:nk2003
  • 3
4 Comments
 
LVL 24

Expert Comment

by:shivsa
ID: 9729406
u have to fix fonts.

this is for RH7.
-------

> Using a combination of vi/emacs and man XF86Config:
>
> 1) Discover which /etc/X11/XF86Config??? is actually being run
>  - (under RedHat 7.1 it's /etc/X11/XF86Config-4)
>  - capture the output of startx using startx >& output.log
> and look for where it reports which one it is using
>
> 2) Find the fonts section
>
> 3) Fix it
>
> You'll want to look for the "how to specify font paths" section in the
> man pages. Essentially it's:

> Section "Files"
>         FontPath "tcp/linux:7100"  
>       FontPath   "/usr/X11R6/lib/X11/fonts/local/"
>       FontPath   "/usr/X11R6/lib/X11/fonts/misc/"
> EndSection
>
> The first entry says speak to an XFS using tcp and port 7100.
> The latter two represent actual physical font paths. I think the Unix Font Server
> locally is "unix/:0" but check that in the man pages. Fonts generally
> live in similar directries to the above. You could do a "locate
> fonts.dir" because each font directory must contain that file if you
> can't find them.
>
> Of course, if you literally can't find them then that may be your
> problem. Reinstall them using rpm, tar xzvf, dpkg or whatever.
0
 
LVL 24

Expert Comment

by:shivsa
ID: 9729493
if u can resolve with above. then it might be your locale problem.

If you see three characters instead of one in your terminal, it's that your terminal is not UTF-8 aware and man
thinks it is. So, either use a UTF-8 aware terminal (XFree86, xterm) or don't tell man your terminal is UTF-8 (probably a locale issue).

LC_CTYPE=C man tty
to see if that solves the problem.

or
export LANG=C

Put it at the bottom of:
/etc/bashrc

and will be set when you login.
0
 

Author Comment

by:nk2003
ID: 9729846
thanks, it works
I type export LANG=C

can you tell me what it means?  expecialy "C" character
0
 
LVL 24

Accepted Solution

by:
shivsa earned 125 total points
ID: 9732890
this state that u had locale problem.

by export LANG=C, u setup your locale setting to use C locale.

At program startup, the current language and country setting is retrieved from the operating system. and this way u are telling OS to give u language setting to C locale which is commonly used in USA.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now