LoginSignup
8
4

More than 3 years have passed since last update.

Raspberry Piの共有フォルダにWindowsから接続(samba install)

Posted at

Raspberry PiのPublicフォルダを共有にする

sambaをインストール

pi@raspberrypi:~ $ sudo apt-get update
pi@raspberrypi:~ $ sudo apt-get install samba

samba設定

pi@raspberrypi:~ $ sudo vi /etc/samba/smb.conf

ファイルの最後に以下を追記

/etc/samba/smb.conf
[raspberrypi]
   comment = Raspberry Pi
   path = /home/pi/Public
   public = yes
   guest ok = yes
   read only = no
   browsable = yes
   force user = pi
   strict sync = yes

samba 再起動

pi@raspberrypi:~ $ sudo service smbd restart

IPアドレス確認

pi@raspberrypi:~ $ ifconfig
(省略)
inet 192.168.1.74  netmask 255.255.255.0  broadcast 192.168.1.255
(省略)

Windowsから接続

IPアドレスでアクセス。

Raspberry Piのデフォルト設定なら

  • User name : pi
  • Password : raspberry

image.png

image.png

8
4
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
8
4