Professional Documents
Culture Documents
RESOURCES
WHITE PAPER
2015 Mobile Malware Report from Blue Coat Security Labs
VIDEO/WEBCAST
Sponsored
Example:
ssh pi@10.0.0.110
iPad buying guide: How to choose an iPad Pro, iPad Air, or iPad mini
Here sda2 is the partition on the HDD where all my files are.
Now what we need from here is the UUID number. Note it
down.
Now create the mount point:
sudo mkdir /media/storage
At the end of the file add a section for shared directories using
the following pattern. If you have different kinds of data and
you want to restrict access and keep things clean, you can
create different sections for each data type. In my case I have
created different sections for movies, music, pictures and
documents:
[Movies] #The name of the shared directory
path = /media/storage/movies #The path of the shared
directory
read only = No #Ensures that it's not read only
browsable = yes #Ensures that the subfolder of the
directory are browsable
writeable = yes # Ensures that user can write to it
from networked device
valid users = swapnil #The system user
You are all set. Now you can access all the files on the
storage drive from any of the devices connected to the same
local network.
If you are on Android, install the E S File Manager from the
Play Store, go to LAN settings and give the ip address,
username and password for the samba server. You have your
files on your Android. You can play videos, listen to music, see
pictures and edit and read documents.
If you are on iOS you can grab any file manager that supports
'Samba' such as FileExplorer. Open the app click on the +
icon and then select the Linux/UNIX, it will show you the
Pi' server in the list. Click on it and choose Registered user,
and then give the samba user and password. All of your files
are there on your iPad.
If you are on Linux (unfortunately each desktop environment
deals with it differently), open the file manager and then go to
the network option. Provide the IP address, username, and
password when asked. If you are on Mac OS X, then go
to Finder > Go > Connect to the server option.
You can also use the current set-up as a media streaming
server. I have earlier written two articles on how to use Samba
as media server, check them out.
Build your own Netflix, Pandora at home without wasting the bandwidth
on watching the same shows over and over again.
I bought an Amazon Fire TV Stick last year, even though I
already had the Google Chromecast. While the Chromecast is
plugged into the TV in the living room, the Fire TV Stick (FTS)
Install Samba
Use Kodi
also install Firefox and many other such apps on your FTS (I
will cover that in a future post).
RESOURCES
Install 'Android tools' on your Linux distribution; it's in the
official repository of every major distro. Now head over to this
Amazon site and download the Android SDK platform-tools. It
should be a zip file, extract the file content, open the
Terminal and change directory to the 'Android SDK platformtools' folder.
First stop the adb server:
adb kill-server
Then start it
adb start-server
movies. You can easily create a Kids section for their movies
using a new Samba user. On Plex, whatever is added to it is
accessible to everyone.
Every Linux distribution has its own method of installing
Samba, in this article I will talk about Ubuntu and openSUSE.
Install and configure Samba on openSUSE
First install Samba and then add system user to the Samba
group:
sudo
sudo
sudo
sudo
You have to add 6 lines at end of the conf file. Follow the
pattern as shown below:
[Movies] -> The name of the shared directory
path = /media/4tb/movies -> The path of the shared
directory
read only = No -> Ensures that it's not read only
browsable = yes -> Ensures that the subfolder of the
directory are browsable
writeable = yes -> Ensures that user can write to it
from networked device
valid users = yourname -> The system user
Below is the section I added to my config file (if you have more
than one directory to share, please create new section for
each directory):
[Movies]
path = /media/4tb/movies
read only = No
browsable = yes
writeable = yes
valid users = swapnil
Ubuntu/Kubuntu:
sudo service nmbd restart
sudo service smbd restart
Now you can simply open the video files stored in that
directory and start 'streaming' it on your Amazon Fire TV
Stick.
You can also stream images, and music to your Amazon Fire
TV Stick, just add those directories to the samba config file.
Enjoy your private Netflix!