{"id":663,"date":"2016-11-20T18:14:24","date_gmt":"2016-11-20T18:14:24","guid":{"rendered":"https:\/\/web.apeconsulting.co.uk\/wordpress\/adrian\/?p=35"},"modified":"2016-11-20T18:14:24","modified_gmt":"2016-11-20T18:14:24","slug":"networking","status":"publish","type":"post","link":"https:\/\/home.apeconsulting.co.uk\/adrian\/networking\/","title":{"rendered":"Networking"},"content":{"rendered":"<p>Why is this always so difficult? &nbsp;Surely it should be a simple in this connected world for devices to talk with each other without jumping through various hoops?<\/p>\n<p>Playing with <a href=\"http:\/\/www.freenas.org\">FreeNAS<\/a> has developed my network understanding, but I&#8217;m still very much an amateur when it comes to fully understanding my &#8216;network stack&#8217; &nbsp;I need to figure out the best way to talk to the various devices I have using a combination of sharing protocols (e.g. CIFS, AFP, NFS)<\/p>\n<p><!--more--><\/p>\n<p>I&#8217;m going to start with AFP (Apple File Protocol) as the majority of devices on my network are Macs. &nbsp;I also use AFP shares on my FreeNAS box for them to connect to.<\/p>\n<p>By simply installing Netatalk I can see almost all of my devices in the Files &gt; Network, so a good start but I can&#8217;t connect to them all so I&#8217;ll need to do some more research&#8230;<\/p>\n<pre>$ sudo apt-get install netatalk<\/pre>\n<p>Also want some Samba action, so to installed cifs<\/p>\n<pre><code>apt-get install cifs-utils\n<\/code><\/pre>\n<p>Not sure if anyone noticed yet, but the first few blog posts were very much &#8216;live&#8217; and I was updating things as I went on.<\/p>\n<p>I parked this idea when I got to this point as some of the networking stuff is a bit &#8216;trial and error&#8217; for me, although it actually surprised me how quickly I managed to setup what I need to begin with.<\/p>\n<p>Some background first. &nbsp;My home network consists of a number of Macs and iOS devices, 2 FreeNAS machines, and various other devices that I won&#8217;t go into. &nbsp;The main hub for everything is my primary FreeNAS machine (freenas1) which I built about 18 months ago. &nbsp;It&#8217;s a Supermicro motherboard (X10SL7-F) with a Xeon E3-1231v3 processor and 32GB RAM all powered by a Seasonic PSU in a Fractal Define R5 case. &nbsp;It houses 9x4TB Seagate HDDs (configured in a ZFS RAIDZ2 array) and a 120GB Toshiba SSD to boot from. &nbsp;It&#8217;s primarily for storage (~24TiB of usable space) but I also run a number of jails on the machine for ownCloud, Plex, openVPN, Calibre, Webserver (my WordPress blogs runs on this) and various VMs. &nbsp;It runs 24&#215;7 and never misses a beat, and was probably the best computer hardware purchase I&#8217;ve ever made. &nbsp;The 2nd FreeNAS machine (freenas2) is a HP Microserver that used to be my primary machine, until I out grew it. &nbsp;It&#8217;s only got 16GB RAM and 5x4TB HDD and is used purely as a backup for freenas1 (which replicates most of the datasets overnight). &nbsp;One of the VM&#8217;s on freenas1 is running CentOS and CrashPlan which also provides an offsite backup for my irreplaceable stuff (e.g. pictures, documents, music, and some configuration stuff).<\/p>\n<p>My first attempt at connecting to the various AFP shares on freenas1 wasn&#8217;t very successful, and I didn&#8217;t really want to break anything so thought I&#8217;d try connecting to the data on freenas2. &nbsp;This has a single AFP share to the zpool, and whilst I couldn&#8217;t connect to this, I didn&#8217;t mind setting up a cifs share here and had no issues connecting to this.<\/p>\n<p>So I can now connect to all my key data, albeit a nightly backup from the master data on freenas1. &nbsp;This actually seemed like a safe option, so I pretty much left things there. &nbsp;I did want eOS to mount this at startup, so edited the \/etc\/fstab file adding the following:<\/p>\n<pre>\/\/localip\/zpoolname \/mnt cifs username=xxx,password=xxx, nounix 0 0<\/pre>\n<p>Whilst I&#8217;m probably not going to use the Music app (more later on that) I did want a link to the music on freenas2 so created a symbolic link as below:<\/p>\n<pre>$ ln -s \/mnt\/backup\/iTunes\/Music\/ \/home\/adrian\/Music\/iTunes\/<\/pre>\n<p>The other thing I wanted to do was connect to my VMs running on freenas1. &nbsp;I use Screen Sharing or RealVLC on macOS, so looked for RealVLC for Linux and found it. &nbsp;Not in the eOS AppCenter, so downloaded from here &gt;&nbsp;<a href=\"https:\/\/www.realvnc.com\/download\/viewer\/linux\/\">https:\/\/www.realvnc.com\/download\/viewer\/linux\/<\/a><\/p>\n<p>It was a&nbsp;simple a case of changing the permissions on the file and then running:<\/p>\n<pre>$ chmod a+x VNC-Viewer-6.0.0-Linux-x64\n$.\/VNC-Viewer-6.0.0-Linux-x64<\/pre>\n<p>Not sure I really liked it, but it worked fine and enabled me to connect to my CrashPlan VM which runs 24&#215;7. &nbsp;Didn&#8217;t test anything else, but I can&#8217;t see why they wouldn&#8217;t work too.<\/p>\n<p>UPDATE: &nbsp;Found this link &gt;&nbsp;<a href=\"http:\/\/www.techradar.com\/news\/software\/applications\/7-of-the-best-linux-remote-desktop-clients-716346\">http:\/\/www.techradar.com\/news\/software\/applications\/7-of-the-best-linux-remote-desktop-clients-716346<\/a>&nbsp;which appears to have some better alternatives.<\/p>\n<p>Anyway, a bit if a long one, but I suspect it could have been a lot longer had a persisted with the AFP sharing. &nbsp;I&#8217;ll probably come back to it, as it would be nice to connect to the drives on my other Macs from time to time, but one for another day&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Why is this always so difficult? &nbsp;Surely it should be a simple in this connected world for devices to talk with each other without jumping through various hoops? Playing with FreeNAS has developed my network understanding, but I&#8217;m still very much an amateur when it comes to fully understanding my &#8216;network stack&#8217; &nbsp;I need to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":true,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[17,19],"tags":[21],"class_list":["post-663","post","type-post","status-publish","format-standard","hentry","category-eos","category-freenas","tag-spellchecked"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Networking - Adrian&#039;s Blog<\/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:\/\/home.apeconsulting.co.uk\/adrian\/networking\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Networking - Adrian&#039;s Blog\" \/>\n<meta property=\"og:description\" content=\"Why is this always so difficult? &nbsp;Surely it should be a simple in this connected world for devices to talk with each other without jumping through various hoops? Playing with FreeNAS has developed my network understanding, but I&#8217;m still very much an amateur when it comes to fully understanding my &#8216;network stack&#8217; &nbsp;I need to [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/home.apeconsulting.co.uk\/adrian\/networking\/\" \/>\n<meta property=\"og:site_name\" content=\"Adrian&#039;s Blog\" \/>\n<meta property=\"article:published_time\" content=\"2016-11-20T18:14:24+00:00\" \/>\n<meta name=\"author\" content=\"Adrian\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Adrian\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated 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:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/networking\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/networking\\\/\"},\"author\":{\"name\":\"Adrian\",\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/#\\\/schema\\\/person\\\/f63f15ff50bb8f956afdd86a816c5d2a\"},\"headline\":\"Networking\",\"datePublished\":\"2016-11-20T18:14:24+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/networking\\\/\"},\"wordCount\":810,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/#\\\/schema\\\/person\\\/f63f15ff50bb8f956afdd86a816c5d2a\"},\"keywords\":[\"Checked\"],\"articleSection\":[\"eOS\",\"FreeNAS\"],\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/networking\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/networking\\\/\",\"url\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/networking\\\/\",\"name\":\"Networking - Adrian&#039;s Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/#website\"},\"datePublished\":\"2016-11-20T18:14:24+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/networking\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/networking\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/networking\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Networking\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/#website\",\"url\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/\",\"name\":\"Adrian&#039;s Blog\",\"description\":\"Ramblings of an IT Geek\",\"publisher\":{\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/#\\\/schema\\\/person\\\/f63f15ff50bb8f956afdd86a816c5d2a\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/#\\\/schema\\\/person\\\/f63f15ff50bb8f956afdd86a816c5d2a\",\"name\":\"Adrian\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c2e5d9012573aedee25fd68deb071781d974af50ae74bf73aeb0e70433f7390c?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c2e5d9012573aedee25fd68deb071781d974af50ae74bf73aeb0e70433f7390c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c2e5d9012573aedee25fd68deb071781d974af50ae74bf73aeb0e70433f7390c?s=96&d=mm&r=g\",\"caption\":\"Adrian\"},\"logo\":{\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c2e5d9012573aedee25fd68deb071781d974af50ae74bf73aeb0e70433f7390c?s=96&d=mm&r=g\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Networking - Adrian&#039;s Blog","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:\/\/home.apeconsulting.co.uk\/adrian\/networking\/","og_locale":"en_GB","og_type":"article","og_title":"Networking - Adrian&#039;s Blog","og_description":"Why is this always so difficult? &nbsp;Surely it should be a simple in this connected world for devices to talk with each other without jumping through various hoops? Playing with FreeNAS has developed my network understanding, but I&#8217;m still very much an amateur when it comes to fully understanding my &#8216;network stack&#8217; &nbsp;I need to [&hellip;]","og_url":"https:\/\/home.apeconsulting.co.uk\/adrian\/networking\/","og_site_name":"Adrian&#039;s Blog","article_published_time":"2016-11-20T18:14:24+00:00","author":"Adrian","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Adrian","Estimated reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/networking\/#article","isPartOf":{"@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/networking\/"},"author":{"name":"Adrian","@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/#\/schema\/person\/f63f15ff50bb8f956afdd86a816c5d2a"},"headline":"Networking","datePublished":"2016-11-20T18:14:24+00:00","mainEntityOfPage":{"@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/networking\/"},"wordCount":810,"commentCount":1,"publisher":{"@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/#\/schema\/person\/f63f15ff50bb8f956afdd86a816c5d2a"},"keywords":["Checked"],"articleSection":["eOS","FreeNAS"],"inLanguage":"en-GB","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/home.apeconsulting.co.uk\/adrian\/networking\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/networking\/","url":"https:\/\/home.apeconsulting.co.uk\/adrian\/networking\/","name":"Networking - Adrian&#039;s Blog","isPartOf":{"@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/#website"},"datePublished":"2016-11-20T18:14:24+00:00","breadcrumb":{"@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/networking\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/home.apeconsulting.co.uk\/adrian\/networking\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/networking\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/home.apeconsulting.co.uk\/adrian\/"},{"@type":"ListItem","position":2,"name":"Networking"}]},{"@type":"WebSite","@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/#website","url":"https:\/\/home.apeconsulting.co.uk\/adrian\/","name":"Adrian&#039;s Blog","description":"Ramblings of an IT Geek","publisher":{"@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/#\/schema\/person\/f63f15ff50bb8f956afdd86a816c5d2a"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/home.apeconsulting.co.uk\/adrian\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":["Person","Organization"],"@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/#\/schema\/person\/f63f15ff50bb8f956afdd86a816c5d2a","name":"Adrian","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/secure.gravatar.com\/avatar\/c2e5d9012573aedee25fd68deb071781d974af50ae74bf73aeb0e70433f7390c?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/c2e5d9012573aedee25fd68deb071781d974af50ae74bf73aeb0e70433f7390c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c2e5d9012573aedee25fd68deb071781d974af50ae74bf73aeb0e70433f7390c?s=96&d=mm&r=g","caption":"Adrian"},"logo":{"@id":"https:\/\/secure.gravatar.com\/avatar\/c2e5d9012573aedee25fd68deb071781d974af50ae74bf73aeb0e70433f7390c?s=96&d=mm&r=g"}}]}},"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p90DI4-aH","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-json\/wp\/v2\/posts\/663","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-json\/wp\/v2\/comments?post=663"}],"version-history":[{"count":0,"href":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-json\/wp\/v2\/posts\/663\/revisions"}],"wp:attachment":[{"href":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-json\/wp\/v2\/media?parent=663"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-json\/wp\/v2\/categories?post=663"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-json\/wp\/v2\/tags?post=663"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}