LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-12-2009, 11:21 AM   #1
NightHorse
Member
 
Registered: Jun 2009
Location: Egypt
Distribution: Ubuntu 10.04
Posts: 117

Rep: Reputation: 16
Ubuntu 9.04 Network manager won't re-enable eth0 if router restarted


I have a problem with Network manager in ubuntu 9.04

If the router restarted for any reason Network manager won't enable eth0 automatically after the router is up again. I have to click on the Network manager icon and enable eth0 manually each time that happens. Is there a way to fix this??
 
Old 06-12-2009, 11:52 AM   #2
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
Remove Network-Manager and replace it with wicd.

sudo apt-get remove network-manager network-manager-gnome
sudo apt-get install wicd


in wicd check the box in the interface config for automatically reconnect.
 
Old 06-12-2009, 12:00 PM   #3
NightHorse
Member
 
Registered: Jun 2009
Location: Egypt
Distribution: Ubuntu 10.04
Posts: 117

Original Poster
Rep: Reputation: 16
Isn't there anyway to get gnome Network manager re-enable it rather than using wicd instead?

Thanks anyway. I will use that if i didn't find any other way.
 
Old 06-12-2009, 10:59 PM   #4
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
Not that I've ever found.. network-manager is junk imho.. it doesn't play well with anything and only manages the basics.
wicd is more functional, but that's just my opinion.

Auto reconnect is a simple check box in wicd, I helped someone with this exact same issue a week or so ago, and he was ecstatic about it working exactly like he wanted. After switching to wicd, his router rebooted and the NIC reconnected automatically

It's not like you couldn't switch back easy enough if it doesn't work out for you.
 
Old 06-13-2009, 02:47 AM   #5
NightHorse
Member
 
Registered: Jun 2009
Location: Egypt
Distribution: Ubuntu 10.04
Posts: 117

Original Poster
Rep: Reputation: 16
I have removed Network manager and stucked with no connection for half an hour. LoL
I used dhcpclient to get it back. I tried manually setting it up using ifconfig and route but failed. Now I will install wicd. Hope it goes well.
 
Old 06-13-2009, 02:49 AM   #6
NightHorse
Member
 
Registered: Jun 2009
Location: Egypt
Distribution: Ubuntu 10.04
Posts: 117

Original Poster
Rep: Reputation: 16
Ok. I installed it. What should I do now??
 
Old 06-13-2009, 02:52 AM   #7
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
Of course, you can remove network-manager completely and just edit /etc/network/interfaces.

Quote:
auto lo
iface lo inet loopback

#static ip address:
auto eth0
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
gateway 192.168.1.1
mtu 7200 #optional: if supported by NIC
pre-up ethtool -s eth0 autoneg off speed 1000 duplex full #optional: if using gigabit network

#use dhcp instead:
#auto eth0
#iface eth0 inet dhcp

Last edited by jay73; 06-13-2009 at 02:55 AM.
 
Old 06-13-2009, 02:59 AM   #8
NightHorse
Member
 
Registered: Jun 2009
Location: Egypt
Distribution: Ubuntu 10.04
Posts: 117

Original Poster
Rep: Reputation: 16
But how can I use wicd??
 
Old 06-14-2009, 12:04 AM   #9
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
I thought it was rather intuitive, and self explanatory.. maybe not... heres a couple articles that briefly explain how to use it..

http://ubuntulinuxhelp.com/is-your-l...k-wicd-wicked/

http://www.linux.com/archive/feature/118224

http://www.linuxplanet.com/linuxplan...orials/6527/1/

and of course the home page.. http://wicd.sourceforge.net/
 
Old 06-14-2009, 05:27 AM   #10
NightHorse
Member
 
Registered: Jun 2009
Location: Egypt
Distribution: Ubuntu 10.04
Posts: 117

Original Poster
Rep: Reputation: 16
Sorry, I have checked the links and searched a bit as well. I still have a problem. One of the links said to log out and log back in and it should be started but didn't happen. When i try to open the wcid-client from a terminal that's what I get:

Traceback (most recent call last):
File "/usr/share/wicd/wicd-client.py", line 50, in <module>
import wicd.gui as gui
File "/usr/share/wicd/wicd/gui.py", line 2005, in <module>
setup_dbus()
File "/usr/share/wicd/wicd/gui.py", line 177, in setup_dbus
proxy_obj = bus.get_object("org.wicd.daemon", '/org/wicd/daemon')
File "/var/lib/python-support/python2.6/dbus/bus.py", line 244, in get_object
follow_name_owner_changes=follow_name_owner_changes)
File "/var/lib/python-support/python2.6/dbus/proxies.py", line 241, in __init__
self._named_service = conn.activate_name_owner(bus_name)
File "/var/lib/python-support/python2.6/dbus/bus.py", line 183, in activate_name_er
self.start_service_by_name(bus_name)
File "/var/lib/python-support/python2.6/dbus/bus.py", line 281, in start_service_by_name
'su', (bus_name, flags)))
File "/var/lib/python-support/python2.6/dbus/connection.py", line 622, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name org.wicd.daemon was not provided by any .service files

On my search some ppl said to make sure wcid deamon is started. I started it by /etc/init.d/wcid start. And it started fine. but still the same problem.

Also someone else said to delete /var/log/wcid/ folder and restart the wcid daemon. And i did that but still stuck with the same error. Any help would be appreciated. Thanks farslayer for ur help.
 
Old 06-14-2009, 01:50 PM   #11
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
wow all I had tro do to install it on Debian was

aptitude remove network-manager network-manager-gnome
aptitude install wicd


and I was done... the daemon was started, Fired up the Gui and configured it.. I have a hard time believing it's more difficult on Ubuntu
 
Old 06-15-2009, 10:26 AM   #12
NightHorse
Member
 
Registered: Jun 2009
Location: Egypt
Distribution: Ubuntu 10.04
Posts: 117

Original Poster
Rep: Reputation: 16
Nope Nope. I found it. I only had to restart. I read that logging out and logging back in is enough in some other thread. !! but it wasn't LoL

btw wicd is great. I love it. Thanks a lot man.
 
Old 06-15-2009, 09:18 PM   #13
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
Ahh, so you probably could have started the daemon manually then...

sudo /etc/init.d/wicd start

just for future reference. Glad to hear you are up and running.
 
Old 06-16-2009, 02:55 AM   #14
NightHorse
Member
 
Registered: Jun 2009
Location: Egypt
Distribution: Ubuntu 10.04
Posts: 117

Original Poster
Rep: Reputation: 16
Nope. I tried to start it manually and even logged out and came back on. but didn't work till I restarted. It's weird cause usually u don't have to restart linux to run any daemons. :s
 
Old 06-16-2009, 11:50 AM   #15
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
Yes, but I guess you need to modprobe some module first. On a system that is already running, that would have to be done manually.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian 5.0 Network-Manager interfers with vnet0 bridging to eth0 for virt-manager coolphive Debian 5 05-29-2009 03:02 PM
Debian 5.0 Network-Manager interfers with vnet0 bridging to eth0 for virt-manager coolphive Linux - Newbie 2 05-28-2009 09:51 AM
want ubuntu 8.10 to connect to network on BOOT, but still have Network Manager work monkeyman2000 Ubuntu 0 02-13-2009 04:22 PM
Network Manager - Two eth0 connections? hessond Linux - Newbie 2 03-20-2008 09:04 AM
network card needs to be restarted after turning router off and on JacekZ Linux - Networking 2 09-06-2005 06:03 PM


All times are GMT -5. The time now is 09:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration