定期的に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
sudo apt install indicator-multiload
- setting -> indicator items
- memを上位に
- モニターするリソースのチェックを外す
wine(Rapture)
- windowsでおなじみのおにぎり
- Ubuntuでも使いたいので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
sudo apt install winetricks
wintricks # 以降GUIにしたがってcjkfontsを入れる
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
- デスクトップエントリの登録
[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
- マウスジェスチャー
- NOBLE向けForkがここにある
https://github.com/highfillgoods/easystrokeNOBLE
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
- 画面にお絵描きするツール
- readmeを参考に入れる
sudo apt install gnome-shell-extension-manager
wget -qO- https://raw.githubusercontent.com/daveprowse/scripts/refs/heads/main/dog-install.sh
インストールできたら一度再起動し、GNOME Extensionsから有効化する

デフォルトは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
