VLC will not run as root at all.
I'm not actually interested in a "looker"... just a "doer".
S.
Moderator: jkerr82508
.
Code: Select all
user@opendeb:~$ dpkg --get-selections | grep policykit
policykit-1 install
policykit-1-gnome install
Code: Select all
sudo apt-get install xorg openbox xdm
sudo apt-get install obconf obmenu
sudo apt-get install xfce4-panel xscreensaver
sudo apt-get install python-central python-gobject python-imaging python-dbus
wget https://launchpad.net/oblogout/0.2/0.2.0/+download/oblogout_0.2-0-0ubuntu1_all.deb
sudo dpkg -i oblogout_0.2-0-0ubuntu1_all.debCode: Select all
user@opendeb:~$ oblogout
Traceback (most recent call last):
File "/usr/bin/oblogout", line 97, in <module>
sys.exit(main())
File "/usr/bin/oblogout", line 92, in main
app = OpenboxLogout(config, local_mode)
File "/usr/lib/python2.7/dist-packages/oblogout/__init__.py", line 82, in __init__
self.load_config(config)
File "/usr/lib/python2.7/dist-packages/oblogout/__init__.py", line 264, in load_config
if not self.dbus.check_ability(button):
File "/usr/lib/python2.7/dist-packages/oblogout/dbushandler.py", line 127, in check_ability
return self._halpm.CanSuspend
File "/usr/lib/python2.7/dist-packages/oblogout/dbushandler.py", line 58, in _halpm
hal = self._sysbus.get_object ("org.freedesktop.Hal", "/org/freedesktop/Hal/devices/computer")
File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 241, in get_object
follow_name_owner_changes=follow_name_owner_changes)
File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 248, in __init__
self._named_service = conn.activate_name_owner(bus_name)
File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 180, in activate_name_owner
self.start_service_by_name(bus_name)
File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 278, in start_service_by_name
'su', (bus_name, flags)))
File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Hal was not provided by any .service files
Code: Select all
user@opendeb:~$ oblogout
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/oblogout/__init__.py", line 354, in click_button
self.dbus.restart()
File "/usr/lib/python2.7/dist-packages/oblogout/dbushandler.py", line 143, in restart
if not self.__auth_perms("org.freedesktop.hal.power-management.reboot"):
File "/usr/lib/python2.7/dist-packages/oblogout/dbushandler.py", line 94, in __auth_perms
if self.__check_perms(id):
File "/usr/lib/python2.7/dist-packages/oblogout/dbushandler.py", line 80, in __check_perms
res = self._polkit.IsProcessAuthorized(id, os.getpid(), False)
File "/usr/lib/python2.7/dist-packages/oblogout/dbushandler.py", line 50, in _polkit
pk = self._sysbus.get_object ("org.freedesktop.PolicyKit", "/")
File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 241, in get_object
follow_name_owner_changes=follow_name_owner_changes)
File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 248, in __init__
self._named_service = conn.activate_name_owner(bus_name)
File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 180, in activate_name_owner
self.start_service_by_name(bus_name)
File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 278, in start_service_by_name
'su', (bus_name, flags)))
File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.PolicyKit was not provided by any .service files
Code: Select all
user@opendeb:~$ oblogout
sh: 1: reboot: not foundCode: Select all
user@opendeb:~$ reboot
bash: reboot: command not foundCode: Select all
user@opendeb:~$ /sbin/reboot
reboot: must be superuser.Code: Select all
user@opendeb:~$ oblogout
sh: 1: reboot: not foundCode: Select all
user@opendeb:~$ oblogout
sh: 1: reboot: not foundCode: Select all
user@opendeb:~$ oblogout
sh: 1: reboot: not foundCode: Select all
user ALL=(ALL) NOPASSWD: ALLCode: Select all
user@opendeb:~$ oblogout
sh: 1: reboot: not foundPolicyKit is an application-level toolkit for defining and handling the policy that allows unprivileged processes to speak to privileged processes.
It is a framework for centralizing the decision making process with respect to granting access to privileged operations for unprivileged (desktop) applications.
Code: Select all
dpkg --get-selections | grep libpolkit
Code: Select all
user@opendeb:~$ dpkg --get-selections | grep libpolkit
libpolkit-agent-1-0:amd64 install
libpolkit-backend-1-0:amd64 install
libpolkit-gobject-1-0:amd64 installCode: Select all
dpkg --add-architecture i386
apt-get update
apt-get install libpolkit-agent-1-0:i386Code: Select all
sudo chmod u+s /sbin/shutdownCode: Select all
snorkasaurus ALL=(ALL) NOPASSWD: ALLCode: Select all
sudo apt-get install gmessageCode: Select all
#!/bin/bash
gmessage "What do ya wanna do?" -center -ontop -title "Hey!" -font "Sans bold 10" -default "Cancel" -buttons "_Cancel":1,"_Log out":2,"_Reboot":3,"_Shut down":4 >/dev/null
case $? in
1)
echo "Exit";;
2)
openbox --exit;;
3)
sudo shutdown -r now;;
4)
sudo shutdown -h now;;
esac