 |
 |
Mounting a network volume at startup
|
 |
|
 |
|
Mac Elite
Join Date: Jan 2001
Location: L.A., CA
Status:
Offline
|
|
I'm sure most of you already know this, but I was really happy to find this advice over at the Apple Discussions by Tim Haigh:
This is how i do it with an afp volume
in Safari or IE in the address bar I write
afp://username:password@server/sharepoint
example
afp://johnsmith:password@192.168.0.1/Shared_Folder
now before clicking connect drag the url from safari by the globe to my deskop as if I am making a bookmark, you now have a double clickable server share point connector,
you just make that file one of your login items and it will mount the share point automatically.
I am sure you can do the same with an smb:// volume
I really like this because I can mount a point a login w/o having it's window pop up at me every time. Sweetness.
Again, I'm sure this is old news to most of you, but I'm really stoked to finally get it sorted out.
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: May 2001
Location: Earth
Status:
Offline
|
|
You can go in "Library/Recent Servers" folder of your home directory. You will find all the recently connected servers with the Finder... It might help too 
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Jan 2001
Location: L.A., CA
Status:
Offline
|
|
Originally posted by pat++:
You can go in "Library/Recent Servers" folder of your home directory. You will find all the recently connected servers with the Finder... It might help too
Yeah I like that too. I guess I just didn't know how to make them myself. The ones in my recent server folder made me choose from an option panel of share points, as opposed to just mounting a specific one. I suppose I just wanted it to mount like a local drive automagically with no fuss, and no popup folder window.
|
|
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Sep 2000
Location: Denver, CO, USA
Status:
Offline
|
|
this just isn't working out. I really need a way to connect to servers on login. The above method leaves me with a useless link since the colon is stripped out and replaced with a '-'.
It should not be this hard to connect to servers - and all the login windows don't support copy and paste - HELLO!!??
I need to have an smb, http (webdav) and ftp server mounted when I log in. Sadly this is something windows has no problem with, the first time you map the drive you just click "reconnect on startup".
any ideas?
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Jan 2001
Location: L.A., CA
Status:
Offline
|
|
Originally posted by hotani:
this just isn't working out. I really need a way to connect to servers on login. The above method leaves me with a useless link since the colon is stripped out and replaced with a '-'.
You mean when you try it with samba it doesn't work? I know it works for me with AFP.
You could also try mounting the disk manually, then going to System Prefs > Login Items > Add > navigate to the server you want and select it. The only problem with this is that it might pop up a folder at login.
Hello there! 
|
|
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Sep 2000
Location: Denver, CO, USA
Status:
Offline
|
|
thanks. I got one samba share to work via applescript - I put my login name and password all in the path and it worked fine. However, this would not work for the webDAV and ftp shares - but the smb was most important.
The most annoying thing about Apple's current implementation of networking is that it does not support copy/paste to the login windows - I always have to manually enter in my info, and the login for the webDAV share is not pretty!
anyone know how to connect to an ftp or dav server with a one-liner? something like ftp://user:password@server.com ??
edit: ok, the above line worked for the ftp if the username and password are only 0-9 and a-z, but not for dav. I tried it before with another ftp server and it didn't work, but the password for that other machine contains several characters that might need to be escaped - any suggestions?
(Last edited by hotani; Mar 27, 2003 at 11:24 PM.
)
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Jan 2001
Location: L.A., CA
Status:
Offline
|
|
[QUOTE]Originally posted by hotani:
thanks. I got one samba share to work via applescript - I put my login name and password all in the path and it worked fine. However, this would not work for the webDAV and ftp shares - but the smb was most important.[quote]
Good to hear.
The most annoying thing about Apple's current implementation of networking is that it does not support copy/paste to the login windows - I always have to manually enter in my info, and the login for the webDAV share is not pretty!
OK. You mean the text address field in Connect to Server. Yeah that is pretty odd. Please do send your feedback here.
I don't know about WebDav. I've had no luck myself with FTP via the Finder. I don't know what the dilly is there.
Hopefully someone can shed some light on connecting to FTP or WebDav via the Finder. These sites also might be of some help:
O'Reilly's Mac Devcenter
Mac OS X Hints
Apple - Discussions

|
|
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Sep 2000
Location: Cupertino, CA USA
Status:
Offline
|
|
Have you considered using the "mount volume" command in a script saved as an applet assigned to launch at startup?
Code:
mount volume: Mount the specified AppleShare volume
mount volume plain text -- the name or URL path (starting with ?afp://?) of the volume to mount
on server plain text -- the server on which the volume resides
[in AppleTalk zone plain text] -- the AppleTalk zone in which the server resides
[as user name plain text] -- the user name with which to log in to the server; omit for guest access
[with password plain text] -- the password for the user name; omit for guest access
The command also works in this form:
Code:
mount volume "afp://username:password@idisk.mac.com/username/"
|
|
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Sep 2000
Location: Denver, CO, USA
Status:
Offline
|
|
Thanks Sal - I did get the applescript to work for one of my shares, and I'm using the [mount volume "smb://user:pass@share"] method.
The other connections are not as important, so at this point I am just trying to figure it out for future reference.
Here is the problem i am having: my password for the ftp share is pretty cryptic - it includes some characters that need to be escaped somehow (!, #, $ to name a couple). I can use URL escaping (%21, %24 bla bla) in a browser and it works, but in the 'Connect to Server' dialog, it does not recognize either the straight text or the escaped version.
If I connect to an ftp server that just has a 0-9, a-z type password, then it works fine using the ftp://user:pass@server method.
Also: the copy/paste problem i mentioned before is for the authentication box that pops up when I use the "Connect to Server" method from the finder. I am unable to paste anything in there, and that seems to be consistent on all OS X systems (yes I will submit this to the apple feedback!).
|
|
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Nov 2000
Location: Fremont, CA, USA
Status:
Offline
|
|
Tell me if this is stupid BUT
If once the share is mounted, is it possible to drag the share into the Login Items preference panel?
It could work unless the keychain doesn't correctly remember the password.
Just a thought - I may try it at work on Monday.
Neil
|
|
If I had a signature, it would look something like this
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Jan 2001
Location: L.A., CA
Status:
Offline
|
|
Originally posted by NeilCharter:
Tell me if this is stupid BUT
If once the share is mounted, is it possible to drag the share into the Login Items preference panel?
It could work unless the keychain doesn't correctly remember the password.
Just a thought - I may try it at work on Monday.
Neil
No it should work via the login window fine afaik. Drag it or use the add button. The only reason I don't do that personally is because a folder window pops up at login. But it should indeed work.
|
|
|
| |
|
|
|
 |
|
 |
|
Clinically Insane
Join Date: Nov 1999
Location: 888500128, C3, 2nd soft.
Status:
Online
|
|
Originally posted by JB72:
No it should work via the login window fine afaik. Drag it or use the add button. The only reason I don't do that personally is because a folder window pops up at login. But it should indeed work.
it DOES work.
I use it to auto-mount server partitions via Airport.
It also uses Keychain for the passwords, so I only had to enter them once.
I also dragged the partitions onto the Finder toolbar. Single-click mounting, no fuss, no pop-up windows, no password.
I do not know if this works with smb as well, but I see no reason why it shouldn't.
-s*
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Oct 2001
Location: Enschede
Status:
Offline
|
|
Doing it without so much workarounds only would be possible if Apple got of it's lazy asses and implemented smb:// url's in Safari.
And maybe \\computername too 
|
|
iMac G5 2.0 Ghz 20", 2 GB RAM, 400 GB, OS X 10.4.5, iPod with color screen 60 GB
|
| |
|
|
|
 |
|
 |
|
Clinically Insane
Join Date: Nov 1999
Location: 888500128, C3, 2nd soft.
Status:
Online
|
|
Originally posted by Jerommeke:
Doing it without so much workarounds only would be possible if Apple got of it's lazy asses and implemented smb:// url's in Safari.
And maybe \\computername too
FWIW, I thought just dragging a mounted volume to the Login panel and the Finder toolbar (just like every other folder, local or not) was as straightforward as it gets!
must be me.
hmf. oh well.
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Jan 2001
Location: L.A., CA
Status:
Offline
|
|
Originally posted by Spheric Harlot:
[I also dragged the partitions onto the Finder toolbar. Single-click mounting, no fuss, no pop-up windows, no password. [/B]
Hrrm. For me it pops up a Finder window on login. Also seems slightly quicker when the link file is used. At least for me. Maybe because it doesn't have to access the Keychain at all?
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Sep 2001
Location: Chico, CA and Carlsbad, CA.
Status:
Offline
|
|
Originally posted by JB72:
Hrrm. For me it pops up a Finder window on login. Also seems slightly quicker when the link file is used. At least for me. Maybe because it doesn't have to access the Keychain at all?
Yep, since the password is stored in the URL rather than in the Keychain, there's no reason for Keychain to even know about the connection. hehhee.
I do like that method of essentially making a bookmark to the AFP share. Very nice in a lab/office environment.

|
"In Nomine Patris, Et Fili, Et Spiritus Sancti"
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|