- 追加された行はこの色です。
- 削除された行はこの色です。
#author("2016-07-18T18:38:08+09:00","default:masaya","masaya")
* Raspberry Pi 3 [#l7c37a84]
#author("2016-07-21T18:00:07+09:00","default:masaya","masaya")
* Raspberry Pi 3 [#y78ef6cf]
** 設定 [#w8bc374a]
以下のコマンドでタイムゾーン、ロケールの変更、DISKの拡張などを行なう。
- sudo raspi-config
*** Network [#ob4c3f66]
ネットワークを固定化する。
- vi /etc/dhcpcd.conf
-- interface eth0
-- static ip_address=192.168.xxx.xxx/24
-- static routers=192.168.xxx.1
-- static domain_name_servers=192.168.xxx.1
ntpをnictに変更。
- vi /etc/ntp.conf
-- pool ntp.nict.jp irbust
- sudo /etc/init.d/ntp restart
- ntpq -p
-- ntpの動作状況確認
*** Update [#k250150f]
- sudo apt-get update
- sudo apt-get upgrade
- sudo rpi-update
*** User [#kbe62c63]
- 新しいユーザを追加
-- sudo できるようにgroupに追加しておく。
- pi は削除
** Server設定 [#t5595df8]
*** Apatch [#j4751826]
- sudo apt-get install apache2
*** Samba [#o7032342]
- sudo apt-get install samba
- sudo vi /etc/samba/smb.conf
[global]
load printers = no
disable spooles = yes
unix extensions = no
[%U]
path = %H
comment = %U's Home Directory
writable = yes
read only = no
create mask = 0644
directory mask = 0755
include = /etc/samba/users/%U.conf
- sudo smbpasswd -a username
- sudo /etc/init.d/sambad restart
*** ftp [#gd64e87c]
- sudo apt-get install vsftpd
- sudo vi /etc/vsftpd.conf
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
seccomp_sandbox=NO
allow_writeable_chroot=YES
- sudo service vsftpd restart
#br
#br