{"id":75,"date":"2008-05-28T16:24:04","date_gmt":"2008-05-28T20:24:04","guid":{"rendered":"http:\/\/www.dev-notes.com\/blog\/2008\/05\/28\/turn-your-mythbuntu-box-into-a-file-server\/"},"modified":"2018-03-11T21:48:04","modified_gmt":"2018-03-12T01:48:04","slug":"turn-your-mythbuntu-box-into-a-file-server","status":"publish","type":"post","link":"https:\/\/www.dev-notes.com\/blog\/2008\/05\/28\/turn-your-mythbuntu-box-into-a-file-server\/","title":{"rendered":"Turn your Mythbuntu box into a file server"},"content":{"rendered":"<p>As it turns out, because Mythbuntu already has Samba built in, it is easy to make it a file server in your home network by using the same tool.  First, identify a place where you want to open up a new folder for file sharing.  In this example, we&#8217;ll do &#8220;\/fileserver\/&#8221;.  Then, let us issue the following command to edit the Samba config file.<\/p>\n<pre class=\"code\">su pico \/etc\/samba\/smb.conf<\/pre>\n<p>Note the &#8220;su&#8221; command; it will require you to put in your password before editing.  Once the text editor pico loads up, add the following section at the end of the configuration file.<\/p>\n<pre class=\"code\">\r\n[files]\r\ncomment = Files\r\npath = \/fileserver\/\r\npublic = yes\r\nwritable = yes\r\ncreate mask = 0660\r\ndirectory mask = 0770\r\nforce user = mythtv\r\nforce group = mythtv\r\n<\/pre>\n<p>Once this is done, restart the samba daemon from your command line.<\/p>\n<pre class=\"code\">\/etc\/init.d\/smb restart<\/pre>\n<p>You should now be able to access the new &#8220;files&#8221; samba share from another computer on your network.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Mythbuntu box in my living room, not surprisingly, has a large hard drive, which allows it to be a digital video recorder (DVR) and hold the movies I&#8217;m starting to rip from my large DVD collection.  It is also on for large chunks of time when I&#8217;m home.  So I&#8217;m thinking &#8212; wouldn&#8217;t it make sense for it to also be my file server?<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[28,30],"tags":[],"class_list":["post-75","post","type-post","status-publish","format-standard","hentry","category-linux","category-ubuntu"],"_links":{"self":[{"href":"https:\/\/www.dev-notes.com\/blog\/wp-json\/wp\/v2\/posts\/75","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dev-notes.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dev-notes.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dev-notes.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dev-notes.com\/blog\/wp-json\/wp\/v2\/comments?post=75"}],"version-history":[{"count":1,"href":"https:\/\/www.dev-notes.com\/blog\/wp-json\/wp\/v2\/posts\/75\/revisions"}],"predecessor-version":[{"id":172,"href":"https:\/\/www.dev-notes.com\/blog\/wp-json\/wp\/v2\/posts\/75\/revisions\/172"}],"wp:attachment":[{"href":"https:\/\/www.dev-notes.com\/blog\/wp-json\/wp\/v2\/media?parent=75"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dev-notes.com\/blog\/wp-json\/wp\/v2\/categories?post=75"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dev-notes.com\/blog\/wp-json\/wp\/v2\/tags?post=75"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}