Operating System - HP-UX
1826645 Members
3561 Online
109695 Solutions
New Discussion

Re: GUI was not opening up.

 
TS KARTHIKEYAN
Occasional Advisor

GUI was not opening up.

GUI was not opening up.
The Error is:
"Host name 'stty: Not a typewriter
stty:Not a typewriter "
14 REPLIES 14
whiteknight
Honored Contributor

Re: GUI was not opening up.



TS,

Check your /etc/hosts, /etc/resolv.conf and /etc/nsswitch.conf, make sure it can resolve the ip address and hostname.

WK
Problem never ends, you must know how to fix it
TS KARTHIKEYAN
Occasional Advisor

Re: GUI was not opening up.

Hello whiteknight,

i have checked the /etc/hosts. it has the ip & hostname. But i dont know what i need to check the /etc/resolv.conf and /etc/nsswitch.conf. Let me know i need to check.
OFC_EDM
Respected Contributor

Re: GUI was not opening up.

Regarding resolv.conf
Here's a sample
---------------------------
It has to specify your domain.
And have at least one Name server listed.
In this instance the server belongs to domain some.domain.com
And can query the 3 name servers for DNS resolution.

/ =>cat /etc/resolv.conf
domain some.domain.com
nameserver 10.162.68.1
nameserver 10.162.68.2
nameserver 10.162.68.3

DBA's often want a search string in there to such as

/ =>cat /etc/resolv.conf
domain some.domain.com
search some.domain.com some.other.domain
nameserver 10.162.68.1
nameserver 10.162.68.2
nameserver 10.162.68.3
The Devil is in the detail.
OFC_EDM
Respected Contributor

Re: GUI was not opening up.

For nsswitch .conf

You can start by looking at /etc/nsswitch.hp_defaults

I see a lot of systems where they copy this to /etc/nsswitch.conf.

Then just keep the line
hosts: dns [NOTFOUND=return] nis [NOTFOUND=return] files

More common is without the NIS as most sites I'm on don't use NIS.

hosts: dns [NOTFOUND=return] files

This basically resolves via DNS(name servers in resolv.conf) and if not found will attempt to find the server in /etc/hosts
The Devil is in the detail.
V. Nyga
Honored Contributor

Re: GUI was not opening up.

Hi,

strange error message - when does you get it?
When booting up?
Do you get the login window?
Or can you login and a script is not working?

'stty: Not a typewriter' normally comes from a shell definition like '/etc/profile' or a user '.profile'.
So when "Host name" is directed to such a definition there seems to be a writing missmatch.

When the login window doesn't appear check the log files in '/var/X11/Xserver/logs'

Do you have some more infos for us?
A screenshot?

Volkmar
*** Say 'Thanks' with Kudos ***
TS KARTHIKEYAN
Occasional Advisor

Re: GUI was not opening up.

I have checked the three files. Everything is correct as you mentioned in your replies.

Still i have the problem. But this error comes for all the cases. Some of the GUIs only got this error while opening up.

Do you have any idea?. it is grateful if you are answering me.
V. Nyga
Honored Contributor

Re: GUI was not opening up.

What GUIs do you want to open?
*** Say 'Thanks' with Kudos ***
TS KARTHIKEYAN
Occasional Advisor

Re: GUI was not opening up.

let me provide you some more informations.


i read in a hp forum. they said to check the terminal type. but i dont know is there any relation to this problem.

in my server, the terminal type = dtterm. how to change the terminal type.
TS KARTHIKEYAN
Occasional Advisor

Re: GUI was not opening up.

It is the WebBased GUI. it resides in a NE. I need to open it in my hpux 11.11 server. For that i have a start script. I didnt get this error in my office. One of my colleague in aus had experienced this problem.

Could you identify the problem with this information. let me know if you need more.
V. Nyga
Honored Contributor

Re: GUI was not opening up.

Hi,

it depends on your shell!

For example - in /etc/profile you'll find:

# Be sure that VUE does not invoke tty commands
if [ ! "$VUE" ]; then
# set term if it's not set
if [ "$TERM" = "" -o "$TERM" = "unknown" -o "$TERM" = "dialup" \
-o "$TERM" = "network" ]
then
eval `ttytype -s -a`
fi
export TERM

Check this and your user-defined environment.

Check for example the log files of the user - in $HOME/.dt are several log files, startup.log, error.log, sessionlogs - any hints there?

V.
*** Say 'Thanks' with Kudos ***
V. Nyga
Honored Contributor

Re: GUI was not opening up.

What's a 'NE'?

Well, compare the listing of 'env' with your login at your office and of the other case where it doesn't run.

Volkmar
*** Say 'Thanks' with Kudos ***
TS KARTHIKEYAN
Occasional Advisor

Re: GUI was not opening up.

Hello Friends,

I have checked the files /etc/hosts, /etc/profile, /etc/resolv.conf and /etc/nsswitch.conf. They are correct.

But this particular error comes for a particular user. example) cmc_adm.

There are many users like cmc_serv, super_user, cmc_oper. All other user, the GUI is opening up.
Only for cmc_adm, it is not opening up. cmc_serv is the owner of the start script of the GUI.
V. Nyga
Honored Contributor

Re: GUI was not opening up.

Hi again,

compare the shell - which shell do you use for the user where it works, which shell for the user where it doesn't work.
Compare the login files:
for ksh: .dtprofile, .profile
for csh: .login

Volkmar
*** Say 'Thanks' with Kudos ***
Safarali
Valued Contributor

Re: GUI was not opening up.

Hi Karitkyean
you are able to view the gui from your office
and your friend from other location is not able
please check the output of the netstat -rn
add the gateway address to your freind server he will get it

Regards
Safar