0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Ubuntu セットアップ時のメモ

0
Last updated at Posted at 2025-10-15

定期的にPCのリプレイスがあるので、毎回やることを備忘録として書いておく

よく使うアプリ

とりあえず入れる系

sudo apt install net-tools curl openssh-server git vim terminator fish gnome-tweaks screen indicator-multiload fonts-takao okular vlc -y

fish

  • コマンド補完が強いshell
sudo apt install fish
fish
curl -sL https://git.io/fisher | source && fisher install jorgebucaran/fisher
fisher install edc/bass # fishでbashの設定を読み込むために必要

設定ファイルの置き場所 ~/.config/fish/config.fish
Historyファイルの置き場所 ~/.local/share/fish/fish_history

indicator-multiload

  • GNOMEパネルにシステム負荷を表示できる
  • 特にメモリ容量を見たい
     Screenshot from 2021-07-30 21-41-38.png

sudo apt install indicator-multiload

  1. setting -> indicator items
    1. memを上位に
  2. モニターするリソースのチェックを外す

wine(Rapture)

  • windowsでおなじみのおにぎり
  • Ubuntuでも使いたいのでwine経由して使う
wineのインストール
sudo dpkg --add-architecture i386
wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo apt-key add winehq.key
sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main'
sudo apt install --install-recommends winehq-stable
wine用日本語フォントのインストール
sudo apt install winetricks
wintricks # 以降GUIにしたがってcjkfontsを入れる
Raptureのインストール
wget https://ftp.vector.co.jp/73/25/1860/rapture-2.4.1.zip
unzip rapture-2.4.1.zip -d rapture
cp -r rapture ~/.wine/drive_c/Program\ Files/Rapture
chmod 755 ~/.wine/drive_c/Program\ Files/Rapture/rapture.exe
アイコンの吸出し
cd ~/.wine/drive_c/Program\ Files/Rapture
wrestool -x --output="$PWD" -t14 rapture.exe
convert rapture.exe_14_101_1041.ico rapture.png
cp rapture-0.png /home/xxx/.local/share/icons/rapture.png
  • デスクトップエントリの登録
~/.local/share/applications/Rapture.desktop
[Desktop Entry]
Categories=
Comment=Rapture
Comment[ja]=Rapture
Encoding=UTF-8
Exec=env WINEPREFIX="/home/xxx/.wine" wine "C://Program Files/rapture/rapture.exe"
GenericName=
GenericName[ja]=
Icon=/home/xxx/.local/share/icons/rapture.png
MimeType=
Name=Rapture
Name[ja]=Rapture
ServiceTypes=
SwallowExec=
SwallowTitle=
Terminal=
TerminalOptions=
Type=Application
X-KDE-SubstituteUID=false
X-KDE-Username=root
StartupWMClass=wine

# created by com.izforge.izpack.util.os.Unix_Shortcut $Revision$
# $Id$

easystroke

sudo apt update && sudo apt install git build-essential autoconf automake libgtk2.0-dev libx11-dev libxtst-dev libpango1.0-dev libgtkmm-3.0-dev libdbus-glib-1-dev libboost-serialization-dev libxext-dev libxi-dev libxfixes-dev libxtst-dev gettext intltool xorg-dev xserver-xorg-dev intltool
git clone https://github.com/highfillgoods/easystrokeNOBLE.git
cd easystrokeNOBLE
make
sudo make install

Draw On Your Screen

sudo apt install gnome-shell-extension-manager
wget -qO- https://raw.githubusercontent.com/daveprowse/scripts/refs/heads/main/dog-install.sh

インストールできたら一度再起動し、GNOME Extensionsから有効化する
image.png

デフォルトはSuper + Alt + Dで起動
Ubuntu24.04は↑のキーボード・ショートカットがすべての通常ウィンドウを隠すが割り当てられているため、別のキーに変更する

kicad

最近は定期的にメジャーバージョンアップされるので、適宜最新を入れる
https://www.kicad.org/download/details/ubuntu/

sudo add-apt-repository --yes ppa:kicad/kicad-9.0-releases
sudo apt update
sudo apt install --install-recommends kicad

設定ファイルを忘れずにコピーする

プラグイン

  • Fabrication Toolkit
    • JLCPCBで注文する際に使う
  • kikit
    • 面付けなどに使う

kikitはバックエンド設定する必要がある
本当はvenvを使ってインストールするのがいいんだろうけど、うまく行かなかったのでシステムのpythonに無理やり入れる

python3 -m pip install --user --break-system-packages kikit

古いPCから引き上げるもの

フォルダ

  • .ssh/
  • .easystroke/
  • .local/share/applications/
  • _work/
  • log/
  • Docments/
  • Pictures/
  • .config/kicad

設定ファイル

  • .gitconfig
  • .local/share/fish/fish_history
  • .config/fish/config.fish
  • .bashrc

sudoのPWを聞かれなくする

sudo su
visudo
<username> ALL=NOPASSWD: ALL

Homeのフォルダ名を英語にする

LANG=C xdg-user-dirs-gtk-update
0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?