LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-12-2011, 05:35 AM   #1
chiendarret
Member
 
Registered: Mar 2007
Posts: 307

Rep: Reputation: 16
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
 
Old 07-12-2011, 08:46 AM   #2
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
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]
Identity=unix-group:wheel
Action=org.freedesktop.udisks.*
ResultActive=yes
which in your case would be:

Code:
[udisks full access]
Identity=unix-group:desktop_admin_r
Action=org.freedesktop.udisks.*
ResultActive=yes
additionally you need to make sure that you are running the polkit-gnome-authentication-agent

Code:
lxde@asus-gentoo ~ $ ps ax |grep polkit
 1095 ?        Sl     0:01 /usr/libexec/polkitd
 1624 ?        Sl     0:00 /usr/libexec/polkit-gnome-authentication-agent-1
 7090 pts/2    S+     0:00 grep --colour=auto polkit
and that you have an active consolekit session

Code:
lxde@asus-gentoo ~ $ ck-list-sessions
Session1:
	unix-user = '1003'
	realname = '(null)'
	seat = 'Seat1'
	session-type = ''
	active = TRUE
	x11-display = ':0'
	x11-display-device = '/dev/tty7'
	display-device = ''
	remote-host-name = ''
	is-local = TRUE
	on-since = '2011-07-12T12:57:37.803152Z'
	login-session-id = '1'

Last edited by andrewthomas; 07-12-2011 at 08:50 AM. Reason: added additional polkit and consolekit info
 
Old 07-12-2011, 01:17 PM   #3
chiendarret
Member
 
Registered: Mar 2007
Posts: 307

Original Poster
Rep: Reputation: 16
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:~$
 
Old 07-12-2011, 01:52 PM   #4
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
"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?
 
Old 07-13-2011, 03:36 AM   #5
chiendarret
Member
 
Registered: Mar 2007
Posts: 307

Original Poster
Rep: Reputation: 16
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
*********************
 
Old 07-13-2011, 07:48 AM   #6
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
Quote:
Originally Posted by chiendarret View Post
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:~$
This is actually what you want.

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
 1692 ?        S      0:00 /usr/bin/dbus-launch --sh-syntax --exit-with-session

Quote:
Originally Posted by chiendarret View Post
**********************
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
*********************
This is launching multiple consolekit sessions. Not what you are shooting for.
 
Old 07-13-2011, 09:49 AM   #7
chiendarret
Member
 
Registered: Mar 2007
Posts: 307

Original Poster
Rep: Reputation: 16
> 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
 
Old 07-13-2011, 10:01 AM   #8
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
Is there anything in ~/.xsessionrc ?

also what was the output of

Code:
$ ps ax |grep dbus-launch
 
Old 07-13-2011, 10:48 AM   #9
chiendarret
Member
 
Registered: Mar 2007
Posts: 307

Original Poster
Rep: Reputation: 16
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to Automount ISO image unless automount is running in foreground! swests Linux - General 4 05-22-2009 12:47 AM
upgrade to slackware 12.2 + xfce4.6 (xfce4-power-manager doesn't work) zux Slackware 4 04-22-2009 11:28 AM
xfce4 and icon for xfce4-mixer vehn Slackware 1 11-15-2008 03:37 PM
CentOS 5.2 Automount isos in fstab \other methods that work?automount iso Frankly3D Linux - General 6 07-13-2008 12:34 PM
Getting rid of XFCE4-panel...using xfce4 and Ubuntu jagibbs Linux - Software 1 04-06-2006 05:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration