我的 DSL 互联网无法通过网络管理器连接!因此,我尝试使用sudo pppoeconf
我的笔记本电脑成功连接到互联网。之后,我的问题就开始了!首先,网络管理器在启动时无法运行!我尝试sudo nm-applet
并得到
** (nm-applet:4966): WARNING **: Could not initialize NMClient /org/freedesktop/NetworkManager: The name org.freedesktop.NetworkManager was not provided by any .service files
** Message: applet now removed from the notification area
** (nm-applet:4966): WARNING **: Failed to register as an agent: (2) The name org.freedesktop.NetworkManager was not provided by any .service files
** Message: using fallback from indicator to GtkStatusIcon
** Message: Starting applet secret agent because GNOME Shell disappeared
** (nm-applet:4966): WARNING **: Failed to register as an agent: (2) The name org.freedesktop.NetworkManager was not provided by any .service files
我尝试了sudo /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
我尝试之后service networking start
start: Rejected send message, 1 matched rules; type="method_call", sender=":1.71" (uid=1000 pid=3624 comm="start networking ") interface="com.ubuntu.Upstart0_6.Job" member="Start" error name="(unset)" requested_reply="0" destination="com.ubuntu.Upstart" (uid=0 pid=1 comm="/sbin/init")
这是我的/etc/ppp/peers/dsl-provider
noipdefault
usepeerdns
hide-password
lcp-echo-interval 20
lcp-echo-failure 3
connect /bin/true
noauth
persist
mtu 1485
noaccomp
default-asyncmap
plugin rp-pppoe.so eth0
user "511"
这是我的/etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
# manual
auto dsl-provider
iface dsl-provider inet ppp
provider dsl-provider
这是我的/etc/NetworkManager/NetworkManager.conf
[main]
plugins=ifupdown,keyfile
dns=dnsmasq
[ifupdown]
managed=false
问题是要逆转这个过程!然后nm-applet
再次回到我的桌面!
我需要 NetworkManager 通过调制解调器共享我的 DSL 互联网。
所以我有两个问题:第一,有什么方法可以像运行前一样重新配置我的网络sudo pppoeconf
?第二,如果没有办法将 NetworkManager 带到我的桌面,如何在没有 NetworkManager 的情况下共享我的互联网?
提前致谢
答案1
NetworkManager 守护进程以提升的权限运行。nm-applet 应该以用户权限运行。不要用 启动它sudo
。
有可能由于误用,sudo
您搞乱了文件系统上相关文件的所有权和权限。
请注意,这pppoeconf
并不意味着要与 NetworkManager 一起使用。如果您运行 Ubuntu Desktop,则通常使用 NetworkManager(仅此而已)。如果您运行 Ubuntu Server,则通常使用和可能与之ifup
类似的功能。pppoeconf