?
Solved

Shutting down X on 2.6

Posted on 2003-02-20
6
Medium Priority
?
266 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…
Suggested Courses
Course of the Month12 days, 10 hours left to enroll

777 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