{"id":6013,"date":"2016-05-06T21:24:59","date_gmt":"2016-05-07T04:24:59","guid":{"rendered":"http:\/\/www.apolonio.com\/blog\/?p=6013"},"modified":"2016-05-06T21:24:59","modified_gmt":"2016-05-07T04:24:59","slug":"bash-scripts-and-clonezilla","status":"publish","type":"post","link":"https:\/\/www.apolonio.com\/blog\/?p=6013","title":{"rendered":"Bash Scripts and Clonezilla"},"content":{"rendered":"<p>I figured out how to install clonezilla on a centos box today.<\/p>\n<p>Should help with mass disk imaging project.<\/p>\n<p>During the course of my research I came across a way to embed files in a bash script.<\/p>\n<p>Here is a sample<\/p>\n<pre>#\/bin\/bash\r\n\r\nuudecode &lt;&lt; 'HOSTSFILE'\r\nbegin 644 hosts\r\nM,3(W+C`N,\"XQ(\"`@;&amp;]C86QH;W-T(&amp;QO8V%L:&amp;]S=\"YL;V-A;&amp;1O;6%I;B!L\r\nM;V-A;&amp;AO&lt;W0T(&amp;QO8V%L:&amp;]S=#0N;&amp;]C86QD;VUA:6XT\"CHZ,2`@(\"`@(\"`@\r\nM(&amp;QO8V%L:&amp;]S=\"!L;V-A;&amp;AO&lt;W0N;&amp;]C86QD;VUA:6X@;&amp;]C86QH;W-T-B!L\r\n7;V-A;&amp;AO&lt;W0V+FQO8V%L9&amp;]M86EN-@H`\r\n`\r\nend\r\nHOSTSFILE\r\n\r\n<\/pre>\n<p>Requires the sharutils package.<\/p>\n<p>I didn&#8217;t run today. \u00a0Too much to do.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I figured out how to install clonezilla on a centos box today. Should help with mass disk imaging project. During the course of my research I came across a way to embed files in a bash script. Here is a &hellip; <a href=\"https:\/\/www.apolonio.com\/blog\/?p=6013\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,3],"tags":[],"class_list":["post-6013","post","type-post","status-publish","format-standard","hentry","category-technical","category-training"],"_links":{"self":[{"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/6013","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6013"}],"version-history":[{"count":1,"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/6013\/revisions"}],"predecessor-version":[{"id":6014,"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/6013\/revisions\/6014"}],"wp:attachment":[{"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6013"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6013"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6013"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}