That's a good tip.
Another way round your problem is to map the backslash and pipe to the key you want, manually, with Xmodmap. I had to do this on my laptop because I bought it secondhand, and it came with a non-US keyboard. Since I use Dvorak layout anyway, most of the keys not being "right" didn't bother me, but some keys needed extra assistance to get where they were supposed to be.
In a file called ~/.xmodmap:
Code:
keycode 51 = backslash bar backslash bar
The key code may NOT be 51 in your case, but that seems to be pretty common.
To find out for sure, launch `xev` from a terminal. Then press the key that should produce the backslash. In the terminal output, look for `keycode` and then [some number]. That's the keycode you want to use.
To test, use the xmodmap command:
Code:
$ xmodmap ~/.xmodmap
Now your backslash and pipe should work as expected.
If so, add that xmodmap command to your ~/.bash_profile or ~/.bashrc file.