View Full Version : [Solved] gnome freebsd
ericturgeon
June 27th, 2009, 20:57
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.
SirDice
June 28th, 2009, 09:52
Make sure you start GNOME using GDM. Also make sure hald and dbus are running. I haven't had any issues yet.
ericturgeon
June 28th, 2009, 15:48
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.
ale
June 28th, 2009, 16:10
Did you tried playing with System->Preferences->Authorizations (polkit-gnome-authorization)?
ericturgeon
June 28th, 2009, 19:41
Ale no I don't try. i gone a try thatand let you know.
ericturgeon
June 28th, 2009, 20:11
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
ale
June 28th, 2009, 21:03
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?
ericturgeon
June 29th, 2009, 00:03
Yes
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#
# 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
ale
June 29th, 2009, 00:22
Ok, but what is exactly the problem you are facing using for example users-admin?
ericturgeon
June 29th, 2009, 00:39
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.272
ale
June 29th, 2009, 00:55
I've just tried to add a user. Everything seems fine in the GUI, but in the console I get:(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 (http://lists.freebsd.org/pipermail/freebsd-gnome/)
DrJ
June 29th, 2009, 01:28
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.
ericturgeon
June 29th, 2009, 01:31
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.
ale
June 29th, 2009, 02:39
I'm not sure I've understood, but what pressing the Unlock button?
ericturgeon
June 29th, 2009, 04:17
look my screenshot you see what I talk about.
http://img134.imageshack.us/img134/8764/screenshot2wqf.png
I cant press add or delete button. I cant change nothing there.
On clock applet I cant press time settings.
System->Preferences->Authorizations I can modify noting.
1 picture worth 1000 word.
Thanks
DrJ
June 29th, 2009, 05:05
Use gnome_enable to start all of the proper Gnome-related daemons. You will like it.
ericturgeon
June 29th, 2009, 05:45
DrJ I have gnome_enable="YES" in my rc.conf i use freebsd for a 1.5 year now now all that.
DrJ
June 29th, 2009, 06:56
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.
Mr_Kzimir
July 3rd, 2009, 17:46
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 :/
Mr_Kzimir
July 3rd, 2009, 17:54
Also when i launch polkit-gnome-authorization
these error show up in the terminal
** (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 :
[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.
ericturgeon
July 4th, 2009, 04:00
when i start users-adminihave this:
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:
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?
ericturgeon
July 4th, 2009, 12:20
<?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>
ericturgeon
July 4th, 2009, 12:24
# $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.)
#
<?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>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.
ericturgeon
July 5th, 2009, 05:21
thanks a lot ale!!! I think I have to learn xml thanks.
Mr_Kzimir
July 6th, 2009, 09:34
Thanks for the xml file ale.
But thiss hasn't fix the issue for me :/, do you have any other though on what might be causing that issue ?
Thanks for the xml file ale.
But thiss hasn't fix the issue for me :/, do you have any other though on what might be causing that issue ?What I've posted is just a fix for the customized ericturgeon's file as he was getting an error about that. I can't say if that solved the problem for him. Maybe we have to wait for more feedbacks.
Can you tell us more about what you are getting?
Mr_Kzimir
July 6th, 2009, 14:07
Remaking a new vm atm , sending you files asap :)
ericturgeon
July 7th, 2009, 01:04
ok that solve the problem for me and thanks a lot. All work great.
ericturgeon
July 7th, 2009, 01:16
Thanks for the xml file ale.
But this hasn't fix the issue for me :/, do you have any other though on what might be causing that issue ?
can you post your original PolicyKit.conf we can see if is the problem i have read a little bit of doc xml. I understand a little more now.
Mr_Kzimir
July 7th, 2009, 10:56
Sorry was unable to answer yesterday , but i found out where was my mistake.
I didn't proprely created /proc.
Now everything run smooth :)
forbiddenzone
May 24th, 2010, 21:51
how can i use that xml file?
ericturgeon
May 25th, 2010, 14:29
how can i use that xml file?
Can you be more specific.
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.