Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Shutting down X on 2.6

Posted on 2003-02-20
6
Medium Priority
?
270 Views
Last Modified: 2013-12-27
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
0
Comment
Question by:tibori
6 Comments
 

Expert Comment

by:foxtrotzulu
ID: 7990156
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
 
LVL 3

Expert Comment

by:yokel
ID: 7992795
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
 

Expert Comment

by:foxtrotzulu
ID: 7994445
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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 3

Expert Comment

by:prasadklk
ID: 7994542
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
 
LVL 3

Author Comment

by:tibori
ID: 8009836
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
 

Accepted Solution

by:
goodatunix earned 300 total points
ID: 8044852
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

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses

581 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question