2023/11/06

Ubuntu インストール後にやったことのメモ

Ubuntu 22.04.3 LTSインストール後新しいバージョンが気になったので23.10を新規インストール
23.10は不安定で入れていないのもある



インストール(Mok manager、22.04のセキュアブート関連)

Windows 11及びUbuntu 20.04.3 LTS・・UEFIセキュアブート環境下のデュアルブート構成とThinkCentre M75q Tiny Gen2 pasmarkベンチ結果について(Ubuntu 20.04.3 LTS)


日本語関連

23.10
sudo wget https://www.ubuntulinux.jp/ubuntu-jp-ppa-keyring.gpg -P /etc/apt/trusted.gpg.d/
sudo wget https://www.ubuntulinux.jp/ubuntu-ja-archive-keyring.gpg -P /etc/apt/trusted.gpg.d/
sudo wget https://www.ubuntulinux.jp/sources.list.d/mantic.list -O /etc/apt/sources.list.d/ubuntu-ja.list
sudo apt update

アップグレード&日本語 Remixに追加されているパッケージ
sudo apt-get upgrade
sudo apt-get install ubuntu-defaults-ja

Ubuntuの日本語環境


火狐関連

about:config
toolkit.legacyUserProfileCustomizations.stylesheets → true

userChrome.cssを読み込むようにする


パブリックAdGuard DNS

デフォルトサーバー
IPv4
94.140.14.14,94.140.15.15

IPv6
2a10:50c0::ad1:ff,2a10:50c0::ad2:ff


パブリックAdGuard DNSに接続する方法


日本語入力

sudo apt install fcitx5-mozc
im-config -n fcitx5

自動起動するアプリケーションに「fcitx5 &」を登録
無変換をIMEオフ、変換をIMEオンに設定する


Ubuntu 21.10でFcitx 5を使用する
ubuntu desktop 22.04 初期設定


キースワップ(CapsLockをBackSpace、カタカナひらがなをEnterに設定する)

sudo apt -y install input-remapper


設定ファイルは$HOME/.config/input-remapper/*.json

Ubuntuにおけるキーボードカスタマイズユーティリティ🎮 ⌨ の選択ガイド
Linux環境だからってもうキーボードのキーリマップ(再割り当て)に悩まない。GUIでイケるinput-remapper


デュアルブートの時間のズレを修正

23.10
sudo timedatectl set-local-rtc true

22.10
sudo hwclock --verbose --systohc --localtime


壁紙取得

sudo apt install -y ubuntu-wallpapers-* ubuntustudio-wallpapers xubuntu-community-wallpapers-* kubuntu-wallpapers-* edubuntu-wallpapers

debパッケージのインストーラをインストール

sudo apt install gdebi



【西川和久の不定期コラム】メインPCをUbuntuにして約1年半で何が変わった?そして次期仕事用テスト環境を作る! - PC Watch

 

1passwordインストール

wget https://downloads.1password.com/linux/debian/amd64/stable/1password-latest.deb
sudo apt-get install -y ./1password-latest.deb && rm ./1password-latest.deb


Steamインストール

wget https://repo.steampowered.com/steam/archive/precise/steam_latest.deb
sudo apt-get install -y ./steam_latest.deb && rm ./steam_latest.deb


chromeインストール

wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo apt-get install -y ./google-chrome-stable_current_amd64.deb && rm ./google-chrome-stable_current_amd64.deb


ログインキーリングの削除(新規にパスワードを設定する画面でパスワードを「空」にする) 保留

cp $HOME/.local/share/keyrings/login.keyring ./login-bak.keyring && rm -f $HOME/.local/share/keyrings/login.keyring


Ubuntu22.04インストール後にやることを(半)自動セットアップできるようにした


フォルダ名を英語に変更する

LANG=C xdg-user-dirs-gtk-update



ディスプレイの電源が自動でオフになるまでの時間を延長する


Dock のアプリケーション表示ボタンを一番上へ移動する

gsettings set org.gnome.shell.extensions.dash-to-dock show-apps-at-top true


元に戻す場合は
gsettings set org.gnome.shell.extensions.dash-to-dock show-apps-at-top true



右クリックメニューから空のファイルを作成できるようにする

touch ~/Templates/空のドキュメント


Ubuntu 22.04 LTS をインストールした後やること11選 #初心者 - Qiita



bluetooth関連

アダプタはI-O DATA Bluetooth5.0 USBアダプタ USB-BT50LE

22.04の場合(23.10は入れると不安定)
sudo apt-get install blueman

bluetoothctl
scan on

 ペアリング、接続、信頼するデバイス
pair XX:XX:XX:XX:XX:XX
connect XX:XX:XX:XX:XX:XX
trust XX:XX:XX:XX:XX:XX


https://poku.blog/pc/hard/lubuntu-bluetooth.html
Ubuntu で Bluetooth マウスが使えない時にやるといいかもしれないこと


その他bluetooth関連メモ
hciconfig Bluetooth デバイスの情報表示や設定を行うためのコマンド


有効、無効
sudo hciconfig hci0 up
sudo hciconfig hci0 down


Linuxメモ: Bluetooth 関連コマンドのメモ (hciconfig, bluetoothctl)
【Linux】コマンドでBluetooth接続
Linux MintでBluetoothが起動しなくなったときにやったこと