You are not logged in.

#1 2006-06-10 19:33:25

alikas
Member
From: Lithuania, Vilnius
Registered: 2006-05-24
Posts: 319
Website

How turn of computer from Desktop Environment?

In Gnome and KDE possible only log out.
Then need write "exit", login as root, write "reboot" press on computer, while it starting after reboot, turn off button.


Goodbye!

Offline

#2 2006-06-10 20:51:11

mouse256
Member
From: Antwerpen, Belgium
Registered: 2005-08-24
Posts: 247

Re: How turn of computer from Desktop Environment?

For gnome: install and use GDM
For kde: install and use KDM

as far as I know there is no (easy) way to have the shutdown/reboot actions in both gnome and kde (someone correct me if I'm wrong please)

Offline

#3 2006-06-10 21:05:14

user
Member
Registered: 2006-03-29
Posts: 465

Re: How turn of computer from Desktop Environment?

in well-packaged distro, there is "logout, shutdown, reboot, switch to other user account" option in gnome menu.

anyway, i am using

sudo halt
sudo reboot

I removed my sig, cause i select the flag, the flag often the target of enemy.

SAR brain-tumor
[img]http://img91.imageshack.us/img91/460/cellphonethumb0ff.jpg[/img]

Offline

#4 2006-06-10 22:07:05

Krux
Member
From: Holland
Registered: 2006-05-06
Posts: 14

Re: How turn of computer from Desktop Environment?

I also use Gnome and I'm only able to log out. I don't mind at all because I hardly ever use it anyway. I'm thinking of switching to OpenBox :] seeing as I hardly ever use stuff that uses gnome-libs. Ah well...

Anyway, I've setup zsh to use aliases for the likes of:

<snippet>

alias shutdown='sudo shutdown -h now'
alias reboot='sudo reboot'

</snippet>

'shutdown -h now' as root will turn off your computer. I've had to pass 'acpi=force' to the kernel though, to be able to turn off my computer completely ( lol ) else it would just let the power on.


kruxflux (alpha) | kernels: 2.6.17-beyond3-1 |  Intel(R) Pentium(R) 4 (Northwood) CPU 1.80GHz 1816.984 MHz | SAMSUNG SP2514N (250 GB) (dm-crypt) | Screen: nVidia  NV11DDR [GeForce2 MX 100 DDR/200 DDR] (rev b2) @ 1280x1024 (24 bpp)

Offline

#5 2006-06-10 22:41:48

rezza
Member
From: Edinburgh, uk
Registered: 2004-07-08
Posts: 237

Re: How turn of computer from Desktop Environment?

The command "halt" normally does the same as "shutdown -h now".

Offline

#6 2006-06-11 00:32:31

russianpirate
Member
Registered: 2006-05-17
Posts: 161

Re: How turn of computer from Desktop Environment?

Install "gksu" and add a shortcut to your panel/menu:

gksudo -a [terminal app] -e "halt"

or if your user doesn't have the right to sudo:

gksu [terminal app] -e "halt"

The reason for -a in gksudo is to make sure you want to shutdown by asking for the password always wink For terminal app, use gnome-termainl, kterm, xterm, rxvt, etc... w/e you want just so you can see the output of the shutdown processes and detect any problems. The "sudo halt" is also good, but a GTK interface is a little nicer looking.. that's really the only reason to use that over [terminal app] -e "sudo halt" lol tongue


Darkstar:
Athlon 64 3500+ (OC ~2.49ghz)
Leadtek GeForce 6800 128mb (unlocked/OC)
Rosewill Value DDR400 1GB
WDC SE 80GB
NEC 3550 DVDRW DL 16X

Offline

#7 2006-06-11 01:30:43

normc
Member
From: Ottawa, Canada
Registered: 2004-06-28
Posts: 277
Website

Re: How turn of computer from Desktop Environment?

I use KDE, all I do is right clic on the desk top, pick logout, then turn off computer and it shuts down


Norm

Offline

#8 2006-06-11 04:17:29

alikas
Member
From: Lithuania, Vilnius
Registered: 2006-05-24
Posts: 319
Website

Re: How turn of computer from Desktop Environment?

I will try.
Thanks!
Normc, did yuo use Arch Linux?
How yuo install KDE?
I install "pacman -Sf kde" or "pacman -S kde", do not exactly remember. And maybe not install whole content of KDE. Did yuo install all packages?


Goodbye!

Offline

#9 2006-06-11 13:11:54

jaboua
Member
Registered: 2005-11-05
Posts: 634

Re: How turn of computer from Desktop Environment?

pacman -S kde should do it - just pick the parts of KDE you want. You have to be running a login manager to make KDE shut down though - it works with KDM, and I belive I heard someone say that 3.5 also works with GDM.

IIRC XFCE will offer shutdown like that without a login manager running.

Offline

#10 2006-06-11 13:22:33

alikas
Member
From: Lithuania, Vilnius
Registered: 2006-05-24
Posts: 319
Website

Re: How turn of computer from Desktop Environment?

Thanks, thanks, thanks!


Goodbye!

Offline

Board footer

Powered by FluxBB