gnome freebsd

ericbsd

Developer
Hi I use gnome on freebsd but at default gnome on freebsd suck gnome on freebsd look like window manager not a desktop.

It is possible to add user with gui on gnome2.26 like 2.20 or users-admin is broke and change time with gnome clock like ubuntu and other gnome os.
If some one have idea how to do that help please. I try to make a perfect freebsd gnome live cd. This is first step nad after i gone a make install like finstall for this live cd. The project look like ubuntu. but freebsd base and now i call it GhostBSD.
 
Make sure you start GNOME using GDM. Also make sure hald and dbus are running. I haven't had any issues yet.
 
Yes I know and I do all that. but I cant change time and add or change user account with user and group in root. its look like if root have restriction for that 2 apps. I don't know why that work fine on FreeBSD 7.0 and dont work on FreeBSD 7.1 and 7.2 I try to have help on this many times but no body have help me on the past. by the way SirDice thanks but it don't help.
 
Did you tried playing with System->Preferences->Authorizations (polkit-gnome-authorization)?
 
Ok ale that solve problem. But cause an other. I cant do any change on System->Preferences->Authorizations same problem I have with the users and group and clock applet. that problem make me feel like a dome ass. By the way thanks for the help. I search fto solve that if you know let me know. Thanks
 
Even if I use gnome, I usually do most of the things from a terminal, when possible. If I do not manage user or change time with the gnome tools.

Anyway, is /proc mounted on your system?
 
Yes
Code:
corpse# cd /
corpse# ls
.cshrc			dist			rescue
.profile		entropy			root
.snap			etc			sbin
COPYRIGHT		home			sys
bin			lib			tmp
boot			libexec			trackerd.core
cdrom			lost+found		usr
compat			media			var
dbus-daemon.core	mnt
dev			proc
corpse#

Code:
# Device                Mountpoint      FStype  Options         Dump    Pass#
/dev/ad4s2b             none            swap    sw              0       0
/dev/ad4s2a             /               ufs     rw              1       1
/dev/ad4s2d             /usr            ufs     rw              2       2
/dev/acd0               /cdrom          cd9660  ro,noauto       0       0
proc                    /proc           procfs  rw              0       0
 
I cant add, delete or change properties of users or groups. root don't have the permission. like clock applet you give me the solution, but I cant do any change on System->Preferences->Authorizations same problem. Screenshot.png
 
I've just tried to add a user. Everything seems fine in the GUI, but in the console I get:
Code:
(users-admin:92061): Liboobs-CRITICAL **: create_dbus_struct_from_user: assertion `(login && password && homedir && shell)' failed

(users-admin:92061): Liboobs-CRITICAL **: Not committing due to inconsistencies in the configuration, this reflects a bug in the application

I remember that many time ago, not many time after those tools appeared in FreeBSD, the gnome maintainers said that they have no time and not enough knowledge of perl (if I'm not wrong) to fully support them. I'm not sure if the situation changed in the meanwhile.
Maybe you could ask in the gnome mailing list
 
To get these admin things to work, either start gnome with gnome_enable="YES" in /etc/rc.conf, or you have to add sudo to the various commands (gksu used to work for this, but no longer seems to). I do the former, SirDice does the latter.
 
ale you seed (I've just tried to add a user. Everything seems fine in the GUI, but in the console I get:)
ok you can add but me i cant press the bouton add user is not active like user account like i tell you I dont have authorization to do that on root. same thing with System->Preferences->Authorizations.
 
DrJ I have gnome_enable="YES" in my rc.conf i use freebsd for a 1.5 year now now all that.
 
It is possible to add user with gui on gnome2.26 like 2.20 or users-admin is broke and change time with gnome clock

I think the ability to add users in the Gnome GUI is broken right now. I've always done it from the command line, so I don't know if this is new or not. The clock does work for me, as do the other admin functions that I have tried.
 
I have exactly the same issue on the VM a made yesterday , completly impossible to manage permession and services via the GUI.

And i really need those :/
 
Also when i launch polkit-gnome-authorization
these error show up in the terminal

Code:
** (polkit-gnome-authorization:5220): WARNING **: Cannot get PolKitCaller object for target (pid=5220): org.freedesktop.PolicyKit: Cannot look up start time for pid 5220

And when i launch services-admin , i get these messages :

Code:
[WARN  5420] Cannot lookup information for pid 5420: No such file or directory
[WARN  5420] polkit-caller.c:121:polkit_caller_unref(): caller != NULL
 Not built with -rdynamic so unable to print a backtrace

Sorry for the double post , it seems i couldn't edit my message.
 
when i start users-adminihave this:
Code:
corpse# users-admin

** (users-admin:58903): CRITICAL **: Cannot create session bus: Did not receive a reply. Possible causes include:
 the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network 
connection was broken.[WARN 58903] failed to load configuration file: /usr/local/etc/PolicyKit/PolicyKit.conf:18: parse error: junk
 after document element GConf Error: Failed to contact configuration server; some possible causes are that you need to enable TCP/IP 
networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for 
information. (Details -  1: Failed to get connection to session: Did not receive a reply. Possible causes include: 
the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout 
expired, or the network connection was broken.)

when I start polkit-gnome-authorization I have this:
Code:
corpse# polkit-gnome-authorization

** (polkit-gnome-authorization:58941): WARNING **: Couldn't connect to session bus: Did not receive a reply. Possible 
causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply 
timeout expired, or the network connection was broken.
** (polkit-gnome-authorization:58941): DEBUG: Already running
 
What do you have in /usr/local/etc/PolicyKit/PolicyKit.conf:18?
I have 13 lines in it.

Do you have an entry for 127.0.0.1 with your host name in /etc/hosts? Is lo0 127.0.0.1 and up?

Maybe something is missing in System->Preferences->Startup Applications?
Can you attach a screenshot?
 
Code:
<?xml version="1.0" encoding="UTF-8"?> <!-- -*- XML -*- -->

<!DOCTYPE pkconfig PUBLIC "-//freedesktop//DTD PolicyKit Configuration 1.0//EN"
"http://hal.freedesktop.org/releases/PolicyKit/1.0/config.dtd">

<!-- See the manual page PolicyKit.conf(5) for file format -->

<config version="0.1">
    <match user="root">
        <return result="yes"/>
    </match>
    <match user="corpse">
        <return result="yes"/>
    </match>
    <define_admin_auth group="wheel"/>
</config>

<config version="0.1">
<define_admin_auth group="wheel"/>
<match action="org.gnome.clockapplet.mechanism.settime">
<return result="yes"/>
</match>
<match action="org.freedesktop.hal.storage.mount-removable">
<return result="yes"/>
</match>
<match action="org.freedesktop.hal.storage.mount-fixed">
<return result="yes"/>
</match>
<match action="org.freedesktop.hal.storage.eject">
<return result="yes"/>
</match>
<match action="org.freedesktop.hal.storage.unmount-others">
<return result="yes"/>
</match>
<match action="org.freedesktop.hal.power-management.reboot">
<return result="yes"/>
</match>
<match action="org.freedesktop.hal.power-management.shutdown">
<return result="yes"/>
</match>
<match action="org.freedesktop.hal.power-management.hibernate">
<return result="yes"/>
</match>
<match action="org.freedesktop.hal.power-management.suspend">
<return result="yes"/>
</match>
</config>
 
Code:
# $FreeBSD: src/etc/hosts,v 1.16.32.1 2009/04/15 03:14:26 kensmith Exp $
#
# Host Database
#
# This file should contain the addresses and aliases for local hosts that
# share this file.  Replace 'my.domain' below with the domainname of your
# machine.
#
# In the presence of the domain name service or NIS, this file may
# not be consulted at all; see /etc/nsswitch.conf for the resolution order.
#
#
::1                     localhost localhost.ghostbsd.org
127.0.0.1               localhost localhost.ghostbsd.org
192.168.4.13            corpse.ghostbsd.org
#
# Imaginary network.
#10.0.0.2               myname.my.domain myname
#10.0.0.3               myfriend.my.domain myfriend
#
# According to RFC 1918, you can use the following IP networks for
# private nets which will never be connected to the Internet:
#
#       10.0.0.0        -   10.255.255.255
#       172.16.0.0      -   172.31.255.255
#       192.168.0.0     -   192.168.255.255
#
# In case you want to be able to connect to the Internet, you need
# real official assigned numbers.  Do not try to invent your own network
# numbers but instead get one from your network provider (if any) or
# from your regional registry (ARIN, APNIC, LACNIC, RIPE NCC, or AfriNIC.)
#
 
ericturgeon said:
Code:
[SIZE="2"]<?xml version="1.0" encoding="UTF-8"?> <!-- -*- XML -*- -->

<!DOCTYPE pkconfig PUBLIC "-//freedesktop//DTD PolicyKit Configuration 1.0//EN"
"http://hal.freedesktop.org/releases/PolicyKit/1.0/config.dtd">

<!-- See the manual page PolicyKit.conf(5) for file format -->

<config version="0.1">
    <match user="root">
        <return result="yes"/>
    </match>
    <match user="corpse">
        <return result="yes"/>
    </match>
    <define_admin_auth group="wheel"/>
[color="blue"]</config>[/color]

[color="red"]<config version="0.1">[/color][color="green"]
<define_admin_auth group="wheel"/>
<match action="org.gnome.clockapplet.mechanism.settime">
<return result="yes"/>
</match>
<match action="org.freedesktop.hal.storage.mount-removable">
<return result="yes"/>
</match>
<match action="org.freedesktop.hal.storage.mount-fixed">
<return result="yes"/>
</match>
<match action="org.freedesktop.hal.storage.eject">
<return result="yes"/>
</match>
<match action="org.freedesktop.hal.storage.unmount-others">
<return result="yes"/>
</match>
<match action="org.freedesktop.hal.power-management.reboot">
<return result="yes"/>
</match>
<match action="org.freedesktop.hal.power-management.shutdown">
<return result="yes"/>
</match>
<match action="org.freedesktop.hal.power-management.hibernate">
<return result="yes"/>
</match>
<match action="org.freedesktop.hal.power-management.suspend">
<return result="yes"/>
</match>[/color][color="red"]
</config>[/color][/SIZE]
Your xml is not well-formed.
You should move all the nodes inside the 2nd config node (the green lines) into the 1st one (before the blue line). Once it's empty, you have to delete it (the 2 red lines). Or try with the attached one.
I hope this will fix at least some error messages.
 

Attachments

  • PolicyKit.conf.bz2
    550 bytes · Views: 207
Back
Top