PDA

View Full Version : [SOLVED] network-admin autostart



cong06
May 19th, 2008, 06:34 PM
I want the program "network-admin" to load on startup.

It happens to be the program that allows one to set up the network (from System->Admin->Network), and in my case will remind me to make sure i have my connection only on wireless or Ethernet when I startup.

I went to /etc/rc.local and typed in:

network-admin (since I was told that it was run as sudo)

That failed...so I tried:

/usr/bin/network-admin

But in both cases, the program didn't show up. Maybe it has something to do with loading in the xserver?

RealPSL
May 20th, 2008, 04:15 AM
I believe that the /etc/rc.local is probably loaded before the GUI starts. Even if it did not I do not think it would load in your X session. Why not load it by adding it as a program in your startup (System > Preferences > Sessions). The only down side to this is you will need to type the password when it starts.

cong06
May 24th, 2008, 12:25 AM
I believe that the /etc/rc.local is probably loaded before the GUI starts. Even if it did not I do not think it would load in your X session. Why not load it by adding it as a program in your startup (System > Preferences > Sessions). The only down side to this is you will need to type the password when it starts.

I was sure that I had tried this already, but it took forever to confirm it.

This does, in fact not work. putting it in System > Preferences > Sessions as "sudo network-admin" and "network-admin"

Really all I want is a way to disable all internet on startup forcing me to re-enable it...setting it right.

Opening network-admin would be best, but disabling internet, forcing me to open network-admin would work too...(I think)

PinkFloyd102489
May 24th, 2008, 12:34 AM
Use gksudo instead of sudo.