You are not logged in.

#1 2008-03-31 23:31:29

Yes
Member
Registered: 2008-03-29
Posts: 163

Automatically mount a partition on Gnome login?

Is that possible?  I know about sessions, but you need to be root to mount a drive and I don't think you can run a command as root via sessions. 

Thanks.

Offline

#2 2008-03-31 23:42:10

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: Automatically mount a partition on Gnome login?

Yes, it's possible. Gnome has nothing to do with it. Have a look at pam_mount.

EDIT: Alternatively, you can set up sudo so that you can mount partitions with 'sudo mount ...', and put that into a script which is executed automatically on login.

Last edited by bender02 (2008-03-31 23:43:26)

Offline

#3 2008-04-01 00:01:20

Yes
Member
Registered: 2008-03-29
Posts: 163

Re: Automatically mount a partition on Gnome login?

Thanks, but it doesn't compile.  It says it's missing libHX, even though libHX compiled and installed fine.

On an unrelated note, I installed Xgl with pacman -S xgl, but then when I run startxgl, bash complains that it can't find that command.  Xorg is configured fine as far as I can tell and I'm using the proprietary nVidia driver.

e:  How might I configure sudo so that I could mount partitions without a password?

Last edited by Yes (2008-04-01 00:08:43)

Offline

#4 2008-04-01 00:12:29

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: Automatically mount a partition on Gnome login?

Sie können partition mit "user" Wort im /etc/fstab mounten.

Last edited by lucke (2008-04-01 00:18:49)

Offline

#5 2008-04-01 00:38:55

Yes
Member
Registered: 2008-03-29
Posts: 163

Re: Automatically mount a partition on Gnome login?

Great, thanks smile.

Does anyone know what's up with Xgl?

Last edited by Yes (2008-04-01 00:39:09)

Offline

#6 2008-04-01 00:54:56

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: Automatically mount a partition on Gnome login?

Sie vermutlich müssen ausmelden und abmelden (relogin).

Offline

#7 2008-04-01 00:57:55

Yes
Member
Registered: 2008-03-29
Posts: 163

Re: Automatically mount a partition on Gnome login?

Err, English, please?

I've already logged in/out, if that's what you said.

Offline

#8 2008-04-01 01:08:27

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: Automatically mount a partition on Gnome login?

That's what I said :-)

Does "pacman -Ql xgl | grep startxgl" return anything?

Offline

#9 2008-04-01 01:11:52

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: Automatically mount a partition on Gnome login?

There's only /usr/bin/Xgl executable in the xgl package, you probably have to run that.

Offline

#10 2008-04-01 01:53:40

Yes
Member
Registered: 2008-03-29
Posts: 163

Re: Automatically mount a partition on Gnome login?

pacman -Ql xgl | grep startxgl doesn't return anything.  Xgl returns

Fatal server error:
Server is already active for display 0
    If this server is no longer running, remove /tmp/.X0-lock
    and start again.

dlopen: /usr/lib/xorg/modules/xgl/libglxext.so: undefined symbol: CALL_ProgramParameter4fvNV

FatalError re-entered, aborting
No GLX modules loaded
Aborted

?

Offline

#11 2008-04-01 05:17:25

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: Automatically mount a partition on Gnome login?

Are you running it from a virtual console, without X running? Type "init 3" in the consote to get rid of X.

Offline

#12 2008-04-01 20:05:11

Yes
Member
Registered: 2008-03-29
Posts: 163

Re: Automatically mount a partition on Gnome login?

No, X is running.  I booted without starting X, but I still got this error:

dlopen: /usr/lib/xorg/modules/xgl/libglxext.so: undefined symbol: CALL_ProgramParameter4fvNV

FatalError re-entered, aborting
No GLX modules loaded
Aborted

'init 3' didn't seem to do anything.

Offline

Board footer

Powered by FluxBB