Ubuntu 24.04 Server 導入
自分専用メモ
環境
- Ubuntu 24.04 Server
OSインストール
https://jp.ubuntu.com/
DVDを入れ(ゲストマシンの場合はisoファイルを指定し)起動しインストーラに従う
- ssh有効
OS設定
# IP固定する場合
echo "
network:
version: 2
renderer: networkd
ethernets:
eth0:
dhcp4: false
dhcp6: false
addresses: [192.168.81.175/24]
routes:
- to: default
via: 192.168.81.1
nameservers:
addresses: [8.8.8.8]
" | sudo tee /etc/netplan/99-eth0.yaml
sudo chmod 600 /etc/netplan/99-eth0.yaml
# sudo のタイムアウトを2dに延長
echo "Defaults timestamp_timeout = 2880" | sudo EDITOR='tee -a' visudo > /dev/null
# apt更新(時々)
sudo apt update
sudo apt upgrade -y
ツール
sudo apt install -y screen
sudo snap install emacs --classic
sudo apt install docker.io
git config --global credential.helper 'cache --timeout=1209600' #14d
Home設定
cd ~
git clone --depth=1 https://github.com/kyoya-p/home
sh home/init.sh