Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Tips and tricks for ConsoleKit, PolicyKit, and udev helpers
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page Previous  1, 2, 3, 4 ... 14, 15, 16  Next  
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
b3cks
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1481
Location: Bremen (GER)

PostPosted: Sat Jan 22, 2011 4:53 pm    Post subject: Reply with quote

IgorPashev wrote:
xfce should startx with
Code:
ck-launch-session dbus-launch xfce4-session
within /etc/xdg/xfce4/xinitrc

ck-launch-session startxfce4 does not work for me (no power managment, no mount)
and
ck-launch-session xfce4-session is not enough (I can't mount/umount media by desktop or Thunar,
but can do it in terminal emulator).

I can approve this. Thanks for this info!
_________________
I am /root and if you see me laughing you better have a backup.
Back to top
View user's profile Send private message
rsa4046
l33t
l33t


Joined: 07 Feb 2005
Posts: 660
Location: The Big H, a bit SSW

PostPosted: Mon Jan 24, 2011 3:36 am    Post subject: Reply with quote

Awesome!
Code:
exec ck-launch-session dbus-launch --sh-syntax --exit-with-session fluxbox
now fixes all my problems with a dysfunctional trash:///, Computer:///, et al. in Nautilus running fluxbox as the WM :D :D :D
Thanks ssuominen!
Back to top
View user's profile Send private message
Hammett
Apprentice
Apprentice


Joined: 26 Jan 2005
Posts: 217
Location: Barcelona, Catalonia

PostPosted: Mon Jan 24, 2011 11:02 pm    Post subject: No automount in XFCE 4.8 Reply with quote

Hi all!

I can't get automount to work on Xfce 4.8. I followed to the letter https://forums.gentoo.org/viewtopic-t-858965-highlight-.html and I managed to get reboot and shutdown buttons to work properly, but I can't work out what might be wrong because I can't see any of my USB sticks nor external HDD when I plug them

I don't see them neither in the desktop, nor in Thunar (thunar-volman installed).

I really don't know what info to post, so I guess is better that you ask me what to put and I will show you.

I use slim as a login manager and I start Xfce with
Code:
ck-launch-session dbus-launch startxfce4
and that enables the reboot/shutdown buttons.

Thanks for your help!
_________________
I don't fear the people. I fear the demon inside them.
Back to top
View user's profile Send private message
gerdesj
l33t
l33t


Joined: 29 Sep 2005
Posts: 621
Location: Yeovil, Somerset, UK

PostPosted: Tue Jan 25, 2011 12:10 am    Post subject: Re: No automount in XFCE 4.8 Reply with quote

At the bottom of the HOWTO it says you should run

Code:

$ ck-list-sessions
...
   active = TRUE                                         <- The most important part.


Do you see that on your system? ie active = TRUE.

Cheers
Jon
Back to top
View user's profile Send private message
Hammett
Apprentice
Apprentice


Joined: 26 Jan 2005
Posts: 217
Location: Barcelona, Catalonia

PostPosted: Tue Jan 25, 2011 12:42 am    Post subject: Reply with quote

Yes, I do have an active session (otherwise I wouldn't be able to shutdown my system)
Code:
Session2:
   unix-user = '1000'
   realname = '(null)'
   seat = 'Seat1'
   session-type = ''
   active = TRUE
   x11-display = ':0.0'
   x11-display-device = '/dev/tty7'
   display-device = ''
   remote-host-name = ''
   is-local = TRUE
   on-since = '2011-01-25T00:21:45.204477Z'
   login-session-id = '1'
Session1:
   unix-user = '1000'
   realname = '(null)'
   seat = 'Seat2'
   session-type = ''
   active = FALSE
   x11-display = ':0.0'
   x11-display-device = ''
   display-device = ''
   remote-host-name = ''
   is-local = TRUE
   on-since = '2011-01-25T00:21:44.972068Z'
   login-session-id = '1'

_________________
I don't fear the people. I fear the demon inside them.
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Tue Jan 25, 2011 2:58 am    Post subject: Reply with quote

Can you mount the devices in terminal using 'udisks --mount' ?
Back to top
View user's profile Send private message
SamuliSuominen
Retired Dev
Retired Dev


Joined: 30 Sep 2005
Posts: 2133
Location: Finland

PostPosted: Tue Jan 25, 2011 4:59 am    Post subject: Reply with quote

VoidMage wrote:
Can you mount the devices in terminal using 'udisks --mount' ?


And if the answer is "Yes" to this question: Can you mount the devices in terminal using gvfs-mount? Is gnome-base/gvfs built with USE="-hal udev gdu"?

Thunar is using gvfs, gvfs is using gnome-disk-utility and that's using udisks.
Also that dbus-launch is not necessary for Xfce, it in fact breaks the setup. That could be the problem as well.
Back to top
View user's profile Send private message
Fenril
Apprentice
Apprentice


Joined: 16 May 2009
Posts: 209

PostPosted: Tue Jan 25, 2011 8:10 am    Post subject: Reply with quote

Hi,

Same problem here, but i resolved reboot/shutdown as i said here however i still can't mount/umount anything as user. Thunar/Xfce detects well any usb key (icon appears on the desktop) but i can't neither browse nor mount/umount key. I've tried creating polkit rules like it was said there, no success.

See my sessions :
Code:
Session1:
   unix-user = '1000'
   realname = '(null)'
   seat = 'Seat1'
   session-type = ''
   active = FALSE
   x11-display = ''
   x11-display-device = ''
   display-device = '/dev/tty1'
   remote-host-name = ''
   is-local = TRUE
   on-since = '2011-01-25T07:50:37.505887Z'
   login-session-id = '1'
   idle-since-hint = '2011-01-25T07:51:10.002939Z'
Session2:
   unix-user = '1000'
   realname = '(null)'
   seat = 'Seat1'
   session-type = ''
   active = TRUE
   x11-display = ':0'
   x11-display-device = '/dev/tty3'
   display-device = '/dev/tty1'
   remote-host-name = ''
   is-local = TRUE
   on-since = '2011-01-25T07:50:47.091448Z'
   login-session-id = '1'


Thanks for your help.
Back to top
View user's profile Send private message
tomk
Bodhisattva
Bodhisattva


Joined: 23 Sep 2003
Posts: 7221
Location: Sat in front of my computer

PostPosted: Tue Jan 25, 2011 9:02 am    Post subject: Reply with quote

Merged from here.
_________________
Search | Read | Answer | Report | Strip
Back to top
View user's profile Send private message
Hammett
Apprentice
Apprentice


Joined: 26 Jan 2005
Posts: 217
Location: Barcelona, Catalonia

PostPosted: Tue Jan 25, 2011 9:22 am    Post subject: Reply with quote

ssuominen wrote:
VoidMage wrote:
Can you mount the devices in terminal using 'udisks --mount' ?


And if the answer is "Yes" to this question: Can you mount the devices in terminal using gvfs-mount? Is gnome-base/gvfs built with USE="-hal udev gdu"?

Thunar is using gvfs, gvfs is using gnome-disk-utility and that's using udisks.
Also that dbus-launch is not necessary for Xfce, it in fact breaks the setup. That could be the problem as well.


udisks can mount the usb stick with
Code:
udisks --mount /dev/sdb1

gvfs cannot mount the same device
Code:
[hammett][/home/hammett/Desktop] $ gvfs-mount /dev/sdb1
Error mounting location: volume doesn't implement mount

GVFS 1.6.6-r1 is compiled with gdu,udev,-hal,-bluetooth

I have tried both with dbus-launch and without it and the issue is the same.

EDIT: This might be a shot in the dark, but I had created udev rules to make symlinks in /dev so I could manually mount them using /etc/fstab (for when I was using fluxbox). This could cause problems to udisks/gvfs?
_________________
I don't fear the people. I fear the demon inside them.
Back to top
View user's profile Send private message
hal2050
n00b
n00b


Joined: 19 Jul 2008
Posts: 47

PostPosted: Tue Jan 25, 2011 1:52 pm    Post subject: Reply with quote

first of all thanks for this sticky. nevertheless i don't get a working setup in conjunction with qingy (active=false).

are any qingy users around with a working configuration?
about a week ago i started a thread about my goal resulting in a non working setup. i really don't have a clue what might be wrong. i posted a lot of details here: https://forums.gentoo.org/viewtopic-t-860805.html

would be great if anybody would take a look at the thread.
Back to top
View user's profile Send private message
SamuliSuominen
Retired Dev
Retired Dev


Joined: 30 Sep 2005
Posts: 2133
Location: Finland

PostPosted: Tue Jan 25, 2011 2:19 pm    Post subject: Reply with quote

Hammett wrote:

EDIT: This might be a shot in the dark, but I had created udev rules to make symlinks in /dev so I could manually mount them using /etc/fstab (for when I was using fluxbox). This could cause problems to udisks/gvfs?


Yes, that would be a problem. For example, if you have cdrom in /etc/fstab, cdroms won't get mounted by Thunar (gvfs) anymore.
Back to top
View user's profile Send private message
rsa4046
l33t
l33t


Joined: 07 Feb 2005
Posts: 660
Location: The Big H, a bit SSW

PostPosted: Tue Jan 25, 2011 2:55 pm    Post subject: Reply with quote

Hammett wrote:

gvfs cannot mount the same device
Code:
[hammett][/home/hammett/Desktop] $ gvfs-mount /dev/sdb1
Error mounting location: volume doesn't implement mount

Hammett: I tried gvfs-mount /dev/<...> , got same "volume doesn't implement mount" error, but with
Code:
$ gvfs-mount -d /dev/sdc1
although gvfs-mount reports failure
Code:
(gvfs-mount:14428): GLib-GIO-CRITICAL **: g_mount_get_root: assertion `G_IS_MOUNT (mount)' failed

(gvfs-mount:14428): GLib-GIO-CRITICAL **: g_file_get_path: assertion `G_IS_FILE (file)' failed
Mounted /dev/sdc1 at (null)

(gvfs-mount:14428): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

(gvfs-mount:14428): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
mount reports success
Code:
$ mount
<snip>
/dev/sdc1 on /media/03c0979f-71a7-4ed9-b222-bf3c7dd7c1c3 type jfs (rw,nosuid,nodev,uhelper=udisks)
udisk (un)mounts without incident.

Edit added: gvfs-mount can unmount without complaints using the mount location
Code:
$ gvfs-mount -u /media/03c0979f-71a7-4ed9-b222-bf3c7dd7c1c3
Back to top
View user's profile Send private message
hal2050
n00b
n00b


Joined: 19 Jul 2008
Posts: 47

PostPosted: Tue Jan 25, 2011 5:45 pm    Post subject: Reply with quote

hm, now i tried the debug mode of consolekit and found the warnings below:

Code:
Jan 25 18:31:10 XBMC console-kit-daemon[1852]: DEBUG: VT_WAITACTIVE for vt 48
Jan 25 18:31:10 XBMC console-kit-daemon[1852]: DEBUG: Waiting for child with pid 1915
Jan 25 18:31:10 XBMC console-kit-daemon[1852]: DEBUG: In _child_watch for pid 1915
Jan 25 18:31:10 XBMC console-kit-daemon[1852]: DEBUG: Done waiting for child with pid 1915
Jan 25 18:31:10 XBMC console-kit-daemon[1852]: DEBUG: Freeing ChildData 0xb7209bc8
Jan 25 18:31:10 XBMC console-kit-daemon[1852]: DEBUG: Emitting seat-added: /org/freedesktop/ConsoleKit/Seat1
Jan 25 18:31:10 XBMC console-kit-daemon[1852]: DEBUG: Writing log for event: 1295976670.095 type=SEAT_ADDED : seat-id='Seat1' seat-kind=0
Jan 25 18:31:10 XBMC console-kit-daemon[1852]: WARNING: Failed to acquire org.freedesktop.ConsoleKit
Jan 25 18:31:10 XBMC console-kit-daemon[1852]: WARNING: Could not acquire name; bailing out
Jan 25 18:31:48 XBMC qingy: PAM pam_setcred: NULL pam handle passed
Jan 25 18:31:48 XBMC qingy: PAM pam_close_session: NULL pam handle passed
Jan 25 18:31:48 XBMC qingy: PAM pam_end: NULL pam handle passed
Jan 25 18:31:48 XBMC qingy: PAM pam_open_session: NULL pam handle passed
Jan 25 18:31:48 XBMC qingy: PAM pam_getenvlist: NULL pam handle passed
Jan 25 18:31:48 XBMC qingy: PAM pam_setcred: NULL pam handle passed
Jan 25 18:31:48 XBMC acpid: client 1666[0:1002] has disconnected
Jan 25 18:31:48 XBMC acpid: client 1666[0:1002] has disconnected
Jan 25 18:31:48 XBMC acpid: client connected from 1944[0:1002]
Jan 25 18:31:48 XBMC acpid: 1 client rule loaded
Jan 25 18:31:48 XBMC acpid: client connected from 1944[0:1002]
Jan 25 18:31:48 XBMC acpid: 1 client rule loaded
Jan 25 18:37:20 XBMC qingy: PAM pam_setcred: NULL pam handle passed
Jan 25 18:37:20 XBMC qingy: PAM pam_close_session: NULL pam handle passed
Jan 25 18:37:20 XBMC qingy: PAM pam_end: NULL pam handle passed
Jan 25 18:37:20 XBMC qingy: PAM pam_open_session: NULL pam handle passed
Jan 25 18:37:20 XBMC qingy: PAM pam_getenvlist: NULL pam handle passed
Jan 25 18:37:20 XBMC qingy: PAM pam_setcred: NULL pam handle passed
Jan 25 18:37:21 XBMC acpid: client 1944[0:1002] has disconnected
Jan 25 18:37:21 XBMC acpid: client 1944[0:1002] has disconnected
Jan 25 18:37:21 XBMC acpid: client connected from 2175[0:1002]
Jan 25 18:37:21 XBMC acpid: 1 client rule loaded
Jan 25 18:37:21 XBMC acpid: client connected from 2175[0:1002]
Jan 25 18:37:21 XBMC acpid: 1 client rule loaded


what could cause these warnings? i assume this puts my session into active=false state?
Back to top
View user's profile Send private message
SamuliSuominen
Retired Dev
Retired Dev


Joined: 30 Sep 2005
Posts: 2133
Location: Finland

PostPosted: Tue Jan 25, 2011 5:52 pm    Post subject: Reply with quote

hal2050 wrote:

Code:

Jan 25 18:31:10 XBMC console-kit-daemon[1852]: WARNING: Failed to acquire org.freedesktop.ConsoleKit
Jan 25 18:31:10 XBMC console-kit-daemon[1852]: WARNING: Could not acquire name; bailing out



Is there su or sudo in between somewhere where environment variables get lost? Like $CK_LAUNCH_SESSION or DBUS_SESSION_BUS_ADDRESS.
Or perhaps you need to rebuild dbus-glib after dev-libs/glib upgrade? That's a guess, btw...
Back to top
View user's profile Send private message
hal2050
n00b
n00b


Joined: 19 Jul 2008
Posts: 47

PostPosted: Tue Jan 25, 2011 6:04 pm    Post subject: Reply with quote

Quote:
Is there su or sudo in between somewhere where environment variables get lost? Like $CK_LAUNCH_SESSION or DBUS_SESSION_BUS_ADDRESS.


not anymore. i switched to qingy and let it do all the login stuff since we/i found out it's not a good idea to login with "inittab-su-solutions". i defined a session in "/etc/X11/Sessions" which gets picked up by qingy.

Code:
ck-launch-session /usr/lib/xbmc/xbmc.bin --standalone --nolirc


also had

Code:
ck-launch-session dbus-launch --sh-syntax --exit-with-session /usr/lib/xbmc/xbmc.bin --standalone --nolirc


i'm gonna try your proposal to rebuild dbus-glib after dev-libs/glib. atm i remove every single piece of consolekit to emerge it again cleanly.

Quote:
And propably stupid question but is ConsoleKit daemon running? /etc/init.d/consolekit...

well, yes. it's started. :)

on the other hand i have to mention that everything works like expected in case i login my user manually on the console and execute "startx" manually. so my conclusion that something goes wrong where qingy handles the login.
Back to top
View user's profile Send private message
SamuliSuominen
Retired Dev
Retired Dev


Joined: 30 Sep 2005
Posts: 2133
Location: Finland

PostPosted: Tue Jan 25, 2011 7:07 pm    Post subject: Reply with quote

[quote="hal2050"]
Quote:

on the other hand i have to mention that everything works like expected in case i login my user manually on the console and execute "startx" manually. so my conclusion that something goes wrong where qingy handles the login.


Did you try without the 'nox11' parameter in /etc/pam.d/system-login (referred in first post in this thread) ? Need at least qingy 1.0.0 to support pam_ck_connector.so module from ConsoleKit.
Back to top
View user's profile Send private message
hal2050
n00b
n00b


Joined: 19 Jul 2008
Posts: 47

PostPosted: Tue Jan 25, 2011 7:15 pm    Post subject: Reply with quote

yes i did.

cat /etc/pam.d/system-login
Code:
auth      required   pam_shells.so
auth      required   pam_nologin.so
auth      include      system-auth
             
account      required   pam_access.so
account      required   pam_nologin.so
account      include      system-auth
 
password   include      system-auth
 
session         optional        pam_loginuid.so
session      required   pam_env.so
session      include      system-auth

session      optional   pam_ck_connector.so


cat /etc/pam.d/qingy
Code:
# File autogenerated by pamd_mimic in pam eclass


auth   include      system-local-login
account   include      system-local-login
password   include      system-local-login
session   include      system-local-login


Code:
[I] sys-apps/qingy
     Available versions:  1.0.0 {X crypt directfb emacs gpm opensslcrypt pam static}
     Installed versions:  1.0.0(11:13:00 01/25/11)(X pam -crypt -directfb -emacs -gpm -opensslcrypt -static)
     Homepage:            http://qingy.sourceforge.net/
     Description:         a DirectFB getty replacement


edit:
rebuilding glib and dbus-glib didn't help unfortunaltey.
Back to top
View user's profile Send private message
NumaSan
Tux's lil' helper
Tux's lil' helper


Joined: 22 Aug 2003
Posts: 100
Location: Copenhagen

PostPosted: Wed Jan 26, 2011 4:31 am    Post subject: Reply with quote

Nice thread, thanks ssuominen! If only I could refer to it when I set up my HAL-free system two months ago ;)

A lot of my initial problems was because I didn't have "CONFIG_AUDITSYSCALL=y" in my kernel, and found out via comment #8 and #9 here:
https://bugs.gentoo.org/345585

Everything is working fairly well now, using 'startx' and openbox. My .xinitrc:
Code:
exec ck-launch-session openbox-session

I don't have 'dbus-launch --sh-syntax --exit-with-session' - what am I missing by leaving it out?

I also manually mount USB-disks with 'udisks --mount' because, as I found out here just now, I don't have the "gdu" USE-flag in GVFS and I use pcmanfm-0.9.7-r2. Think I will wait for pcmanfm-0.9.8 instead of compiling gnome-disk-utility though...
_________________
--- checking for native Win32 platform... no
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6095
Location: Dallas area

PostPosted: Wed Jan 26, 2011 11:48 am    Post subject: Reply with quote

pcmanfm-0.9.8 seems to be working well, though I shut off automount (on my system)
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
Hammett
Apprentice
Apprentice


Joined: 26 Jan 2005
Posts: 217
Location: Barcelona, Catalonia

PostPosted: Wed Jan 26, 2011 8:39 pm    Post subject: Reply with quote

ssuominen wrote:
Hammett wrote:

EDIT: This might be a shot in the dark, but I had created udev rules to make symlinks in /dev so I could manually mount them using /etc/fstab (for when I was using fluxbox). This could cause problems to udisks/gvfs?


Yes, that would be a problem. For example, if you have cdrom in /etc/fstab, cdroms won't get mounted by Thunar (gvfs) anymore.


That was the key! Once I commented those lines, Thunar mounts the USB drives just fine.

Thanks a lot for you help Ssuominen!!
_________________
I don't fear the people. I fear the demon inside them.
Back to top
View user's profile Send private message
while true
Guru
Guru


Joined: 07 Apr 2010
Posts: 532
Location: Ljubljana, Slovenia

PostPosted: Thu Jan 27, 2011 12:13 pm    Post subject: Reply with quote

Newbie, take two:

@ssuominen, man, I do search a lot, and I found you posts most helpfull (latest with libpng) and I do most appreciate your input, but...
You are too far ahead, please bear with this newbie...


I have slim for login.

I will follow the steps from this thread's first post.
Below are the steps I found relevant. I do understand some of them, and I can do (execute) some of them. For the sake of all newbies, even if I do not understand, could you, I kindly ask, please, at least make the walktrough so I can do it?

1/ I will modify my make.config like so:
USE="-hal consolekit dbus device-mapper pam policykit udev"
1/ understood, can do.

2/
Code:
C6820s ~ # emerge >=sys-apps/dbus-1.4.1 >=dev-libs/dbus-glib-0.92 >=sys-auth/pambase-20101024 >=gnome-base/gvfs-1.6.6-r1 >=sys-apps/shadow-4.1.4.2-r6 >=sys-fs/udisks-1.0.2 >=sys-power/upower-0.9.7 >=sys-auth/polkit-0.99-r1 -pv
-su: =sys-apps/dbus-1.4.1: No such file or directory
C6820s ~ #

What is happening? is something wrong with this syntax?
If I use = insrtead of >= it can emerge.
2/ understood, can not do

3/ "Also install polkit-gnome, lxpolkit or polkit-kde depending on your desktop."
Now this is very confusing, is this tutorial for xfce? I have and use xfce...
...so what should I add to 2nd step?
3/ not understood, can not do

4/ "You need also polkit-gnome (...), or lxpolkit (this works with both of LXDE and Xfce in fact)"
even more confusing, or is this paragraph just the repetition of one above?
4/ not understood, can not do

5/ "Removing legacy cruft so they don't interfere with the setup"
what does 'cruft' mean. Regardless of my understanding, I can execute code (remove) listed below that line. Also, I have only hal, not others.
Code:
C6820s ~ # emerge -pv -C hal policykit devicekit devicekit-disks devicekit-power
 * This action can remove important packages! In order to be safer, use
 * `emerge -pv --depclean <atom>` to check for reverse dependencies before
 * removing packages.

>>> These are the packages that would be unmerged:

--- Couldn't find 'null/policykit' to unmerge.

--- Couldn't find 'null/devicekit' to unmerge.

--- Couldn't find 'null/devicekit-disks' to unmerge.

--- Couldn't find 'null/devicekit-power' to unmerge.

 sys-apps/hal
    selected: 0.5.14-r4
   protected: none
     omitted: none

