it:rpi:raspbian
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| it:rpi:raspbian [2020/03/09 22:35] – fu | it:rpi:raspbian [2020/03/10 16:59] (current) – [IPアドレスの固定] fu | ||
|---|---|---|---|
| Line 39: | Line 39: | ||
| </ | </ | ||
| + | ====== タイムゾーンの設定 ====== | ||
| + | sudo raspi-config | ||
| + | |||
| + | で設定する。 | ||
| + | |||
| + | ====== パーティションの拡張 ====== | ||
| + | < | ||
| + | parted /dev/sda | ||
| + | |||
| + | (parted) unit s | ||
| + | (parted) print free | ||
| + | Model: Generic USB Disk (scsi) | ||
| + | Disk /dev/sda: 488397168s | ||
| + | Sector size (logical/ | ||
| + | Partition Table: msdos | ||
| + | Disk Flags: | ||
| + | |||
| + | Number | ||
| + | 32s 8191s | ||
| + | | ||
| + | | ||
| + | 60751872s | ||
| + | |||
| + | (parted) resizepart 2 488397167s | ||
| + | (parted) print free | ||
| + | Model: Generic USB Disk (scsi) | ||
| + | Disk /dev/sda: 488397168s | ||
| + | Sector size (logical/ | ||
| + | Partition Table: msdos | ||
| + | Disk Flags: | ||
| + | |||
| + | Number | ||
| + | 32s 8191s | ||
| + | | ||
| + | | ||
| + | |||
| + | (parted) q | ||
| + | |||
| + | |||
| + | fsck.ext4 -f /dev/sda | ||
| + | resize2fs /dev/sda2 | ||
| + | </ | ||
| + | |||
| + | ====== IPアドレスの固定 ====== | ||
| + | / | ||
| + | < | ||
| + | interface eth0 | ||
| + | static ip_address=192.168.1.31/ | ||
| + | #static ip6_address=fd51: | ||
| + | static routers=192.168.1.1 | ||
| + | static domain_name_servers=192.168.1 8.8.8.8 fd51: | ||
| + | </ | ||
| + | |||
| + | ====== ユーザの追加 ====== | ||
| + | < | ||
| + | adduser fu | ||
| + | </ | ||
| + | sudoできるようにするには | ||
| + | |||
| + | / | ||
| + | | ||
it/rpi/raspbian.1583760925.txt.gz · Last modified: by fu · Currently locked by: 216.73.216.38,172.18.0.1
