2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Ubuntu22.04の初期セットアップ事項+見た目を良くする自分用メモ #2025年最新

Last updated at Posted at 2025-07-08

これは何?

Ubuntu 22.04をセットアップした際のメモ。

OSのインストールまでは前記事に書いたのでこちらを参照。

最終的にはこんな感じになった。

image.png

この記事の守備範囲

Ubuntuの設定などがメイン。

VS Codeのセットアップなどは別でやる。


作業前にいれるもの

vim

エディタがないと始まらないのでとりあえず入れる。
(メインはneovimとVS Codeを使用している)

sudo apt update
sudo apt install vim

Git

sudo apt install git

xdg-open

Terminalからファイラを開けるやつ。

sudo apt install xdg-utils

Firefoxのバージョンアップデート

プリインストールされているFirefoxのバージョンが古く、ChatGPTにつなごうとすると弾かれる(白い画面がでる)現象が発生。

公式からdebファイルをインストールするでもよいが、アイコンの設定とか面倒だったので、自分はsnapでもともと入っているfirefoxをアップデートして使うことにした。

Software Update経由もしくは、snap remove firefox後にsnap install firefoxでアプデ可能


GitHubに公開鍵を登録

秘密鍵とそれに対応する公開鍵を作成してGitHubに登録。

ssh-keygen -t ed25519 -C "ランダム文字列"

公開鍵は設定ページから登録できる。


CLIの設定

自分用の設定ファイルの一覧が入っているリポジトリをクローンする。
(公開鍵の登録がうまくいっているかの確認も兼ねている)

git clone https://github.com/RyosukeDTomita/dotfiles/

nvim

Ubuntuでyyなどをクリップボードに保存するためにはxclipが必要な点に注意。

cd dotfiles
./install-neovim.sh

zsh

oh-my-zshを使うのでセットでインストール

cd dotfiles
./install-ohmyzsh.sh 

zsh-autocompleteがうまく入っていなかったのでスクリプトから該当部分をコピペして手動でインストールした。

設定ファイルのシンボリックリンクを通す

cd dotfiles
./create_ln.sh
source ~/.zshrc

Gnome Terminal

ターミナルカラー

git clone https://github.com/sigurdga/gnome-terminal-colors-solarized.git
cd gnome-terminal-colors-solarized/
./install.sh;
Cloning into 'gnome-terminal-colors-solarized'...
remote: Enumerating objects: 424, done.
remote: Total 424 (delta 0), reused 0 (delta 0), pack-reused 424 (from 1)
Receiving objects: 100% (424/424), 89.66 KiB | 2.72 MiB/s, done.
Resolving deltas: 100% (233/233), done.
~/archive/gnome-terminal-colors-solarized

This script will ask you which color scheme you want, and which Gnome Terminal profile to overwrite.

Please note that there is no uninstall option yet. If you do not wish to overwrite any of your profiles, you should create a new profile before you run this script. However, you can reset your colors to the Gnome default, by running:

    Gnome >= 3.8 dconf reset -f /org/gnome/terminal/legacy/profiles:/
    Gnome < 3.8 gconftool-2 --recursive-unset /apps/gnome-terminal

By default, it runs in the interactive mode, but it also can be run non-interactively, just feed it with the necessary options, see 'install.sh --help' for details.

Please select a color scheme:
1) dark
2) dark_alternative
3) light
#? 1

Please select a Gnome Terminal profile:
1) Unnamed
#? 1

You have selected:

  Scheme:  dark
  Profile: Unnamed (b1dcc9dd-5262-4d8d-a863-c897e6d979b9)

Are you sure you want to overwrite the selected profile?
(YES to continue) YES
Confirmation received -- applying settings

A dircolors already exists in /home/sigma/.dir_colors, but can be incompatible with the solarized color scheme causing some colors problems when doing a "ls".

1) Replace the actual dircolors by seebi' dircolors-solarized: https://github.com/seebi/dircolors-solarized (the actual dircolors will be keeped as backup).

2) [DEFAULT] I am awared about this potentiall problem and will check my dircolors (default path: ~/.dir_colors/dircolors) in case of conflict.

Enter your choice : [2] 2
If there is any problem with the colors when doing a "ls", please check your dircolors.

エラー音を消す

Preferencesを押下して設定変更できる

image.png

Sound→Terminal bellのチェックを外す

image.png


key mappingの変更

  1. 画面右上の入力モードをクリックする。
  2. tool→properties
  3. keymap styleのCustomizeをクリック
  4. それぞれの変換と無変換が3箇所ずつあるので変換をactivateIMEに無変換をdeactivateIMEに設定する。

DesktopからHomeを消す

gsettings set org.gnome.shell.extensions.ding show-home false

Gnome Tweaks

sudo apt install gnome-tweaks

CapsをCtrlにする

Keyboard & Mouse→Additional Layout Options

image.png

Make Caps Lock a additional Backspace
image.png

要再起動

Top Barの時間表示を変更

image.png

Fontサイズの変更

大きめが好みなので少し大きめにした。

image.png

Gnome Extensions

gnome-shell-extensionsのインストール

sudo apt install gnome-shell-extensions

ブラウザ経由でExtensionsを入れられるようにする

ブラウザExtensionsを入れる。

Extensionsのインストール

  • CPU Power Manager

  • Dash to Dock: Dockのカスタマイズ。設定から左に配置するように変更。

    Ubuntu Dock Extensions(デフォルトで入っている)をオフにしないとDockが2つ表示される。
    勝手にオンになってしまうのでsudo mv /usr/share/gnome-shell/extensions/ubuntu-dock@ubuntu.com ~/archiveみたいにしてextensions自体を隔離した。

  • OpenWeather: トップバーに天気の情報が表示できる。

  • Impatience: アニメーションの速度を早くする。

  • Vitals: CPUやメモリの使用量、ネットワーク状態がトップバーに表示できる

  • Clipboard Indicator: clipboard管理(暫定)

アイコンの変更

cd /tmp
git clone https://github.com/keeferrourke/la-capitaine-icon-theme.git

# アイコンを ~/.icons 以下にコピー(ユーザー用)
mkdir -p ~/.icons
cp -r la-capitaine-icon-theme ~/.icons/la-capitaine

# またはシステム全体にインストールしたい場合
# sudo cp -r la-capitaine-icon-theme /usr/share/icons/la-capitaine

Gnome Tweaksから変更できる。

image.png


設定の変更

Settingsから変更する項目

バッテリーパーセンテージの表示

image.png

Keybordの設定を変えない

なぜか、Japanese Mozcだけを残して再起動したところUSキーになる現象が発生したので変えない。

image.png

2
1
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
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?