Re: OBLogout - replacement logout script for Openbox - Version 0.2

WOW this is amazing!
I seriously think we should get rid of GDM in statler and use this rather than thhe default openbox logout script!
great job!

I once installed gentoo. It asked me for a sacrifice and would not install itself unless I gave him my neighbor's first born and my best bottle of Whiskey.  -Awebb 2011

Re: OBLogout - replacement logout script for Openbox - Version 0.2

Very cool application big_smile I use Archlinux, i've created the Pkgbuild and then i've discovered that in Aur there already was the pkgbuild XD
But this theme isn't in the source is it?
http://www.ad-comp.be/public/openbox/oblogout.png
And how can i logut from Lxde?

Last edited by toketin (2010-09-01 17:05:38)

Re: OBLogout - replacement logout script for Openbox - Version 0.2

Ive installed the latest oblogout script and everything went fine during installation but I cant do a shutdown or a reboot. So is it possible that I have to change my oblogout.conf? 

[commands]
shutdown = shutdown -h now
restart = reboot
suspend = pmi action suspend
hibernate = pmi action hibernate
safesuspend = safesuspend
lock = gnome-screensaver-command -l
switchuser = gdm-control --switch-user
logout = openbox --exit

Re: OBLogout - replacement logout script for Openbox - Version 0.2

https://bbs.archlinux.org/viewtopic.php?id=92251
Post #16 offers a possible solution. smile

Re: OBLogout - replacement logout script for Openbox - Version 0.2

@tigermilk -  Have you modified your sudoers file so you could run shutdown and reboot without a password?

Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Re: OBLogout - replacement logout script for Openbox - Version 0.2

Thanks a lot. Ive already tried it without success except that really nothing happened sad

Re: OBLogout - replacement logout script for Openbox - Version 0.2

anonymous wrote:

@tigermilk -  Have you modified your sudoers file so you could run shutdown and reboot without a password?


I thought that this is my problem. Pls can you tell me how I can change it?

Re: OBLogout - replacement logout script for Openbox - Version 0.2

Open a terminal and run "sudo EDITOR=nano visudo". Then add two lines like:

username  ALL=(ALL) NOPASSWD:/sbin/shutdown
username  ALL=(ALL) NOPASSWD:/sbin/reboot

Press Ctrl-O to save, then Enter to confirm, and lastly Ctrl-X to exit.

Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Re: OBLogout - replacement logout script for Openbox - Version 0.2

hm..thank you!! Ive changed it but unfortunately nothing changed. I will make a restart in a few minutes.

Re: OBLogout - replacement logout script for Openbox - Version 0.2

You did change "username" to your own username right?

Also can you run "sudo shutdown -r now" from a terminal (without a password)?

Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Re: OBLogout - replacement logout script for Openbox - Version 0.2

anonymous wrote:

You did change "username" to your own username right?

Also can you run "sudo shutdown -r now" from a terminal (without a password)?

Yes Ive changed it to my username but nothing happend!! I also have a great problem because I cannot do a reboot in no way. every time i want to do it the computer freezes and I have to do a "hard" shutdown!! And last but not least to complete the desaster Ive lost my NM Applet today and get this error message:

Sep 25 09:03:51 phlippphlopp kernel: phy0 -> rt2x00pci_regbusy_read: Error - Indirect register access failed: offset=0x00007010, value=0xffffffff
Sep 25 09:03:51 phlippphlopp kernel: phy0 -> rt2x00pci_regbusy_read: Error - Indirect register access failed: offset=0x00007010, value=0xffffffff
Sep 25 09:03:51 phlippphlopp kernel: phy0 -> rt2x00pci_regbusy_read: Error - Indirect register access failed: offset=0x00007010, value=0xffffffff
Sep 25 09:03:51 phlippphlopp kernel: phy0 -> rt2800pci_mcu_status: Error - MCU request failed, no response from hardware
Sep 25 09:03:51 phlippphlopp kernel: phy0 -> rt2800pci_mcu_status: Error - MCU request failed, no response from hardware
--> Fixed by removing NM and installing WICD

(I know that this is maybe the wrong place for these questions..)

Ive read a little bit too fast..sry..Ive changed it as you said and now I can do "sudo shutdown -r now" without a pwd but also without a reboot. This means that the PC freezes everytime I want to reboot. In another thread Ive found that I have to change sth in my grub.cfg like:

