How to setup network without wicd or NetworkManager?












3














I am working on a raspberry pi box with ubuntu(15.10) installed.
It has limited memory so I want to same as much as possible.



In memory usage report wicd/NetworkManager and subprocesses usage aprox 60MB RAM.
Is there a way to setup networking without using that much ram?



My rpi is connected to LAN using Ethernet I don't need wireless support.



I tried setting up /etc/network/interface and disabling wicd/NetworkManager but unable to get eth0 up.



I have tried steps in how-to-access-network-without-networkmanager but unable to get it working.










share|improve this question





























    3














    I am working on a raspberry pi box with ubuntu(15.10) installed.
    It has limited memory so I want to same as much as possible.



    In memory usage report wicd/NetworkManager and subprocesses usage aprox 60MB RAM.
    Is there a way to setup networking without using that much ram?



    My rpi is connected to LAN using Ethernet I don't need wireless support.



    I tried setting up /etc/network/interface and disabling wicd/NetworkManager but unable to get eth0 up.



    I have tried steps in how-to-access-network-without-networkmanager but unable to get it working.










    share|improve this question



























      3












      3








      3


      2





      I am working on a raspberry pi box with ubuntu(15.10) installed.
      It has limited memory so I want to same as much as possible.



      In memory usage report wicd/NetworkManager and subprocesses usage aprox 60MB RAM.
      Is there a way to setup networking without using that much ram?



      My rpi is connected to LAN using Ethernet I don't need wireless support.



      I tried setting up /etc/network/interface and disabling wicd/NetworkManager but unable to get eth0 up.



      I have tried steps in how-to-access-network-without-networkmanager but unable to get it working.










      share|improve this question















      I am working on a raspberry pi box with ubuntu(15.10) installed.
      It has limited memory so I want to same as much as possible.



      In memory usage report wicd/NetworkManager and subprocesses usage aprox 60MB RAM.
      Is there a way to setup networking without using that much ram?



      My rpi is connected to LAN using Ethernet I don't need wireless support.



      I tried setting up /etc/network/interface and disabling wicd/NetworkManager but unable to get eth0 up.



      I have tried steps in how-to-access-network-without-networkmanager but unable to get it working.







      networking networkmanager network-interface wicd






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 44 mins ago









      peterh

      4,29092957




      4,29092957










      asked Jan 3 '16 at 18:06









      Hemant

      4,15123138




      4,15123138






















          1 Answer
          1






          active

          oldest

          votes


















          5














          I had problems with network manager on ubuntu , so i set up static networking. You can follow these steps and it will work ( i configured only wlan0 because i use wireless , you just need to skip the wireless related things in it)



          Show your interfaces:



           $ ip a show


          Note the default Ethernet and wifi interfaces:



          It looks like our Ethernet port is eth0. Our WiFi radio is wlan0. Want to make this briefer?



          $ ip a show | awk  '/^[0-9]: /{print $2}'


          The output of this command will look something like this:



            lo:
          eth0:
          wlan0:


          Your gateway IP address is found with:



          route -n


          It provides access to destination 0.0.0.0 (everything). In the below image it is 192.168.0.1, which is perfectly nominal.



          route-n
          Let’s do a bit of easy configuration in our /etc/networking/interfaces file. The format of this file is not difficult to put together from the man page, but really, you should search for examples first.
          interfaces
          Plug in your Ethernet port.



          Basically, we’re just adding DHCP entries for our interfaces. Above you’ll see a route to another network that appears when I get a DHCP lease on my Ethernet port. Next, add this:



          auto lo
          iface lo inet loopback
          auto eth0
          iface eth0 inet dhcp
          auto wlan0
          iface wlan0 inet dhcp


          Next, enable and start the networking service:



          sudo update-rc.d networking enable



          sudo /etc/init.d/networking start


          Let’s make sure this works, by resetting the port with these commands:



          sudo ifdown eth0
          sudo ip a flush eth0

          sudo ifup eth0


          This downs the interface, flushes the address assignment to it, and then brings it up. Test it out by pinging your gateway IP: ping 192.168.0.1. If you don’t get a response, your interface is not connected or your made a typo.



          Let’s “do some WiFi” next! We want to make an /etc/wpa_supplicant.conf file. Consider mine:



          network={
          ssid="CenturyLink7851"
          scan_ssid=1
          key_mgmt=WPA-PSK
          psk="4f-------------ac"
          }


          Now we can reset the WiFi interface and put this to work:



          sudo ifdown wlan0



          sudo ip a flush wlan0

          sudo ifup wlan0



          sudo wpa_supplicant -Dnl80211 -c /root/wpa_supplicant.conf -iwlan0 -B



          sudo dhclient wlan0


          That should do it. Use a ping to find out, and do it explicitly from wlan0, so it gets it’s address first:



          $ ip a show wlan0 | grep "inet"

          Presumably dhclient updated your /etc/resolv.conf, so you can also do a:

          ping -I 192.168.0.45 www.yahoo.com


          you’re now running without NetworkManager!






          share|improve this answer





















          • Thanks for quick response. When I tried to setup my network by disabling wicd/networkmanger Ifconfig does give me only lo network adapter.
            – Hemant
            Jan 4 '16 at 9:08










          • no , you should run ip a show , or ifconfig before disabling network manager
            – Ijaz Ahmad Khan
            Jan 4 '16 at 9:30










          • Got it working :) Thanks alot for your help. I was using wrong name of Ethernet adapter.
            – Hemant
            Jan 5 '16 at 15:07








          • 1




            Ok , good , grt , welcome
            – Ijaz Ahmad Khan
            Jan 5 '16 at 15:08











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "106"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f253030%2fhow-to-setup-network-without-wicd-or-networkmanager%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          5














          I had problems with network manager on ubuntu , so i set up static networking. You can follow these steps and it will work ( i configured only wlan0 because i use wireless , you just need to skip the wireless related things in it)



          Show your interfaces:



           $ ip a show


          Note the default Ethernet and wifi interfaces:



          It looks like our Ethernet port is eth0. Our WiFi radio is wlan0. Want to make this briefer?



          $ ip a show | awk  '/^[0-9]: /{print $2}'


          The output of this command will look something like this:



            lo:
          eth0:
          wlan0:


          Your gateway IP address is found with:



          route -n


          It provides access to destination 0.0.0.0 (everything). In the below image it is 192.168.0.1, which is perfectly nominal.



          route-n
          Let’s do a bit of easy configuration in our /etc/networking/interfaces file. The format of this file is not difficult to put together from the man page, but really, you should search for examples first.
          interfaces
          Plug in your Ethernet port.



          Basically, we’re just adding DHCP entries for our interfaces. Above you’ll see a route to another network that appears when I get a DHCP lease on my Ethernet port. Next, add this:



          auto lo
          iface lo inet loopback
          auto eth0
          iface eth0 inet dhcp
          auto wlan0
          iface wlan0 inet dhcp


          Next, enable and start the networking service:



          sudo update-rc.d networking enable



          sudo /etc/init.d/networking start


          Let’s make sure this works, by resetting the port with these commands:



          sudo ifdown eth0
          sudo ip a flush eth0

          sudo ifup eth0


          This downs the interface, flushes the address assignment to it, and then brings it up. Test it out by pinging your gateway IP: ping 192.168.0.1. If you don’t get a response, your interface is not connected or your made a typo.



          Let’s “do some WiFi” next! We want to make an /etc/wpa_supplicant.conf file. Consider mine:



          network={
          ssid="CenturyLink7851"
          scan_ssid=1
          key_mgmt=WPA-PSK
          psk="4f-------------ac"
          }


          Now we can reset the WiFi interface and put this to work:



          sudo ifdown wlan0



          sudo ip a flush wlan0

          sudo ifup wlan0



          sudo wpa_supplicant -Dnl80211 -c /root/wpa_supplicant.conf -iwlan0 -B



          sudo dhclient wlan0


          That should do it. Use a ping to find out, and do it explicitly from wlan0, so it gets it’s address first:



          $ ip a show wlan0 | grep "inet"

          Presumably dhclient updated your /etc/resolv.conf, so you can also do a:

          ping -I 192.168.0.45 www.yahoo.com


          you’re now running without NetworkManager!






          share|improve this answer





















          • Thanks for quick response. When I tried to setup my network by disabling wicd/networkmanger Ifconfig does give me only lo network adapter.
            – Hemant
            Jan 4 '16 at 9:08










          • no , you should run ip a show , or ifconfig before disabling network manager
            – Ijaz Ahmad Khan
            Jan 4 '16 at 9:30










          • Got it working :) Thanks alot for your help. I was using wrong name of Ethernet adapter.
            – Hemant
            Jan 5 '16 at 15:07








          • 1




            Ok , good , grt , welcome
            – Ijaz Ahmad Khan
            Jan 5 '16 at 15:08
















          5














          I had problems with network manager on ubuntu , so i set up static networking. You can follow these steps and it will work ( i configured only wlan0 because i use wireless , you just need to skip the wireless related things in it)



          Show your interfaces:



           $ ip a show


          Note the default Ethernet and wifi interfaces:



          It looks like our Ethernet port is eth0. Our WiFi radio is wlan0. Want to make this briefer?



          $ ip a show | awk  '/^[0-9]: /{print $2}'


          The output of this command will look something like this:



            lo:
          eth0:
          wlan0:


          Your gateway IP address is found with:



          route -n


          It provides access to destination 0.0.0.0 (everything). In the below image it is 192.168.0.1, which is perfectly nominal.



          route-n
          Let’s do a bit of easy configuration in our /etc/networking/interfaces file. The format of this file is not difficult to put together from the man page, but really, you should search for examples first.
          interfaces
          Plug in your Ethernet port.



          Basically, we’re just adding DHCP entries for our interfaces. Above you’ll see a route to another network that appears when I get a DHCP lease on my Ethernet port. Next, add this:



          auto lo
          iface lo inet loopback
          auto eth0
          iface eth0 inet dhcp
          auto wlan0
          iface wlan0 inet dhcp


          Next, enable and start the networking service:



          sudo update-rc.d networking enable



          sudo /etc/init.d/networking start


          Let’s make sure this works, by resetting the port with these commands:



          sudo ifdown eth0
          sudo ip a flush eth0

          sudo ifup eth0


          This downs the interface, flushes the address assignment to it, and then brings it up. Test it out by pinging your gateway IP: ping 192.168.0.1. If you don’t get a response, your interface is not connected or your made a typo.



          Let’s “do some WiFi” next! We want to make an /etc/wpa_supplicant.conf file. Consider mine:



          network={
          ssid="CenturyLink7851"
          scan_ssid=1
          key_mgmt=WPA-PSK
          psk="4f-------------ac"
          }


          Now we can reset the WiFi interface and put this to work:



          sudo ifdown wlan0



          sudo ip a flush wlan0

          sudo ifup wlan0



          sudo wpa_supplicant -Dnl80211 -c /root/wpa_supplicant.conf -iwlan0 -B



          sudo dhclient wlan0


          That should do it. Use a ping to find out, and do it explicitly from wlan0, so it gets it’s address first:



          $ ip a show wlan0 | grep "inet"

          Presumably dhclient updated your /etc/resolv.conf, so you can also do a:

          ping -I 192.168.0.45 www.yahoo.com


          you’re now running without NetworkManager!






          share|improve this answer





















          • Thanks for quick response. When I tried to setup my network by disabling wicd/networkmanger Ifconfig does give me only lo network adapter.
            – Hemant
            Jan 4 '16 at 9:08










          • no , you should run ip a show , or ifconfig before disabling network manager
            – Ijaz Ahmad Khan
            Jan 4 '16 at 9:30










          • Got it working :) Thanks alot for your help. I was using wrong name of Ethernet adapter.
            – Hemant
            Jan 5 '16 at 15:07








          • 1




            Ok , good , grt , welcome
            – Ijaz Ahmad Khan
            Jan 5 '16 at 15:08














          5












          5








          5






          I had problems with network manager on ubuntu , so i set up static networking. You can follow these steps and it will work ( i configured only wlan0 because i use wireless , you just need to skip the wireless related things in it)



          Show your interfaces:



           $ ip a show


          Note the default Ethernet and wifi interfaces:



          It looks like our Ethernet port is eth0. Our WiFi radio is wlan0. Want to make this briefer?



          $ ip a show | awk  '/^[0-9]: /{print $2}'


          The output of this command will look something like this:



            lo:
          eth0:
          wlan0:


          Your gateway IP address is found with:



          route -n


          It provides access to destination 0.0.0.0 (everything). In the below image it is 192.168.0.1, which is perfectly nominal.



          route-n
          Let’s do a bit of easy configuration in our /etc/networking/interfaces file. The format of this file is not difficult to put together from the man page, but really, you should search for examples first.
          interfaces
          Plug in your Ethernet port.



          Basically, we’re just adding DHCP entries for our interfaces. Above you’ll see a route to another network that appears when I get a DHCP lease on my Ethernet port. Next, add this:



          auto lo
          iface lo inet loopback
          auto eth0
          iface eth0 inet dhcp
          auto wlan0
          iface wlan0 inet dhcp


          Next, enable and start the networking service:



          sudo update-rc.d networking enable



          sudo /etc/init.d/networking start


          Let’s make sure this works, by resetting the port with these commands:



          sudo ifdown eth0
          sudo ip a flush eth0

          sudo ifup eth0


          This downs the interface, flushes the address assignment to it, and then brings it up. Test it out by pinging your gateway IP: ping 192.168.0.1. If you don’t get a response, your interface is not connected or your made a typo.



          Let’s “do some WiFi” next! We want to make an /etc/wpa_supplicant.conf file. Consider mine:



          network={
          ssid="CenturyLink7851"
          scan_ssid=1
          key_mgmt=WPA-PSK
          psk="4f-------------ac"
          }


          Now we can reset the WiFi interface and put this to work:



          sudo ifdown wlan0



          sudo ip a flush wlan0

          sudo ifup wlan0



          sudo wpa_supplicant -Dnl80211 -c /root/wpa_supplicant.conf -iwlan0 -B



          sudo dhclient wlan0


          That should do it. Use a ping to find out, and do it explicitly from wlan0, so it gets it’s address first:



          $ ip a show wlan0 | grep "inet"

          Presumably dhclient updated your /etc/resolv.conf, so you can also do a:

          ping -I 192.168.0.45 www.yahoo.com


          you’re now running without NetworkManager!






          share|improve this answer












          I had problems with network manager on ubuntu , so i set up static networking. You can follow these steps and it will work ( i configured only wlan0 because i use wireless , you just need to skip the wireless related things in it)



          Show your interfaces:



           $ ip a show


          Note the default Ethernet and wifi interfaces:



          It looks like our Ethernet port is eth0. Our WiFi radio is wlan0. Want to make this briefer?



          $ ip a show | awk  '/^[0-9]: /{print $2}'


          The output of this command will look something like this:



            lo:
          eth0:
          wlan0:


          Your gateway IP address is found with:



          route -n


          It provides access to destination 0.0.0.0 (everything). In the below image it is 192.168.0.1, which is perfectly nominal.



          route-n
          Let’s do a bit of easy configuration in our /etc/networking/interfaces file. The format of this file is not difficult to put together from the man page, but really, you should search for examples first.
          interfaces
          Plug in your Ethernet port.



          Basically, we’re just adding DHCP entries for our interfaces. Above you’ll see a route to another network that appears when I get a DHCP lease on my Ethernet port. Next, add this:



          auto lo
          iface lo inet loopback
          auto eth0
          iface eth0 inet dhcp
          auto wlan0
          iface wlan0 inet dhcp


          Next, enable and start the networking service:



          sudo update-rc.d networking enable



          sudo /etc/init.d/networking start


          Let’s make sure this works, by resetting the port with these commands:



          sudo ifdown eth0
          sudo ip a flush eth0

          sudo ifup eth0


          This downs the interface, flushes the address assignment to it, and then brings it up. Test it out by pinging your gateway IP: ping 192.168.0.1. If you don’t get a response, your interface is not connected or your made a typo.



          Let’s “do some WiFi” next! We want to make an /etc/wpa_supplicant.conf file. Consider mine:



          network={
          ssid="CenturyLink7851"
          scan_ssid=1
          key_mgmt=WPA-PSK
          psk="4f-------------ac"
          }


          Now we can reset the WiFi interface and put this to work:



          sudo ifdown wlan0



          sudo ip a flush wlan0

          sudo ifup wlan0



          sudo wpa_supplicant -Dnl80211 -c /root/wpa_supplicant.conf -iwlan0 -B



          sudo dhclient wlan0


          That should do it. Use a ping to find out, and do it explicitly from wlan0, so it gets it’s address first:



          $ ip a show wlan0 | grep "inet"

          Presumably dhclient updated your /etc/resolv.conf, so you can also do a:

          ping -I 192.168.0.45 www.yahoo.com


          you’re now running without NetworkManager!







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 3 '16 at 19:00









          Ijaz Ahmad Khan

          3,42431534




          3,42431534












          • Thanks for quick response. When I tried to setup my network by disabling wicd/networkmanger Ifconfig does give me only lo network adapter.
            – Hemant
            Jan 4 '16 at 9:08










          • no , you should run ip a show , or ifconfig before disabling network manager
            – Ijaz Ahmad Khan
            Jan 4 '16 at 9:30










          • Got it working :) Thanks alot for your help. I was using wrong name of Ethernet adapter.
            – Hemant
            Jan 5 '16 at 15:07








          • 1




            Ok , good , grt , welcome
            – Ijaz Ahmad Khan
            Jan 5 '16 at 15:08


















          • Thanks for quick response. When I tried to setup my network by disabling wicd/networkmanger Ifconfig does give me only lo network adapter.
            – Hemant
            Jan 4 '16 at 9:08










          • no , you should run ip a show , or ifconfig before disabling network manager
            – Ijaz Ahmad Khan
            Jan 4 '16 at 9:30










          • Got it working :) Thanks alot for your help. I was using wrong name of Ethernet adapter.
            – Hemant
            Jan 5 '16 at 15:07








          • 1




            Ok , good , grt , welcome
            – Ijaz Ahmad Khan
            Jan 5 '16 at 15:08
















          Thanks for quick response. When I tried to setup my network by disabling wicd/networkmanger Ifconfig does give me only lo network adapter.
          – Hemant
          Jan 4 '16 at 9:08




          Thanks for quick response. When I tried to setup my network by disabling wicd/networkmanger Ifconfig does give me only lo network adapter.
          – Hemant
          Jan 4 '16 at 9:08












          no , you should run ip a show , or ifconfig before disabling network manager
          – Ijaz Ahmad Khan
          Jan 4 '16 at 9:30




          no , you should run ip a show , or ifconfig before disabling network manager
          – Ijaz Ahmad Khan
          Jan 4 '16 at 9:30












          Got it working :) Thanks alot for your help. I was using wrong name of Ethernet adapter.
          – Hemant
          Jan 5 '16 at 15:07






          Got it working :) Thanks alot for your help. I was using wrong name of Ethernet adapter.
          – Hemant
          Jan 5 '16 at 15:07






          1




          1




          Ok , good , grt , welcome
          – Ijaz Ahmad Khan
          Jan 5 '16 at 15:08




          Ok , good , grt , welcome
          – Ijaz Ahmad Khan
          Jan 5 '16 at 15:08


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f253030%2fhow-to-setup-network-without-wicd-or-networkmanager%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          サソリ

          広島県道265号伴広島線

          Accessing regular linux commands in Huawei's Dopra Linux