{"id":175,"date":"2010-11-29T11:04:25","date_gmt":"2010-11-29T11:04:25","guid":{"rendered":"http:\/\/laur.ie\/blog\/?p=175"},"modified":"2014-02-20T17:22:35","modified_gmt":"2014-02-20T17:22:35","slug":"handy-binaries-for-thecus-nas-boxes","status":"publish","type":"post","link":"https:\/\/laur.ie\/blog\/2010\/11\/handy-binaries-for-thecus-nas-boxes\/","title":{"rendered":"Handy binaries for Thecus NAS boxes"},"content":{"rendered":"<p>I recently took delivery of the rather splendid <a href=\"http:\/\/www.amazon.co.uk\/gp\/product\/B002YYW1YI?ie=UTF8&amp;tag=lausblo0d-21&amp;linkCode=as2&amp;camp=1634&amp;creative=19450&amp;creativeASIN=B002YYW1YI\">Thecus N5500<\/a><img loading=\"lazy\" decoding=\"async\" class=\" amxrhfkelsvzhocxngdb amxrhfkelsvzhocxngdb amxrhfkelsvzhocxngdb amxrhfkelsvzhocxngdb\" style=\"border: none !important; margin: 0px !important;\" alt=\"\" src=\"https:\/\/www.assoc-amazon.co.uk\/e\/ir?t=lausblo0d-21&amp;l=as2&amp;o=2&amp;a=B002YYW1YI\" width=\"1\" height=\"1\" border=\"0\" \/> which I love; it&#8217;s the perfect mix between &#8220;it just works&#8221; and &#8220;oh, let&#8217;s stick SSH on there and poke around&#8221;. With 5 hot swap disk shelves, and 2TB hard drives you&#8217;ve got a serious amount of storage.<\/p>\n<p>For your money you get a very nice little piece of hardware in a pretty nice shell (it strikes me as a touch tacky in places but then again it&#8217;s hardly going on show) with software that gets the job done. NFS, AFP, Samba, iSCSI, iTunes DAAP support, and plenty of modules to tickle your fancy (Logitech Squeezecenter, for instance).<\/p>\n<p>But who am I kidding, I&#8217;m a sysadmin. 10 minutes after powering the thing on I was dying to log in using SSH so I could watch <code>\/proc\/mdstat<\/code> to see the RAID build. Luckily, the modules from the <a href=\"http:\/\/www.amazon.co.uk\/gp\/product\/B000VFJ1BI?ie=UTF8&amp;tag=lausblo0d-21&amp;linkCode=as2&amp;camp=1634&amp;creative=19450&amp;creativeASIN=B000VFJ1BI\">Thecus N5200<\/a><img loading=\"lazy\" decoding=\"async\" class=\" amxrhfkelsvzhocxngdb amxrhfkelsvzhocxngdb amxrhfkelsvzhocxngdb amxrhfkelsvzhocxngdb\" style=\"border: none !important; margin: 0px !important;\" alt=\"\" src=\"https:\/\/www.assoc-amazon.co.uk\/e\/ir?t=lausblo0d-21&amp;l=as2&amp;o=2&amp;a=B000VFJ1BI\" width=\"1\" height=\"1\" border=\"0\" \/> work fine; which means you&#8217;re a couple of clicks away from a root terminal.<\/p>\n<ol>\n<li>Grab the <a href=\"http:\/\/denness.net\/thecus\/modules\/N5200_SSHD_2.00.00.zip\">SSH<\/a> and <a href=\"http:\/\/denness.net\/thecus\/modules\/N5200_SYSUSER_2.00.02.zip\">SYSUSER<\/a> N5200 modules, and unzip them (a mistake I made.. How embarrassing.)<\/li>\n<li>Upload them using the webinterface, and enable them.<\/li>\n<li>SSH to the NAS box using the user &#8220;sys&#8221; and the password &#8220;sys&#8221;<\/li>\n<li>Enjoy your shell, and remember to run <code>`passwd sys`<\/code> to change the password to something else.<\/li>\n<\/ol>\n<p>Now, you&#8217;ve got yourself a pretty handy, albeit it BusyBox-ridden install of Linux. The whole point of this post, is so I can pimp a few statically compiled binaries that might come in useful to you; they did to me anyway.<\/p>\n<p>(You may wish to install the UTILITIES module, which gives you a proper version of <code>top<\/code> and <code>ps<\/code>, amongst other things, available <a href=\"http:\/\/denness.net\/thecus\/modules\/N5200_UTILS_2.00.01.zip\">here<\/a>)<\/p>\n<p>You can simply untar and drop the binaries into \/raid\/data\/modules\/bin folder so that they&#8217;re in your path, and stored on your disks rather than the flash units which are rather limited in space. By the way, these modules should also work fine on the <a href=\"http:\/\/www.amazon.co.uk\/gp\/product\/B000VFJ1BI?ie=UTF8&amp;tag=lausblo0d-21&amp;linkCode=as2&amp;camp=1634&amp;creative=19450&amp;creativeASIN=B000VFJ1BI\">Thecus N5200<\/a><img loading=\"lazy\" decoding=\"async\" class=\" amxrhfkelsvzhocxngdb amxrhfkelsvzhocxngdb amxrhfkelsvzhocxngdb amxrhfkelsvzhocxngdb\" style=\"border: none !important; margin: 0px !important;\" alt=\"\" src=\"https:\/\/www.assoc-amazon.co.uk\/e\/ir?t=lausblo0d-21&amp;l=as2&amp;o=2&amp;a=B000VFJ1BI\" width=\"1\" height=\"1\" border=\"0\" \/> NAS boxes too.<\/p>\n<p>The binaries are available here: <a href=\"http:\/\/denness.net\/thecus\/binaries\/\">http:\/\/denness.net\/thecus\/binaries\/<\/a><\/p>\n<p>The list includes (all the latest versions as of the date of this blog post):<\/p>\n<ul>\n<li>ethtool, handy for network interface prodding<\/li>\n<li>iftop, a very useful &#8220;GUI&#8221; app that shows incoming\/outgoing network bandwidth (let&#8217;s face it, this is fun on a NAS. <strong>NOTE:<\/strong> you may need to execute this one using <code>`TERM=vt100; iftop`<\/code>)<\/li>\n<li>iostat, for hard core disk stats porn. Run it with <code>`iostat -mx 1`<\/code> and watch the megabytes fly<\/li>\n<li>rsync, particularly handy if you want to synchronise\/backup data from one place to another, so particularly handy on a NAS.<\/li>\n<li>vim, just in case you were planning on writing a lot of code on the Thecus \ud83d\ude42<\/li>\n<li>GNU screen, a nice place to store your terminals and detach and come back later. (<strong>NOTE:<\/strong> you may need to execute this one using <code>`TERM=vt100; screen`<\/code>)<\/li>\n<li>The command line version of PHP, in case you were planning on writing any scripts in PHP to run on the Thecus.<\/li>\n<\/ul>\n<p>Any suggestions\/comments, let me know.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I recently took delivery of the rather splendid Thecus N5500 which I love; it&#8217;s the perfect mix between &#8220;it just works&#8221; and &#8220;oh, let&#8217;s stick SSH on there and poke around&#8221;. With 5 hot swap disk shelves, and 2TB hard drives you&#8217;ve got a serious amount of storage. For your money you get a very &hellip; <a href=\"https:\/\/laur.ie\/blog\/2010\/11\/handy-binaries-for-thecus-nas-boxes\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Handy binaries for Thecus NAS boxes<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[3],"tags":[],"class_list":["post-175","post","type-post","status-publish","format-standard","hentry","category-technology"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pioRW-2P","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/laur.ie\/blog\/wp-json\/wp\/v2\/posts\/175","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/laur.ie\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/laur.ie\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/laur.ie\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/laur.ie\/blog\/wp-json\/wp\/v2\/comments?post=175"}],"version-history":[{"count":13,"href":"https:\/\/laur.ie\/blog\/wp-json\/wp\/v2\/posts\/175\/revisions"}],"predecessor-version":[{"id":267,"href":"https:\/\/laur.ie\/blog\/wp-json\/wp\/v2\/posts\/175\/revisions\/267"}],"wp:attachment":[{"href":"https:\/\/laur.ie\/blog\/wp-json\/wp\/v2\/media?parent=175"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/laur.ie\/blog\/wp-json\/wp\/v2\/categories?post=175"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/laur.ie\/blog\/wp-json\/wp\/v2\/tags?post=175"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}