0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

RasPi4によるホームサーバー構築 その3 OSのセットアップ

0
Posted at

OSのセットアップ

1. ログイン

login : pi
password : raspberry

2. アップデート

sudo apt-get -y update
sudo apt-get -y upgrade
sudo rpi-update
sudo reboot

3. vimのインストール

sudo apt-get --purge remove vim-common vim-tiny
sudo apt-get -y install vim

4. /tmp, /var/tmp, /var/log をRAMへ

SDカードのRead/Write回数を減らすために、/tmp, /var/tmp, /var/log をRAMへ
/var/log は任意で!

sudo vim /etc/fstab

以下を追記

tmpfs  /tmp           tmpfs defaults,size=32m,noatime,mode=1777 0 0
tmpfs  /var/tmp       tmpfs defaults,size=16m,noatime,mode=1777 0 0
tmpfs  /var/log       tmpfs defaults,size=16m,noatime,mode=0755 0 0

5. SSHの有効化

sudo raspi-config

5 Interfacing Options を選択
P2 SSH を選択

Finish で再起動

0
1
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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?