You are not logged in.

#1 2006-01-14 11:43:46

Birdman
Member
From: Surrey, UK
Registered: 2006-01-11
Posts: 121

Shutdown / reboot?

As you say - No question too stupid  wink

I am curious to know how most people shutdown / reboot their boxes?

I have a family box. My wife and I currently use Slackware 10.2 as our defualt (soon to arch when I have fully got my head around it) and my daughter uses WinXP (sorry, I have done my best to be a good parent  wink  ).  We always boot into console mode and type 'startx' to launch our preferred window managers (xfce4 for me and kde for my wife). I have configured sudo to allow us both as users to shutdown the box and I have simplified things for my wife by placing the commands into two different scripts. This means that

sudo sdown

or

sudo rboot

will do the job.

Now, I could very easily replicate this idea on arch, but that would be too easy  smile  I could consider using a graphical login manager. Given the above, what other solutions are people using for ease of use?

Offline

#2 2006-01-14 12:16:14

tomfitzyuk
Member
Registered: 2005-12-30
Posts: 89

Re: Shutdown / reboot?

I never use a graphical login manager because if there's a problem with X you'll have to boot using a system rescue CD.

I do what you do on your Slackware machine, just boot to console and end up having to type 'startx'.

To shutdown I close X I just:
sudo shutdown -h now

Offline

#3 2006-01-14 12:36:53

pikass
Member
From: Schwartz space
Registered: 2005-11-28
Posts: 85

Re: Shutdown / reboot?

tomfitzyuk wrote:

I never use a graphical login manager because if there's a problem with X you'll have to boot using a system rescue CD.

You can always switch to tty if x crashes. If not you can kill x via magic keys. Only possibility I know this do not work is a broken keyboard driver but that is not related to x so you will have the problem without x too.

Conclusion: your efforts are stylish but useless.


edit: ok, you are right if x at start causes a kernel panic. (/me would boot into rl 3)

Offline

#4 2006-01-14 13:02:07

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: Shutdown / reboot?

I rarely shutdown anymore, but I have halt and reboot aliased to sudo halt and sudo shutdown in my .bashrc.

Offline

#5 2006-01-14 13:39:58

Moo-Crumpus
Member
From: Hessen / Germany
Registered: 2003-12-01
Posts: 1,487

Re: Shutdown / reboot?

I allways use gdm. If there is a problem with X, gdm will try to start in different modes, and give up then. After that, you can simply log into console without any cd voodoo.

And I never have trouble with X.


