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!
CrunchBang Linux Forums » Tips, Tricks & Scripts » 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!
Very cool application
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?
And how can i logut from Lxde?
Last edited by toketin (2010-09-01 17:05:38)
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
https://bbs.archlinux.org/viewtopic.php?id=92251
Post #16 offers a possible solution. ![]()
@tigermilk - Have you modified your sudoers file so you could run shutdown and reboot without a password?
Thanks a lot. Ive already tried it without success except that really nothing happened ![]()
@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?
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/rebootPress Ctrl-O to save, then Enter to confirm, and lastly Ctrl-X to exit.
hm..thank you!! Ive changed it but unfortunately nothing changed. I will make a restart in a few minutes.
You did change "username" to your own username right?
Also can you run "sudo shutdown -r now" from a terminal (without a password)?
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)
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)
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/rebootPress 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?
It doesn't have to be strictly at the end but its just easier.
Thanks a lot!! Meanwhile Ive uninstalled it completely after installing different packages and archives and trying, trying, trying
(..
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.
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!
help
How did you install?
Last edited by Kuno (2011-02-28 14:50:09)
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.
deb package from here
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: 
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:~$ 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... ![]()
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.
i don't want hal ![]()
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)
Posts [ 76 to 100 of 117 ]
CrunchBang Linux Forums » Tips, Tricks & Scripts » OBLogout - replacement logout script for Openbox - Version 0.2
Forums powered by PunBB. Hosted by Linode.
Copyright © CrunchBang Linux.
Proudly powered by Debian GNU/Linux.
Debian is a registered trademark of Software in the Public Interest, Inc.