Last active
December 17, 2015 17:18
-
-
Save josh23french/5644589 to your computer and use it in GitHub Desktop.
Revisions
-
josh23french revised this gist
May 24, 2013 . 1 changed file with 6 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,33 +2,33 @@ Automounting setup ================== Make a new folder for your mount:: mkdir /Volumes/[folder name] Open the master autofs file for editing:: sudo nano /etc/auto_master Add the following line:: /- auto_smb This tells autofs to look for /etc/auto_smb and use it's configuration. Now we'll edit that file and add our share:: sudo nano /etc/auto_smb Add a line for your share:: /Volumes/[folder name] -fstype=smbfs,soft ://[user]:[pass]@[server]/[share] The ``[folder name]`` should probably be the same as ``[share]``. The ``[pass]`` should be url-encoded if it contains special characters. For security reasons, only root should be able to read ``/etc/auto_smb``, so:: sudo chmod 600 /etc/auto_smb Linking to desktop ================== You can choose where to put a link, but the desktop makes sense for most people:: ln -s /Volumes/[folder name] ~/Desktop/ -
josh23french revised this gist
May 24, 2013 . 1 changed file with 7 additions and 7 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,33 +2,33 @@ Automounting setup ================== Make a new folder for your mount:: ``mkdir /Volumes/[folder name]`` Open the master autofs file for editing:: ``sudo nano /etc/auto_master`` Add the following line:: ``/- auto_smb`` This tells autofs to look for /etc/auto_smb and use it's configuration. Now we'll edit that file and add our share:: sudo nano /etc/auto_smb Add a line for your share:: ``/Volumes/[folder name] -fstype=smbfs,soft ://[user]:[pass]@[server]/[share]`` The ``[folder name]`` should probably be the same as ``[share]``. The ``[pass]`` should be url-encoded if it contains special characters. For security reasons, only root should be able to read ``/etc/auto_smb``, so:: ``sudo chmod 600 /etc/auto_smb`` Linking to desktop ================== You can choose where to put a link, but the desktop makes sense for most people:: ``ln -s /Volumes/[folder name] ~/Desktop/`` -
josh23french revised this gist
May 24, 2013 . 1 changed file with 7 additions and 7 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,33 +2,33 @@ Automounting setup ================== Make a new folder for your mount:: ``mkdir /Volumes/[folder name]`` Open the master autofs file for editing:: ``sudo nano /etc/auto_master`` Add the following line:: ``/- auto_smb`` This tells autofs to look for /etc/auto_smb and use it's configuration. Now we'll edit that file and add our share:: ``sudo nano /etc/auto_smb`` Add a line for your share:: ``/Volumes/[folder name] -fstype=smbfs,soft ://[user]:[pass]@[server]/[share]`` The ``[folder name]`` should probably be the same as ``[share]``. The ``[pass]`` should be url-encoded if it contains special characters. For security reasons, only root should be able to read ``/etc/auto_smb``, so:: ``sudo chmod 600 /etc/auto_smb`` Linking to desktop ================== You can choose where to put a link, but the desktop makes sense for most people:: ``ln -s /Volumes/[folder name] ~/Desktop/`` -
josh23french revised this gist
May 24, 2013 . 1 changed file with 4 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,18 +1,18 @@ Automounting setup ================== Make a new folder for your mount:: mkdir /Volumes/[folder name] Open the master autofs file for editing:: sudo nano /etc/auto_master Add the following line:: /- auto_smb This tells autofs to look for /etc/auto_smb and use it's configuration. Now we'll edit that file and add our share:: sudo nano /etc/auto_smb @@ -22,7 +22,7 @@ Add a line for your share:: The ``[folder name]`` should probably be the same as ``[share]``. The ``[pass]`` should be url-encoded if it contains special characters. For security reasons, only root should be able to read ``/etc/auto_smb``, so:: sudo chmod 600 /etc/auto_smb -
josh23french created this gist
May 24, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,34 @@ Automounting setup ================== #. Make a new folder for your mount:: mkdir /Volumes/[folder name] #. Open the master autofs file for editing:: sudo nano /etc/auto_master Add the following line:: /- auto_smb #. This tells autofs to look for /etc/auto_smb and use it's configuration. Now we'll edit that file and add our share:: sudo nano /etc/auto_smb Add a line for your share:: /Volumes/[folder name] -fstype=smbfs,soft ://[user]:[pass]@[server]/[share] The ``[folder name]`` should probably be the same as ``[share]``. The ``[pass]`` should be url-encoded if it contains special characters. #. For security reasons, only root should be able to read ``/etc/auto_smb``, so:: sudo chmod 600 /etc/auto_smb Linking to desktop ================== You can choose where to put a link, but the desktop makes sense for most people:: ln -s /Volumes/[folder name] ~/Desktop/