Site Tools


it:rpi:raspbian

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
it:rpi:raspbian [2020/03/10 12:11] – fuit:rpi:raspbian [2020/03/10 16:59] (current) – [IPアドレスの固定] fu
Line 78: Line 78:
  
  
-# fsck.ext4 -f /dev/sda2+fsck.ext4 -f /dev/sda 
 +resize2fs /dev/sda2
 </code> </code>
  
 +====== IPアドレスの固定 ======
 +/etc/dhcpcd.conf に以下を記述する
 +<code>
 +interface eth0
 +static ip_address=192.168.1.31/24
 +#static ip6_address=fd51:42f8:caae:d92e::ff/64
 +static routers=192.168.1.1
 +static domain_name_servers=192.168.1 8.8.8.8 fd51:42f8:caae:d92e::1
 +</code>
 +
 +====== ユーザの追加 ======
 +<code>
 +adduser fu
 +</code>
 +sudoできるようにするには
 +
 +/etc/sudoers.d/010_pi-nopasswd
 + に倣って,ファイルを作成すればよい
  
it/rpi/raspbian.1583809879.txt.gz · Last modified: by fu · Currently locked by: 216.73.216.38,172.18.0.1