Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Networkmanager and nm-applet do not work
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
patrikh
n00b
n00b


Joined: 25 Jul 2006
Posts: 23

PostPosted: Tue Dec 22, 2009 10:20 pm    Post subject: Networkmanager and nm-applet do not work Reply with quote

Hello, I'm having a problem which I've not been able to solve by myself... I have a more or less fresh gentoo amd64 install. I installed nm-applet and it just does not show.

I have of course restarted the dbus service and restarted the whole system a few times. Of course I also have a "Notification Area" in the Gnome menubar which actually shows something (power history and volume).

If I $sudo killall nm-applet and then manually $nm-applet --sm-disable I get the following:
Code:
$ nm-applet --sm-disable

** (nm-applet:5522): WARNING **: Could not retrieve dbus connections: Failed to execute program /usr/libexec/dbus-daemon-launch-helper: Success.

and no Networkmanager shows up.

Any ideas? I'm giving up after hours of googling.

Thanks in advance.


Gnome 2.28.2, NM 0.7.2
My user is in groups: wheel audio cdrom video usb portage myusername vboxusers
Edit: Here's my emerge --info if that matters:
Code:
# emerge --info
Portage 2.1.7.15 (default/linux/amd64/10.0, gcc-4.4.2, glibc-2.11-r1, 2.6.31-gentoo-r6 x86_64)
=================================================================
System uname: Linux-2.6.31-gentoo-r6-x86_64-Intel-R-_Core-TM-2_Duo_CPU_L9400_@_1.86GHz-with-gentoo-2.0.1
Timestamp of tree: Tue, 22 Dec 2009 18:15:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p35
dev-lang/python:     2.6.4, 3.1.1-r1
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.0
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.0
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.64
sys-devel/automake:  1.10.3, 1.11.1
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -msse4.1 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=core2 -msse4.1 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo"
LANG="C"
LDFLAGS="-Wl,-O1"
LINGUAS="en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X acl acpi amd64 berkdb bzip2 cdr cli consolekit corefonts cracklib crypt cups cxx dbus dri dvd dvdr fortran fuse gdbm gif gnome gnome-keyring gpm gtk hal iconv ipv6 jpeg laptop mmx modules mp3 mudflap multilib ncurses networkmanager nls nptl nptlonly openmp pam pcre perl png policykit pppd pulseaudio python readline reflection session spl sse sse2 ssl svg sysfs tcpd tiff truetype unicode xinerama xorg xulrunner zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev vmmouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel vmware"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Back to top
View user's profile Send private message
01allein
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jun 2009
Posts: 127
Location: AUSTRALIA

PostPosted: Tue Dec 22, 2009 10:32 pm    Post subject: Reply with quote

You should add PORTAGE_ELOG_SYSTEM="echo"

I guess, you are not reading messages from portage, are you?
Back to top
View user's profile Send private message
patrikh
n00b
n00b


Joined: 25 Jul 2006
Posts: 23

PostPosted: Wed Dec 23, 2009 1:34 pm    Post subject: Reply with quote

I'm not exactly sure what you mean. The messages at the end of a successful emerge? Of course I read them. (I reinstalled networkmanager/nm-applet 2 times...)

/var/log/portage/elog/summary.log:
Quote:
>>> Messages generated by process 5492 on 2009-12-22 22:57:38 CET for package net-misc/networkmanager-0.7.2:

LOG: postinst
You will need to restart DBUS if this is your first time
installing NetworkManager.

To save system-wide settings as a user, that user needs to have the
right policykit privileges. You can add them by running:
polkit-auth --grant org.freedesktop.network-manager-settings.system.modify --user "USERNAME"



I have added this directly after installing it;
$ sudo polkit-auth --grant org.freedesktop.network-manager-settings.system.modify --user "myusername"
polkit-auth: AuthorizationAlreadyExists: An authorization for uid 1000 for the action org.freedesktop.network-manager-settings.system.modify with constraint '' already exists


And Networkmanager/nm-applet do not work.

Did you mean this?
Back to top
View user's profile Send private message
01allein
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jun 2009
Posts: 127
Location: AUSTRALIA

PostPosted: Wed Dec 23, 2009 4:01 pm    Post subject: Reply with quote

patrikh wrote:
I'm not exactly sure what you mean. The messages at the end of a successful emerge? Of course I read them. (I reinstalled networkmanager/nm-applet 2 times...)

/var/log/portage/elog/summary.log:
Quote:
>>> Messages generated by process 5492 on 2009-12-22 22:57:38 CET for package net-misc/networkmanager-0.7.2:

LOG: postinst
You will need to restart DBUS if this is your first time
installing NetworkManager.

To save system-wide settings as a user, that user needs to have the
right policykit privileges. You can add them by running:
polkit-auth --grant org.freedesktop.network-manager-settings.system.modify --user "USERNAME"



I have added this directly after installing it;
$ sudo polkit-auth --grant org.freedesktop.network-manager-settings.system.modify --user "myusername"
polkit-auth: AuthorizationAlreadyExists: An authorization for uid 1000 for the action org.freedesktop.network-manager-settings.system.modify with constraint '' already exists


And Networkmanager/nm-applet do not work.

Did you mean this?


Did you modify the applet. If so let it to default.

One week ago, I installed the same package and I modified it and when rebooting had the same problem as you.
Back to top
View user's profile Send private message
patrikh
n00b
n00b


Joined: 25 Jul 2006
Posts: 23

PostPosted: Fri Dec 25, 2009 1:18 pm    Post subject: Reply with quote

Modify it? No, not at all (I've never modified any portage package). Just a plain normal install, and it does not work.
Back to top
View user's profile Send private message
aj2r
l33t
l33t


Joined: 11 Sep 2005
Posts: 705
Location: Granada/Andalucí­a/España

PostPosted: Sat Dec 26, 2009 8:40 pm    Post subject: Reply with quote

Here too. After reading this bug report https://bugs.gentoo.org/show_bug.cgi?id=296367 I solved it doing:
Code:

chown root:messagebus /usr/libexec/dbus-daemon-launch-helper
chmod 4750 /usr/libexec/dbus-daemon-launch-helper
Back to top
View user's profile Send private message
patrikh
n00b
n00b


Joined: 25 Jul 2006
Posts: 23

PostPosted: Mon Dec 28, 2009 8:51 pm    Post subject: Reply with quote

Ok, I solved it (more or less). It was problably the dumbest thing that could have happened to me. But I'm not sure I can be blamed.
I just did not start /etc/init.d/NetworkManager. I even looked for services in /etc/init.d/net* and found nothing but that damn service is spelled with a capital N... :-) (even the package name is in lowercase :\)

But now another problem: As soon as NetworkManager is up, it works, BUT: It changes my hostname to "dhcppc3" and this messes up Xorg so that NO Xorg/Gnome applications start anymore! (nothing happens e.g. if I open a gnome-terminal - if I start something from an open console I get hostname error / no display at 0:0 found etc.). When I shutdown NM or do $hostname gentoo it works again. It does not change /etc/conf.d/hostname (still the right "gentoo" hostname there), but $hostname shows the wrong one (dhcppc3).
I have the same behaviour with both dhcpcd and dhcp (dhclient). I did not found an answer on google. Any ideas?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum