gharris999;326368 Wrote: 
> Sorry to ask about obvious things that you've probably already done, but
> I'm not seeing anything in the log entries that raises a red flag.  The
> log entry:
> 
> [08-08-05 18:30:01.8852] Slim::Schema::forceCommit (1483) Warning:
> Trying to commit transactions before DB is initialized!
> 
> shows up in there because the plugin effectively kills SqueezeCenter as
> part of the prep for a shutdown.  I don't know that that's really
> necessary, but this aspect goes back to Adrian C's original code.  The
> plugin makes no attempt to recover gracefully from a failed shutdown
> attempt. 
> 
> Did you follow all the instructions in the read me about editing the
> /etc/sudoers file?
> > 
Code:
--------------------
  >   > 
  > Add the squeezecenter user to the /etc/shutdown.allow file:
  > touch /etc/shutdown.allow
  > echo 'squeezecenter' >>/etc/shutdown.allow
  > 
  > Edit the /etc/sudoers file:
  > 
  > Comment out the line with: Defaults requiretty
  > so that it reads: #Defaults requiretty
  > 
  > Add these lines to the end of the sudoers file:
  > 
  >     ## Allows members of the squeezecenter group to shutdown this system
  >     %squeezecenter ALL=NOPASSWD:/sbin/shutdown
  >     %squeezecenter ALL=NOPASSWD:/usr/sbin/pm-suspend
  >     %squeezecenter ALL=NOPASSWD:/usr/sbin/pm-hibernate
  > 
--------------------
> > 
> 
> Also, have you looked at epoch1970's debian install notes distributed
> with the plugin?
> 
> Have you verified that the paths to shutdown, pm-suspend,
> pm-hibernate are actually /sbin/shutdown, /usr/sbin/pm-suspend,
> /usr/sbin/pm-hibernate?  If those utilities reside at paths other
> than those above, you'll need to edit the sudoers file to accurately
> reflect those paths and you'll need to go into the plugin's settings
> page and fix up the command paths there too. 
> 
> Sorry I don't have any easy answers.  Linux seems like an entire
> ecosystem and I'm used to dealing with just a single species: Fedora.

I've managed to get it to shutdown!
I followed the instructions here:
https://help.ubuntu.com/community/Sudoers

specifically:
Shutting Down From The Console Without A Password

Often people want to be able to shut their computers down without
requiring a password to do so. This is particularly useful in media PCs
where you want to be able to use the shutdown command in the media
centre to shutdown the whole computer.

To do this you need to add some cmnd aliases as follows:

Cmnd_Alias SHUTDOWN_CMDS = /sbin/shutdown, /sbin/halt, /sbin/reboot

You also need to add a user specification (at the end of the file after
the "%admin ALL = (ALL) ALL" line so it takes effect - see above for
details):

<your username> ALL=(ALL) NOPASSWD: SHUTDOWN_CMDS

I've not tried suspend etc yet, but I'm confident that between my half
a brain and google I can work it out :)

Thanks for all your help and for making a great plugin!


-- 
zegermans
------------------------------------------------------------------------
zegermans's Profile: http://forums.slimdevices.com/member.php?userid=19073
View this thread: http://forums.slimdevices.com/showthread.php?t=48521

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/plugins

Reply via email to