LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-31-2012, 09:23 AM   #1
AlleyTrotter
Member
 
Registered: Jun 2002
Location: Coal Township PA
Distribution: Slackware64-15.0
Posts: 783

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
No hald -- boot/quit?


Now that Slackware has gone cold turkey on hal, what is the proper way to boot/quit from a user (non-root) terminal?
I useta could do boot
Code:
dbus-send --print-reply --system --dest=org.freedesktop.Hal /org/freedesktop/Hal/devices/computer org.freedesktop.Hal.Device.SystemPowerManagement.Reboot
or quit
Code:
dbus-send --print-reply --system --dest=org.freedesktop.Hal /org/freedesktop/Hal/devices/computer org.freedesktop.Hal.Device.SystemPowerManagement.Shutdown
Would like to avoid sudoers. I don't like to open root if at all possible.
thanks
john
 
Old 07-31-2012, 09:36 AM   #2
audriusk
Member
 
Registered: Mar 2011
Location: Klaipėda, Lithuania
Distribution: Slackware
Posts: 360

Rep: Reputation: 199Reputation: 199
Found these instructions on Arch wiki, haven't tried them myself:

https://wiki.archlinux.org/index.php...wer_operations

This requires you to run ConsoleKit (for reboot and shutdown) and UPower (for suspend and hibernate) to work.
 
1 members found this post helpful.
Old 07-31-2012, 11:43 AM   #3
AlleyTrotter
Member
 
Registered: Jun 2002
Location: Coal Township PA
Distribution: Slackware64-15.0
Posts: 783

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
No Cigar

The methods in the link only work if running a console/terminal under X

When executed immediatly after boot/login the following error:
"Error org.freedesktop.ConsoleKit.Manager.NotPriviliger: Not Authorized"

I'm looking to quit/boot from terminal not X
Thanks
John

Yes I made myself a member of wheel group
 
Old 07-31-2012, 12:10 PM   #4
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
I very rarely reboot and have setup Ctrl-Alt-Del as shutdown. Not the best solution, but it's all I need.
 
Old 07-31-2012, 12:53 PM   #5
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,098

Rep: Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175
You don't need to add yourself to the wheel group: when creating a user with adduser, it asks for additional groups, push the up arrow and the defaults are sufficient (the "power" group is what is needed for shutdown/reboot operations).
The commands in the ArchWiki assume that you have a consolekit session available, as it is when you run X (the .xinitrc files take care of that).
If you want to use them in the console, just prefix them with a "ck-launch-session": for example, if you want to reboot
Code:
ck-launch-session dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit" /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Restart

Last edited by ponce; 07-31-2012 at 02:22 PM.
 
Old 07-31-2012, 02:58 PM   #6
AlleyTrotter
Member
 
Registered: Jun 2002
Location: Coal Township PA
Distribution: Slackware64-15.0
Posts: 783

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Thanks guys
As soon as I reboot into current I will try out the methods as Ponce describes.
Right now I am rebooting lots as I am testing current with each new build and some of my everyday work.
You are right Tex I rarely reboot when not testing something
Thanks again
john

Everything works as advertised Mr. Ponce. marked thread as solved
ReaperX7 I am also out of the wheel group, a place I never wanted to be. I like Ponce's method as now I have 2 one line scripts in /home/john 'b.sh' and 'q.sh'. Even quicker than 'su'

Last edited by AlleyTrotter; 07-31-2012 at 07:31 PM. Reason: mark solved
 
Old 07-31-2012, 04:27 PM   #7
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Adding yourself to the wheel group isn't the wisest ideas. If you need to shutdown just use the "su" command to root into from your user account and run the shutdown command from there.
 
  


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
[SOLVED] Two 13.37x64 Issues: Boot Hangs starting HALD, and DHCPCD has to be run manually NeoMetal Slackware 8 01-17-2012 08:59 PM
Server blew up, so repaired but now freezing on boot, caused by either Hald or messagebus vdemuth Slackware 0 07-24-2011 11:25 AM
Slackware 13.37 Upgrade - HALD hang at boot with USB card reader. genericflounder Slackware 2 05-02-2011 02:45 PM
Fed 12 - set default win manager at boot / quit Moblin ericcarlson Fedora 1 01-01-2010 06:26 PM
hald segfaults on boot Secant Gentoo 3 10-25-2009 06:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:42 PM.

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