Frumpus addict
[mu'.krum.pus], [frum.pus]

Offline

#6 2006-01-14 13:55:35

Birdman
Member
From: Surrey, UK
Registered: 2006-01-11
Posts: 121

Re: Shutdown / reboot?

Moo-Crumpus wrote:

I allways use gdm. If there is a problem with X, gdm will try to start in different modes, and give up then. After that, you can simply log into console without any cd voodoo.

And I never have trouble with X.

So how do you shutdown your box?

I had a play around with debian over the New Year (I really wanted to like it but it was too far away from my Slackware roots) and used gdm. To shutdown I always had to enter a root password - not a problem for me but not good for a family box where I do not wish to advertise the root password.

BTW: As you have probably guessed, I am comfortable with rl3 but like to keep an open mind and wondered whether there was an 'arch' solution I should know about.

Offline

#7 2006-01-14 14:21:37

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Shutdown / reboot?

There's an xfce4 solution here - that's what I usually use.

Offline

#8 2006-01-14 14:27:35

Birdman
Member
From: Surrey, UK
Registered: 2006-01-11
Posts: 121

Re: Shutdown / reboot?

tomk wrote:

There's an xfce4 solution here - that's what I usually use.

Thanks tomk, I'll have a play with this  smile

Offline

#9 2006-01-14 17:50:49

Moo-Crumpus
Member
From: Hessen / Germany
Registered: 2003-12-01
Posts: 1,487

Re: Shutdown / reboot?

Birdman wrote:
Moo-Crumpus wrote:

I allways use gdm. If there is a problem with X, gdm will try to start in different modes, and give up then. After that, you can simply log into console without any cd voodoo.

And I never have trouble with X.

So how do you shutdown your box?

Me, my wife and kids all use normal user accounts and just tell gnome / gdm to shut down the computer. There is a button for it, pal. smilesmile


Frumpus addict
[mu'.krum.pus], [frum.pus]

Offline

#10 2006-01-14 20:14:38

Birdman
Member
From: Surrey, UK
Registered: 2006-01-11
Posts: 121

Re: Shutdown / reboot?

Moo-Crumpus wrote:

Me, my wife and kids all use normal user accounts and just tell gnome / gdm to shut down the computer. There is a button for it, pal. smilesmile

Aah! When I tried gdm with debian the button requested root password - hence the question. gdm is now a possible alternative. Thanks.

Offline

#11 2006-01-15 00:50:25

limpio
Member
Registered: 2005-12-31
Posts: 52

Re: Shutdown / reboot?

From the console: startx
From the terminal: sudo halt

same for Debian.

Offline

#12 2006-01-15 02:46:36

Shofs
Member
From: Central Illinois
Registered: 2004-12-15
Posts: 184

Re: Shutdown / reboot?

pikass wrote:

you can kill x via magic keys.

What do you mean?

I just go quit X and then give the good old three-finger-salute.

Offline

#13 2006-01-15 08:18:53

Annette
Member
Registered: 2006-01-09
Posts: 29

Re: Shutdown / reboot?

Birdman wrote:
Moo-Crumpus wrote:

Me, my wife and kids all use normal user accounts and just tell gnome / gdm to shut down the computer. There is a button for it, pal. smilesmile

Aah! When I tried gdm with debian the button requested root password - hence the question. gdm is now a possible alternative. Thanks.

Ah, I remember, debian had little updates lately ... smile I think since gnome 2.0 you no longer need to patch your fs or add root permissions to shutdown.

Offline

#14 2006-01-15 08:37:07

ozar
Member
From: USA
Registered: 2005-02-18
Posts: 1,686

Re: Shutdown / reboot?

I usually poweroff with:  sudo shutdown -h now

...and do reboots with:  sudo shutdown -r now


oz

Offline

#15 2006-02-21 05:51:11

rasat
Forum Fellow
From: Finland, working in Romania
Registered: 2002-12-27
Posts: 2,293
Website

Re: Shutdown / reboot?

Shofs wrote:

I just go quit X and then give the good old three-finger-salute.

"Ctrl-Alt Del", I always do.


Markku

Offline

#16 2006-02-22 14:03:55

ibrahim
Member
Registered: 2006-02-18
Posts: 53

Re: Shutdown / reboot?

Birdman wrote:

I had a play around with debian over the New Year (I really wanted to like it but it was too far away from my Slackware roots) and used gdm. To shutdown I always had to enter a root password - not a problem for me but not good for a family box where I do not wish to advertise the root password.

You could install sudo then edit your sudoers file to allow certain people to execute shutdown with either their user password or no password. But gnome lets users shutdown anyway so I wouldn't think you'll need to do that

Offline

#17 2006-02-22 18:02:12

_Gandalf_
Member
Registered: 2006-01-12
Posts: 735

Re: Shutdown / reboot?

tomfitzyuk wrote:

I never use a graphical login manager because if there's a problem with X you'll have to boot using a system rescue CD.
[...]

Thats not true at all man, you can do Many things other than using a rescue disc!!
1) Always have a recovery mode in your grub/lilo entry if anything goes wrong, you can always boot without any daemon and restore ur system.. just add single to your kernel options

# (0) Arch Linux
title  Arch Linux (recovery mode)
root   (hd0,4)
kernel /vmlinuz26 root=/dev/hda6 ro single
initrd /initrd26.img

2) switching to a tty ( Ctrl + Alf + F[1-6] )
etc ... big_smile


anyway I always use reboot/shutdown in my gnome session, best solution :mrgreen:

Offline

Board footer

Powered by FluxBB