morrisimedia
Posts: 7
Joined: Tue Jan 29, 2013 11:11 pm

Inserting a @ using Nano

Tue Jan 29, 2013 11:23 pm

Greetings all - yes another new user. Well it's been years since I used a linux editor (1980's) and I'm trying to get my EDIMax WiFi USB device configured and have the following problem. I tried using the WiFi setup program in the GUI, but it wouldn't connect.

I found out by opening wpa_supplicant.conf in nano that my PSK is wrong - well, yes and no. I have a "@" in my PSK and WiFi conf substituted a " So instead of PSK = "123@asdafg" (no not the real key), I get PSK = "123"asdafg"

When I try to insert the "@" character into the PSK string, nano also inserts a " - I'm assuming that I'll need to escape the @ character with a \ but nano won't insert the \ either. I know that this has to be rather simple, but I can't find any info on how to do it. I'm using a micro keyboard with the correct characters (at least as they are shown on the keys).

Can someone help?

User avatar
Davespice
Forum Moderator
Forum Moderator
Posts: 1665
Joined: Fri Oct 14, 2011 8:06 pm
Location: The Netherlands
Contact: Twitter

Re: Inserting a @ using Nano

Tue Jan 29, 2013 11:42 pm

That sounds like your keyboard layout is set to American, you can change this in raspi-config.

morrisimedia
Posts: 7
Joined: Tue Jan 29, 2013 11:11 pm

Re: Inserting a @ using Nano

Wed Jan 30, 2013 12:11 am

Thanks for the reply, but I'm not sure I understand. The keyboard layout that I'm using is an American layout. e.g. the "@" is about the number 2 and the "\" is next to the P. I'll check to see what the default layout is in raspi-config and adjust accordingly.

morrisimedia
Posts: 7
Joined: Tue Jan 29, 2013 11:11 pm

Re: Inserting a @ using Nano

Wed Jan 30, 2013 5:10 pm

There may be more to this issue than I originally noted. On first boot the raspi-config workflow displayed and I attempted to choose the "locale". The default is en_GB UTF-8 UTF-8, so I wanted to choose en_US UTF-8 UTF-8, but I could not. So currently the "locale" is set to the default. The keyboard selection is also the default - the Generic 105-key (Intl) PC.

When I use my US keyboard, I've found the I could produce the "@" by using the "'" key (i.e. UK key layout). So the real problem may be that I need to fix the "locale". So I guess the next step is to figure out why (probably pilot error) I can't get raspi-config to accept my selection. Is there a cheat sheet as to how to navigate, select and save changes in the raspi-config file?

Thanks - John

morrisimedia
Posts: 7
Joined: Tue Jan 29, 2013 11:11 pm

Re: Inserting a @ using Nano

Wed Jan 30, 2013 5:22 pm

Ok, I figured out how to unselect en_GB and select en_US - it's taking a while for the old unix conventions to resurface. So now I've generated the correct local - but haven't tried it yet with the keyboard. More to come.

DirkS
Posts: 10363
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Inserting a @ using Nano

Wed Jan 30, 2013 5:23 pm

John,

You'd want to check / change the 'configure keyboard' option. IIRC you'll first be asked for the general layout and then for the locale of the keyboard. That's not necessary the same as the locale for output (option 'change locale' in raspi-config).

Gr.
Dirk.

morrisimedia
Posts: 7
Joined: Tue Jan 29, 2013 11:11 pm

Re: Inserting a @ using Nano

Wed Jan 30, 2013 6:54 pm

Finally resolved the keyboard issues and now get the characters correctly. I guess I just needed to talk / walk through this a number of times.

John

Return to “Beginners”