{"id":1100,"date":"2020-10-07T18:08:14","date_gmt":"2020-10-07T22:08:14","guid":{"rendered":"https:\/\/blog.lufamily.ca\/kang\/?p=1100"},"modified":"2020-10-07T18:08:16","modified_gmt":"2020-10-07T22:08:16","slug":"no-more-network-interface","status":"publish","type":"post","link":"https:\/\/blog.lufamily.ca\/kang\/2020\/10\/07\/no-more-network-interface\/","title":{"rendered":"No more network interface"},"content":{"rendered":"\n<p>This afternoon I wanted to experiment with how I can connect the Gosund WiFi electrical sockets to HomeKit. Unfortunately while I was attempting to do so, I installed packages that corrupted my Linux kernel and removed my network interface.<\/p>\n\n\n\n<p>This is of course a huge inconvenience. After a reboot, I found the media server to not have any networking. The only network interface that it recognized was <code>lo<\/code> (the loop back interface <code>127.0.0.1<\/code>).<\/p>\n\n\n\n<p>When I performed a:<\/p>\n\n\n\n<div style=\"margin-left:2em\"><pre>\nsudo lshw -C network\n<\/pre><\/div>\n\n\n\n<p>The network card was recognized but was <code>UNCLAIMED<\/code>. This obviously raised alarm bells and indicated to me that the kernel was some how not recognizing the card.<\/p>\n\n\n\n<p>I had to download a version of Ubuntu Desktop 18.04 LTS on a USB drive and proceeded to live boot from it. Luckily the live boot recognize the network card and I was able to get networking.<\/p>\n\n\n\n<p>Before I can perform any rescue activities, I had to mount the old root file system and <span class=\"mono\"><code>chroot<\/code><\/span> to it by taking the following steps:<\/p>\n\n\n\n<div style=\"margin-left:2em\"><pre>\n# Boot the Ubuntu Live CD.\n# Press Ctrl-Alt-F1\n\nsudo mount \/dev\/sda1 \/mnt\n\nsudo mount --bind \/dev \/mnt\/dev\n\nsudo mount --bind \/proc \/mnt\/proc\n\nsudo mount --bind \/sys \/mnt\/sys\n\nsudo chroot \/mnt\n\n# Add the following lines into \/etc\/resolv.conf after you use chroot:\n\nnameserver 208.67.222.222\nnameserver 208.67.220.220\n\n<\/pre><\/div>\n\n\n\n<p>I then needed to restore the kernel by executing the following:<\/p>\n\n\n\n<div style=\"margin-left:2em\"><pre>\nsudo apt-get install --install-recommends linux-generic-hwe-18.04\n<\/pre><\/div>\n\n\n\n<p>After another reboot, the server is back to its old self.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This afternoon I wanted to experiment with how I can connect the Gosund WiFi electrical sockets to HomeKit. Unfortunately while I was attempting to do so, I installed packages that corrupted my Linux kernel and removed my network interface. This is of course a huge inconvenience. After a reboot, I found the media server to &hellip; <a href=\"https:\/\/blog.lufamily.ca\/kang\/2020\/10\/07\/no-more-network-interface\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;No more network interface&#8221;<\/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":""},"categories":[1],"tags":[],"class_list":["post-1100","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p7V6i8-hK","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/blog.lufamily.ca\/kang\/wp-json\/wp\/v2\/posts\/1100","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.lufamily.ca\/kang\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.lufamily.ca\/kang\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.lufamily.ca\/kang\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.lufamily.ca\/kang\/wp-json\/wp\/v2\/comments?post=1100"}],"version-history":[{"count":5,"href":"https:\/\/blog.lufamily.ca\/kang\/wp-json\/wp\/v2\/posts\/1100\/revisions"}],"predecessor-version":[{"id":1106,"href":"https:\/\/blog.lufamily.ca\/kang\/wp-json\/wp\/v2\/posts\/1100\/revisions\/1106"}],"wp:attachment":[{"href":"https:\/\/blog.lufamily.ca\/kang\/wp-json\/wp\/v2\/media?parent=1100"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.lufamily.ca\/kang\/wp-json\/wp\/v2\/categories?post=1100"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.lufamily.ca\/kang\/wp-json\/wp\/v2\/tags?post=1100"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}