-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup-raspberrypi.txt
More file actions
76 lines (59 loc) · 1.58 KB
/
setup-raspberrypi.txt
File metadata and controls
76 lines (59 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
■Raspberry piのインストール
SDFormatter でsdcardの初期化
Win32DiskImager でイメージの書き込み
SSHを有効にする
bootパーティションに[ssh]という名前のファイルを作成
※拡張子なし
Wi-Fiの設定をする
bootパーティションに「wpa_supplicant.conf」を作成
----------ファイルに記述----------
country=JP
ctrl_interface=/var/run/wpa_supplicant
network={
ssid="SSID"
psk="パスワード"
key_mgmt=WPA-PSK
proto=WPA WPA2
pairwise=CCMP TKIP
group=CCMP TKIP WEP104 WEP40
}
----------ファイルに記述----------
起動
id:pi
password:raspberry
最新環境アップデート
$ sudo apt update
$ sudo apt upgrade
初期設定
$ sudo raspi-config
"4 Localisation Options"から "I1 Change Locale"を選択
変更
en_US.UTF-8 UTF-8
ja_JP.EUC-JP EUC-JP
ja_JP.UTF-8 UTF-8
デフォルトのロケール
en_US.UTF-8 UTF-8
"4 Localisation Options"から"I2 Change Timezone"を選択
変更
Asia -> Tokyo
"7 Advanced Options"から "A1 Expand Filesystem"を選択
上記作業が終わったら再起動
$ sudo reboot
■sambaのインストール
$ sudo apt install samba
$ sudo cp -p /etc/samba/smb.conf /etc/samba/smb.conf.org
$ sudo vi /etc/samba/smb.conf
----------ファイルの下に追加----------
[public]
comment = raspberry pi
path = /home/pi
public = yes
read only = no
browsable = yes
guest ok = yes
force user = pi
force create mode = 0777
force directory mode = 0777
----------ファイルの下に追加----------
上記作業が終わったら再起動
$ sudo reboot