Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (4) </ 1 [2] 3 4 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Manpages Issue, Can't execute the manpages.< Next Oldest | Next Newest >
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: May 03 2007,15:55 QUOTE

Please note that the man uci package is limited when compared to that in most "full" distributions. Some issues you may encounter...
1) The manpages themselves are quite old, and do not accurately reflect the applications available in DSL.
2) I don't recall including a writable directory in the manpath, so if you add man pages to your system you might need to tweak a little to get man to work with them.
3) Tab completion does not work, and may freeze your terminal.
4) Being in /opt, the uci does not override the original man script.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
mesmero Offline





Group: Members
Posts: 7
Joined: May 2007
Posted: May 03 2007,17:12 QUOTE

I)
Quote
You also need to install the manpages uci for the offline ones.
Did it, but i get the same result, probably the reason is =>
Quote
Being in /opt, the uci does not override the original man script.

II)
I also did that =>
Quote
You can compile it yourself from http://primates.ximian.com/~flucifredi/man/ .
in a similar way, look at my first entry.
III)
The issues mikshaw told me, scared me away, i let it be. Let's hope for the future.
Back to top
Profile PM 
WDef Offline





Group: Members
Posts: 798
Joined: Sep. 2005
Posted: May 03 2007,21:44 QUOTE

I hacked Mik's man.uci a long time ago so that it searches for man pages in the usual locations as well as in /opt.

That's why I leave man pages in my ucis eg mplayer. I was offline a lot for quite a while so it was useful.

Here's the altered man.sh in man.uci if anyone's interested:

Code Sample
#!/bin/bash

# find any uci man dirs and add to MANPATH

ADD=$(
{
if [ ! -e /KNOPPIX/bin/ash ]; then
# hd install
find /opt -type d -name man 2>/dev/null
else
find /ramdisk/opt -type d -name man 2>/dev/null
fi
} | grep -v '/opt/man' | tr '\n' : )

# Need man dirs now on system also - could be in unc extensions
MANPATH="/opt/man:/usr/man:/usr/share/man:/usr/local/man:/usr/local/share/man"

export MANPATH=$ADD${MANPATH}

echo "What manual page do you want?"
read manpage
exec /opt/man/bin/man "$manpage"
Back to top
Profile PM 
mesmero Offline





Group: Members
Posts: 7
Joined: May 2007
Posted: May 04 2007,05:19 QUOTE

@WDef: Sounds interesting, i will give it try later and add some feedback after that.
Back to top
Profile PM 
mesmero Offline





Group: Members
Posts: 7
Joined: May 2007
Posted: May 04 2007,15:53 QUOTE

Ok, tried it, but i have some problems. First one, how  can i hack a .uci-file?
The files in it are readonly. Second, i have no /KNOPPIX/ directory. How can i handle that?
Back to top
Profile PM 
16 replies since May 03 2007,10:56 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (4) </ 1 [2] 3 4 >/
reply to topic new topic new poll
Quick Reply: Manpages Issue

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code