NetworkManager: Manage your networks in Debian

Yesterday I decided to reinstall Debian on the work PC, in this case, Debian Testing as has always been my custom. Why have I made that decision? well because of Systemd, which in its eagerness to control everything now also wants to manage the cron, and therefore, the KDE Task Planner it no longer works because it uses crontab and not the Daemon's Systemd.

After so long using ArchlinuxThere are things that I have been leaving behind and of course, I had forgotten them. An example of this is what I want to comment on in this article.

After doing an installation with a Netinstall ISO, and after spending almost 20 minutes waiting (because APT is still slow, but slow) for all KDE, my applications and others to be installed, I decided to enter my session and despite the fact that I had a connection, and all the necessary packages installed, it was not managing it NetworkManager.

NetworkManager

Those who use Debian they must know the cause daily. For those who do not use Debian and want to try this distro, what I will comment below should be taken into account, lest they go crazy.

Activating NetworkManager

The problem is simply that in order to do an installation through NETWORK, Debian configures its data using the file / etc / network / interfaces, which should have something like this inside:

# This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces (5). # The loopback network interface auto lo iface lo inet loopback # The primary network interface allow-hotplug eth0 iface eth0 inet dhcp

In this case, the last two lines specify that the connection is established (or established) through DHCP, and the solution would therefore be to simply comment on those last two lines, leaving the file in this way:

# This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces (5). # The loopback network interface auto lo iface lo inet loopback # The primary network interface # allow-hotplug eth0 # iface eth0 inet dhcp

But before restarting, we must also make sure that the file /etc/NetworkManager/NetworkManager.conf it looks like this:

[main] plugins = ifupdown, keyfile [ifupdown] managed = true

And with this we must be able to manage our networks using NetworkManager.

NetworkManager

And that's it 😉


Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   Euphoria said

    Good afternoon,

    Thanks for the "tip", I wonder which KDE version is the one that appears in the image since I have never seen the details of the internet speed and which theme it uses that I liked a lot 🙂

    Greetings.

    1.    elav said

      That is the Applet that comes out in KDE 4.13 and higher. The theme I'm using is an imitation of KDE 5. Greetings

      1.    eliotime3000 said

        What amazes me is how well the KDE 5 theme mimics KDE 4.13.

  2.   otakulogan said

    Are you going back to Debian or is it just a passing adventure? I hope it comes first and I can regularly take advantage of these tricks, 🙂.

  3.   Sausl said

    good tip until I get back to debian 🙂
    for now I have no problems with ubuntu / mint 14.04 and the vendors amd / ati drivers

    1.    Sausl said

      * blessed
      I missed the "b"

    2.    eliotime3000 said

      Luckily I have the miracle of having PC's with Intel chipset.

  4.   Arkhan. said

    And what advantages does NetworkManager have over wicd ..?

    1.    yukiteru said

      NetworkManager has better integration with both Gnome and KDE (speaking in terms of applets), apart from the fact that nm allows you to handle proxies, vpn, usb modems, ppp, things that wicd does not allow you to handle in the same software unit.

      Still, I prefer wicd to handle a simple network either wired or WiFi, when using environments like XFCE or WMs.

      1.    eliotime3000 said

        That same. Also, I have become more used to NetworkManager than to Wicd.

      2.    Arkhan. said

        I usually use wicd since it has an ncurses client, which with NetworkManager, without a graphical environment it is a mess to connect to a wifi network

      3.    yukiteru said

        @arkhan NetworkManager also has its interface in ncurses and the program in question is called nmtui, and it is quite easy to use, as well as having fewer dependencies than wicd-curses.

  5.   eliotime3000 said

    Excellent, since the day before I received an update on Debian Jessie in which the SysVinit has returned to me on my PC, which has XFCE by default.

    Let's see, if this new whopping updates saves me the time of configuring the NetworkManager by hand, since the previous update deconfigured it in the process of replacing the SystemD with the SysVinit.

  6.   Manuel R. said

    Isn't Debian Jessie supposed to already include Systemd? Or is the "adoption" not yet complete?

    1.    mario said

      Systemd is working on debian, but there is some backwards compatibility ... You can call the old commands "service samba stop" ... they are not as "verbose" as before, but they do.

  7.   David Villa said

    & if you'd better have lowered the ISO; pass it to a USB and install it directly?

    I say I am half-desperate & network installations drive me crazy, I prefer to burn my ISO on DVD & to collect them before doing a network installation.

    Saved.

    1.    mario said

      There is no point in "burning" a DVD test, they make big fixes every week, and for example a beginning of the year ISO (sysvinit) would cause problems when updating today by systemd. Not to mention KDE that only a few months ago they had KDE 4.10 and today 4.14.

  8.   erbmon said

    Good!

    I have been a Debian user for about eight months. With all this mess that is arising around systemd I had thought about returning to sysvinit, at least until the waters calm down and see how systemd evolves. I thought that having xfce installed as a desktop environment would not have problems, but both network-manager and lightdm install systemd for me (I solve the latter by installing slim). My question is if there is any network manager that does not depend on systemd. I've looked for NetworkManager in apt-cache and it doesn't come up anywhere.

    By the way, at the moment I do all these tests in a virtual machine. There I have no problems if the network-manager disappears, but if I had done it in the main system I would have been left without a network (at least that happened to me in the first desktop change tests I did). So I want to get everything tied down before I mess with my day-to-day system.

    Regards!

  9.   Victor said

    Is it necessary to add the user to the netdev group? I did it and I have no problems

  10.   Alexander alex said

    I am a new user in linux, could someone explain to me step by step what I should do? Yesterday I installed wifislax, but now the NetworkManager does not start, I can't even connect by ethernet cable. I would like to understand them but I cannot understand what they are talking about

  11.   Darmon said

    what are the packages called to manage bondig team vpn, others in with gnome graphical network manager