DEV Community

Cong
Cong

Posted on • Edited on

4

Ubuntu で日本語キーボード

Ubuntu 18.04 では比較的簡単に日本語入力の設定ができるのだが、キーボードレイアウトがUSのままだと、全角半角ボタンでIMEオンオフができなかったり、@ の場所が違ったりして使いづらいため、キーボードのレイアウトを日本語にしたい。

コンソールで使うキーボードの設定

sudo dpkg-reconfigure keyboard-configuration
Enter fullscreen mode Exit fullscreen mode

Generic 105-key PC (intl.)JapaneseJapaneseThe default for the keyboard layoutNo compose keyYes と入力する。

X(GUI)で使うキーボードの設定

gnome-session-properties
Enter fullscreen mode Exit fullscreen mode

Addsetxkbmap -layout jpSave
ちなみに、Caps LockキーをCtrlとして使いたければ

setxkbmap -layout jp -option ctrl:nocaps
Enter fullscreen mode Exit fullscreen mode

Screenshot from 2019-03-27 12-06-49.png

なお Ctr-Alt-F3 でコンソールへ一時的に切り替えて、
また Ctr-Alt-F2 でX GUIに戻ると、キーボードレイアウトが
USになるバグがあるので、ターミナルに

 setxkbmap -layout jp
Enter fullscreen mode Exit fullscreen mode

で解決。

キーボードレイアウトの確認

$ setxkbmap -print -verbose 10 | grep layout
layout:     jp
Enter fullscreen mode Exit fullscreen mode

Ubuntuの設定ツールで見ると
Japanese Keyboard layout

Quadratic AI

Quadratic AI – The Spreadsheet with AI, Code, and Connections

  • AI-Powered Insights: Ask questions in plain English and get instant visualizations
  • Multi-Language Support: Seamlessly switch between Python, SQL, and JavaScript in one workspace
  • Zero Setup Required: Connect to databases or drag-and-drop files straight from your browser
  • Live Collaboration: Work together in real-time, no matter where your team is located
  • Beyond Formulas: Tackle complex analysis that traditional spreadsheets can't handle

Get started for free.

Watch The Demo 📊✨

Top comments (0)

Image of DataStax

AI Agents Made Easy with Langflow

Connect models, vector stores, memory and other AI building blocks with the click of a button to build and deploy AI-powered agents.

Get started for free