キーボードの割り当てを設定する2024/01/22 |
キーボードの割り当てを設定/再設定する場合は以下のように実行します。 |
|
[1] | 例として、日本語キーマップに変更する。 |
# キーマップの設定ファイルは以下に保管 root@dlp:~ # ls /usr/share/syscons/keymaps INDEX.keymaps estonian.iso15.kbd kk.pt154.kst.kbd swissfrench.iso.kbd be.iso.acc.kbd finnish.cp850.kbd latinamerican.iso.acc.kbd swissgerman.cp850.kbd be.iso.kbd finnish.iso.kbd latinamerican.kbd swissgerman.iso.acc.kbd bg.bds.ctrlcaps.kbd fr.dvorak.acc.kbd lt.iso4.kbd swissgerman.iso.kbd bg.phonetic.ctrlcaps.kbd fr.dvorak.kbd norwegian.dvorak.kbd swissgerman.macbook.acc.kbd br275.cp850.kbd fr.iso.acc.kbd norwegian.iso.kbd tr.iso9.q.kbd br275.iso.acc.kbd fr.iso.kbd pl_PL.ISO8859-2.kbd ua.iso5.kbd br275.iso.kbd fr.macbook.acc.kbd pl_PL.dvorak.kbd ua.koi8-u.kbd by.cp1131.kbd fr_CA.iso.acc.kbd pt.iso.acc.kbd ua.koi8-u.shift.alt.kbd by.cp1251.kbd german.cp850.kbd pt.iso.kbd uk.cp850-ctrl.kbd by.iso5.kbd german.iso.acc.kbd ru.cp866.kbd uk.cp850.kbd ce.iso2.kbd german.iso.kbd ru.iso5.kbd uk.dvorak.kbd colemak-dh.iso15.acc.kbd gr.elot.acc.kbd ru.koi8-r.kbd uk.iso-ctrl.kbd colemak.iso15.acc.kbd gr.us101.acc.kbd ru.koi8-r.shift.kbd uk.iso.kbd cs.latin2.qwertz.kbd hr.iso.kbd ru.koi8-r.win.kbd us.dvorak.kbd cz.iso2.kbd hu.iso2.101keys.kbd si.iso.kbd us.dvorakl.kbd danish.cp865.kbd hu.iso2.102keys.kbd sk.iso2.kbd us.dvorakp.kbd danish.iso.acc.kbd hy.armscii-8.kbd spanish.dvorak.kbd us.dvorakr.kbd danish.iso.kbd icelandic.iso.acc.kbd spanish.iso.acc.kbd us.dvorakx.kbd danish.iso.macbook.kbd icelandic.iso.kbd spanish.iso.kbd us.emacs.kbd dutch.iso.acc.kbd it.iso.kbd spanish.iso15.acc.kbd us.iso.acc.kbd eee_nordic.kbd iw.iso8.kbd swedish.cp850.kbd us.iso.kbd el.iso07.kbd jp.106.kbd swedish.iso.kbd us.iso.macbook.kbd estonian.cp850.kbd jp.106x.kbd swissfrench.cp850.kbd us.pc-ctrl.kbd estonian.iso.kbd kk.pt154.io.kbd swissfrench.iso.acc.kbd us.unix.kbd # 変更したいキーマップファイルを読み込む # * コンソール上で実行する root@dlp:~ # kbdcontrol -l /usr/share/syscons/keymaps/jp.106.kbd
root@dlp:~ #
vi /etc/rc.conf # システム起動時の設定も変更 keymap=" jp.kbd "
# kbdmap コマンドでも変更可 root@dlp:~ # kbdmap +------------------------+Keyboard Menu+-----------------------+ | Choose your keyboard layout | | +----------------------------------------------------------+ | | |Armenian phonetic layout | | | |Belarusian | | | |Belgian | | | |Belgian (accent keys) | | | |Brazilian (accent keys) | | | |Brazilian (without accent keys) | | | |Bulgarian (BDS) | | | |Bulgarian (Phonetic) | | | |Canadian Bilingual | | | |Central European | | | |Central European (QWERTY) | | | |Colemak Mod-DH ergonomic alternative | | | |Colemak ergonomic alternative | | | |Croatian | | | |Czech (QWERTZ, accent keys) | | | |Danish | | | |Danish (MacBook) | | | |Danish (accent keys) | | | |Dutch (accent keys) | | | |Estonian | | | |Finnish | | | |French | | | |French (MacBook/MacBook Pro) (accent keys) | | | |French (accent keys) | | | +-vvv------------------------------------------------- 27%-+ | +--------------------------------------------------------------+ | [ OK ] [Cancel] | +--------------------------------------------------------------+ |