[X2Go-User] x2goclient connection fails with 'setterm: $TERM is not defined'

Maciej Sitarz macieksitarz at wp.pl
Thu Sep 17 11:14:22 CEST 2015


W dniu 17.09.2015 o 11:06, Robert Dinse pisze:
>
>       In your .profile:
>
>      export TERM="vt102" or whatever terminal definition you prefer to
> use, "ansi", etc.

The problem was that the /etc/profile.d configs are loaded before 
~/.bashrc and ~/.bash_profile.

According to man bash ~/.profile is loaded after them:
"     When bash is invoked as an interactive login shell, or as a 
non-interactive shell with the --login option, it first reads and 
executes  commands from  the  file /etc/profile, if that file exists. 
After reading that file, it looks for ~/.bash_profile, ~/.bash_login, 
and ~/.profile, in that order, and reads and executes commands from the 
first one that exists and is readable.  The --noprofile option may be 
used  when  the  shell  is started to inhibit this behavior."


So adding TERM setting to /etc/profile should also help.

Thank you

-- 
Maciej Sitarz


More information about the x2go-user mailing list