I install ubuntu 16.04.3 on my macbook-pro. But when I use the terminal, I find I cant type wave. When I type the wave key, it print "&lt;" instead.  I think it's a text entry problem, maybe I choose the wrong input source. But I do use the English(US) text entry. Then I open keyboard layout chart, I know the reason. Every time I type the wave key, a weird key is shining which is left of the "z" and right of the "shift". I have never seen any keyboard has it before.  To solve the problem, I think I have to change a single key's reflection on the keyboard layout. But I don't know how to do that.
121169
I am running Ubuntu 17.04 on a 2015 Macbook Pro. On the keyboard the Tilde~/Backtick&lt;/kbd&gt; key is mapped to&lt;and>`. I have found a few fixes for this, but have found no way to make it permanent.  I have found that the command   echo 0 &gt; sys/module/hid_apple/parameters/iso_layout   corrects the issue, as does  setxkbmap -option apple:badmap   My issue is getting either of these commands to run inside of a script at startup/login so that I am not having to manually run it every time I want it fixed. I have tried using /etc/rc.local but in Ubuntu 17.04 when trying to enable it with systemctl I get no results. I will take anything that will work. Thanks guys!
18596
I know I can use Up to iterate through previous commands. Running the last command simply involves Up + Enter. However, I was thinking of buying the  as I spend a lot of time in vim.  This keyboard has no arrow keys, and the only way I know how to get this kind of behaviour is by pressing Ctrl + R and beginning to repeat my previous command.  Is there an easy way to emulate Up + Enter in an UNIX terminal without the arrow keys?
84700
I am used to use the numeric keypad for navigation (e.g. : [KP7] -> Start, [KP1] -> End, [KP4] -> Left, etc... ). I am also used to use it for selection (e.g. : Shift+[KP7] -> Select from cursor position to beginning of line, Shift+[KP1] -> Select from cursor position to end of line, etc...)  With the keyboard configuration installed with Ubuntu, though, Shift+[KP7] prints the character "7", Shift+[KP1] prints "1", etc...  How can I change this so that Shift+[KP-key] is not mapped to [key], but to Shift+[KP-key] ?
11365
I used to be able to copy&amp;paste (or type if I load respective keyboard layout) any kind of characters (eg. é ö ñ ß و 好) in my console/terminal.  Now I bought a new computer and it does not work any more, only English/ASCII characters (but in other programs, e.g. firefox, it still works).  Distribution: Ubuntu. Terminals tried: gnome-terminal, xterm, konsole.  I tried  but after reboot echo $LANG still gives C. I also tried setting Character encoding to Unicode(UTF-8) in the gnome-terminal Terminal-menu - without effect.  Question: How can I get a terminal that is able to deal with non-English characters?
60909
So, when I cat /dev/input/mouse0 in a TTY, move the mouse around a bit, and then ctrl-z to stop cat, my terminal characters are all messed up.  Almost every single character gets swapped out for another character in the ASCII character set.  This same situation occurs when I execute this in Python 3.2:  print('\033[1;12mTest.\033[1;m')   The the same symptom does not appear on a shell in the GUI, only on the virtual terminals.  The problem does not go away if I log out.  I suspect that a certain escape code (which may be contained within the Python code) is remapping the ASCII byte codes to the character representations, but that is just a guess.  What is happening and how do I undo it?
110102
I originally asked a question here:  but was asked to submit a new question including more info  I want to be able to type special characters such as ellipsis, en dash and em dash using the same key combinations as in osx (that is, alt+period for ellipsis, alt+hyphen for en dash, alt+shift+hyphen for em dash, etc.) Apparently, Right Alt is supposed to function this way natively. Both of my Alt keys work as normal Alt keys in keyboard shortcuts, but I'm not able to use them to create special characters.  My keyboard looks like this:     (with eject instead of power button). Ubuntu's original Norwegian (macbook) layout has a lot of errors ( | instead of ' etc.), so I use a custom layout file that I found on github: github.com/gulrotkake/Ubuntu-MacBook-Norwegian-keyboard I checked the file, and the 3rd and 4th level characters are included:  key &lt;AB09&gt;  { [    period,      colon, ellipsis,   periodcentered ] }; key &lt;AB10&gt;  { [     minus, underscore,       endash,       emdash ] };   I tried changing back to the original layout file (which I had stored as a backup), but I am still not able to produce any of the special characters.  I followed the advice of this post:  by going into org.gnome.desktop.input-sources and adding 'lv3:ralt_switch', 'misc:typo'. gsettings get org.gnome.desktop.input-sources xkb-options now outputs ['ctrl:swap_lwin_lctl', 'compose:rwin', 'lv3:ralt_switch', 'misc:typo']  This lets me write 3rd and 4th level characters with my Right Alt key, but they aren't mapped correctly (and I'm also no longer able to use the Right Alt key in my keyboard shortcuts). When I type alt+period I get » instead of ellipsis, alt+hyphen gives ellipsis instead of en dash, and so on.  I'm using Ubuntu 20.04 LTS  Edit: cat /etc/default/keyboard outputs:  BACKSPACE=guess XKBLAYOUT=no XKBVARIANT=mac   gsettings get org.gnome.desktop.input-sources sources outputs:  [('xkb', 'no+mac'), ('ibus', 'mozc-jp')]   I|ve tried using the custom keyboard layout from github as well as the default one. The behavior of the two keyboard layouts is the same: i normally cant write any special characters using Right Alt. Adding 'lv3:ralt_switch', I can write the characters but they are mapped incorrectly. Pressing the period key gives me  . : · ÷  and pressing the hyphhen key gives me - _  ̣ ˙ Adding 'lv3:ralt_switch', 'misc:typo' the mapping is different but still incorrect. pressing the period key gives me . : » > and pressing the hyphen key gives me - _ … ˙   Also, this might or might not be relevant, but before I switched to the github layout I tried to fix the wrong bindings on the default layout using sudo dpkg-reconfigure keyboard-configuration - choosing MacBook Pro international and norwegian. This made æ å ø and several other keys disappear. And this persisted on reboot. I fixed it by switching to the github layout. I|m unsure whether the Right Alt key functioned properly before doing this.
41254
I just wanted to make some input where I press a key and the auto-repeat function engages so I don't have to press the 0 key many times to make a long number.  10000000000000000000000000000  This has always worked without fail in the past, but it's not something I do often and I'm not sure where to look next to figure out what might be preventing this.     I've toggled the sliders to change the delay for key repeat, but the only thing I can hang my hat on is that perhaps Lion disables this with the new feature where you hold down some keys (like the vowels, but also some consonants) to get alternate accented characters.  s turns into ß or ś or š and so on....  Am I missing an obvious setting, or is this something that has moved to a hidden setting or is simply a bug that these controls are still around since key repeat is now deprecated?  Comments welcome if anyone doesn't have an answer, but can provide specifics where this does work for them. I've checked two Macs so I'm guessing it's not related to keyboard type or connection method.
65981
I am using Ubuntu 12.04. The keyboard layout is English US everywhere except for the Command Line where it works in English UK. Terminal also has English US. How do I change the default keyboard layout in Command Line to English US?  Also, I think it might be worth noting here, that when I had installed Ubuntu (dual boot with Windows 8. 1), I had initially set the language as English UK, but later changed it to English US from the system settings.
55473
I recently installed Ubuntu 17.10, and when I tried to set my keyboard layout to change with alt+shift, I hit a . There is  which works, but then it creates an unwanted behaviour on Firefox (perhaps other programs as well).   After setting alt+shift through gnome-tweak-tool as the combination to change language, whenever this combination is pressed within Firefox, it triggers a toggle that Firefox uses to show/hide the Menu Bar (with File/Edit/View etc.), and 'focus' is taken away from wherever the cursor was.   It's very frustrating, because one has to go and click again at the cursor.  The only solution I found was to permanently enable Menu Bar in Firefox because then alt doesn't do anything and I can use it to change languages. But I don't want to have Menu Bar on top always.  I hope you can understand what I'm trying to explain.  Any thoughts?
32413
The keyboard on my laptop seems to be typing by itself:   It sometimes types characters like 134, whether by itself or when I hit certain keys. Repeating characters may appear unexpectedly. The system volume may change by itself, or windows like the Print dialog or Web browser may appear.   This can happen without any input or as I type, and may occur more often when certain keys are pressed. Sometimes, the keyboard fails to respond altogether. This is happening regardless of the software involved.  Is there a ghost in my keyboard—is my keyboard broken?  A sample of text from the keyboard might look like this (normal QWERTY...ASDF...ZXC... sequence is expected):   QWERTYUIOPASDF)(G@*HKLZXCVBN QWERTYIOPASDFGL!#ZXCVB13 QWERTYUIOPASDFGHJKLZXCVB!#N qwertyu41iopasdf19g13h28j113k4113zxcvb4n qwerty4u1iopasdf0g7h1jklzxcvb13m qwert13uuuuuuuuuuuuuuuiopasdf87091134ghhhhhhhhhhhhhhhhhhhhhhh13jk13zxcvb14      This question comes up often and the answers are usually the same. This post is meant to provide a definitive, canonical answer for this problem. Feel free to edit the answer to add additional details.
46154
After upgrade to Mojave, a long press of any letter does bring up the accented character menu but not anymore on the Touch Bar (Mac Book Pro 15-inch, 2018 with US keyboard).   Do you have an idea to to get them back on the touchbar ?
117499
In my daily life I'm always typing &lt;kbd&gt;Keyboard Character&lt;/kbd&gt; and I'd like to set up a macro in Ubuntu to automatically enter &lt;kbd&gt; &lt;/kbd&gt;.  I'd like to assign it to say Shift+Control+K or whatever keyboard control character combination isn't assigned and already used by Ubuntu.  Back in the day of TSR (Terminate and Stay Resident) MS-DOS programs this was possible. Certainly it must be in Ubuntu too?  Do I have to write a daemon to accomplish this?    I found other questions with no answers: ,   I found a similar question with an answer: . However that question stipulated the answer could not be AutoKey.
66317
I was using Ubuntu 16.04. There it was so easy to change the text entry option. Settings > Text entry.  But when I switch to Ubuntu 18.04 I can't find such option. So how can I write in another language? How to change text entry i.e. by super+shift or something like that?
114950
My cat sat on my laptop and now if I type either L or P, it inputs 3 or * instead. The rest of my keyboard still works correctly. The problem is bad enough that I had to use the touch screen of my computer to type this in.  How can I restore the correct working behaviour of my keyboard?
60733
I'm using Bootcamp to run Windows on my Mac. Now I can't find a way to make curly braces and brackets. What is the keyboard shortcut for that?  I am using a Swiss German Apple keyboard layout.
118006
In 10.04, I had a lot of keyboard shortcuts defined using Super/Mod4 and one single other key,   Super+O ran Opera Super+W opened Nautilus pointing to my Work folder, etc.   In 11.04, these do not seem to work -- only Super+R works to run the terminal, and Super+Shift+W successfully runs Nautilus.  Is there some way I can get these to function again?  Adding them in Keyboard Shortcuts does not work, and neither does adding commands in CompizConfig Settings Manager.
43114
Whenever I'm at the console login, I press up arrow intentionally to see the previously typed commands. But I see this ^[[A.  But when I press Ctrl Alt Print Screen Scroll Lock Pause Break Page Up Page Down Win keys doesn't echo any characters.  What might be the reason behind?  Does ^[[A sort of characters imply anything?