You are not logged in.
Hello, i dont get it to have a lxpanel menu entriy to allow a user to reboot or shutdown the computer
i installed sudo and changed /etc/sudoers that every user can run /sbin/shutdown -h now /sbin/shutdown -r now and /sbin/reboot
if i dont change the lxpanel panel config i've a red logout button in the menu...when i use it i get the lxsession-logout .
.. but there is no reboot or shutdown..just a logout....
Plugin {
type = menu
Config {
image=/usr/share/lxpanel/images/my-computer.png
system {
}
separator {
}
item {
command=run
}
item {
image=gnome-logout
command=logout
}
}
}
if i use instead of command=logout command=sudo shutdown -h now nothing happens...
but when i run sudo shutdown -h now manually it works without a problem
Offline
add your user to power group
--------------------------------
Todos somos muy ignorantes, lo que ocurre es que no todos ignoramos lo mismo.
Recuerda: El arca de Noe fue construida por aficionados, el titanic por profesionales
-----------------------------------------------------------------
Offline
if run
usermod -g power myuser
but i still get only the logout funktion and no reboot or shutdown
Offline
Log out and then in again, that should apply the changes.
Offline
dont works....only choice is "logout" and no reboot or shutdown
i start lxde using startlxde in .xinitrc in the users home
Offline
I'm using LXDE too and "everything" is ok but I'm using LXDE with GDM - try it.
I say "everything" because Claws-Mail and Liferea after reboot/switch on shows old messages as not read...
Kermit.
Offline
do not use "command=", use "action=" instead.
"command=" is for internal commands.
Offline
try me latest archiso-live distro since i use lxde and have it workiing the way you want it too.
I'm working on a live cds based on Archlinux. http://godane.wordpress.com/
Offline
Add yourself to the 'power' group, like this: http://wiki.archlinux.org/index.php/LXD … _from_LXDE
Bob
Offline
I simply did what wiki said: http://wiki.archlinux.org/index.php/LXDE
"To use startx you will need to define LXDE in your ~/.xinitrc file:
exec ck-launch-session startlxde
This will launch LXDE with HAL support that provides the ability to restart or shutdown your computer from the logout dialog."
Offline
I simply did what wiki said: http://wiki.archlinux.org/index.php/LXDE
"To use startx you will need to define LXDE in your ~/.xinitrc file:
exec ck-launch-session startlxde
This will launch LXDE with HAL support that provides the ability to restart or shutdown your computer from the logout dialog."
Thanks ardur, your suggestion fixed my problem!
Background of my problem:
I had problems since i installed a login manager (for which i used this guide). The guide suggested making an .xsession file (starting lxde withthout a session manager, doh! ):
#!/bin/sh
exec bash --login -c 'startlxde'
I replaced the above code with ardur's code and was finally able to shutdown again.
Last edited by jooch (2010-03-16 02:34:43)
Offline
I use slim and use this line in ~/.xinitrc thats the file in my home folder without it i just get log out like you. the only other thing i did was add my user name to power users, hal, policy-kit etc.
it tells you all this in the Wiki.
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
# ...or the Window Manager of your choice
exec ck-launch-session startlxde
I'm dyslexic Please do not complain about puntuation or spelling and remember most dyslexic people have above average iq.
Offline