Ask your questions here.
Post a reply

wicd problem?

Sun Feb 10, 2013 8:32 pm

In testing live-USB today, I ran into trouble with wicd. The test hardware is using a usb wireless adapter, which normally works. In beta9, I couldn't bring up the wicd gui to add my wpa passphrase. I replaced the beta9 on the usb stick with beta6, and it's working again.

Anyone else having trouble with wireless and wicd on beta9?

Re: wicd problem?

Mon Feb 11, 2013 12:33 am

With default boot, no locale is set. Other parts of the system mostly then use "fallback mode" (en_US)

Wicd pukes on that and the daemon wont start. Do in a terminal:

Code:
wicd-gtk


then you will see why. I never noticed before because, needing en_GB.UTF-8 here, I always make sure a locale is set on cmdline before use.

<locale> issued in both root and user terminal clearly shows, the default system has no locale set.

Re: wicd problem?

Mon Feb 11, 2013 2:02 am

Yeah, I saw that. Just fired up beta6, and it's got no default locale, same startup apps and same version of wicd, and yet it works - it's in the tray, and it opens if I click on it or choose it from the menu. From beta7 on, it's not in the try, but it does make the wired connection.

Setting a default locale does fix the wicd, but there has to be something else.

Re: wicd problem?

Mon Feb 11, 2013 2:11 am

Similar here. Doesn't start at all, with messages about locales.
purged and aptitude ~c; then reinstall doesn't help.
No idea.

Re: wicd problem?

Mon Feb 11, 2013 3:25 am

Maybe something changed in a wicd dep, like a python script, that looks at user configs. Who knows.

If I start up in runlevel 3, login as root and edit user's .dmrc with a language added then wicd is there, after switching to 2 and logging in as user. No system-wide change.

Same if I boot normally and select something from lightdm language chooser before login, wicd is there.

Re: wicd problem?

Mon Feb 11, 2013 4:42 pm

It's.. 39-lightdm-dmrc-fix (language chooser fix)

Replace this (note UTF8 doesn't look right so I changed that too):

Code:
# extract, fix and export $LANG
TEMPLANG=$(cat "$LANGFILE" | grep ^Language= | cut -d '=' -f 2 | sed 's/utf8/UTF8/')

with this:

Code:
# extract, fix and export $LANG
TEMPLANG=$(cat "$LANGFILE" | grep ^Language= | cut -d '=' -f 2 | sed 's/utf8/UTF-8/')

if [ -z "$TEMPLANG" ]; then
TEMPLANG="en_US.UTF-8"
fi


solves the problem here and the language chooser still works. Alternatively, preset something in .dmrc

Would have been rather difficult to debug that without being able to boot console only!

Till there is a new iso users can just set a locale either at boot or lightdm chooser. This is, after all, not quite yet Debian Stable.

There are other bugs in lightdm. One annoyance is if you install an alt DE it doesn't remember the last one used, although that doesn't affect default Refracta. Another, there is no option for console login. Still it's the best choice for Refracta; gdm3 is bloat.

Re: wicd problem?

Mon Feb 11, 2013 5:29 pm

Good catch. Didn't think a single moment about lightdm as the culprit.

For me display-managers (?) are just weird (they do good things, sure, but they also do bad things, like regular expressions they often are greedy ... :-) )
lightdm booted per default into gnome3 for me. I looked at the lightdm config, and for the life of me couldn't find a clear hint how to set the default window-manager. I searched the web, and the best i could find was update-alternatives. _If_ one uses a display-manager, then: shouldn't such be just a click away?

Re: wicd problem?

Mon Feb 11, 2013 6:35 pm

Can't test the fix right now, but I need to write this down before I forget it.

Adding 'en_US' to .dmrc did help with getting the wicd icon on the panel, but it did not help with running gparted. Had to specify the locale on the boot command line (using refracta-lang, the syntax of which I can actually remember!)

Re: wicd problem?

Mon Feb 11, 2013 6:56 pm

In .dmrc it should be (no more, no less) e.g.
Code:
Language=en_US.utf8


I thought, gksu inherited user's profile and language so it should not matter to what,or even if, the actual system is set. No problems done as in the code box.

EDIT Confirmed here.. with simply "Language=en_US" in .dmrc: wicd works but gparted pukes with locale errors.
Last edited by dzz on Mon Feb 11, 2013 7:23 pm, edited 2 times in total.

Re: wicd problem?

Mon Feb 11, 2013 6:59 pm

OK, I forgot the ".utf8" at the end. It still worked for the icon showing up.

Synaptic and gparted are no longer using gksu to start. They're using pkexec. That's not a change that I made - it must have happened in an update. I think I'm not going to fight with that.
Post a reply