LoginSignup
1
2

Ubuntu環境を新しく作ったときにやること(備忘録・随時更新)

Last updated at Posted at 2021-07-31

日本語入力

$ sudo apt install fcitx-mozc

ホームディレクトリを英語に

$ sudo apt install xdg-user-dirs-gtk
$ LANG=C xdg-user-dirs-gtk-update

「CapsLock」と「Ctrl」を入れ替える

$ sudo vim /etc/default/keyboard

以下の設定を追加

XKBOPTIONS="ctrl:nocaps"

プログラミングフォントの導入

ファイルをダウンロード

sudo cp MyricaM.TTC /usr/share/fonts/truetype/
fc-cache -fv

escキーでIMEをOFFにできるように

$ vim ~/.config/fcitx/conf
InactivateKey=ESCAPE CTRL_[

Mac + Google日本語入力の場合は「環境設定」→「一般タブ」→「キー設定の選択」に以下を追加

  • モード:入力文字なし
  • 入力キー: Escape
  • コマンド: キャンセル後IMEを無効化

(Lubuntuで)superキー+十字キーでウィンドウを上下左右に並べる

$ vim ~/.config/openbox/rc.xml

<keyboard>内に以下を追加。

    <!--
        Lubuntu specific.
        Keybindings for window tiling
    -->
    <!--
        # HalfLeftScreen
    -->
    <keybind key="W-Left">
      <action name="UnmaximizeFull"/>
      <action name="MoveResizeTo">
        <x>0</x>
        <y>0</y>
        <height>100%</height>
        <width>50%</width>
      </action>
    </keybind>
    <!--
        # HalfRightScreen
    -->
    <keybind key="W-Right">
      <action name="UnmaximizeFull"/>
      <action name="MoveResizeTo">
        <x>-0</x>
        <y>0</y>
        <height>100%</height>
        <width>50%</width>
      </action>
    </keybind>
    <!--
        # HalfUpperScreen
    -->
    <keybind key="W-Up">
      <action name="UnmaximizeFull"/>
      <action name="MoveResizeTo">
        <x>0</x>
        <y>0</y>
        <width>100%</width>
        <height>50%</height>
      </action>
    </keybind>
    <!--
        # HalfLowerScreen
    -->
    <keybind key="W-Down">
      <action name="UnmaximizeFull"/>
      <action name="MoveResizeTo">
        <x>0</x>
        <y>-0</y>
        <width>100%</width>
        <height>50%</height>
      </action>
    </keybind>
    <!--  Lubuntu specific : Keybindings -->

Gitの認証情報を安全に保存(パスワードを毎回入力しなくていいように)

$ sudo apt-get install libsecret-1-0 libsecret-1-dev
$ cd /usr/share/doc/git/contrib/credential/libsecret
$ sudo make
$ git config --global credential.helper /usr/share/doc/git/contrib/credential/libsecret/git-credential-libsecret

参考

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2