{"id":72,"date":"2008-05-25T16:36:56","date_gmt":"2008-05-25T20:36:56","guid":{"rendered":"http:\/\/www.dev-notes.com\/blog\/2008\/05\/25\/set-a-static-ip-address-for-mythbuntu\/"},"modified":"2018-03-11T21:48:17","modified_gmt":"2018-03-12T01:48:17","slug":"set-a-static-ip-address-for-mythbuntu","status":"publish","type":"post","link":"https:\/\/www.dev-notes.com\/blog\/2008\/05\/25\/set-a-static-ip-address-for-mythbuntu\/","title":{"rendered":"Set a static IP address for Mythbuntu"},"content":{"rendered":"<p>The process to set a static IP address to a Mythbuntu box is very similar to Ubuntu, given that Mythbuntu is built upon Ubuntu.  In Mythbuntu, choose &#8220;Utilities\/Setup&#8221; from the main menu, then &#8220;Setup&#8221;, and finally &#8220;Mythbuntu&#8221;.  After putting in the password, you will be presented with the Mythbuntu Control Centre.  Under &#8220;Advance Management&#8221;, you will be able to &#8220;Launch Terminal&#8221;.<\/p>\n<p>First, check out what your current settings are.<\/p>\n<p class=\"code\">ifconfig -a<\/p>\n<p>Take a note what your current broadcast, subnet mask, and gateway settings are.  Also, have you decided on an IP address for your Mythbuntu box yet?<\/p>\n<p>Next, issue this command to modify the Mythbuntu box&#8217;s network settings.<\/p>\n<p class=\"code\">sudo pico \/etc\/network\/interfaces<\/p>\n<p>In the pico text editor tool, you probably only see a set of &#8220;lo&#8221;, or loopback, settings.  Let&#8217;s add a new set for &#8220;eth0&#8221; so that the whole content of the file looks something like the following.  Note your addresses may be different.  In my case, I set the box&#8217;s static IP address to 192.168.1.3, for example, and yours may be different.<\/p>\n<pre class=\"code\">\r\nauto lo\r\niface lo inet loopback\r\n\r\nauto eth0\r\niface eth0 inet static\r\n\taddress 192.168.1.3\r\n\tnetmask 255.255.255.0\r\n\tnetwork 192.168.1.0\r\n\tbroadcast 192.168.1.255\r\n\tgateway 192.168.1.1\r\n<\/pre>\n<p>Finally, restart the network card with the following command.<\/p>\n<p class=\"code\">sudo \/etc\/init.d\/networking restart<\/p>\n<p>That&#8217;s it!  You should now be able to access the Mythbuntu box with the same IP every time now!  No more trying to guess what the IP address might change to every time you turn it on!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When I set up my Mythbuntu box for my home entertainment center, it seems that by default it was set to dynamic IP, which makes things just a tad bit annoying when the IP address changes.  This article notes how I made the network address static.<\/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-72","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\/72","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=72"}],"version-history":[{"count":1,"href":"https:\/\/www.dev-notes.com\/blog\/wp-json\/wp\/v2\/posts\/72\/revisions"}],"predecessor-version":[{"id":173,"href":"https:\/\/www.dev-notes.com\/blog\/wp-json\/wp\/v2\/posts\/72\/revisions\/173"}],"wp:attachment":[{"href":"https:\/\/www.dev-notes.com\/blog\/wp-json\/wp\/v2\/media?parent=72"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dev-notes.com\/blog\/wp-json\/wp\/v2\/categories?post=72"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dev-notes.com\/blog\/wp-json\/wp\/v2\/tags?post=72"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}