LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-24-2005, 12:10 PM   #1
mahednranit
LQ Newbie
 
Registered: Jun 2005
Posts: 20

Rep: Reputation: 0
Shut Down / Restart


Hi,
I am using the Redhat 8 (in KDE).... I didnt found the option for shutdown/restart the machine in GUI mode... but its avail in Gnome....

Pls let me know how to enable the shutdown/restart option in KDE....


Thanks
 
Old 06-24-2005, 12:42 PM   #2
kornerr
Member
 
Registered: Dec 2004
Location: Russia, Siberia, Kemerovo
Distribution: Slackware
Posts: 893

Rep: Reputation: 35
And how do you turn off your PC???
How do you boot into Linux? Right in GUI, or you run it manually (startx)?
 
Old 06-24-2005, 12:47 PM   #3
mahednranit
LQ Newbie
 
Registered: Jun 2005
Posts: 20

Original Poster
Rep: Reputation: 0
their is no problem for start up.... it comes to GUI automatically..... but while shuting down first I hv to go to CLI and then by pressing the Ctrl+Alt+Del or by giving the init 6 command....
 
Old 06-24-2005, 06:55 PM   #4
kornerr
Member
 
Registered: Dec 2004
Location: Russia, Siberia, Kemerovo
Distribution: Slackware
Posts: 893

Rep: Reputation: 35
I think that you use GDM as "GUI-chooser". Well, if you use KDM for it, KDE'll show the logout-window with Shutdown/Restart possibilities.
You should check /etc/inittab file to know how to run KDM instead of GDM.
For example, mine looks like
Code:
# These are the default runlevels in Slackware:
#   0 = halt
#   1 = single user mode
#   2 = unused (but configured the same as runlevel 3)
#   3 = multiuser mode (default Slackware runlevel)
#   4 = X11 with KDM/GDM/XDM (session managers)
#   5 = unused (but configured the same as runlevel 3)
#   6 = reboot

# Default runlevel. (Do not set to 0 or 6)
id:3:initdefault:
- - -
# Runlevel 4 used to be for an X window only system
x1:4:wait:/etc/rc.d/rc.4
- - -
You see? To go into GUI right after loading I have to cange
Code:
id:3:initdefault:
to
Code:
id:4:initdefault:
You have it already.
Did you noticed such string:
Code:
x1:4:wait:/etc/rc.d/rc.4
This means that GUI-chooser is placed in /etc/rc.d/rc.4

So here's my /etc/rc.d/rc.4
Code:
- - - 
# Try to use GNOME's gdm session manager:
if [ -x /usr/bin/gdm ]; then
  exec /usr/bin/gdm -nodaemon
fi

# Not there?  OK, try to use KDE's kdm session manager:
if [ -x /opt/kde/bin/kdm ]; then
  exec /opt/kde/bin/kdm -nodaemon
fi
- - -
You see? GDM is described earlier than KDM. So you just need to replace them, and all'll work fine.
 
Old 06-25-2005, 12:56 PM   #5
jasmeet93
Member
 
Registered: Aug 2004
Location: india
Distribution: Fedoracore1
Posts: 33

Rep: Reputation: 15
u can use the command for shutdown and restart

for shutdown

Code:
shutdown -h now
for restart
Code:
shutdown -r now

i above command h is for halt and r is for restart mor over insted of "now" u can give the time foe ex
if u use shutdown -h 10
the system will shutdown in 10 min
 
Old 06-25-2005, 01:57 PM   #6
gnukish
Member
 
Registered: Apr 2005
Location: Neverland
Distribution: Slackware / Ubuntu
Posts: 171

Rep: Reputation: 30
10 is seconds or minutes , clarify ??
 
Old 06-25-2005, 02:02 PM   #7
thandermax
Member
 
Registered: Jun 2005
Distribution: OpenSUSE 10.3 , 11.2 , Solaris 10, Ubuntu 9.10
Posts: 84

Rep: Reputation: 16
10 minute

but you can also give in format hh:mm (such as 1:25)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sym link disaepears after shut down/restart usr_wifi Linux - Software 0 02-13-2005 02:43 PM
System hangs up on restart and shut down darknails Fedora 7 01-24-2005 04:04 AM
shut down won't shut system down taoweijia Linux - General 3 03-03-2004 06:05 PM
Mandrake Shut Down/Restart Problem dangerboy Linux - Distributions 14 08-20-2003 03:30 PM
X won't shut down palooga Linux - Newbie 2 09-21-2002 08:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration