Skip to contentSkip to conversation

autofs and terminal networks woes.

DISCUSSION Chris Fanning 4 participants 11 messages Feb 17, 2005 – Mar 8, 2005 Kernel automounter

lore
Share & tools
lore
#0 lore raw

Hello all,

I am working with terminal networks. I have been using PXES
(http://pxes.sourceforge.net/) as the thinclient and freeNX
(http://developer.berlios.de/projects/freenx/) as the X protocol.

All users run their session on the central terminal server. Each pc, where the users sits, is running X (PXES). Problems start when the user wants to access the floppy because /mnt/floppy is the floppy drive on the server, when in reality, the user is not phisically at the server. By clicking on his floppy icon, the user expects to access the drive on his thinclient.

PXES (the thinclient) runs a samba server just for this reason. Therefore, the user can browse smb://thinclient/fd or smb://thinclient/cdrom to access his local drives because he is physically @thinclient.
I have managed to setup floppy and cdrom icons on the desktop at login. By using the freeNX code, we can know the ip of the thinclient.

So, we have varios users running individual sessions on the server simultaneously. Each user is sitting at a client with its own ip. Each user can access their floppy via smb://thinclient_ip/fd

I feel this is a limited solution. When the user goes to konqueror o nautilus and accesses /mnt/floppy, he reads the floppy on the server (bad becaue he is not physically there). All system-wide references to the floppy or cdrom or usb are wrong. Only the icons (smb://thinclient/..) made explicitly are correct.

Considering this limitation, I thought something might be able to be done with autofs

It does seem possible to do something like this.
/var/autofs/terminales/a_thinclient_ip/floppy
/var/autofs/terminales/a_thinclientl_ip/cdrom

So I setup the samba server on the thinclient to accept guest without password (I read somewhere that this was necessary for autofs).

more /etc/auto.terminals
floppy -fstype=smbfs,guest,fmask=666,dmask=777 ://a_thinclient_ip/fd
and it works!

However, I think I need to use an external script (you call that a map?) that produces this output
a_thinclient_ip -fstype=smbfs,guest,fmask=666,dmask=777
/floppy thinclient_ip:/fd

I have manually added this to auto.smb to test it and it doesn't work.

So my question here is why?
floppy -fstype=smbfs,guest,fmask=666,dmask=777
://a_thinclient_ip/fd (this mounts)
a_thinclient_ip -fstype=smbfs,guest,fmask=666,dmask=777
/floppy thinclient_ip:/fd (this doesn't)

What am I overlooking?

Thanks in advance
Chris.

#1 lore raw

On Thu, 17 Feb 2005, Chris Fanning wrote:

Versions?

Quoted 3 lines

So I setup the samba server on the thinclient to accept guest without password (I read somewhere that this was necessary for autofs).

Probably because we don't have user credentials.

Quoted 10 lines

more /etc/auto.terminals
floppy -fstype=smbfs,guest,fmask=666,dmask=777 ://a_thinclient_ip/fd
and it works!

However, I think I need to use an external script (you call that a map?) that produces this output
a_thinclient_ip -fstype=smbfs,guest,fmask=666,dmask=777
/floppy thinclient_ip:/fd

Quoted 7 lines

I have manually added this to auto.smb to test it and it doesn't work.

So my question here is why?
floppy -fstype=smbfs,guest,fmask=666,dmask=777
://a_thinclient_ip/fd (this mounts)
a_thinclient_ip -fstype=smbfs,guest,fmask=666,dmask=777
/floppy thinclient_ip:/fd (this doesn't)

          ^^^^^^^^^^^^^ Doesn't look like an smb name?

Perhaps you need to use ://thinclient_ip/fd
But then that will only work (I hope) with the 4.1.4 beta.

Ian

#2 lore raw

Hi Ian,

Quoted 2 lines

Versions?

4.1.3-9

Quoted 1 line

Perhaps you need to use ://thinclient_ip/fd

So, do you suggest I upgrade?
When might 4.1.4 be available for debian testing? Should I download the source instead? Thanks for your excelent work and time.

Chris.

Quoted 35 lines · On Thu, 17 Feb 2005 21:39:32 +0800 (WST), [email protected] <[email protected]>…

On Thu, 17 Feb 2005, Chris Fanning wrote:

Versions?

Quoted 3 lines

So I setup the samba server on the thinclient to accept guest without password (I read somewhere that this was necessary for autofs).

Probably because we don't have user credentials.

Quoted 10 lines

more /etc/auto.terminals
floppy -fstype=smbfs,guest,fmask=666,dmask=777 ://a_thinclient_ip/fd
and it works!

However, I think I need to use an external script (you call that a map?) that produces this output
a_thinclient_ip -fstype=smbfs,guest,fmask=666,dmask=777
/floppy thinclient_ip:/fd

Quoted 7 lines

I have manually added this to auto.smb to test it and it doesn't work.

So my question here is why?
floppy -fstype=smbfs,guest,fmask=666,dmask=777
://a_thinclient_ip/fd (this mounts)
a_thinclient_ip -fstype=smbfs,guest,fmask=666,dmask=777
/floppy thinclient_ip:/fd (this doesn't)

           ^^^^^^^^^^^^^ Doesn't look like an smb name?

Perhaps you need to use ://thinclient_ip/fd
But then that will only work (I hope) with the 4.1.4 beta.

Ian

#3 lore raw
Quoted 9 lines · Chris Fanning

Hi Ian,

Quoted 2 lines

Versions?

4.1.3-9

Quoted 1 line

Perhaps you need to use ://thinclient_ip/fd

So, do you suggest I upgrade?

Only if you can solve the problems you face. Certainly not without plenty of testing.

Quoted 1 line

When might 4.1.4 be available for debian testing?

I guess that will depend on the Debian folks.
I'm hoping they will push 4.1.4 into the Debian tree fairly soon after it is released. I've tried to get as many fixes into the new version as I could.

Quoted 1 line

Should I download the source instead?

If you wish to test this out you can download autofs-4.1.4_beta2-deb.tar.gz which basically contains the files of a source deb.

As i've said before, this is for testing only as I'm not the maintainer of the Debian package.

If you do try this make sure you stop autofs before installing the deb.

Ian

#4 lore raw

ok. downloaded, compiled and installed.
This works great!

Thankyou.
Chris.

Quoted 35 lines · On Thu, 17 Feb 2005 22:10:58 +0800 (WST), [email protected] <[email protected]>…
Quoted 9 lines · Chris Fanning

Hi Ian,

Quoted 2 lines

Versions?

4.1.3-9

Quoted 1 line

Perhaps you need to use ://thinclient_ip/fd

So, do you suggest I upgrade?

Only if you can solve the problems you face. Certainly not without plenty of testing.

Quoted 1 line

When might 4.1.4 be available for debian testing?

I guess that will depend on the Debian folks.
I'm hoping they will push 4.1.4 into the Debian tree fairly soon after it is released. I've tried to get as many fixes into the new version as I could.

Quoted 1 line

Should I download the source instead?

If you wish to test this out you can download autofs-4.1.4_beta2-deb.tar.gz which basically contains the files of a source deb.

As i've said before, this is for testing only as I'm not the maintainer of the Debian package.

If you do try this make sure you stop autofs before installing the deb.

Ian

#5 lore raw

Chris, Ian,

I don't chime in here very often, and I know this is now more or less working, but the obvious question to me is, since both the thin client and server are running Linux/Unix, why not use the more native NFS? Perhaps I'm missing something obvious.

Jon

Quoted 66 lines · Chris Fanning

ok. downloaded, compiled and installed.
This works great!

Thankyou.
Chris.

Quoted 43 lines · On Thu, 17 Feb 2005 22:10:58 +0800 (WST), [email protected] <[email protected]>…
Quoted 8 lines · Chris Fanning

Hi Ian,

Quoted 4 lines

Versions?

Quoted 10 lines

4.1.3-9

Quoted 3 lines

Perhaps you need to use ://thinclient_ip/fd

So, do you suggest I upgrade?

Only if you can solve the problems you face. Certainly not without plenty of testing.

Quoted 3 lines

When might 4.1.4 be available for debian testing?

I guess that will depend on the Debian folks.
I'm hoping they will push 4.1.4 into the Debian tree fairly soon after it is released. I've tried to get as many fixes into the new version as I could.

Quoted 3 lines

Should I download the source instead?

If you wish to test this out you can download autofs-4.1.4_beta2-deb.tar.gz which basically contains the files of a source deb.

Quoted 10 lines

As i've said before, this is for testing only as I'm not the maintainer of the Debian package.

If you do try this make sure you stop autofs before installing the deb.

Ian

Quoted 6 lines

_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs

_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs

#6 lore raw

No Jon, you're not missing anything.
I've simply started using smb because the pxes client I've been testing with has a nice check box to include a smb server in the image.
You are probably right and nfs is the way to go.

By the way, since I've upgraded, autofs doesn't seem to unmount the drives (I can hear the diskette spinning every 8 seconds or so), even with the timeout set.

How should I test that to see if it really is a bug?

Chris.

Quoted 38 lines · Jonathan Loran

Chris, Ian,

I don't chime in here very often, and I know this is now more or less
working, but the obvious question to me is, since both the thin client and server are running Linux/Unix, why not use the more native NFS? Perhaps I'm missing something obvious.

Jon

Chris Fanning wrote:
ok. downloaded, compiled and installed. This works great! Thankyou. Chris.
On Thu, 17 Feb 2005 22:10:58 +0800 (WST), [email protected] <[email protected]> wrote:
On Thu, 17 Feb 2005, Chris Fanning wrote:
Hi Ian,
Versions? 4.1.3-9
Perhaps you need to use ://thinclient_ip/fd So, do you suggest I upgrade?
Only if you can solve the problems you face. Certainly not without plenty of testing.
When might 4.1.4 be available for debian testing? I guess that will depend
on the Debian folks. I'm hoping they will push 4.1.4 into the Debian tree fairly soon after it is released. I've tried to get as many fixes into the new version as I could.
Should I download the source instead? If you wish to test this out you can
download autofs-4.1.4_beta2-deb.tar.gz which basically contains the files of a source deb. As i've said before, this is for testing only as I'm not the maintainer of the Debian package. If you do try this make sure you stop autofs before installing the deb. Ian _______________________________________________ autofs mailing list [email protected] http://linux.kernel.org/mailman/listinfo/autofs
_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs

maintainer
#7 lore raw
Quoted 11 lines · Chris Fanning

No Jon, you're not missing anything.
I've simply started using smb because the pxes client I've been testing with has a nice check box to include a smb server in the image.
You are probably right and nfs is the way to go.

By the way, since I've upgraded, autofs doesn't seem to unmount the drives (I can hear the diskette spinning every 8 seconds or so), even with the timeout set.

How should I test that to see if it really is a bug?

Mostly I use the --debug option on the master map entry. Then forward the log and I'll see if there's anything amiss.

What about your autofs4 kernel module?

Quoted 49 lines

Chris.

Quoted 27 lines · Jonathan Loran

Chris, Ian,

I don't chime in here very often, and I know this is now more or less
working, but the obvious question to me is, since both the thin client and server are running Linux/Unix, why not use the more native NFS? Perhaps I'm missing something obvious.

Jon

Chris Fanning wrote:
ok. downloaded, compiled and installed. This works great! Thankyou. Chris.
On Thu, 17 Feb 2005 22:10:58 +0800 (WST), [email protected] <[email protected]> wrote:
On Thu, 17 Feb 2005, Chris Fanning wrote:
Hi Ian,
Versions? 4.1.3-9
Perhaps you need to use ://thinclient_ip/fd So, do you suggest I upgrade?
Only if you can solve the problems you face. Certainly not without plenty of testing.
When might 4.1.4 be available for debian testing? I guess that will depend
on the Debian folks. I'm hoping they will push 4.1.4 into the Debian tree fairly soon after it is released. I've tried to get as many fixes into the new version as I could.
Should I download the source instead? If you wish to test this out you can
download autofs-4.1.4_beta2-deb.tar.gz which basically contains the files of a source deb. As i've said before, this is for testing only as I'm not the

Quoted 11 lines

maintainer of the Debian package. If you do try this make sure you stop autofs before installing the deb. Ian _______________________________________________ autofs mailing list [email protected] http://linux.kernel.org/mailman/listinfo/autofs
_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs

_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs

#8 lore raw

Hi,

well, though observation, it seems the problem I stated before of the mounts not unmounting is because Nautilus keeps it in sort of cache or something and the mount remains busy.

anyway, to refresh..
I have a terminal network environment.
All users run their session on the central terminal server. Each pc, where the users sits, is running X. Problems start when the user wants to access the floppy because /mnt/floppy is the floppy drive on the server, when in reality, the user is not phisically at the server.

ok. since then I've got this working
/terminals/terminal_ip/fd
/terminals/terminal_ip/cd
great!

Now I have another doubt.
I can't expect the users to know the path to the floppy because, for example, they don't even know their ip.
So I make a link from the users home to their terminals floppy. eg. ln -s /terminals/terminal_ip/fd /home/a_user/Floppy

But this causes the drive to mount. Bad.

Is there anyway to point to the floppy but delay the mount until the user really wants it?

Thanks again.
Chris.

Quoted 70 lines · Ian Kent
Quoted 11 lines · Chris Fanning

No Jon, you're not missing anything.
I've simply started using smb because the pxes client I've been testing with has a nice check box to include a smb server in the image.
You are probably right and nfs is the way to go.

By the way, since I've upgraded, autofs doesn't seem to unmount the drives (I can hear the diskette spinning every 8 seconds or so), even with the timeout set.

How should I test that to see if it really is a bug?

Mostly I use the --debug option on the master map entry. Then forward the log and I'll see if there's anything amiss.

What about your autofs4 kernel module?

Quoted 49 lines

Chris.

Quoted 27 lines · Jonathan Loran

Chris, Ian,

I don't chime in here very often, and I know this is now more or less
working, but the obvious question to me is, since both the thin client and server are running Linux/Unix, why not use the more native NFS? Perhaps I'm missing something obvious.

Jon

Chris Fanning wrote:
ok. downloaded, compiled and installed. This works great! Thankyou. Chris.
On Thu, 17 Feb 2005 22:10:58 +0800 (WST), [email protected] <[email protected]> wrote:
On Thu, 17 Feb 2005, Chris Fanning wrote:
Hi Ian,
Versions? 4.1.3-9
Perhaps you need to use ://thinclient_ip/fd So, do you suggest I upgrade?
Only if you can solve the problems you face. Certainly not without plenty of testing.
When might 4.1.4 be available for debian testing? I guess that will depend
on the Debian folks. I'm hoping they will push 4.1.4 into the Debian tree fairly soon after it is released. I've tried to get as many fixes into the new version as I could.
Should I download the source instead? If you wish to test this out you can
download autofs-4.1.4_beta2-deb.tar.gz which basically contains the files of a source deb. As i've said before, this is for testing only as I'm not the

Quoted 11 lines

maintainer of the Debian package. If you do try this make sure you stop autofs before installing the deb. Ian _______________________________________________ autofs mailing list [email protected] http://linux.kernel.org/mailman/listinfo/autofs
_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs

_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs

#9 lore raw
Quoted 5 lines · Chris Fanning

Hi,

well, though observation, it seems the problem I stated before of the mounts not unmounting is because Nautilus keeps it in sort of cache or something and the mount remains busy.

Yes. That problem has been around for a long time.
I subscribed to the list (actually I think it was Nautalis, maybe I was in the wrong place anyway) but never got to spend any time on it due to other stuff.

One way I dealt with it was to set the ${HOME}/.gnome/gnome-vfs/.trash_entry_cache file to mode 000. I may have set the owner to root as well I can't remember now.

This seemed to not bother Gnome (Nautalis) much and stops it from adding new paths to scan for Trash folders in. I suggest some experimentation before going headlong into this.

Quoted 14 lines

anyway, to refresh..
I have a terminal network environment.
All users run their session on the central terminal server. Each pc, where the users sits, is running X. Problems start when the user wants to access the floppy because /mnt/floppy is the floppy drive on the server, when in reality, the user is not phisically at the server.

ok. since then I've got this working
/terminals/terminal_ip/fd
/terminals/terminal_ip/cd
great!

Quoted 5 lines

Now I have another doubt.
I can't expect the users to know the path to the floppy because, for example, they don't even know their ip.
So I make a link from the users home to their terminals floppy. eg. ln -s /terminals/terminal_ip/fd /home/a_user/Floppy

This sounds a bit like Gnome again.

Quoted 81 lines

But this causes the drive to mount. Bad.

Is there anyway to point to the floppy but delay the mount until the user really wants it?

Thanks again.
Chris.

Quoted 70 lines · Ian Kent
Quoted 11 lines · Chris Fanning

No Jon, you're not missing anything.
I've simply started using smb because the pxes client I've been testing with has a nice check box to include a smb server in the image.
You are probably right and nfs is the way to go.

By the way, since I've upgraded, autofs doesn't seem to unmount the drives (I can hear the diskette spinning every 8 seconds or so), even with the timeout set.

How should I test that to see if it really is a bug?

Mostly I use the --debug option on the master map entry. Then forward the log and I'll see if there's anything amiss.

What about your autofs4 kernel module?

Quoted 49 lines

Chris.

Quoted 27 lines · Jonathan Loran

Chris, Ian,

I don't chime in here very often, and I know this is now more or less
working, but the obvious question to me is, since both the thin client and server are running Linux/Unix, why not use the more native NFS? Perhaps I'm missing something obvious.

Jon

Chris Fanning wrote:
ok. downloaded, compiled and installed. This works great! Thankyou. Chris.
On Thu, 17 Feb 2005 22:10:58 +0800 (WST), [email protected] <[email protected]> wrote:
On Thu, 17 Feb 2005, Chris Fanning wrote:
Hi Ian,
Versions? 4.1.3-9
Perhaps you need to use ://thinclient_ip/fd So, do you suggest I upgrade?
Only if you can solve the problems you face. Certainly not without plenty of testing.
When might 4.1.4 be available for debian testing? I guess that will depend
on the Debian folks. I'm hoping they will push 4.1.4 into the Debian tree fairly soon after it is released. I've tried to get as many fixes into the new version as I could.
Should I download the source instead? If you wish to test this out you can
download autofs-4.1.4_beta2-deb.tar.gz which basically contains the files of a source deb. As i've said before, this is for testing only as I'm not the

Quoted 11 lines

maintainer of the Debian package. If you do try this make sure you stop autofs before installing the deb. Ian _______________________________________________ autofs mailing list [email protected] http://linux.kernel.org/mailman/listinfo/autofs
_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs

_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs