Author Topic: E17 : mc requires TERM environment set (Solved)  (Read 2147 times)

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
E17 : mc requires TERM environment set (Solved)
« on: June 06, 2010, 03:51:47 AM »
Hi,

I can't use mc, either as user or root. In Lxterminal as well as in Sakura (that I installed) I get :
Code: [Select]
mc
TERM environment variable needs set.

I have searched, among the environment files, and comparing to thoses of other pclinuxos installed nearby on the same hdd, I couldn't find a clue (have not yet quite understood how variables are set and stored).

Could someone tell me how to set this TERM environment variable please ?

Thanks,
Mélodie

« Last Edit: June 06, 2010, 11:26:55 AM by melodie »
melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: E17 : mc requires TERM environment set ( ???)
« Reply #1 on: June 06, 2010, 04:41:51 AM »
Melodie,
Try adding this --
Code: [Select]
TERM=linux
export TERM


to your .bash_profile.

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: E17 : mc requires TERM environment set ( ???)
« Reply #2 on: June 06, 2010, 05:10:13 AM »
Melodie,
Try adding this --
Code: [Select]
TERM=linux
export TERM


to your .bash_profile.


Hi Neal, thanks. What about system wide ? In what file does it go ?

melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: E17 : mc requires TERM environment set ( ???)
« Reply #3 on: June 06, 2010, 05:26:29 AM »
/etc/skel/.bash_profile & /root/.bash_profile

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: E17 : mc requires TERM environment set ( ???)
« Reply #4 on: June 06, 2010, 11:26:21 AM »
Hi,

I added it in the live USB just before installing ! Very good, that worked perfectly. Thanks a lot !!!

Could you, or anyone, explain me in a few words what "TERM=linux" means for the system ?

melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: E17 : mc requires TERM environment set (Solved)
« Reply #5 on: June 06, 2010, 12:20:31 PM »
I'm not sure I could explain TERM=linux, but I'll try. :) Actually, these are just a couple of guesses.

TERM= terminal
linux= use the default terminal on this instance of linux

or

TERM= session
linux= using bash on a linux kernel

I could easily be very, very wrong here. ;D

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: E17 : mc requires TERM environment set (Solved)
« Reply #6 on: June 07, 2010, 08:04:13 AM »
Hi again,

In Lxde mini fr I changed it too... but I had to put "xterm" instead of "linux" because the keyboard acted weird in mc. I thought you might want to know, incase...

melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: E17 : mc requires TERM environment set (Solved)
« Reply #7 on: June 07, 2010, 08:50:21 AM »
Thanks for that, Mel. :) Is that "xterm" or "XTERM?"

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: E17 : mc requires TERM environment set (Solved)
« Reply #8 on: June 07, 2010, 10:37:03 AM »
Thanks for that, Mel. :) Is that "xterm" or "XTERM?"

Same as "linux" : xterm

:)

My boy-friend found out for me. I'll thank him from your part. :)

melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: E17 : mc requires TERM environment set (Solved)
« Reply #9 on: June 07, 2010, 10:48:07 AM »
That's appreciated. :)