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 導入

Last updated at Posted at 2025-08-24

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

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?