GRUB_CMDLINE_LINUX_DEFAULT="quiet reboot=a,b,k,c" (here is the thread: http://blogs.koolwal.net/2009/08/04/how … -restarts/ ).

Ive also looked https://bbs.archlinux.org/viewtopic.php?id=92251 and tried to solve it. When I am turning usehal=false then I come back to my desktop and nothing happens. If I run oblogout throughout a terminal I get the answer that I dont have the permissions even Ive changed the visudo.

Last edited by tigermilk (2010-09-25 18:07:33)

Re: OBLogout - replacement logout script for Openbox - Version 0.2

does this no longer work with debian? it wont instal.. :l

nevermind ! had to install python-imaging first!

Last edited by bolle (2010-09-26 13:46:17)

I once installed gentoo. It asked me for a sacrifice and would not install itself unless I gave him my neighbor's first born and my best bottle of Whiskey.  -Awebb 2011

Re: OBLogout - replacement logout script for Openbox - Version 0.2

anonymous wrote:

Open a terminal and run "sudo EDITOR=nano visudo". Then add two lines like:

username  ALL=(ALL) NOPASSWD:/sbin/shutdown
username  ALL=(ALL) NOPASSWD:/sbin/reboot

Press Ctrl-O to save, then Enter to confirm, and lastly Ctrl-X to exit.

Do I have to write it at the end of the script? Ive read a lot of "maybe's" but it sounds logical for me that when I have the permission to use no pwd I can do e.g. shutdown -h now without a pwd? Or maybe I have to consider a special order within the sudoers?

Re: OBLogout - replacement logout script for Openbox - Version 0.2

It doesn't have to be strictly at the end but its just easier.

Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Re: OBLogout - replacement logout script for Openbox - Version 0.2

Thanks a lot!! Meanwhile Ive uninstalled it completely after installing different packages and archives and trying, trying, trying sad(..
Maybe it helps when I post my sudoers:

# Allow members of group sudo to execute any command
# (Note that later entries override this, so you might need to move
# it further down)
%sudo ALL=(ALL) ALL
#
#includedir /etc/sudoers.d
*** ALL=(ALL) ALL

*** ALL=(ALL) NOPASSWD: /sbin/halt
*** ALL=(ALL) NOPASSWD: /sbin/reboot

#ALL ALL=NOPASSWD: /sbin/shutdown
#ALL ALL=NOPASSWD: /sbin/reboot

or get the current version (0.2.1-x86_64??)..
I am running CB Statler Openbox x86_64, i5 processor, 8 GB RAM.

Re: OBLogout - replacement logout script for Openbox - Version 0.2

Mehall wrote:

I stand corrected, it does not.

Logout works, shutdown/restart do not, didn't test others.

I just put OBLogout on Statler, but the lock screen command wasn't working. I poked through the code and changed all the references to gnome-screensaver to 'xscreensaver-command -lock'. I didn't have xscreensaver turned on, so once that was going (and added to autostart.sh), problem solved!

Great program!

Just Rick... Thanks.

92

Re: OBLogout - replacement logout script for Openbox - Version 0.2

help
http://img141.imageshack.us/img141/8996/0016t.th.png

Last edited by ali (2011-02-28 13:37:41)

Re: OBLogout - replacement logout script for Openbox - Version 0.2

ali wrote:

help

How did you install?

Last edited by Kuno (2011-02-28 14:50:09)

94

Re: OBLogout - replacement logout script for Openbox - Version 0.2

deb package from here

https://launchpad.net/oblogout

Re: OBLogout - replacement logout script for Openbox - Version 0.2

org.freedesktop.Hal

If you don't use HAL (which is very probable) you could try to change the line to the corresponding line to match the new udev rules.

I'm so meta, even this acronym

Re: OBLogout - replacement logout script for Openbox - Version 0.2

ali wrote:

deb package from here

https://launchpad.net/oblogout

Hmm. Just installed the same deb via gdebi gtk. Running "oblogout" from terminal starts the logout-screen correctly as supposed. Synaptic shows these as required dependencies:
http://dl.dropbox.com/u/14040575/Oblog_deps.png

97

Re: OBLogout - replacement logout script for Openbox - Version 0.2

Awebb wrote:

org.freedesktop.Hal

If you don't use HAL (which is very probable) you could try to change the line to the corresponding line to match the new udev rules.

i didn't get to run any command yet, it wont even start

ali@ali-mobile:~$ sudo aptitude install python-central python-gtk2 python-imaging python-cairo python-dbus policykit-1 python
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
                                         
ali@ali-mobile:~$ 

Re: OBLogout - replacement logout script for Openbox - Version 0.2

ali wrote:
Awebb wrote:

org.freedesktop.Hal

If you don't use HAL (which is very probable) you could try to change the line to the corresponding line to match the new udev rules.

i didn't get to run any command yet, it wont even start

I think, Awebb refers to editing the py-files mentioned in your screenie - honestly i could not tell, in which direction... sad

Is hal installed and running (on my system it is...) ?
If not, and you want to install hal, don't take the sid-packages, as autostart od hal is/was not working with them.

99

Re: OBLogout - replacement logout script for Openbox - Version 0.2

i don't want hal tongue

100

Re: OBLogout - replacement logout script for Openbox - Version 0.2

http://img69.imageshack.us/img69/6228/0018b.th.png

oddly enough it worked after changing the commands

anyway what's with the weird background?

Last edited by ali (2011-02-28 17:48:00)