LoginSignup
5
7

More than 5 years have passed since last update.

Raspberry Pi 3 でファイル共有 ( samba )

Last updated at Posted at 2019-03-08

Raspberry Pi 3 Model B+ ( ラズベリーパイ ) を使用したファイル共有 ( samba ) 環境構築

環境

  • Raspberry Pi 3 Model B+
  • Raspberry Pi の ipを固定(任意) [ 192.168.1.110 ]

1.sambaインストール

$ sudo apt-get install samba

2.設定

$ sudo nano /etc/samba/smb.conf
/etc/samba/smb.conf
[Public]
   comment = RaspberryPi3
   path = /mnt/nas
   guest ok = yes
   read only = no
   browsable = yes
   force user = pi

上記設定を追加
pathについては共有したいディレクトリを設定

3.設定を反映させるために再起動

$ sudo service smbd restart

これで \192.168.1.110\Public で他のパソコン等からも接続が可能になりました。
img99.jpg

参考

Raspberry Pi 3 Model B+ に samba をインストールする

5
7
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
5
7