watsee Posted November 29, 2016 Share Posted November 29, 2016 Hi all, Have been experimenting with Duckberry Pi on my new Pi Zero & I'm having a few issues. I was wondering if anyone could advise. Essentially, the scripts are running using a US keyboard layout - even though the correct symbols etc are in the script. I'm a UK user, so @ is appearing as " and \ is appearing as # for example. Is there anywhere I can define the keyboard layout? As the Duckberry Pi uses raw duckyscript without being encoded, I cannot use the encoder.jar to run the script due to the method of encoding. Appreciate any guidance! Quote Link to comment Share on other sites More sharing options...
b0N3z Posted November 29, 2016 Share Posted November 29, 2016 I have been using the same thing but in the us. can you change the keyboard layout on the OS itself by ssh or connecting monitor and keyboard to change. Just an Idea Quote Link to comment Share on other sites More sharing options...
watsee Posted November 30, 2016 Author Share Posted November 30, 2016 I tried booting with a monitor and keyboard attached however nothing appeared on the screen, due to the lack of ethernet port I was unable to connect to my LAN (I have not got a USB WLAN dongle). It appeared that it didn't boot into a typical OS. I will keep trying. Quote Link to comment Share on other sites More sharing options...
basic4 Posted December 22, 2016 Share Posted December 22, 2016 (edited) WATSEE: As for the keyboard layout issue (US/UK) - I think the easiest way would be to alter the bash script to pickup a locale identifier (eg. 'MAP UK' or 'MAP US') and translate the 6-8 character differences between the two keyboard types. I had to do the same with other Arduino 'Ducky' projects I worked on. If I get time in the next few days, I'll do that and post it back here. Edit: Looks like you'd maybe better trying something like 'setxkbmap gb' as you'd need to change both the duckpi.sh and the C file. (I wonder why the originators wrote it that way - seems a bit limited.) Edited December 22, 2016 by basic4 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.