Monday, September 30, 2013

Enabling Networking from Terminal in Lubuntu 12.04

I was running a "sudo do-release-upgrade" on my Lubuntu 12.01 laptop when durring a series of unfortunate events, I broke it. It rebooted and I was able to login, but no X session. Here is what I did to come back. I typed:




  1. sudo ifconfig eth0 up (in order to logically enable the interface)
  2. sudo ifconfig eth0 192.168.0.4 (to set the ip since dhcp wasn't working)
  3. sudo ifup eth0 (this should have turned dhcp on for eth0)
  4. vi dns.txt
  5. enter "nameserver 4.2.2.2" and save and quit
  6. cat dns.txt | sudo resolvconf -a eth0
  7. And you should be live!

No comments: