Operating System - HP-UX
1753675 Members
5148 Online
108799 Solutions
New Discussion юеВ

RE : permanent TERM setting

 
SOLVED
Go to solution
Charles Ooi Chia Lun
Occasional Advisor

RE : permanent TERM setting

Dear Sir,
Everytime we bootup the systems we need to do a export TERM=hp in order for the monitor to work properly. How to set it permanent ? please advise, thank you very much.

regards
4 REPLIES 4
Adisuria Wangsadinata_1
Honored Contributor

Re: RE : permanent TERM setting

Hi,

On .profile on your home directory OR /etc/profile if you would like to apply the things on all users.

Hope this information can help you.

Cheers,
AW
now working, next not working ... that's unix
Sivakumar TS
Honored Contributor

Re: RE : permanent TERM setting

Dear Charles,

Add the following line to the /etc/profile or /.profile

export TERM=hp

This will set the TERM as hp at every boot.

Once the system bootup check the current TERM type using

#echo $TERM

With Regards,

Siva
Nothing is Impossible !
Muthukumar_5
Honored Contributor

Re: RE : permanent TERM setting

To make permanent then, set it with /etc/profile or $HOME/.profile. If you want to have more personalized then,

put into a file as,

# cat > /etc/perprofile
export TERM=hp
# chmod 644 /etc/perprofile
# chown bin:bin /etc/perprofile

include this in /etc/profile as,

. /etc/perprofile

hth.
Easy to suggest when don't know about the problem!
Arunvijai_4
Honored Contributor
Solution

Re: RE : permanent TERM setting

To make it work permanently, edit your /etc/profile and add export TERM=hp in last line. Save and exit vi. # . /etc/profile will execute it again. You can check using #echo $TERM

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"