Shutting down X on 2.6

I would like to know how to shut down X, and disable it from starting on Solaris 2.6, and how to start it manually when I need to.
Can I just kill dtlogin and disable it? Will that have any adverse effects, provided that noone is using X services from this box?
In Linux, I would just change the runlevel, and use startx to start it, but I'm not that familiar with Solaris.
thanks,
tibori
LVL 3
tiboriAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

foxtrotzuluCommented:
You're talking about CDE I think.

Its been a while, but I think all you need to do is in

$ cd /etc/rc2.d
$mv S99dtlogin s99dtlogin

Also, turn off RPC for security

$mv S71rpc s71rpc

Doing this prevents CDE from starting. But it doesn't remove it. Which you have said you don't want to do. But the links at the bottom tell which packages to uninstall if you decide to.

As far as starting up like in Redhat with startx, I don't think its possible.


http://aa11.cjb.net/sun_managers/1998/04/msg00363.html
http://www.netsys.com/sunmgr/1996-06/msg00120.html

0
yokelCommented:
Don't stop rpc, other programs need it (NIS, NFS, automount daemon etc).
As foxtrotzulu says though mv the /etc/rc2.dS99dtlogin.
If you want to stop CDE without rebooting, run the script with a stop parameter first. ie..

/etc/rc2.d/S99dtlogin stop
0
foxtrotzuluCommented:
Actually I would say stop RPC and NFS and NIS, if you don't need them, because they are not secure...

$cd /etc/rc2.d
$mv S73nfs.client s73nfs.client
$cd ../rc3.d
$mv S15nfs.server s15nfs.server

To disable NIS follow this link:
http://docs.sun.com/db/doc/806-1391/6jama34kp?a=view
0
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

prasadklkCommented:
Run /usr/dt/bin/dtconfig -d  to disable X windows from auto starting.
Just type /usr/dt/bin/dtconfig and you can see all the options for x windows autostart enabling/disabling,..etc.
0
tiboriAuthor Commented:
Since we don't use NIS or NFS, I've shut down RPC already. So I have 2 questions left
1. If I've already disabled the rc script, can I simply kill the dtlogin process, without breaking anything(ie. processes that are not X related)
2. If I wanted to start CDE back up manually, will it go if I do:
/etc/rc2.d/dtlogin start

thanks!
tibori
0
goodatunixCommented:
Actually the easiest way to kill/start dtlogin when you want or don't want to use it is as follows:

/usr/dt/bin/dtconfig -d # will disable the dtlogin and CDE
/usr/dt/bin/dtconfig -kill # kills the dtlogin

When you want to use it again try:

/usr/dt/bin/dtconfig -e # Re-enables dtlogin
/etc/rc2.d/S99dtlogin start

If you don't want to enable autostartup you can use
/etc/init.d/dtlogin start

--goodatunix
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.