Log in

Bekijk de volledige versie : midnight commander on 500gx



salat
04-09-2005, 13:09
After installing ipkg, nano and vsftp on a partition i wanted to install MC (midnight commander). The installation to /opt/bin/ seemd to be a succsess,for when trying to repeat the prosess i got:

Package ncurses (5.4-4) installed in root is up to date.
Nothing to be done
Successfully terminated.

Package mc (4.1.35-2) installed in root is up to date.
Nothing to be done
Successfully terminated.

Only problem is that when you try to launch mc, you can only get a blank screen. I have browsed the forum and found 1 referance by oleg where he says that something is missing, and one other where he states that he uses MC for moving/deleting. Not sure of the context that he is refering to, but just wondering if anybody can tell me if you can install the commander or not on the wl-500gx. If so, how. :)

Cheers
Salat

jaaput
04-09-2005, 14:23
I've experienced the same "problem".
What helped for me was setting environment-variable TERMINFO
to the value /opt/share/terminfo

Easy way to do this is to put the following in /usr/local/sbin/post-boot:

#
# Perform MC-settings
echo "export TERMINFO=/opt/share/terminfo">>/etc/profile
and save it to flash.
And (to save you a reboot for now) also run it once "by hand":

echo "export TERMINFO=/opt/share/terminfo">>/etc/profile
To save you even the start of a new session, run:

export TERMINFO=/opt/share/terminfo
Now your MC will probably work, although default in black&white.
If you start mc with the switch -c, it will work in color:

mc -c
Define an alias for that:

alias mc="mc -c"
and put that line also in your post-boot:

#
# Perform MC-settings
echo "export TERMINFO=/opt/share/terminfo">>/etc/profile
echo "alias mc=\"mc -c\"">>/etc/profile
save to flash, and it will work almost like on your linux-PC.


Neat!


Good luck, Jaap.

salat
04-09-2005, 18:25
Worked like a charm! Thanks alot Jaap!

:D

Salat.