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

Stretch 使い方

Posted at

sudo raspi-config にてSSHなどの有効化

そして、まずはDHCPの固定化

sudo vi /etc/dhcpcd.conf

interface eth0
static ip_address=192.168.1.53
static routers=192.168.1.1
static domain_name_servers=192.168.1.1

sudo apt-get update

sudo apt-get install ntfs-3g

sudo mkdir /mnt/root
sudo mount -t ntfs-3g /dev/sda1 /mnt/root

sudo vi /etc/fstabにて次の一行を追加
/dev/sda1 /mnt/root ntfs-3g defaults,nofail 0 0

sudo apt-get install samba samba-common-bin

sambaの設定

$ sudo vi /etc/samba/smb.conf
とりあえず以下の設定をファイルの最後に書き込んで保存

[ROOT]
comment = root
read only = no
locking = no
path = /home/pi
guest ok = yes
force user = pi

path = /mnt/root

sambaのユーザとraspbian上のユーザは別なので、sambaのユーザ用のパスワードを設定する

$ sudo useradd username
にてuserを追加した方がいいらしい。

$ sudo smbpasswd -a username
パスワードを入力する

sambaの起動

$ sudo systemctl restart smbd

再設定は

$ sudo raspi-config

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