Operating System - HP-UX
1833379 Members
3649 Online
110052 Solutions
New Discussion

Re: Newbie question-setting the TERM variable

 
SOLVED
Go to solution
Eric Firkey
Regular Advisor

Newbie question-setting the TERM variable

Hi,
I just installed HPUX 11.0 on an old B132L workstation to teach myself unix. My problem is that my login is at the Common Desktop Environment screen and whenever I try to log in nothing happens. I believe it it because my TERM variable is set to unknown. I can log on by the terminal and when I tried to enter SAM it told me the variable was unknown. How do I set this variable so that I do not run into this problem. Thanks
12 REPLIES 12
Rainer von Bongartz
Honored Contributor

Re: Newbie question-setting the TERM variable


export TERM=

will do
to make this permanent set this statement in your $HOME/.profile

Regards
Rainer
He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
Christopher McCray_1
Honored Contributor

Re: Newbie question-setting the TERM variable

#export TERM=hp(vt100,vt220...)

hope this helps.

Chris
It wasn't me!!!!
Alex Glennie
Honored Contributor

Re: Newbie question-setting the TERM variable

Eric,

Not so certain about that .... you say you login via CDE login Panel but nothing happens ? No errors ? Do you just get kicked back to the login screen again ?

What's the H/W ie are you remote on local on a hp workstation/server ?

If the term setting makes no difference I'd look into hostname resolution ... make sure its OK using nslookup - that the system knows it's own hostname/ip and that this is entered correctly in /etc/hosts ....are you using files or DNS .... look at the output from nslookup it will tell you.

$HOME/.dt/startlog or /var/dt/Xerrors may also hold clues ?
let us know how you get on ......
Eric Firkey
Regular Advisor

Re: Newbie question-setting the TERM variable

I used the command export TERM=hp and know I can use SAM, but I still cannot get my CDE to load off the login. I still need to login by console. When I loaded UNIX, I did an unattended install. Is this why I am having problems know? Also, do I need to set up other variables also. I tried export DISPLAY=testunix:0.0. Also, how do I find out what terminal type I have? Sorry for all the questions.
Torsten.
Acclaimed Contributor

Re: Newbie question-setting the TERM variable

Eric,

sounds like a network problem.
Please check your network config/ name resolution. Are more than 1 NICs installed?

Please post the output of

#lanscan

Does
#nslookup your_host_name
match your config?

Torsten

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Eric Firkey
Regular Advisor

Re: Newbie question-setting the TERM variable

entering nslookup returns me:
Using /etc/hosts on: testunix

I typed in testunix and was returned:

looking up FILES
Name: testunix
Address: 127.0.0.1
Eric Firkey
Regular Advisor

Re: Newbie question-setting the TERM variable

this computer is not on any network, nor did I configure any networking at installation
lanscan results
Hardware path 8/16/6
Station Address 0x0060B0172C6D
Crd In# 0
Hdw State UP
Net-Interface NamePPA lan0 snap0
NM ID 1 MAC Type ETHER HP-DLPI Support Yes
DLPI Mjr#119
Alex Glennie
Honored Contributor

Re: Newbie question-setting the TERM variable

So what does your /etc/hosts file entry look like ?

127.0.0.1 testunix localhost loopback I guess ...

did dr_dt show up anything ... does this occur for root user ?
Christopher McCray_1
Honored Contributor

Re: Newbie question-setting the TERM variable

Check the /etc/dt/Xservers file and make sure the following line isn't commented:

* Local local@console /usr/bin/X11/X :0

However, the CDE may not function well or at all without the network, but try the above.

Hope this helps
Chris

It wasn't me!!!!
Wodisch
Honored Contributor
Solution

Re: Newbie question-setting the TERM variable

Hello Eric,

now that SAM is working for you, use it to install/configure your LAN-card. Use any IP-Address you want (almost, expect for 0.0.0.0 and 127.0.0.1), like 10.11.12.13, add this address and your hostname into your /etc/hosts, reboot and try loggin in now.

HTH,
Wodisch
Alex Glennie
Honored Contributor

Re: Newbie question-setting the TERM variable

I think Christopher means /usr/dt/config/Xservers or the copy of it in /etc/dt/config/Xservers .... however you see the CDE login screen so I don't think that's what's wrong here... as X has started locally.
Eric Firkey
Regular Advisor

Re: Newbie question-setting the TERM variable

Thank you everyone for your time and effort. Wodish's last suggestion of using SAM to configure the LAN card worked. Thanks again