23

I would like to use NetworkManager, but prefer a keyboard driven window manager that provides as much space on the screen as possible for my code. I just hate that little strip of real estate "trays" take up on my screen. I have tried running nm-* from the command line, but they seam to never work without a tray.

1
  • 2
    I love it when someone asks a question that's been on my mind.
    – emf
    Oct 1, 2010 at 7:37

6 Answers 6

12

If you're running on Ubuntu Maverick (and thus have network-manager 0.8.1), try the nmcli tool:

$ nmcli

Usage: nmcli [OPTIONS] OBJECT { COMMAND | help }

OPTIONS
  -t[erse]                                   terse output
  -p[retty]                                  pretty output
  -m[ode] tabular|multiline                  output mode
  -f[ields] <field1,field2,...>|all|common   specify fields to output
  -e[scape] yes|no                           escape columns separators in values
  -v[ersion]                                 show program version
  -h[elp]                                    print this help

OBJECT
  nm          NetworkManager status
  con         NetworkManager connections
  dev         devices managed by NetworkManager

As above, it's just one file, and comes with NM 0.8.1.

11

From wikipedia...

NetworkManager has two components:

  • a service which manages connections and reports network changes

  • a graphical desktop applet which allows the user to manipulate network connections. The nmcli applet provides similar functionality on the command line.

In fact, there are multiple tools available for replacing those nasty GUI dependent applets. The two I am aware of are cnetworkmanager and network-manager-cli.

Neither of them are currently packaged in Ubuntu, nore are they perticularly stable. network-manager-cli looks more mature, but neither has seen any development for a while.

network-manager-cli has the added advantage of being single-file. Just plop it in your bin and you're off to the races.

According to joao-pinto's answer, NetworkManager 8.01 includes command line interfacec. As of this moment, 8.01 doesn't ship with Ubuntu, so you'll have to grab it from Trunk. Of course, soon enough, this whole woe will be deprecated and nobody will be complaining about anything.

2

According to http://live.gnome.org/NetworkManager/ReleaseProcess, version 0.8.1 provides a command line interface.

You can get it from https://launchpad.net/~network-manager/+archive/trunk, please note that I don't use it. I have no idea about it's stability.

In case of problems you can use the ppa-purge utility to get back to the official package.

1
  • Sweet, I up-voted this and incorporated it into my answer.
    – Eli Frey
    Aug 11, 2010 at 20:24
2

If you're willing to consider other network management applications besides Network Manager, you can install wicd, which has both an ncurses console interface as well as a regular graphical window interface (not a tray icon).

Before you install it, though, make sure you know how to revert to Network Manager (or manual networking), because installing wicd will remove Network Manager and vice versa.

0

You can try cnetworkmanager. It is easy to use. However, you should terminate nm-applet beforehand. On the other hand, network-manager-cli has no downloadable files in the projects site.

1
  • Actually, you can acquire network-manager-cli through the svn repository pointed to under the "sources" tab on their Google Code project.
    – Eli Frey
    Aug 11, 2010 at 13:06
0

If the issue is screen real estate rather than keyboard access, you can configure the tray to be a normal window instead of a screen hog. This requires cooperation from your window manager, but if it's "keyboard driven" it probably gives you enough control.

1
  • This still gives me an obnoxious, superfluous component to my window manager.
    – Eli Frey
    Aug 11, 2010 at 20:23

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .