I installed XFCE on my antix 12 test and managed to get it to start at boot, however, there doesn't seem to be a way to reboot it or shutdown. I get the log out dialog but reboot and shutdown are greyed out. what am I missing?
thanks.
topic title: (solved) Reboot and SHutdown from XFCE
-
Posts: 98
- Joined: 06 Nov 2009
#1
Last edited by loukingjr on 09 Mar 2012, 11:58, edited 1 time in total.
-
Posts: 325
- Joined: 04 Nov 2011
#2
-Install the package
or
-try it Alt+F2
seems to be a bug in xfce
Code: Select all
policykit-1
-try it Alt+F2
Code: Select all
xfwm4
-
Posts: 98
- Joined: 06 Nov 2009
#3
thanks. policykit was already installed and I think all that would happen running xfwm4 is it would say it's already running.
-
Posts: 1,062
- Joined: 20 Jan 2010
#4
I have found you will need to edit"/usr/share/polkit-1/actions/org.freedesktop.consolekit.policy" as root and change all instances between"<defaults>" and"</defaults>" to the following
Make SURE to do a BACKUP of the file
To do this do
menu --> run
type: gksu xfce4-terminal
press: enter / return
type: your root password
press: ok
in terminal
type: cp /usr/share/polkit-1/actions/org.freedesktop.consolekit.policy /usr/share/polkit-1/actions/org.freedesktop.consolekit.policy.backup
press: enter/return
type: leafpad /usr/share/polkit-1/actions/org.freedesktop.consolekit.policy
press: enter / return
DO THE EDITS, the file should then look similar to
file --> save
close leafpad, and terminal
This may then require a logout / reboot, I am not 100% sure though.
Code: Select all
<defaults>
<allow_inactive>no</allow_inactive>
<allow_active>yes</allow_active>
</defaults>
To do this do
menu --> run
type: gksu xfce4-terminal
press: enter / return
type: your root password
press: ok
in terminal
type: cp /usr/share/polkit-1/actions/org.freedesktop.consolekit.policy /usr/share/polkit-1/actions/org.freedesktop.consolekit.policy.backup
press: enter/return
type: leafpad /usr/share/polkit-1/actions/org.freedesktop.consolekit.policy
press: enter / return
DO THE EDITS, the file should then look similar to
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policyconfig PUBLIC
"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
"http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd">
<!--
Policy definitions for ConsoleKit
-->
<policyconfig>
<action id="org.freedesktop.consolekit.system.stop">
<description>Stop the system</description>
<message>System policy prevents stopping the system</message>
<defaults>
<allow_inactive>no</allow_inactive>
<allow_active>yes</allow_active>
</defaults>
</action>
<action id="org.freedesktop.consolekit.system.stop-multiple-users">
<description>Stop the system when multiple users are logged in</description>
<message>System policy prevents stopping the system when other users are logged in</message>
<defaults>
<allow_inactive>no</allow_inactive>
<allow_active>yes</allow_active>
</defaults>
</action>
<action id="org.freedesktop.consolekit.system.restart">
<description>Restart the system</description>
<message>System policy prevents restarting the system</message>
<defaults>
<allow_inactive>no</allow_inactive>
<allow_active>yes</allow_active>
</defaults>
</action>
<action id="org.freedesktop.consolekit.system.restart-multiple-users">
<description>Restart the system when multiple users are logged in</description>
<message>System policy prevents restarting the system when other users are logged in</message>
<defaults>
<allow_inactive>no</allow_inactive>
<allow_active>yes</allow_active>
</defaults>
</action>
</policyconfig>
close leafpad, and terminal
This may then require a logout / reboot, I am not 100% sure though.
-
Posts: 98
- Joined: 06 Nov 2009
#5
didn't work. __{{emoticon}}__
-
Posts: 98
- Joined: 06 Nov 2009
#6
I probably messed something up trying to get xfce installed and working. this is my .xinitrc file...
another thing that happened is rox-icewm nor icewm show up as options when I go to the login screen and press F1.
Code: Select all
#----------------------------------------------------------------------
# .xinitrc file
#
# AUTO-GENERATED by antiX-init.sh on Tue Mar 6 11:20:08 EST 2012
#
# This file was auto-generated. If you want to customize it you MUST
# DELETE the line above or your changes will be lost on the next boot.
#
# Alternatively, simply put your changes in .xinitrc-custom.
#----------------------------------------------------------------------
[ -x ~/.xinitrc-custom ] && ~/.xinitrc-custom
[ -f ~/.Xmodmap ] && xmodmap ~/.Xmodmap
case"$1" in
Rox-icewm|rox-icewm)
export DESKTOP_CODE="rox-icewm"
echo"rox-icewm" > $HOME/.wallpaper/session
rox --pinboard=antiX-ice
exec icewm-session
;;
icewm)
export DESKTOP_CODE="icewm"
echo"icewm" > $HOME/.wallpaper/session
sed -i -e"s/rox --pinboard=antiX-ice &/#rox --pinboard=antiX-ice &/" $HOME/.icewm/startup
exec icewm-session
;;
Rox-fluxbox|rox-fluxbox)
export DESKTOP_CODE="rox-fluxbox"
echo"rox-fluxbox" > $HOME/.wallpaper/session
rox --pinboard=antiX-fb
exec startfluxbox
;;
fluxbox)
export DESKTOP_CODE="fluxbox"
echo"fluxbox" > $HOME/.wallpaper/session
sed -i -e"s/rox --pinboard=antiX-fb &/#rox --pinboard=antiX-fb &/" $HOME/.fluxbox/startup
exec startfluxbox
;;
dwm)
export DESKTOP_CODE="dwm"
exec dwm
;;
Rox-jwm|rox-jwm)
export DESKTOP_CODE="rox-jwm"
echo"rox-jwm" > $HOME/.wallpaper/session
rox --pinboard=antiX-jwm
exec jwm
;;
jwm)
export DESKTOP_CODE="jwm"
echo"jwm" > $HOME/.wallpaper/session
sed -i -e"s/rox --pinboard=antiX-jwm &/#rox --pinboard=antiX-jwm &/" $HOME/.jwm/startup
exec jwm
;;
wmii)
export DESKTOP_CODE="wmii"
exec wmii
;;
# Default: xfce
*)
export DESKTOP_CODE="xfce4"
echo"xfce4" > $HOME/.wallpaper/session
#rox --pinboard=antiX-ice
exec xfce4-session
;;
esac
-
anticapitalista
Posts: 5,955
- Site Admin
- Joined: 11 Sep 2007
#7
change-default-desktop in /usr/local/bin should set up slim and .xinitrc correctly for xfce4
-
Posts: 98
- Joined: 06 Nov 2009
#8
I'm not nearly Linux savvy enough to figure out the problem.
well, I installed xfce with the meta package installer and after logging out xfce did not show up as one of the available wm's so I modified the .xinitrc file to get it to autostart.anticapitalista wrote:change-default-desktop in /usr/local/bin should set up slim and .xinitrc correctly for xfce4
I'm not nearly Linux savvy enough to figure out the problem.
-
anticapitalista
Posts: 5,955
- Site Admin
- Joined: 11 Sep 2007
#9
Go to /usr/local/bin and click on change-default-desktop file (in rox), give root password and set up default for xfce
-
Posts: 98
- Joined: 06 Nov 2009
#10
thank you. that did fix my problem as far as all the wm's showing up in the login screen. I still can't restart or shutdown once I'm in XFCE, I can only log out.anticapitalista wrote:Go to /usr/local/bin and click on change-default-desktop file (in rox), give root password and set up default for xfce
-
Posts: 609
- Joined: 02 Jun 2008
#11
have a look at this
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"https://wiki.archlinux.org/index.php/Xfce#Shutting_down.2C_rebooting.2C_and_automounting_from_within_Xfce"
linktext was:"https://wiki.archlinux.org/index.php/Xf ... ithin_Xfce"
====================================
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"https://wiki.archlinux.org/index.php/Xfce#Shutting_down.2C_rebooting.2C_and_automounting_from_within_Xfce"
linktext was:"https://wiki.archlinux.org/index.php/Xf ... ithin_Xfce"
====================================
-
Posts: 98
- Joined: 06 Nov 2009
#12
I tried editing the .xinitrc file to say"exec ck-launch-session startxfce4" as opposed to"exec xfce4" but either one gets me xfce as the default but neither let me reboot or shutdown. I'm guessing the"along with sourcing xintrc.d scripts" may be the problem but I have no idea what scripts should be there or how etc. like I said, I'm not very Linux savvy.
well, I did look at the link and found this section...dark-D wrote:have a look at this
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"https://wiki.archlinux.org/index.php/Xfce#Shutting_down.2C_rebooting.2C_and_automounting_from_within_Xfce"
linktext was:"https://wiki.archlinux.org/index.php/Xf ... ithin_Xfce"
====================================
Code: Select all
Shutting down, rebooting, and automounting from within Xfce
Make sure that dbus is enabled in the DAEMONS array in /etc/rc.conf.
Make sure that you are using exec ck-launch-session startxfce4 in ~/.xinitrc (along with sourcing xinitrc.d scripts, which is done for you in the skel file) or a ConsoleKit/PolicyKit capable display manager.
If no display manager is used:
Make sure you use the bash_profile method to auto-login (not inittab).
For automounting to work the default Policykit has to be edited
-
Posts: 98
- Joined: 06 Nov 2009
#13
ok, I thought maybe visual aids would help. whenever I go to log out, reboot, shutdown etc. in icwm or fluxbox or jwm etc I get this dialog...
whenever try the same thing when in xfce I get this dialog...
perhaps xfce wants to see GDM? how can I get xfce to use the former dialog?
whenever try the same thing when in xfce I get this dialog...
perhaps xfce wants to see GDM? how can I get xfce to use the former dialog?
-
anticapitalista
Posts: 5,955
- Site Admin
- Joined: 11 Sep 2007
#14
You could edit the xfce menu or its taskbar/tray to include /usr/local/bin/exitantix.sh
No idea how to do that though as I don't use xfce.
No idea how to do that though as I don't use xfce.
-
Posts: 98
- Joined: 06 Nov 2009
#15
thanks. I'll give it a try. __{{emoticon}}__