[FUG-BR] PolicyKit+Kde4 [Resolvido]

Danilo Egea daniloegea em yahoo.com.br
Sexta Outubro 30 12:46:57 BRST 2009


Marcus Vinicius wrote:
> Demorei Mas voltei =D
>
> Ae Danilo, funcionou por aqui tambem. Só
> que diferente de algumas documentações
> que mandam retirar do /etc/fstab o ponto de
> montagem eu deixei com e funcionou. Plugou,
> e aparece o popUp do dispositivo numa boa e
> com escrita já que deixei o rw no fstab. Meu
> Polkit.conf agora está assim:
>
> <config version="0.1">
>         <match action="org.freedesktop.hal.*">
>            <return result="yes"/>
>            </match>
>         <match user="m4rk">
>     <return result="yes"/>
>   </match>
>     <define_admin_auth group="wheel"/>
> </config>
>
> Se alguem precisar mando minhas confs.
>
> ./flw
>
>
>
> 2009/10/22 Marcus Vinicius <marcovvinicius at gmail.com>
>
>   
>> Fala ae Danilo,
>>
>> Vou fazer mais testes por aqui. Estas configurações
>> que me passou não rolou.
>>
>> Qualquer mudança comento.
>>
>>
>> t+
>>
>>
>>
>> 2009/10/21 Danilo Egea <daniloegea at yahoo.com.br>
>>
>>     
>>> Marcus Vinicius wrote:
>>>       
>>>> Blz Danilo,
>>>>
>>>>
>>>> Vou tentar estas opções e comento se funcionou.
>>>>
>>>> Embora, seguindo como o manual manda, somente acresentar
>>>> o usuario que se queira no PolicyKit.conf deveria funcionar.
>>>>
>>>> Enfim.
>>>>
>>>>
>>>> Outra coisa, sua saída do ck-list-sessions?
>>>>
>>>> está com a linha active = True ??
>>>>
>>>> ./vlw
>>>>
>>>>
>>>>
>>>>
>>>> 2009/10/21 Danilo Egea <daniloegea at yahoo.com.br>
>>>>
>>>>
>>>>         
>>>>> Marcus Vinicius wrote:
>>>>>
>>>>>           
>>>>>> Galera,
>>>>>>
>>>>>> Alguem que usa o kde4 ae tem este PolicyKit funcionando
>>>>>> para permitir montar automaticamente pendrives e afins?
>>>>>>
>>>>>> seguindo o man 5 PolicyKit.conf por exemplo, deixei meu
>>>>>> PolicyKit.conf assim:
>>>>>>
>>>>>> cat /usr/local/etc/PolicyKit/PolicyKit.conf
>>>>>>
>>>>>> <?xml version="1.0"?> <!-- -*- 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>
>>>>>>     <define_admin_auth group="wheel"/>
>>>>>>
>>>>>>     <match action="org.freedesktop.hal.storage.mount-removable">
>>>>>>           <match user="m4rk">
>>>>>>         <return result="yes"/>
>>>>>>     </match>
>>>>>> </match>
>>>>>> -->
>>>>>>
>>>>>> <config version="0.1">
>>>>>>   <match user="m4rk">
>>>>>>     <return result="yes"/>
>>>>>>   </match>
>>>>>>     <define_admin_auth group="wheel"/>
>>>>>> </config>
>>>>>>
>>>>>>
>>>>>> ou seja, dei permissão total ao meu usuário. [m4rk]. Mesmo assim ..
>>>>>>             
>>> nada.
>>>       
>>>>>> Pelas pesquisas que fiz, preciso ter esta variavel [active = True] na
>>>>>>
>>>>>>             
>>>>> saída
>>>>>
>>>>>           
>>>>>> deste
>>>>>> comando:
>>>>>>
>>>>>> [m4rk at yuko /usr/home/m4rk]$ ck-list-sessions
>>>>>> Session1:
>>>>>>         unix-user = '1001'
>>>>>>         realname = 'Marcus Vinicius'
>>>>>>         seat = 'Seat2'
>>>>>>         session-type = ''
>>>>>>         active = FALSE
>>>>>>         x11-display = ':0'
>>>>>>         x11-display-device = ''
>>>>>>         display-device = '   ?   '
>>>>>>         remote-host-name = ''
>>>>>>         is-local = TRUE
>>>>>>         on-since = '2009-10-21T12:50:02.877676Z'
>>>>>>         login-session-id = ''
>>>>>>
>>>>>> Mas não faço a minima ideia onde altero esta variável ..
>>>>>>
>>>>>> e claro, no rc.conf:
>>>>>>
>>>>>> hald_enable="YES"
>>>>>> dbus_enable="YES"
>>>>>>
>>>>>>
>>>>>> Alguma ideia?
>>>>>>
>>>>>>
>>>>>> ./flw
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>             
>>>>> Opa, cara eu uso XFCE4.6 e o HAL ta funcionando certinho, depois de
>>>>> fuçar pra cacete, claro hehehe, vou mostrar tudo q fiz pro eu desktop
>>>>> ficar legal.
>>>>>
>>>>> para reiniciar e desligar usando o XFCE pelo HAL meu
>>>>> /usr/local/etc/PolicyKit/PolicyKit.conf ficou assim:
>>>>>
>>>>> <match action="org.freedesktop.hal.power-management.shutdown">
>>>>>    <return result="yes"/>
>>>>> </match>
>>>>>
>>>>> <match action="org.freedesktop.hal.power-management.reboot">
>>>>>    <return result="yes"/>
>>>>> </match>
>>>>>
>>>>>    <match user="barba">
>>>>>     <return result="yes"/>
>>>>>    </match>
>>>>>    <define_admin_auth group="wheel"/>
>>>>> </config>
>>>>>
>>>>>
>>>>> agora q vem a merda, eu mexi tanto que nao tenho certeza do q fez o HAL
>>>>> funcionar certinho, mas vamos la:
>>>>> no /usr/local/etc/dbus-1/system.d/hal.conf eu coloquei:
>>>>>  <policy user="barba">
>>>>>    <allow own="org.freedesktop.Hal"/>
>>>>>  </policy>
>>>>>
>>>>> e no /usr/local/etc/dbus-1/system.d/org.freedesktop.PolicyKit.conf:
>>>>>  <policy user="barba">
>>>>>    <allow own="org.freedesktop.PolicyKit"/>
>>>>>  </policy>
>>>>>
>>>>>
>>>>> e para finalizar a desgraça com chave de ouro coloquei meu usuario no
>>>>> grupo polkit e haldaemon.
>>>>>
>>>>> To usando FreeBSD 8.0-RC-1.
>>>>>
>>>>>
>>>>> #!/usr/sbin/dtrace -s
>>>>> lista:os_mais_chatos::entry
>>>>> {
>>>>>    printf("eu sei, eu sei, fiz gambiarra e nao sei o que fez o HAL
>>>>> funcionar, nao precisam me lembrar");
>>>>>    exit(0);
>>>>> }
>>>>>
>>>>> lista:irado::entry
>>>>> {
>>>>>    flames("/dev/null");
>>>>> }
>>>>>
>>>>> --
>>>>> Danilo Egêa Gondolfo
>>>>> Email/MSN - daniloegea at yahoo.com.br
>>>>> Skype - daniloegea
>>>>> Twitter - http://twitter.com/daniloegea
>>>>> Blog - http://daniloegea.wordpress.com
>>>>>
>>>>> __________________________________________________
>>>>> Faça ligações para outros computadores com o novo Yahoo! Messenger
>>>>> http://br.beta.messenger.yahoo.com/
>>>>> -------------------------
>>>>> Histórico: http://www.fug.com.br/historico/html/freebsd/
>>>>> Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd
>>>>>
>>>>>
>>>>>           
>>>>
>>>>
>>>>         
>>> Cara, aqui esse comando não retorna nada...   =/
>>>
>>> --
>>> Danilo Egêa Gondolfo
>>> Email/MSN - daniloegea at yahoo.com.br
>>> Skype - daniloegea
>>> Twitter - http://twitter.com/daniloegea
>>> Blog - http://daniloegea.wordpress.com
>>>
>>> __________________________________________________
>>> Faça ligações para outros computadores com o novo Yahoo! Messenger
>>> http://br.beta.messenger.yahoo.com/
>>> -------------------------
>>> Histórico: http://www.fug.com.br/historico/html/freebsd/
>>> Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd
>>>
>>>       
>>
>>
>>
>>     
> -------------------------
> Histórico: http://www.fug.com.br/historico/html/freebsd/
> Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd
>
>   
Massa, bom aqui eu não deixei nenhum ponto de montagem no fstab e esta 
funcionando certinho. Lembrando que uso XFCE-4.6.1 e FreeBSD 8.0-RC2.
Valew :)

-- 
Danilo Egêa Gondolfo
Email/MSN - daniloegea at yahoo.com.br
Skype - daniloegea
Twitter - http://twitter.com/daniloegea
Blog - http://daniloegea.wordpress.com

__________________________________________________
Faça ligações para outros computadores com o novo Yahoo! Messenger 
http://br.beta.messenger.yahoo.com/ 


Mais detalhes sobre a lista de discussão freebsd