Deleted Network Manager from Panel

Asked by Craig Mitchell

I stupidly managed to delete the Network Manager from the top right panel in Ubuntu 9.04 and can't work out how to put it back. I reinstalled through add/remove it but no luck. Can anyone help?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu network-manager Edit question
Assignee:
No assignee Edit question
Solved by:
Mark Ingrey
Solved:
Last query:
Last reply:
Revision history for this message
bixejo (bixo-bixejo) said :
#1

From one terminal type the command:

gnome-session-properties

This will bring you a GUI window with the list of programs (in the first window tab) to be run any time you log in. Scroll along this list to see whether the Network Manager is in this list but has its checkbox disabled. If so, check it, log out and log in back again, and the network manager should appear.

If you cannot see it in the list of startup programs, you may click on "+ Add" and then type in the pop-up window the following information:

In the "Name" field: Network Manager
In the "Command" field: nm-applet --sm-disable
In the "Comment" field you may write whatever you want, or leave it blank.

Hope this helps,

--Bixejo

Revision history for this message
Craig Mitchell (cmitchell-f10marketing) said :
#2

Hi Bixejo

I ran the Terminal command and the Network Manager is listed in the GUI Window with the box ticked but logging out and back in again doesn't work.
I then tried to add a command to the panel by right clicking on the panel and clicking +Add then added a 'custom application loader' and filled in the details you gave above. When i clicked on the new icon in the panel i got a window that said 'Could not launch application. Failed to execute child process "nm-applet--sm-disable" (No such file or directory).
I also tried the same command with a space after the 'applet' i.e. nm-applet --sm-disable but then nothing at all happened.
How would you get the Network Manager to open up through a terminal command, it seems to me that i have managed to delete something which stops the network manager from appearing at all even though the computer thinks it is still there.
The whole problem stems from me deleting the icon from the panel so something important must have been deleted at the same time.

Craig

Revision history for this message
bixejo (bixo-bixejo) said :
#3

The command to be run is indeed "nm-applet --sm-disable" (without the quotes and with a blank space after the "applet"). Does your terminal not give you any tip of what's happen when you try to run this command from the terminal?

Perhaps you could try to reinstall the package that provides this program. From one terminal type:

sudo apt-get install --reinstall network-manager-gnome

Afteer that, try to run again the above command from the terminal.

Hope this helps,

--Bixejo

Revision history for this message
Craig Mitchell (cmitchell-f10marketing) said :
#4

Hi Bixejo

I get the following in the Terminal session:

craig@craig-laptop:~$ sudo apt-get install --reinstall network-manager-gnome
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-2.6.28-11 linux-headers-2.6.28-11-generic
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0B/364kB of archives.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 121492 files and directories currently installed.)
Preparing to replace network-manager-gnome 0.7.1~rc4.1-0ubuntu2 (using .../network-manager-gnome_0.7.1~rc4.1-0ubuntu2_i386.deb) ...
Unpacking replacement network-manager-gnome ...
Setting up network-manager-gnome (0.7.1~rc4.1-0ubuntu2) ...

craig@craig-laptop:~$ nm-applet --sm-disable

** (nm-applet:6686): WARNING **: <WARN> applet_dbus_manager_start_service(): Could not acquire the NetworkManagerUserSettings service as it is already taken. Return: 3

craig@craig-laptop:~$

I then tried the apt-get autoremove (as advised above) and got:

craig@craig-laptop:~$ apt-get autoremove
E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
craig@craig-laptop:~$

Any more suggestions?

Craig

Revision history for this message
Best Mark Ingrey (markingrey) said :
#5

Hi, I managed to do the same thing. Have finally got it back now and this is what I did.

Right-click on the bar, and "add panel"
Scroll down and select "Notification area"

For me it appeared in this along with charge icon for laptop and bluetooth icon.

Hope this helps

Revision history for this message
Craig Mitchell (cmitchell-f10marketing) said :
#6

Hi Mark

This worked a treat, so simple yet so unexplained, maybe I need to read the manual a bit more!
Thank you for your help.

Craig