All selected packages: sys-apps/hal-0.5.14-r4

>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.

C6820s ~ #

At this point I do not understand, how must I put in my make.conf use "policykit" when I am about to uninstall "policykit"?!?
5/ not understood, can do

6/ "Hint" This is not to have hal ever after? - a line of actual code would be nice, please.
6/ understood, can not do

7/ kernel options, again, I could not make (understand) any of it
I followed the steps a couple of posts below to find out that I (guess) already have that (author: slack---line -thanks!).
7/ understood, can do


8/ Starting correct daemon
8/ understood, can do

9/ Method to start Xfce from startx... even I can see that this is not ok...
I am guessing I have to modify my .xinitrc file to loot like that output, right?
9/ understood, can do

10/ /etc/pam.d/system-login modification, excellent example!!!
10/ not understood, can do

11/ "Also make sure you have "ck-launch-session" included in the login_cmd line in /etc/slim.conf, if you use slim as your display manager."
Right now I have:
Code:
login_cmd           exec /bin/bash -login /usr/share/slim/Xsession %session

Could I bother you for correct line of code? Where exactly shoud I put "ck-launch-session"?
11/ not understood, can not do


12/ the end
Code:
C6820s ~ # ck-list-sessions
C6820s ~ #

12/ not understood, can not do





At the end of it all, the point is to do it, so I can eventually understand it.
I need OS now, and not in far future after I learned and understood all gentoo stuff so i can do it. Please do help to spread gentoo...

Thank you.
_________________
Kind regards, Goran Mitic

alive
while true
kick ass
Back to top
View user's profile Send private message
Hammett
Apprentice
Apprentice


Joined: 26 Jan 2005
Posts: 217
Location: Barcelona, Catalonia

PostPosted: Thu Jan 27, 2011 3:12 pm    Post subject: Reply with quote

I might help a little bit here...

while true wrote:
Newbie, take two:

2/
Code:
C6820s ~ # emerge >=sys-apps/dbus-1.4.1 >=dev-libs/dbus-glib-0.92 >=sys-auth/pambase-20101024 >=gnome-base/gvfs-1.6.6-r1 >=sys-apps/shadow-4.1.4.2-r6 >=sys-fs/udisks-1.0.2 >=sys-power/upower-0.9.7 >=sys-auth/polkit-0.99-r1 -pv
-su: =sys-apps/dbus-1.4.1: No such file or directory
C6820s ~ #

What is happening? is something wrong with this syntax?
If I use = insrtead of >= it can emerge.
2/ understood, can not do

Just emerge the packages without the >=. Just make sure you are emerging the correct versions. Emerge with -pv for verbose and pretend to check for versions.
If some packages you want to install are lower versions, add them to your package.keywords with
Code:
echo name-of-package >> /etc/portage/package.keywords
(note the ">>")

while true wrote:

3/ "Also install polkit-gnome, lxpolkit or polkit-kde depending on your desktop."
Now this is very confusing, is this tutorial for xfce? I have and use xfce...
...so what should I add to 2nd step?
3/ not understood, can not do

Install one of those... it can be either polkit-gnome, polkit-kde or lxpolkit. Since you use xfce, I would recommend polkit-gnome

while true wrote:

4/ "You need also polkit-gnome (...), or lxpolkit (this works with both of LXDE and Xfce in fact)"
even more confusing, or is this paragraph just the repetition of one above?
4/ not understood, can not do

Install gnome-polkit and you're good to go
while true wrote:


5/ "Removing legacy cruft so they don't interfere with the setup"
what does 'cruft' mean. Regardless of my understanding, I can execute code (remove) listed below that line. Also, I have only hal, not others.
Code:
C6820s ~ # emerge -pv -C hal policykit devicekit devicekit-disks devicekit-power
 * This action can remove important packages! In order to be safer, use
 * `emerge -pv --depclean <atom>` to check for reverse dependencies before
 * removing packages.

>>> These are the packages that would be unmerged:

--- Couldn't find 'null/policykit' to unmerge.

--- Couldn't find 'null/devicekit' to unmerge.

--- Couldn't find 'null/devicekit-disks' to unmerge.

--- Couldn't find 'null/devicekit-power' to unmerge.

 sys-apps/hal
    selected: 0.5.14-r4
   protected: none
     omitted: none

All selected packages: sys-apps/hal-0.5.14-r4

>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.

C6820s ~ #

At this point I do not understand, how must I put in my make.conf use "policykit" when I am about to uninstall "policykit"?!?
5/ not understood, can do

Uninstall hal and other dependencies so they do not mess up with consolekit/polkit
There are 2 packages of policykit: Policykit and Polkit. You need to install polkit and not the other one, but you need the USE flag in order to emerge.
while true wrote:


6/ "Hint" This is not to have hal ever after? - a line of actual code would be nice, please.
6/ understood, can not do

7/ kernel options, again, I could not make (understand) any of it
I followed the steps a couple of posts below to find out that I (guess) already have that (author: slack---line -thanks!).
7/ understood, can do


8/ Starting correct daemon
8/ understood, can do

9/ Method to start Xfce from startx... even I can see that this is not ok...
I am guessing I have to modify my .xinitrc file to loot like that output, right?
9/ understood, can do

10/ /etc/pam.d/system-login modification, excellent example!!!
10/ not understood, can do

11/ "Also make sure you have "ck-launch-session" included in the login_cmd line in /etc/slim.conf, if you use slim as your display manager."
Right now I have:
Code:
login_cmd           exec /bin/bash -login /usr/share/slim/Xsession %session

Could I bother you for correct line of code? Where exactly shoud I put "ck-launch-session"?
11/ not understood, can not do

It will be easier in this case to modify /etc/X11/Sessions/Xfce to add "ck-launch-session" just before startxfce4

while true wrote:

12/ the end
Code:
C6820s ~ # ck-list-sessions
C6820s ~ #

12/ not understood, can not do

You will not have any session unless you use ck-launch-session states above
while true wrote:


At the end of it all, the point is to do it, so I can eventually understand it.
I need OS now, and not in far future after I learned and understood all gentoo stuff so i can do it. Please do help to spread gentoo...

Thank you.


Hope that helps!
_________________
I don't fear the people. I fear the demon inside them.
Back to top
View user's profile Send private message
elyes
Tux's lil' helper
Tux's lil' helper


Joined: 27 Apr 2008
Posts: 121
Location: Calvados Normandie France

PostPosted: Thu Jan 27, 2011 7:13 pm    Post subject: Reply with quote

Hello,

I've used in my slim.conf:
Code:
login_cmd exec ck-launch-session dbus-launch /bin/bash -login /usr/share/slim/Xsession %session
but it didn't work :'(
also
Code:
 ck-launch-session startxfce4
in /etc/X11/Sessions/Xfce do not solve the problem . :'(

Thank you
Back to top
View user's profile Send private message
Chris W
l33t
l33t


Joined: 25 Jun 2002
Posts: 972
Location: Brisbane, Australia

PostPosted: Fri Jan 28, 2011 6:31 am    Post subject: Reply with quote

elyes wrote:
I've used in my slim.conf:
Code:
login_cmd exec ck-launch-session dbus-launch /bin/bash -login /usr/share/slim/Xsession %session
but it didn't work :'(
also
Code:
 ck-launch-session startxfce4
in /etc/X11/Sessions/Xfce do not solve the problem . :'(


After struggling unsuccessfully to get this working with a session launched from xdm I switched to Slim.

I have nothing but stable packages installed.
My slim.conf is unmodified.
My /etc/X11/Sessions/Xfce4 is unmodified.
My /etc/pam.d/system-login pam_ck_connector.so line is modified to remove the nox11 option.
I use a personal .xsession file because I need to do some things before launching Xfce4. The file looks like:
Code:

$ cat .xsession
#!/bin/bash

# ---8< ----- irrelevant stuff removed

exec ck-launch-session dbus-launch --sh-syntax --exit-with-session startxfce4


Everything seems to be working for me.

If you are not using a personal .xsession then you could make the same changes to /etc/X11/Sessions/Xfce4:
Code:

$ cat /etc/X11/Sessions/Xfce4
ck-launch-session dbus-launch --sh-syntax --exit-with-session startxfce4


I am not 100% sure the "dbus-launch --sh-syntax --exit-with-session" bit is required.
_________________
Cheers,
Chris W
"Common sense: The collection of prejudices acquired by age 18." -- Einstein
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Goto page Previous  1, 2, 3, 4 ... 14, 15, 16  Next
Page 3 of 16

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum