Raspberry Pi Beginner Projects: Making The File System Visible
<< Previous
First
2
3
4
5
6
7
8
Last
Raspberry Pi Beginner Projects: Setting Up Raspberry Pi Beginner Projects: Parts List Raspberry Pi Beginner Projects: Putting The Hardware Together Raspberry Pi Beginner Projects: Raspbian Operating System Raspberry Pi Beginner Projects: Updating Raspbian Raspberry Pi Beginner Projects: Installing VNC Raspberry Pi Beginner Projects: Using SSH and SFTP Raspberry Pi Beginner Projects: Give your Pi a name Raspberry Pi Beginner Projects: Making The File System Visible
Integrating with your networkWouldn't it be nice if you could browse the file system of your Raspberry Pi from anywhere on your network just like you can with Windows networking? Well you can, it's quite easy to do so off we go... It's worth mentioning quickly that once you have set up your Pi as follows you will not only be able to use the Windows file explorer to browse files on your pi but you will also be able to use the hostname to connect to it with PuTTy and WinSCP and others. This means that you won't have to remember it's IP address and rediscover it every time your router gives it a new one. Install SAMBA: pi@raptor ~ $ sudo apt-get install samba samba-common-bin When I did this install it took quite a while so be patient. Change the working directory to /etc/samba:
pi@raptor ~ $ cd /etc/samba There are going to be a number of operations to perform that require you to have root permissions so to avoid excessive typing of sudo you can start a root shell to do it all in:
pi@raptor /etc/samba $ sudo bash Notice that the prompt has changed to "root@..." and ends with a '#' instead of a '$' You can now edit the smb.conf file and strip out all the comments and defaults to improve performance. First rename the file so that you can use it to recreate the original: root@raptor /etc/samba# mv smb.conf smb.conf.master Now edit the file with nano: root@raptor /etc/samba# nano smb.conf.master In the section ### Authentication ### find the line: # security = user Remove the '#' at the start of the line. This will require everyone who accesses the Pi's file system to be linux users on the Pi. In the section [homes] find the line: # read only = no remove the '#' to uncomment it. This allows for files to be written to as well as read across the SAMBA network. Save the file: ^O And exit: ^X Now strip out all the unnecessary stuff from the file and save it back to the original: root@raptor /etc/samba# testparm -s smb.conf.master > smb.conf Restart the SAMBA service: root@raptor /etc/samba# service samba restart Exit the root bash shell:
root@raptor /etc/samba# exit Finaly set a password on the SAMBA network for the user 'pi'. This is the password that you will need to access the Pi's file system from your network. It is not the same as the Linux login for the same user: pi@raptor /etc/samba $ sudo smbpasswd -a pi Enter a suitable password when prompted and you are done. You can now access your Pi's file system from any machine on your network just like you would for any Windows system. You can also use the hostname to access a terminal with PuTTY and files with WinSCP.
<< Previous
First
2
3
4
5
6
7
8
Last
Raspberry Pi Beginner Projects: Setting Up Raspberry Pi Beginner Projects: Parts List Raspberry Pi Beginner Projects: Putting The Hardware Together Raspberry Pi Beginner Projects: Raspbian Operating System Raspberry Pi Beginner Projects: Updating Raspbian Raspberry Pi Beginner Projects: Installing VNC Raspberry Pi Beginner Projects: Using SSH and SFTP Raspberry Pi Beginner Projects: Give your Pi a name Raspberry Pi Beginner Projects: Making The File System Visible |
Now subscribe to our newsletter and don't miss a thing |
|
Comments
No comments yet.Add Comment