knetworkmanager and ppp connections: dcop problem remaining
Donatas G.
dgvirtual at akl.lt
Wed May 14 06:42:02 UTC 2008
OK, so I pretty much figured out how to make knetworkmanager manage my ppp
connections: I had to add an option "npdetach" to the ppp peers scripts
in /etc/ppp/peers. This option makes pon not to exit before pppd establishes
ppp connection and brings up ppp0 interface, which does away with the
problem, that ifup thinks ppp failed when it just starts.
I did this according to this old bug report
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=287173
However, I still have to execute
dcop kded networkstatus setNetworkStatus NMNetwork 1
to make KDE programs aware that the internet connection is up.
I was trying to make it automatic by adding it as a post-up script in
/etc/network/interfaces file like this:
iface bite-express inet ppp
provider bite-express
post-up dcop kded networkstatus setNetworkStatus NMNetwork 1
but it would say
dg at bala:~$ sudo ifup ppp0=bite-tel-bt
ppp0: ERROR while getting interface flags: No such device
ERROR: Couldn't attach to DCOP server!
Failed to bring up bite-tel-bt.
then I tried to add the script in a way that it would execute with my rights
iface bite-express inet ppp
provider bite-express
post-up su myusername -c "dcop kded networkstatus setNetworkStatus NMNetwork
1"
but it still gives the same error, while it does work from command line...
Could anyone help me with this?
Donatas
More information about the kubuntu-users
mailing list