Soft Serve Direct
ROGER DAVIES MAGRATH, AB CANADA
  • Home
    • Twitter
    • Twitter Feed
  • inMagrath152
  • News
    • MagrathOpen Wifi
    • Pharmacy
  • Contact Us
    • Map
    • Phone
  • Search
  • Favorites
    • Magrath Chamber of Commerce
    • Magrath Lions Club
    • Magrath Museum

Shared network folder setups (Linux)

14/10/2013

0 Comments

 
Howto: Shared network folder setups – Nov 2013 [email protected]

Here is one way to mount a folder on another computer (using Linux eg Mint or Ubuntu):

First, you need to know the IP addresses of the computers .. however, remember that unless they are static, these numbers may change from time to time ..  on each computer, from a terminal window, you can type:

ifconfig 

to list the 'inet addr' for that computer. For example on my laptop it shows inet addr:192.168.2.22 in the wlan0 section ..
also, in Linux Mint cifs-utils is installed by default, but if not, it can be installed or verified from the  terminal as well with the command:

sudo apt-get install cifs-utils

(if it was already installed, you just get a nice message to that effect).
now, moving on ..  on the computer you want access from, set up the sharing options.

In Ubuntu with Nautilus, you can just right-click on the folder and select 'Sharing Options'. With Mint and the Thunar file manager that option is missing, but you can accomplish these tasks from the command line .. something like this:

net usershare delete ShareDocs
net usershare add ShareDocs /home/user/Documents ”” Everyone:F guest_ok=y
net usershare info --long


(which removes a share, shares your folder at /home/user/Documents with share name of your choice, in this case, 'ShareDocs' to Everyone with Full access, and lists the results)
next, you will want to create a folder (mount point) for the share on the other computer, the one you want to share to:

sudo mkdir /media/shared

(current Ubuntu distributions like to use the /media folder for this sort of thing instead of /mnt .. which is standard used by older/other Linux distros .. but it's fine to use either) and  finally, use a command like this to mount the share:

sudo mount.cifs //192.168.2.22/ShareDocs /media/shared -o user=USERNAME
 
Remember to replace USERNAME with the username for the Samba server that you need to log in as. You'll be prompted for your password. You can specify your password on the command-line too (with -o password=PASSWORD) but it will appear in cleartext in the Terminal and will go into your command history, so you probably don't want to do that. So, if all went well so far,  the folder on the other computer linked to the share name ShareDocs will now be linked to this computer in the /media/shared folder .. you'll find the newly shared directory listed in your files manager files (sweet!) but only until you reboot your computer. To automate the connection, you have to insert the mount command into your fstab file .. or repeat the steps above each time you want to access the files ..

and for that .. see more how to at wiki.ubuntu.com/MountWindowsSharesPermanently
0 Comments

Your comment will be posted after it is approved.


Leave a Reply.

    Author

    Roger Davies of ssdirect.com

    Archives

    March 2024
    July 2023
    May 2023
    April 2023
    March 2023
    January 2022
    March 2020
    January 2020
    December 2019
    November 2019
    April 2019
    March 2019
    January 2019
    September 2018
    April 2018
    January 2018
    July 2017
    October 2016
    September 2016
    December 2015
    October 2015
    September 2015
    June 2015
    May 2015
    December 2014
    November 2014
    October 2014
    May 2014
    April 2014
    March 2014
    October 2013
    April 2013
    March 2013
    February 2013
    June 2012
    May 2012
    April 2012
    February 2012
    January 2012
    November 2011
    October 2011
    May 2011
    April 2011
    March 2011
    February 2011
    November 2010
    September 2009
    November 2008
    February 2007

    Categories

    All
    Accounting
    Email
    Family Safe
    Hardware
    Internet
    Linux
    Software
    Wifi

    RSS Feed

Powered by Create your own unique website with customizable templates.