1834172 Members
2732 Online
110064 Solutions
New Discussion

How can i start X

 
Bakos György
Super Advisor

How can i start X

I have a consol.I want to have X.
But with the command startx comes only the x without cde(so there is only a consol under x with mouse)

Another problem: By the boot-ing is the machine very slow(by subagent daemon), it writes by configure 100BaseT: FAIL, but after is the ip pingable, but the ftp doesn't works (in the same is enabled)...
17 REPLIES 17
Fabio Ettore
Honored Contributor

Re: How can i start X

Hi Bakos,

- about X environment first of all you should verify that your system has Xserver packet:

# swlist -l product |grep -i Xserver

and then if dtlogin is up:

# ps -ef | grep -i dtlogin

If dtlogin is down (I suppose that Xserver is already installed) then you should launch

# /sbin/init.d/dtlogin.rc start

- about lan problem you can verify that /etc/rc.config.d/netconf has right informations about lan configuration; also you should launch

# ifconfig lanX (X stands for lan used 0,1 and so on)

If this doesn't help you, it could be useful to know what is the exact message in /etc/rc.log about the failure of configure 100BaseT.

Best regards,
Ettore

WISH? IMPROVEMENT!
cl_5
Frequent Advisor

Re: How can i start X

Hi Bakos!

For starting CDE environment type "/sbin/init.d/dtlogin.rc start" and CDE normally comes up. If you want to start CDE automatically at boot time, create a symlink in this sequencer directory which agree with your default run level in /etc/inittab (e.g. /sbin/rc3.d if default runlevel is 3).

About your network problem. Make sure that net.init and hpether are starting up correctly and before 100BaseT starts.
Also check /etc/rc.log for more information.

HTH
cl
John B Goode
Advisor

Re: How can i start X

Here is what worked for me:
xinit /usr/dt/bin/Xsession

to start the login Xserver:
/usr/dt/bin/dtlogin -daemon

to enable gui at boot:
/usr/dt/bin/dtconfig -e

to disable gui at boot:
/usr/dt/bin/dtconfig -d

Also point you DNS resolv.conf filt to look at /etc/hosts and then the actual nameservers second.
This is how I got my HP-UX 11.00 working
Bakos György
Super Advisor

Re: How can i start X

Ok, i have now my CDE, but it is fantastic slow by loading.
X 5 Minutes
after the blue screen(not windows :-) )
comes that cde is loading
i am waiting now for the result since 15minutes
CDE Minutes

why is it so slow.



If i boot the computer:
NET FAIL...but the ping works(except the server functions:ftp, telnet...)-->booting is very slow.
After by login the prompt freezes, or it is black(maybe x would start???)


Bakos György
Super Advisor

Re: How can i start X

As i see the net is working on something, but the CDE loads stable but very slow(it is not loaded yet)
Bakos György
Super Advisor

Re: How can i start X

sorry that was an another led
Bakos György
Super Advisor

Re: How can i start X

Oh i have a CDE message:
The desktop messaging system could not be started.
To correct the problem:

At the 3rd: Check the network is properly configured.(In this 15 minutes i have pull out the lan cable, then i had an error message that the cable conection is bad)
Robert-Jan Goossens
Honored Contributor

Re: How can i start X

Bakos,

Could you run this command,

# /usr/contrib/bin/X11/dr_dt

Regards,
Robert-Jan
Bakos György
Super Advisor

Re: How can i start X

Aha:
/etc/nssswitch.conf is the problem

nameserver is set, but that not exists.

services: nis files
protocols :nis files
networks nis files
rpc: nis files
netgroup nis files
passwd compat


We haven't NIS server(That is an old setup)
What must i change? Should

/usr/dt/bin/xmbind does not exist, should i copy the files from another machine
Bakos György
Super Advisor

Re: How can i start X

Could not contact host "ltoux174", that is the machine ip 10.0.1.189.
I think i have an another forum, i think the problem is the same
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=290491
Bakos György
Super Advisor

Re: How can i start X

ifconfig: no such interface

I have delete the resolv.conf
Fabio Ettore
Honored Contributor

Re: How can i start X

Hi Bakos,

again you should verify

# lanscan

and see if Hdw State is UP for your LAN under Net-interface of the same command.
Then you should see if netconf is good, with IP confguration as

INTERFACE_NAME[0]=lan0
IP_ADDRESS[0]=X.X.X.X
SUBNET_MASK[0]=X.X.X.X
BROADCAST_ADDRESS[0]=""
INTERFACE_STATE[0]=""
DHCP_ENABLE[0]=0

Of course lan0 is an example, X.X.X.X on IP_ADDRESS and SUBNET_MASK should have right info.
Also on:

ROUTE_DESTINATION[0]=default
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]=X.X.X.X
ROUTE_COUNT[0]=""
ROUTE_ARGS[0]=""

I have inserted 'default', but you can put net's IP address destination of that route.
X.X.X.X always is IP address corrected of gateway.

If netconf file has not good info (or older info, for example a older route configured) then be ready to get a lot of troubles.

Anyway you can configure these info runtime, by 'ifconfig' on IP address and by 'route add' on route configurations. Man of both commands will help you.

Best regards,
Ettore

Best regards,
Ettore
WISH? IMPROVEMENT!
Fabio Ettore
Honored Contributor

Re: How can i start X

Also:
you should disable older services, you wrote about NIS, then

NIS_MASTER_SERVER=0
NIS_SLAVE_SERVER=0
NIS_CLIENT=0
NISPLUS_SERVER=0
NISPLUS_CLIENT=0

all lines into /etc/rc.config.d/namesvrs file should see as above.

Instead /etc/nsswitch.conf file should see as below:

passwd: files
group: files
networks: files
hosts: files[NOTFOUND=CONTINUE] dns
protocols: files
rpc: files
publickey: files
netgroup: files
automount: files
aliases: files
services: files

Best regards,
Ettore
WISH? IMPROVEMENT!
Bakos György
Super Advisor

Re: How can i start X


NIS_MASTER_SERVER=0
NIS_SLAVE_SERVER=0
NIS_CLIENT=0
NISPLUS_SERVER=0
NISPLUS_CLIENT=0

all lines in /etc/rc.config.d/namesvrs file are OK

/etc/nsswitch.conf file :

passwd: compat
networks: nis files
hosts: dns [NOTFOUND=continue UNAVAIL=continue Tryagain=continue] nis [NOTFOUND=continue UNAVAIL.......] files
protocols: nis files
rpc: nis files
netgroup: nis files
services: nis files


Shall i change it?
Robert-Jan Goossens
Honored Contributor

Re: How can i start X

Hi,

copy the file /usr/newconfig/etc/nsswitch.files to the /etc/nsswitch.conf

reboot your server

Regards,
Robert-Jan
Fabio Ettore
Honored Contributor

Re: How can i start X

If your system doesn't use DNS or NIS then 'files' should be the first. Or if you use DNS then let

hosts: dns [NOTFOUND=continue UNAVAIL=continue Tryagain=continue] files

Other should have 'files' as first, I already suggested you how to.
Again be sure that /etc/rc.config.d/netconf have good info, then (as Robert said) reboot your server.

Best regards,
Ettore
WISH? IMPROVEMENT!
Bakos György
Super Advisor

Re: How can i start X

Ok fine, it works.
Sorry that i so newbie.

I have some troubles with network services, but the X works, and everything is fast.
I will here continue with solving this network services isue.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=290491