{"id":1212,"date":"2013-12-13T16:30:11","date_gmt":"2013-12-13T21:30:11","guid":{"rendered":"http:\/\/www.familytidings.com\/blog\/?p=1212"},"modified":"2013-12-13T16:30:11","modified_gmt":"2013-12-13T21:30:11","slug":"mounting-the-nas-on-ubuntu-13-10","status":"publish","type":"post","link":"https:\/\/www.familytidings.com\/blog\/?p=1212","title":{"rendered":"Mounting the NAS on Ubuntu 13.10"},"content":{"rendered":"<p>I installed an SSD, 2GB of RAM and an upgraded battery on my Thinkpad T60. \u00c2\u00a0Rather than copy my old installations to the SSD, I installed <a href=\"https:\/\/help.ubuntu.com\/community\/Installation\/FromUSBStick\">Ubuntu 13.10 via USB drive<\/a>. \u00c2\u00a0It went off without a hitch and, boy, is the SSD fast! \u00c2\u00a0The instructions in earlier posts cover everything I&#8217;ve done so far, but the <a href=\"http:\/\/www.familytidings.com\/blog\/?p=703\">old directions to connect to the NAS<\/a> are kinda sketchy, so I&#8217;m updating them here.<\/p>\n<p>Install support for CIFS.  It&#8217;s in package <code>cifs-utils<\/code>.<br \/>\nIn my home directory:<br \/>\n<code>$ mkdir ds411p2<\/code><br \/>\nAs root, add this to the end of <code>\/etc\/fstab<\/code>:<br \/>\n<code>\/\/ds411p2\/home \/home\/me\/ds411p2 cifs user,uid=me,gid=me,rw,suid,credentials=\/home\/me\/.ds411p2pwd 0 0<\/code><br \/>\nEdit <code>\/home\/me\/.ds411p2pwd<\/code> to look like this:<br \/>\n<code>username=<em>my NAS username<\/em><br \/>\npassword=<em>my NAS password<\/em><\/code><br \/>\n<code>$ chmod 0600 ~\/.ds411p2pwd<\/code><br \/>\nAs root:<br \/>\n<code># mount ~\/ds411p2<\/code><br \/>\nIn <code>\/home\/me<\/code>, replace Documents, Lyrics, Music, Pictures, Videos and any other shared directories in home with soft links to the respective directory in <code>~\/ds411p2<\/code>.<\/p>\n<p>I have some shared directories on the NAS that can be accessed by anyone in the group <code>ps411p2<\/code>.  To mount them, edit <code>\/etc\/fstab<\/code> as root and add:<br \/>\n<code>\/\/ds411p2\/video \/mnt\/ds411p2-public-video cifs rw,suid,gid=ds411p2,credentials=\/etc\/ds411p2pwd 0 0<br \/>\n\/\/ds411p2\/music \/mnt\/ds411p2-public-music cifs rw,suid,gid=ds411p2,credentials=\/etc\/ds411p2pwd 0 0<br \/>\n\/\/ds411p2\/photo \/mnt\/ds411p2-public-photo cifs rw,suid,gid=ds411p2,credentials=\/etc\/ds411p2pwd 0 0<\/code><br \/>\nOf course, add the group <code>ds411p2<\/code> on the client and give it to the appropriate users.  You can use <code>gnome-system-tools<\/code> to do this.  (It&#8217;s not installed by default.)  Also as root, create the directories in <code>\/mnt<\/code>.<br \/>\nEdit <code>\/etc\/ds411p2pwd<\/code> as root to look like this:<br \/>\n<code>username=<em>NAS guest username<\/em><br \/>\npassword=<em>NAS guest password<\/em><\/code><br \/>\nAs root:<br \/>\n<code># chmod 0600 \/etc\/ds411p2pwd<br \/>\n# mount -a<\/code><br \/>\nMake sure you can see the files as you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I installed an SSD, 2GB of RAM and an upgraded battery on my Thinkpad T60. \u00c2\u00a0Rather than copy my old installations to the SSD, I installed Ubuntu 13.10 via USB drive. \u00c2\u00a0It went off without a hitch and, boy, is the SSD fast! \u00c2\u00a0The instructions in earlier posts cover everything I&#8217;ve done so far, but [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1212","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1212","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1212"}],"version-history":[{"count":6,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1212\/revisions"}],"predecessor-version":[{"id":1219,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1212\/revisions\/1219"}],"wp:attachment":[{"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1212"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1212"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.familytidings.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1212"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}