automount in xfce4 or gnome2
In my xfce4 desktop, with debian amd64 wheezy, the flash card is not mounted auto: no permission (same with my ijstallation of gnome2).
The /etc/polkit-1/localauthority.conf.d/50-localauthority.conf reads [Configuration] AdminIdentities=unix-user:0 I created /etc/polkit-1/localauthority.conf.d/60-desktop-policy.conf that reads [Configuration] AdminIdentities=unix-group:desktop_admin_r Following reboot, still the flash card has no permission to mount and i have to mount it manually. Where should the permission be given instead/ thanks chiendarret |
You need to additionally create a
/etc/polkit-1/localauthority/50-local.d/ file to specify which permissions you wish to grant. What I have is called /etc/polkit-1/localauthority/50-local.d/11-my-polkit-udisks.pkla and it contains Code:
[udisks full access] Code:
[udisks full access] Code:
lxde@asus-gentoo ~ $ ps ax |grep polkit Code:
lxde@asus-gentoo ~ $ ck-list-sessions |
In this minor issue (see, if you have time, my major problems posted here a couple of hours ago with gtx-470 cards) I followed your kind advice. Though, still no permission to mount flash card. Here the outputs. There is a suspicious "FALSE" that probably should be amended
francesco@gig64:~$ ps ax | grep polkit 2062 ? Sl 0:00 /usr/lib/policykit-1/polkitd 30067 pts/1 Sl+ 0:00 /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 30179 pts/2 S+ 0:00 grep polkit francesco@gig64:~$ ck-list-sessions Session5: unix-user = '1000' realname = '....' seat = 'Seat1' session-type = '' active = TRUE x11-display = ':0' x11-display-device = '/dev/tty7' display-device = '/dev/tty1' remote-host-name = '' is-local = TRUE on-since = '2011-07-12T18:01:33.525485Z' login-session-id = '4294967295' Session6: unix-user = '1000' realname = 'Francesco Pietra' seat = 'Seat1' session-type = '' active = FALSE x11-display = ':0' x11-display-device = '/dev/tty7' display-device = '/dev/pts/1' remote-host-name = '' is-local = TRUE on-since = '2011-07-12T18:01:44.521935Z' login-session-id = '4294967295' Session1: unix-user = '1000' realname = '....' seat = 'Seat1' session-type = '' active = FALSE x11-display = '' x11-display-device = '' display-device = '/dev/tty1' remote-host-name = '' is-local = TRUE on-since = '2011-07-12T17:48:37.323432Z' login-session-id = '4294967295' idle-since-hint = '2011-07-12T18:02:02.089054Z' francesco@gig64:~$ |
"x11-display-device" lines where /dev/tty7 should only appear once.
You probably have duplicate entries where you invoke ck-launch-session multiple times. How are you starting X? |
Fresh starting today:
(1) startx (2) gnome-session whereby two twm window are raised, one empty and one with: francesco@gig64:~$ ck-list-sessions Session1: unix-user = '1000' realname = '............' seat = 'Seat1' session-type = '' active = FALSE x11-display = '' x11-display-device = '' display-device = '/dev/tty1' remote-host-name = '' is-local = TRUE on-since = '2011-07-13T08:16:57.018262Z' login-session-id = '4294967295' idle-since-hint = '2011-07-13T08:17:31.839293Z' Session2: unix-user = '1000' realname = '............' seat = 'Seat1' session-type = '' active = TRUE x11-display = ':0' x11-display-device = '/dev/tty7' display-device = '/dev/tty1' remote-host-name = '' is-local = TRUE on-since = '2011-07-13T08:17:05.746217Z' login-session-id = '4294967295' francesco@gig64:~$ ********************** Reboot and (1) startx (2) ck-launch-session gnome-session also two twm window are raised, one empty and one with: francesco@gig64:~$ ck-list-sessions Session3: unix-user = '1000' realname = 'Francesco Pietra' seat = 'Seat1' session-type = '' active = TRUE x11-display = ':0' x11-display-device = '/dev/tty7' display-device = '/dev/tty1' remote-host-name = '' is-local = TRUE on-since = '2011-07-13T08:27:42.222559Z' login-session-id = '4294967295' Session4: unix-user = '1000' realname = 'Francesco Pietra' seat = 'Seat1' session-type = '' active = FALSE x11-display = ':0' x11-display-device = '/dev/tty7' display-device = '/dev/pts/1' remote-host-name = '' is-local = TRUE on-since = '2011-07-13T08:27:54.519036Z' login-session-id = '4294967295' Session1: unix-user = '1000 ********************* |
Quote:
What are the contents of this users ~/.xinitrc and ~/.xsession files? Is dbus-launch running? Code:
lxde@asus-gentoo-e17 ~ $ ps ax |grep dbus-launch Quote:
|
> What are the contents of this users ~/.xinitrc and ~/.xsession files?
~$ cat .Xsession #!/bin/sh xrdb -load$HOME/.Xresources exec xterm I do not find any .xinitrc using # updatedb $locate .xinitrc (or Xinitrc) For present launch, "ck-list-sessions" reports correctly as you said above "This is actually what you want". Still, no permission to mount card. Perhaps revealing (also about my problems with the gtx-470/cuda cards referred to in a parallel post), now trying to launch the cuda-based viewer VMD, the system hangs with message (I am mannually copyimg since the hanged computer is not ssh accessible): ..... Multithreading available, 6 CPUs detected Free system mem 15854MB (98%) Creating CUDA device pool and initializing hardware Detected 2 available CUDA accelerators [0] GeForce GTX 470 .... [1] GeForce GTX 470 ... WARNING Detected X11 'Composite' extension: if incorrect display occurs, try disabling this optional x server feature. **********8 When VMD launching is correct, the terminal reports: Multithreading, 6 processors Available two CUDA accelerations Detected X11 "Composite" extension:if incorrect display occurs, try disabling this optional X server feature OpenGL renderer GeForce gtx 470/PCI/SSE2 Full GSL rendering mode available ************ I don't know how to disable the above X server feature. Whether this has to do with the new nvidia driver is a question to answer (as indicated in the mentioned parallel post) chiendarret |
Is there anything in ~/.xsessionrc ?
also what was the output of Code:
$ ps ax |grep dbus-launch |
Is there anything in ~/.xsessionrc ?
I could not find even that file in debian, however there is a ~/.xsession-errors file. As of today, it reads: *************************** Xsession: X session started for francesco at Wed Jul 13 10:17:04 CEST 2011 usage: xrdb [-options ...] [filename] where options include: -display host:dpy display to use -all do all resources [default] -global do screen-independent resources -screen do screen-specific resources for one screen -screens do screen-specific resources for all screens -n show but don't do changes -cpp filename preprocessor to use [/usr/bin/cpp] -nocpp do not use a preprocessor -query query resources -load load resources from file [default] -override add in resources from file -merge merge resources from file & sort -edit filename edit resources into file -backup string backup suffix for -edit [.bak] -symbols show preprocessor symbols -remove remove resources -retain avoid server reset (avoid using this) -quiet don't warn about duplicates -Dname[=value], -Uname, -Idirectory passed to preprocessor A - or no input filename represents stdin. xterm: fatal IO error 11 (Resource temporarily unavailable) or KillClient on X server ":0" xterm: fatal IO error 11 (Resource temporarily unavailable) or KillClient on X server ":0" Xsession: X session started for francesco at Wed Jul 13 10:27:42 CEST 2011 usage: xrdb [-options ...] [filename] where options include: -display host:dpy display to use -all do all resources [default] -global do screen-independent resources -screen do screen-specific resources for one screen -screens do screen-specific resources for all screens -n show but don't do changes -cpp filename preprocessor to use [/usr/bin/cpp] -nocpp do not use a preprocessor -query query resources -load load resources from file [default] -override add in resources from file -merge merge resources from file & sort -edit filename edit resources into file -backup string backup suffix for -edit [.bak] -symbols show preprocessor symbols -remove remove resources -retain avoid server reset (avoid using this) -quiet don't warn about duplicates -Dname[=value], -Uname, -Idirectory passed to preprocessor A - or no input filename represents stdin. xterm: fatal IO error 11 (Resource temporarily unavailable) or KillClient on X server ":0" Xsession: X session started for francesco at Wed Jul 13 16:04:03 CEST 2011 usage: xrdb [-options ...] [filename] where options include: -display host:dpy display to use -all do all resources [default] -global do screen-independent resources -screen do screen-specific resources for one screen -screens do screen-specific resources for all screens -n show but don't do changes -cpp filename preprocessor to use [/usr/bin/cpp] -nocpp do not use a preprocessor -query query resources -load load resources from file [default] -override add in resources from file -merge merge resources from file & sort -edit filename edit resources into file -backup string backup suffix for -edit [.bak] -symbols show preprocessor symbols -remove remove resources -retain avoid server reset (avoid using this) -quiet don't warn about duplicates -Dname[=value], -Uname, -Idirectory passed to preprocessor A - or no input filename represents stdin. xterm: fatal IO error 11 (Resource temporarily unavailable) or KillClient on X server ":0" xterm: fatal IO error 11 (Resource temporarily unavailable) or KillClient on X server ":0" Xsession: X session started for francesco at Wed Jul 13 16:26:06 CEST 2011 usage: xrdb [-options ...] [filename] where options include: -display host:dpy display to use -all do all resources [default] -global do screen-independent resources -screen do screen-specific resources for one screen -screens do screen-specific resources for all screens -n show but don't do changes -cpp filename preprocessor to use [/usr/bin/cpp] -nocpp do not use a preprocessor -query query resources -load load resources from file [default] -override add in resources from file -merge merge resources from file & sort -edit filename edit resources into file -backup string backup suffix for -edit [.bak] -symbols show preprocessor symbols -remove remove resources -retain avoid server reset (avoid using this) -quiet don't warn about duplicates -Dname[=value], -Uname, -Idirectory passed to preprocessor A - or no input filename represents stdin. ********************* The 16:26:06 session is the one with computer hanged on attempted VMD launch and unfortunately it says nothing about what happened. If no errors occur, nothing is written on ~/.xsession-errors. Now (17:39:00) in fact, this file is the same as above. xxxxxxxxxxxxxxxxxxxxxxxxx $ ps ax |grep dbus-launch that i can't answer for the time of the crash as the computer was hanged. Now the answer is 3067 tty1 S 0:00 /usr/bin/dbus-launch --sh-synthax --exit-with-session chiendarret |
All times are GMT -5. The time now is 12:31 AM. |