Solved

"man" problem

Posted on 2003-11-12
4
333 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
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 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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

831 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