{"id":3064,"date":"2012-12-09T16:09:00","date_gmt":"2012-12-09T15:09:00","guid":{"rendered":"https:\/\/www.albertopasca.it\/whiletrue\/?p=3064"},"modified":"2021-11-27T16:21:20","modified_gmt":"2021-11-27T15:21:20","slug":"raspberry-pi-easy-setup-a-backup-nas-server-2","status":"publish","type":"post","link":"https:\/\/www.albertopasca.it\/whiletrue\/raspberry-pi-easy-setup-a-backup-nas-server-2\/","title":{"rendered":"Raspberry PI \u2013 Easy setup a backup NAS server"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">A little reminder to configure rasperry as\u00a0<a href=\"https:\/\/it.wikipedia.org\/wiki\/Network_Attached_Storage\" target=\"_blank\" rel=\"noreferrer noopener\">NAS server<\/a>, to backup and access your file everywhere.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">How to?<br>First of all you need an account on\u00a0<a href=\"https:\/\/www.no-ip.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">www.no-ip.com<\/a>\u00a0or a\u00a0<a href=\"https:\/\/compnetworking.about.com\/od\/workingwithipaddresses\/f\/what-is-a-public-ip-address.htm\" target=\"_blank\" rel=\"noreferrer noopener\">public ip address<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Next, boot your rasperry, go root (or use sudo), and install\u00a0<a href=\"https:\/\/en.wikipedia.org\/wiki\/Samba_(software)\" target=\"_blank\" rel=\"noreferrer noopener\">Samba<\/a>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#apt-get install samba samba-common-bin<\/code><\/pre>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"278\" height=\"74\" src=\"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2021\/11\/Samba_Logo.png?resize=278%2C74&#038;ssl=1\" alt=\"\" class=\"wp-image-3065\"\/><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Open samba config file (<strong>\/etc\/samba\/smb.conf<\/strong>) and edit\/add these lines:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>security = user\n\n# at the end of file, copy\/paste the config\n&#91;public]\n  comment = My Public Store\n  path = \/home\/shared\/usbdisk\n  valid users = @users\n  force group = users\n  read only = no\n  writeable = yes\n  create mask = 0777\n  directory mask = 0777\n  browseable = yes\n  public = yes\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">In this way you allow the users to login in on your raspy. You need to add a user\u2026<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>smbpasswd -a pi\n# set password, etc...\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Save, exit and restart the service<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#\/etc\/init.d\/samba restart<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-text-color has-background has-vivid-red-background-color has-vivid-red-color\"\/>\n\n\n\n<p class=\"wp-block-paragraph\">Now, create the shared folder (as configured in early in smb.conf), set permissions and mount the usb disk.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>## create folders\n$cd \/home\n$mkdir shared\n$chown -R root:users \/home\/shared\/\n$chmod -R ug=rwx,o=rx \/home\/shared\/\n$mkdir usbdisk\n\n## mount disk\n#mount \/dev\/sda1 \/home\/shared\/usbdisk<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Next, you need to mound disk at startup. Open \/etc\/fstab and add this line:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/dev\/sda1 \/home\/shared\/usbdisk auto noatime,user,rw,exec 0 0<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Note: if you have a NTFS drive, you need install ntfs package<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt-get install ntfs-config\napt-get install ntfs-3g<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Well, first part is done.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now you need to use no-ip service to connect remotely on your rasperry.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I suggest to use a static ip address on your raspy. Setting static ip is easy and it\u2019s explained\u00a0<a href=\"https:\/\/www.penguintutor.com\/blog\/viewblog.php?blog=6306\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a>.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-text-color has-background has-vivid-red-background-color has-vivid-red-color\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Install no-ip service<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"179\" height=\"67\" src=\"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2021\/11\/logo.png?resize=179%2C67&#038;ssl=1\" alt=\"\" class=\"wp-image-3066\"\/><\/figure><\/div>\n\n\n\n<pre class=\"wp-block-code\"><code>mkdir noip\ncd noip\/\nwget http:\/\/www.no-ip.com\/client\/linux\/noip-duc-linux.tar.gz\ntar vzxf noip-duc-linux.tar.gz\ncd noip-2.1.9-1\/\nmake\nmake install<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Follow instructions, enter your username\/password and go on.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After installation, you need to create a noip service (to run on every boot).<br>Create the file noip in\u00a0<strong>\/etc\/init.d\/noip<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vi \/etc\/init.d\/noip<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">and copy\/paste these lines as explained\u00a0<a href=\"https:\/\/www.stuffaboutcode.com\/2012\/06\/raspberry-pi-run-program-at-start-up.html\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#! \/bin\/sh\n# \/etc\/init.d\/noip\ncase \"$1\" in\n  start)\n    echo \"Starting noip\"\n    \/usr\/local\/bin\/noip2\n    ;;\n  stop)\n    echo \"Stopping noip\"\n    killall noip2\n    ;;\n  *)\n    echo \"Usage: \/etc\/init.d\/noip {start|stop}\"\n    exit 1\n    ;;\nesac\nexit 0<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Set permission, start, and reboot everything.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>chmod 755 \/etc\/init.d\/noip \n\/etc\/init.d\/noip start\n#reboot<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-text-color has-background has-vivid-red-background-color has-vivid-red-color\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Connections to rasperry<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Open terminal and try:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ssh pi@192.168.0.115       \/\/ the raspy static ip\n\/\/ or\nssh pi@mydyndnsname.no-ip.org  \/\/ the no-ip address<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">you should be able to connect.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If the output is this, you are in!<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>host-001:~ albertop$ ssh pi@mydyndnsname.no-ip.org\npi@mydyndnsname.no-ip.org's password: \nLinux raspberrypi 3.2.27+ #250 PREEMPT Thu Oct 18 19:03:02 BST 2012 armv6l\n\nThe programs included with the Debian GNU\/Linux system are free software;\nthe exact distribution terms for each program are described in the\nindividual files in \/usr\/share\/doc\/*\/copyright.\n\nDebian GNU\/Linux comes with ABSOLUTELY NO WARRANTY, to the extent\npermitted by applicable law.\nLast login: Sun Dec  9 13:30:14 2012 from 95.227.126.188\n\npi@raspberrypi ~ $<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If not\u2026 i have no idea &#x1f600;. Probably you missed something in the way.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">One of the common problems could be the port forwarding. Enable to in your router settings the redirect from ssh port and samba ports. (<strong>22<\/strong>\u00a0for ssh and\u00a0<strong>137,138,139<\/strong>\u00a0for samba.\u00a0<em>TCP\/UDP<\/em>).<br><a href=\"https:\/\/portforward.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">portforward.com<\/a>\u00a0could help you.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">On Mac OSX, open finder, press\u00a0<strong>CMD+K<\/strong>\u00a0and type\u00a0<strong>smb:\/\/mydyndnsname.no-ip.org<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"526\" height=\"276\" src=\"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2021\/11\/raspy-macsmb.png?resize=526%2C276&#038;ssl=1\" alt=\"\" class=\"wp-image-3067\" srcset=\"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2021\/11\/raspy-macsmb.png?w=526&amp;ssl=1 526w, https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2021\/11\/raspy-macsmb.png?resize=300%2C157&amp;ssl=1 300w\" sizes=\"auto, (max-width: 526px) 100vw, 526px\" \/><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"437\" height=\"170\" src=\"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2021\/11\/raspy-macsmbfolder.png?resize=437%2C170&#038;ssl=1\" alt=\"\" class=\"wp-image-3068\" srcset=\"https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2021\/11\/raspy-macsmbfolder.png?w=437&amp;ssl=1 437w, https:\/\/i0.wp.com\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2021\/11\/raspy-macsmbfolder.png?resize=300%2C117&amp;ssl=1 300w\" sizes=\"auto, (max-width: 437px) 100vw, 437px\" \/><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Login and use your files remotely.<br>On\u00a0<strong>Windows\/Linux<\/strong>\u00a0is similar, open My PC and select \u201cConnect to server\u201d. Address should be the same.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can also use\u00a0<strong>FileZilla<\/strong>,\u00a0<strong>WinSCP<\/strong>\u00a0or others\u00a0<em>sftp<\/em>\u00a0client to access your remote shared folder.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Probably i missed something, but you could be able to solve the issue. \ud83d\ude42<br>enjoy.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-text-color has-background has-vivid-red-background-color has-vivid-red-color\"\/>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>References:<\/strong><br>&#8211;\u00a0<a href=\"https:\/\/it.wikipedia.org\/wiki\/Network_Attached_Storage\" target=\"_blank\" rel=\"noreferrer noopener\">http:\/\/it.wikipedia.org\/wiki\/Network_Attached_Storage<\/a><br>&#8211;\u00a0<a href=\"http:\/\/www.no-ip.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">http:\/\/www.no-ip.com\/<\/a><br>&#8211;\u00a0<a href=\"http:\/\/compnetworking.about.com\/od\/workingwithipaddresses\/f\/what-is-a-public-ip-address.htm\" target=\"_blank\" rel=\"noreferrer noopener\">http:\/\/compnetworking.about.com\/od\/workingwithipaddresses\/f\/what-is-a-public-ip-address.htm<\/a><br>&#8211;\u00a0<a href=\"http:\/\/en.wikipedia.org\/wiki\/Samba_(software)\" target=\"_blank\" rel=\"noreferrer noopener\">http:\/\/en.wikipedia.org\/wiki\/Samba_(software)<\/a><br>&#8211;\u00a0<a href=\"http:\/\/www.penguintutor.com\/blog\/viewblog.php?blog=6306\" target=\"_blank\" rel=\"noreferrer noopener\">http:\/\/www.penguintutor.com\/blog\/viewblog.php?blog=6306<\/a><br>&#8211;\u00a0<a href=\"http:\/\/www.stuffaboutcode.com\/2012\/06\/raspberry-pi-run-program-at-start-up.html\" target=\"_blank\" rel=\"noreferrer noopener\">http:\/\/www.stuffaboutcode.com\/2012\/06\/raspberry-pi-run-program-at-start-up.html<\/a><br>&#8211;\u00a0<a href=\"http:\/\/portforward.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">http:\/\/portforward.com\/<\/a><br>&#8211;\u00a0<a href=\"http:\/\/www.google.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">http:\/\/www.google.com<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>A little reminder to configure rasperry as\u00a0NAS server, to backup and access your file everywhere. How to?First of all you need an account on\u00a0www.no-ip.com\u00a0or a\u00a0public ip address. Next, boot your rasperry, go root (or use sudo), and install\u00a0Samba: Open samba config file (\/etc\/samba\/smb.conf) and edit\/add these lines: In this way you allow the users to <a class=\"read-more\" href=\"https:\/\/www.albertopasca.it\/whiletrue\/raspberry-pi-easy-setup-a-backup-nas-server-2\/\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1],"tags":[1026,293,1029,569,1028,762,571,572,1027],"class_list":["post-3064","post","type-post","status-publish","format-standard","hentry","category-generic","tag-euboic","tag-file","tag-ftp","tag-nas","tag-public","tag-raspberry","tag-samba","tag-server","tag-storage"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Raspberry PI \u2013 Easy setup a backup NAS server - while (true) {\u00a0}<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.albertopasca.it\/whiletrue\/raspberry-pi-easy-setup-a-backup-nas-server-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Raspberry PI \u2013 Easy setup a backup NAS server - while (true) {\u00a0}\" \/>\n<meta property=\"og:description\" content=\"A little reminder to configure rasperry as\u00a0NAS server, to backup and access your file everywhere. How to?First of all you need an account on\u00a0www.no-ip.com\u00a0or a\u00a0public ip address. Next, boot your rasperry, go root (or use sudo), and install\u00a0Samba: Open samba config file (\/etc\/samba\/smb.conf) and edit\/add these lines: In this way you allow the users to Read More\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.albertopasca.it\/whiletrue\/raspberry-pi-easy-setup-a-backup-nas-server-2\/\" \/>\n<meta property=\"og:site_name\" content=\"while (true) {\u00a0}\" \/>\n<meta property=\"article:published_time\" content=\"2012-12-09T15:09:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-11-27T15:21:20+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2021\/11\/Samba_Logo.png\" \/>\n<meta name=\"author\" content=\"Alberto Pasca\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@lupasca\" \/>\n<meta name=\"twitter:site\" content=\"@lupasca\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Alberto Pasca\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/raspberry-pi-easy-setup-a-backup-nas-server-2\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/raspberry-pi-easy-setup-a-backup-nas-server-2\\\/\"},\"author\":{\"name\":\"Alberto Pasca\",\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/#\\\/schema\\\/person\\\/d3cf0df774eb4aac797f246a795e9fac\"},\"headline\":\"Raspberry PI \u2013 Easy setup a backup NAS server\",\"datePublished\":\"2012-12-09T15:09:00+00:00\",\"dateModified\":\"2021-11-27T15:21:20+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/raspberry-pi-easy-setup-a-backup-nas-server-2\\\/\"},\"wordCount\":424,\"publisher\":{\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/#\\\/schema\\\/person\\\/d3cf0df774eb4aac797f246a795e9fac\"},\"image\":{\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/raspberry-pi-easy-setup-a-backup-nas-server-2\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/wp-content\\\/uploads\\\/2021\\\/11\\\/Samba_Logo.png\",\"keywords\":[\"\u00e8ub\u00f2ic\",\"file\",\"ftp\",\"nas\",\"public\",\"raspberry\",\"samba\",\"server\",\"storage\"],\"articleSection\":[\"generic\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/raspberry-pi-easy-setup-a-backup-nas-server-2\\\/\",\"url\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/raspberry-pi-easy-setup-a-backup-nas-server-2\\\/\",\"name\":\"Raspberry PI \u2013 Easy setup a backup NAS server - while (true) {\u00a0}\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/raspberry-pi-easy-setup-a-backup-nas-server-2\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/raspberry-pi-easy-setup-a-backup-nas-server-2\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/wp-content\\\/uploads\\\/2021\\\/11\\\/Samba_Logo.png\",\"datePublished\":\"2012-12-09T15:09:00+00:00\",\"dateModified\":\"2021-11-27T15:21:20+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/raspberry-pi-easy-setup-a-backup-nas-server-2\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/raspberry-pi-easy-setup-a-backup-nas-server-2\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/raspberry-pi-easy-setup-a-backup-nas-server-2\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/wp-content\\\/uploads\\\/2021\\\/11\\\/Samba_Logo.png\",\"contentUrl\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/wp-content\\\/uploads\\\/2021\\\/11\\\/Samba_Logo.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/raspberry-pi-easy-setup-a-backup-nas-server-2\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Raspberry PI \u2013 Easy setup a backup NAS server\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/#website\",\"url\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/\",\"name\":\"while (true) {\u00a0}\",\"description\":\"notes from a developer, tutorials, how-to, ideas\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/#\\\/schema\\\/person\\\/d3cf0df774eb4aac797f246a795e9fac\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.albertopasca.it\\\/whiletrue\\\/#\\\/schema\\\/person\\\/d3cf0df774eb4aac797f246a795e9fac\",\"name\":\"Alberto Pasca\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4d8fe43c412d0bb34a71c41f60dce53eff3afc027853cbfd20bee6ddc7e93f35?s=96&d=retro&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4d8fe43c412d0bb34a71c41f60dce53eff3afc027853cbfd20bee6ddc7e93f35?s=96&d=retro&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4d8fe43c412d0bb34a71c41f60dce53eff3afc027853cbfd20bee6ddc7e93f35?s=96&d=retro&r=g\",\"caption\":\"Alberto Pasca\"},\"logo\":{\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4d8fe43c412d0bb34a71c41f60dce53eff3afc027853cbfd20bee6ddc7e93f35?s=96&d=retro&r=g\"},\"description\":\"Software engineer @ Pirelli &amp; C. S.p.A. with a strong passion for mobile \uf8ff development, security, and connected things.\",\"sameAs\":[\"https:\\\/\\\/www.albertopasca.it\",\"albertopasca\",\"https:\\\/\\\/x.com\\\/lupasca\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Raspberry PI \u2013 Easy setup a backup NAS server - while (true) {\u00a0}","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.albertopasca.it\/whiletrue\/raspberry-pi-easy-setup-a-backup-nas-server-2\/","og_locale":"en_US","og_type":"article","og_title":"Raspberry PI \u2013 Easy setup a backup NAS server - while (true) {\u00a0}","og_description":"A little reminder to configure rasperry as\u00a0NAS server, to backup and access your file everywhere. How to?First of all you need an account on\u00a0www.no-ip.com\u00a0or a\u00a0public ip address. Next, boot your rasperry, go root (or use sudo), and install\u00a0Samba: Open samba config file (\/etc\/samba\/smb.conf) and edit\/add these lines: In this way you allow the users to Read More","og_url":"https:\/\/www.albertopasca.it\/whiletrue\/raspberry-pi-easy-setup-a-backup-nas-server-2\/","og_site_name":"while (true) {\u00a0}","article_published_time":"2012-12-09T15:09:00+00:00","article_modified_time":"2021-11-27T15:21:20+00:00","og_image":[{"url":"https:\/\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2021\/11\/Samba_Logo.png","type":"","width":"","height":""}],"author":"Alberto Pasca","twitter_card":"summary_large_image","twitter_creator":"@lupasca","twitter_site":"@lupasca","twitter_misc":{"Written by":"Alberto Pasca","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.albertopasca.it\/whiletrue\/raspberry-pi-easy-setup-a-backup-nas-server-2\/#article","isPartOf":{"@id":"https:\/\/www.albertopasca.it\/whiletrue\/raspberry-pi-easy-setup-a-backup-nas-server-2\/"},"author":{"name":"Alberto Pasca","@id":"https:\/\/www.albertopasca.it\/whiletrue\/#\/schema\/person\/d3cf0df774eb4aac797f246a795e9fac"},"headline":"Raspberry PI \u2013 Easy setup a backup NAS server","datePublished":"2012-12-09T15:09:00+00:00","dateModified":"2021-11-27T15:21:20+00:00","mainEntityOfPage":{"@id":"https:\/\/www.albertopasca.it\/whiletrue\/raspberry-pi-easy-setup-a-backup-nas-server-2\/"},"wordCount":424,"publisher":{"@id":"https:\/\/www.albertopasca.it\/whiletrue\/#\/schema\/person\/d3cf0df774eb4aac797f246a795e9fac"},"image":{"@id":"https:\/\/www.albertopasca.it\/whiletrue\/raspberry-pi-easy-setup-a-backup-nas-server-2\/#primaryimage"},"thumbnailUrl":"https:\/\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2021\/11\/Samba_Logo.png","keywords":["\u00e8ub\u00f2ic","file","ftp","nas","public","raspberry","samba","server","storage"],"articleSection":["generic"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.albertopasca.it\/whiletrue\/raspberry-pi-easy-setup-a-backup-nas-server-2\/","url":"https:\/\/www.albertopasca.it\/whiletrue\/raspberry-pi-easy-setup-a-backup-nas-server-2\/","name":"Raspberry PI \u2013 Easy setup a backup NAS server - while (true) {\u00a0}","isPartOf":{"@id":"https:\/\/www.albertopasca.it\/whiletrue\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.albertopasca.it\/whiletrue\/raspberry-pi-easy-setup-a-backup-nas-server-2\/#primaryimage"},"image":{"@id":"https:\/\/www.albertopasca.it\/whiletrue\/raspberry-pi-easy-setup-a-backup-nas-server-2\/#primaryimage"},"thumbnailUrl":"https:\/\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2021\/11\/Samba_Logo.png","datePublished":"2012-12-09T15:09:00+00:00","dateModified":"2021-11-27T15:21:20+00:00","breadcrumb":{"@id":"https:\/\/www.albertopasca.it\/whiletrue\/raspberry-pi-easy-setup-a-backup-nas-server-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.albertopasca.it\/whiletrue\/raspberry-pi-easy-setup-a-backup-nas-server-2\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.albertopasca.it\/whiletrue\/raspberry-pi-easy-setup-a-backup-nas-server-2\/#primaryimage","url":"https:\/\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2021\/11\/Samba_Logo.png","contentUrl":"https:\/\/www.albertopasca.it\/whiletrue\/wp-content\/uploads\/2021\/11\/Samba_Logo.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.albertopasca.it\/whiletrue\/raspberry-pi-easy-setup-a-backup-nas-server-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.albertopasca.it\/whiletrue\/"},{"@type":"ListItem","position":2,"name":"Raspberry PI \u2013 Easy setup a backup NAS server"}]},{"@type":"WebSite","@id":"https:\/\/www.albertopasca.it\/whiletrue\/#website","url":"https:\/\/www.albertopasca.it\/whiletrue\/","name":"while (true) {\u00a0}","description":"notes from a developer, tutorials, how-to, ideas","publisher":{"@id":"https:\/\/www.albertopasca.it\/whiletrue\/#\/schema\/person\/d3cf0df774eb4aac797f246a795e9fac"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.albertopasca.it\/whiletrue\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.albertopasca.it\/whiletrue\/#\/schema\/person\/d3cf0df774eb4aac797f246a795e9fac","name":"Alberto Pasca","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4d8fe43c412d0bb34a71c41f60dce53eff3afc027853cbfd20bee6ddc7e93f35?s=96&d=retro&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4d8fe43c412d0bb34a71c41f60dce53eff3afc027853cbfd20bee6ddc7e93f35?s=96&d=retro&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4d8fe43c412d0bb34a71c41f60dce53eff3afc027853cbfd20bee6ddc7e93f35?s=96&d=retro&r=g","caption":"Alberto Pasca"},"logo":{"@id":"https:\/\/secure.gravatar.com\/avatar\/4d8fe43c412d0bb34a71c41f60dce53eff3afc027853cbfd20bee6ddc7e93f35?s=96&d=retro&r=g"},"description":"Software engineer @ Pirelli &amp; C. S.p.A. with a strong passion for mobile \uf8ff development, security, and connected things.","sameAs":["https:\/\/www.albertopasca.it","albertopasca","https:\/\/x.com\/lupasca"]}]}},"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack-related-posts":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/posts\/3064","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/comments?post=3064"}],"version-history":[{"count":1,"href":"https:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/posts\/3064\/revisions"}],"predecessor-version":[{"id":3069,"href":"https:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/posts\/3064\/revisions\/3069"}],"wp:attachment":[{"href":"https:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/media?parent=3064"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/categories?post=3064"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.albertopasca.it\/whiletrue\/wp-json\/wp\/v2\/tags?post=3064"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}