This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
wiki:file_access [2021/10/08 15:13] vizycam [Changing the password] |
wiki:file_access [2021/10/08 16:42] vizycam |
||
---|---|---|---|
Line 2: | Line 2: | ||
You can access Vizy's files from your desktop or laptop as long as Vizy is on the local network (WiFi or Ethernet). This uses the SMB/CIFS protocol, which is supported by Windows, MacOS, Linux, and Chrome OS, | You can access Vizy's files from your desktop or laptop as long as Vizy is on the local network (WiFi or Ethernet). This uses the SMB/CIFS protocol, which is supported by Windows, MacOS, Linux, and Chrome OS, | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
Line 14: | Line 8: | ||
Accessing Vizy's view directory from a Windows computer is simple -- just bring up a File Explorer window and type in "\\vizy.local". | Accessing Vizy's view directory from a Windows computer is simple -- just bring up a File Explorer window and type in "\\vizy.local". | ||
- | {{wiki:image_454.jpg}} | + | {{wiki:image_454.jpg?400}} |
And type ''%%pi%%'' and ''%%raspberry%%'' for your name and password. | And type ''%%pi%%'' and ''%%raspberry%%'' for your name and password. | ||
- | {{wiki:image_453.jpg}} | + | {{wiki:image_453.jpg?400}} |
You'll then have access to the ''%%pi%%'' home directory. | You'll then have access to the ''%%pi%%'' home directory. | ||
Line 26: | Line 20: | ||
Access Vizy's view directory from the Finder. Click on ''Go'' in the menu bar at the top of the screen, then select ''Connect to Server''. Enter ''%%smb://vizy.local%%'' | Access Vizy's view directory from the Finder. Click on ''Go'' in the menu bar at the top of the screen, then select ''Connect to Server''. Enter ''%%smb://vizy.local%%'' | ||
- | {{wiki:image_450.jpg}} | + | {{wiki:image_459.jpg?400}} |
And type ''%%pi%%'' and ''%%raspberry%%'' for your name and password. | And type ''%%pi%%'' and ''%%raspberry%%'' for your name and password. | ||
- | {{wiki:image_452.jpg}} | + | {{wiki:image_452.jpg?400}} |
Then select the ''pi'' directory to access its contents. If you have trouble connecting, [[https://www.howtogeek.com/191116/how-to-share-files-between-windows-mac-and-linux-pcs-on-a-network/|this page]] describes some configuration steps, such as enabling file sharing on your Mac. | Then select the ''pi'' directory to access its contents. If you have trouble connecting, [[https://www.howtogeek.com/191116/how-to-share-files-between-windows-mac-and-linux-pcs-on-a-network/|this page]] describes some configuration steps, such as enabling file sharing on your Mac. | ||
+ | ===== Accessing from Linux ===== | ||
+ | |||
+ | Accessing a SMB share from Linux varies depending upon the distribution. Ubuntu machines have a File Manager that allows you to easily set up access to SMB shares. | ||
+ | |||
+ | {{wiki:image_458.jpg?400}} | ||
+ | |||
+ | Consult the documentation for your Linux distribution for how to access SMB shares. Or you can typically mount an SMB share using the command line on your machine: | ||
+ | |||
+ | sudo mount -t cifs //vizy.local/pi /mnt -o username=pi,password=raspberry | ||
+ | | ||
+ | Where ''%%/mnt%%'' is the mount directory (the directory on your local machine where you'd like to access Vizy's files.) | ||
+ | |||
- | ===== Acessing from Chrome OS ===== | + | ===== Accessing from Chrome OS ===== |
Most Chromebooks support network file sharing through the Files app. Others require the [[https://chrome.google.com/webstore/detail/network-file-share-for-ch/ndjpildffkeodjdaeebdhnncfhopkajk|Network Files Share Application]]. You want to add an SMB file share with hostname ''vizy.local'' and share name ''pi''. The name and password are ''%%pi%%'' and ''%%raspberry%%''. | Most Chromebooks support network file sharing through the Files app. Others require the [[https://chrome.google.com/webstore/detail/network-file-share-for-ch/ndjpildffkeodjdaeebdhnncfhopkajk|Network Files Share Application]]. You want to add an SMB file share with hostname ''vizy.local'' and share name ''pi''. The name and password are ''%%pi%%'' and ''%%raspberry%%''. | ||
Line 41: | Line 47: | ||
===== Changing the password ===== | ===== Changing the password ===== | ||
- | The smb server is configured to use the ''%%pi%%'' username only. Changing the password can be done from a shell. Bring up a shell by clicking on the ☰ icon in the upper right corner and selecting ''%%Shell%%''. (Please refer to the [[wiki:vizy_getting_started|getting started guide]] if you need help with connecting to your Vizy, etc.) | + | The SMB server is configured to use the ''%%pi%%'' username only. Changing the password can be done from a shell. Bring up a shell by clicking on the ☰ icon in the upper right corner and selecting ''%%Shell%%''. (Please refer to the [[wiki:vizy_getting_started|getting started guide]] if you need help with connecting to your Vizy, etc.) |
- | {{wiki:image_448.jpg}} | + | {{wiki:image_448.jpg?200}} |
From within the shell, type ''%%sudo smbpasswd pi%%'', which will change the password for the ''%%pi%%'' account. | From within the shell, type ''%%sudo smbpasswd pi%%'', which will change the password for the ''%%pi%%'' account. | ||
- | {{wiki:image_456.jpg}} | + | {{wiki:image_456.jpg?300}} |
- | If you're using Windows, you'll need to reboot Windows as it will maintain a connection context if you've connected with the old password. You will also need to reboot Vizy to restart the smb server, or alternatively type ''%%sudo systemctl restart smbd%%'' into the shell to restart the smb server. | + | If you're using Windows, you'll need to reboot Windows as it will maintain a connection context if you've connected with the old password during the current boot cycle. You will also need to reboot Vizy to restart the SMB server, or alternatively type ''%%sudo systemctl restart smbd%%'' into the shell. |