Ubuntu networking how to remove network manager

Asked by Tong Sun

Hi,

Having done some changes to my system [1], my eth0 card can't start automatically any more. This is the 2nd time that my Ubuntu networking is not working properly (first time I just gave up fixing it). So now I'd like to try again, by simplifying Ubuntu networking.

I want to remove all network management related packages and keep only a dhcp client (preferably pump). In plain Debian, I just need to properly config /etc/network/interfaces, then

 /etc/init.d/networking restart

Vola, I'm done. But last time I tried that on Ubuntu, all I got was "networking stop/waiting". . .

All in all, is it possible to simplifying Ubuntu networking down to a single dhcp client (pump)?

Thanks

[1] https://answers.launchpad.net/ubuntu/+source/dnsmasq/+question/129927

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gnome-nettool Edit question
Assignee:
No assignee Edit question
Solved by:
Sam_
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Sure, just remove network-manager & network-manager-gnome, then sudo apt-get autoremove

You can then use /etc/network/interfaces and /etc/resolv.conf to define networking

HTH

Revision history for this message
Sam_ (and-sam) said :
#2
Revision history for this message
Tong Sun (suntong001) said :
#3

Thanks actionparsnip, but Sam's answer, which is more informative, is more to my taste. hehe. :-)

Revision history for this message
Tong Sun (suntong001) said :
#4

> But last time I tried that on Ubuntu, all I got was "networking stop/waiting". . .

Ok, I'm doomed again:

Having removed all network-manager* packages, then,

% /etc/init.d/networking start
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service networking start

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the start(8) utility, e.g. start networking
networking stop/waiting

% start networking restart
start: Env must be KEY=VALUE pairs

% start networking start
start: Env must be KEY=VALUE pairs

% service networking restart
restart: Unknown instance:

% service networking stop
stop: Unknown instance:

Help...! please...!

Revision history for this message
Sam_ (and-sam) said :
#5

Are you missing 'sudo'?
sudo service networking restart
https://help.ubuntu.com/community/RootSudo

Revision history for this message
Tong Sun (suntong001) said :
#6

> Are you missing 'sudo'?
>

No, I'm running those as root, otherwise, there will be a whole different
set of responds.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#7

How is it more to your taste? You said you were comfortable with the interfaces file, yet the links discuss using network manager.....

please explain....

Revision history for this message
Tong Sun (suntong001) said :
#8

yeah, you're right. I need to tweak only the interfaces file. The links are only for me to know more about the (I-wasn't-familiar-before) network manager.

Oh, back onto the drawing board, what should I do now?

Revision history for this message
Tong Sun (suntong001) said :
#9

> % start networking restart

Is it the normal way to restart networking?

> start: Env must be KEY=VALUE pairs

Do you get this as well?
Something in my env variables stops 'start' from functioning?
Anybody knows how to clear env variables?

Revision history for this message
Tong Sun (suntong001) said :
#10

> Something in my env variables stops 'start' from functioning?

Nope:

% env
PATH=/root/...
_=/usr/bin/env

That's it! then,

% /sbin/start networking restart
start: Env must be KEY=VALUE pairs

Revision history for this message
Best Sam_ (and-sam) said :
#11
Revision history for this message
Tong Sun (suntong001) said :
#12

Isn't that I'm luck -- hitting a tough road block right after I start using Ubuntu?

Thanks Sam.

BTW, how is you firefox middle-click going?