jelleke60
Posts: 39
Joined: Mon Aug 05, 2013 7:49 pm

Re: How-To: Raspberry Pi media SERVER (easy)

Sat Feb 15, 2014 9:37 am

gett wrote:Sorry for noob question. Can I use this guide to stream from NAS via Raspberry Pi to LG TV?
You should check your TV specifications to find out if it supports windows shares/FTP shares

@Feichter

Can't really think of a solution :/, might be something to do with the users/sudo problem? I used raspian for this project, maybe that is the problem?
You might want to post a thread in the troubelshooting area of this forum to get an anwser from a more experienced member then myself.

krish
Posts: 1
Joined: Thu Feb 20, 2014 6:49 pm

Re: How-To: Raspberry Pi media SERVER (easy)

Thu Feb 20, 2014 6:53 pm

What modification has to be done to use it for live streaming - instead of playing a stored file. Audio-In to the RPi for live audio streaming?

church
Posts: 1
Joined: Sat Feb 22, 2014 12:27 pm

Re: How-To: Raspberry Pi media SERVER (easy)

Sat Feb 22, 2014 12:33 pm

Awesome idea and tutorial!

I'm not sure if my question is exactly the same has krish's one, I'm sorry if it is. Would it be possible to stream music from a streaming website and can I control that with my android phone?

I want to put 3 rasberry pis in 3 different rooms and choose in which one to stream, does your solution can do that?

Thanks

zenpi
Posts: 1
Joined: Fri Apr 04, 2014 2:56 pm

Re: How-To: Raspberry Pi media SERVER (easy)

Sat Apr 05, 2014 12:26 am

It worked exactly. Great instructions.

However the streaming MP3 music to my remote android (running XBMC app) over internet outside local LAN stutters a great deal. Drive is a 1tb drive connected to pi, formatted by windows. NTFS or such like. How to fix?

mcmanuf
Posts: 34
Joined: Wed Aug 22, 2012 12:29 am
Location: Denmark

Re: How-To: Raspberry Pi media SERVER (easy)

Thu Apr 17, 2014 9:12 am

Can someone please post the entire vsftpd config file according to OP. I am on rasbmc and there the config is already configured in a different way.

jelleke60
Posts: 39
Joined: Mon Aug 05, 2013 7:49 pm

Re: How-To: Raspberry Pi media SERVER (easy)

Sun Apr 20, 2014 2:49 pm

zenpi wrote:It worked exactly. Great instructions.

However the streaming MP3 music to my remote android (running XBMC app) over internet outside local LAN stutters a great deal. Drive is a 1tb drive connected to pi, formatted by windows. NTFS or such like. How to fix?
That will probably be caused by a slow internet connection either on the RPI (upload) side or the Android (download) side...
krish wrote:What modification has to be done to use it for live streaming - instead of playing a stored file. Audio-In to the RPi for live audio streaming?
That would require big changes and another method then this one, I think XBMC OS for RPI might support this although I'm not sure...
mcmanuf wrote:Can someone please post the entire vsftpd config file according to OP. I am on rasbmc and there the config is already configured in a different way.
My full Conf file

Code: Select all

# Example config file /etc/vsftpd.conf
#
# The default compiled in settings are fairly paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
# Please see vsftpd.conf.5 for all compiled in defaults.
#
# READ THIS: This example file is NOT an exhaustive list of vsftpd options.
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
# capabilities.
#
#
# Run standalone?  vsftpd can run either from an inetd or as a standalone
# daemon started from an initscript.
listen=YES
#
# Run standalone with IPv6?
# Like the listen parameter, except vsftpd will listen on an IPv6 socket
# instead of an IPv4 one. This parameter and the listen parameter are mutually
# exclusive.
#listen_ipv6=YES
#
# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
anonymous_enable=NO
#
# Uncomment this to allow local users to log in.
local_enable=YES
#
# Uncomment this to enable any form of FTP write command.
write_enable=YES
#
# Default umask for local users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
local_umask=022
#
# Uncomment this to allow the anonymous FTP user to upload files. This only
# has an effect if the above global write enable is activated. Also, you will
# obviously need to create a directory writable by the FTP user.
#anon_upload_enable=YES
#
# Uncomment this if you want the anonymous FTP user to be able to create
# new directories.
#anon_mkdir_write_enable=YES
#
# Activate directory messages - messages given to remote users when they
# go into a certain directory.
dirmessage_enable=YES
#
# If enabled, vsftpd will display directory listings with the time
# in  your  local  time  zone.  The default is to display GMT. The
# times returned by the MDTM FTP command are also affected by this
# option.
use_localtime=YES
#
# Activate logging of uploads/downloads.
xferlog_enable=YES
#
# Make sure PORT transfer connections originate from port 20 (ftp-data).
connect_from_port_20=YES
#
# If you want, you can arrange for uploaded anonymous files to be owned by
# a different user. Note! Using "root" for uploaded files is not
# recommended!
#chown_uploads=YES
#chown_username=whoever
#
# You may override where the log file goes if you like. The default is shown
# below.
#xferlog_file=/var/log/vsftpd.log
#
# If you want, you can have your log file in standard ftpd xferlog format.
# Note that the default log file location is /var/log/xferlog in this case.
#xferlog_std_format=YES
#
# You may change the default value for timing out an idle session.
#idle_session_timeout=600
#
# You may change the default value for timing out a data connection.
#data_connection_timeout=120
#
# It is recommended that you define on your system a unique user which the
# ftp server can use as a totally isolated and unprivileged user.
#nopriv_user=ftpsecure
#
# Enable this and the server will recognise asynchronous ABOR requests. Not
# recommended for security (the code is non-trivial). Not enabling it,
# however, may confuse older FTP clients.
#async_abor_enable=YES
#
# By default the server will pretend to allow ASCII mode but in fact ignore
# the request. Turn on the below options to have the server actually do ASCII
# mangling on files when in ASCII mode.
# Beware that on some FTP servers, ASCII support allows a denial of service
# attack (DoS) via the command "SIZE /big/file" in ASCII mode. vsftpd
# predicted this attack and has always been safe, reporting the size of the
# raw file.
# ASCII mangling is a horrible feature of the protocol.
ascii_upload_enable=YES
ascii_download_enable=YES
#
# You may fully customise the login banner string:
#ftpd_banner=Welcome to blah FTP service.
#
# You may specify a file of disallowed anonymous e-mail addresses. Apparently
# useful for combatting certain DoS attacks.
#deny_email_enable=YES
# (default follows)
#banned_email_file=/etc/vsftpd.banned_emails
#
# You may restrict local users to their home directories.  See the FAQ for
# the possible risks in this before using chroot_local_user or
# chroot_list_enable below.
#chroot_local_user=YES
#
# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
# (Warning! chroot'ing can be very dangerous. If using chroot, make sure that
# the user does not have write access to the top level directory within the
# chroot)
#chroot_local_user=YES
#chroot_list_enable=YES
# (default follows)
#chroot_list_file=/etc/vsftpd.chroot_list
#
# You may activate the "-R" option to the builtin ls. This is disabled by
# default to avoid remote users being able to cause excessive I/O on large
# sites. However, some broken FTP clients such as "ncftp" and "mirror" assume
# the presence of the "-R" option, so there is a strong case for enabling it.
#ls_recurse_enable=YES
#
# Customization
#
# Some of vsftpd's settings don't fit the filesystem layout by
# default.
#
# This option should be the name of a directory which is empty.  Also, the
# directory should not be writable by the ftp user. This directory is used
# as a secure chroot() jail at times vsftpd does not require filesystem
# access.
secure_chroot_dir=/var/run/vsftpd/empty
#
# This string is the name of the PAM service vsftpd will use.
pam_service_name=vsftpd
#
# This option specifies the location of the RSA certificate to use for SSL
# encrypted connections.
rsa_cert_file=/etc/ssl/private/vsftpd.pem
pasv_enable=YES
listen_port=listenhere
pasv_min_port=minhere
pasv_max_port=maxhere
pasv_address=REMOTEIPHERE
pasv_addr_resolve=YES
local_root=/media/HDD

dintmeister
Posts: 1
Joined: Mon Apr 21, 2014 9:51 pm

iTunes Home Sharing to iPhone

Mon Apr 21, 2014 9:53 pm

Hey guys! I've been looking for a solution to allow me to run my Pi as a low-power iTunes Home Sharing server, allowing me to stream music to my iPhone. Would forked-dappd allow me to do this?

If that isn't the case, are there any alternatives to this that would let me do that?

Thanks!
-Dintmeister

ramcsr18
Posts: 1
Joined: Sat Jul 12, 2014 6:44 pm

Re: How-To: Raspberry Pi media SERVER (easy)

Sat Jul 12, 2014 6:45 pm

Works great..! Thanks

RoflWaffle17
Posts: 2
Joined: Sat Aug 30, 2014 3:13 am

Re: How-To: Raspberry Pi media SERVER (easy)

Sat Aug 30, 2014 3:19 am

Hi, so I successfully got through all steps. My folders on my RPI are all very very public (for time being). However, when I launch XBMC, and go through the steps to stream on my home network I run into a problem. Here is what happens:

1. Click video
2. Click files
3. Click Add VIdeos
4. Click Browse
5. Select Windows network SMB (it loads for a bit)
6. Select my listed RPI (Getting excited as I think it is going to work.)
7. Select the "media" folder (Getting closer)
8. .....it doesn't list "HDD"..it lists "Systems Volume Information"........
This folder contains nothing... I have no idea what to do?...any help would be greatly appreciated.

johnnythanh
Posts: 1
Joined: Wed Sep 24, 2014 6:14 am

Re: How-To: Raspberry Pi media SERVER (easy)

Wed Sep 24, 2014 6:29 am

Thanks for the detailed tutorial..

There is only one error.. pasv_address_resolve parameter does not exist in vsftpd. What's the replacement for that? :shock:

Xoc Dia - Song Bai Truc Tuyen

jelleke60
Posts: 39
Joined: Mon Aug 05, 2013 7:49 pm

Re: How-To: Raspberry Pi media SERVER (easy)

Tue Oct 21, 2014 4:16 pm

RoflWaffle17 wrote:Hi, so I successfully got through all steps. My folders on my RPI are all very very public (for time being). However, when I launch XBMC, and go through the steps to stream on my home network I run into a problem. Here is what happens:

1. Click video
2. Click files
3. Click Add VIdeos
4. Click Browse
5. Select Windows network SMB (it loads for a bit)
6. Select my listed RPI (Getting excited as I think it is going to work.)
7. Select the "media" folder (Getting closer)
8. .....it doesn't list "HDD"..it lists "Systems Volume Information"........
This folder contains nothing... I have no idea what to do?...any help would be greatly appreciated.
Are you sure that your HDD is correctly mounted in the /media/HDD folder on your RPI? Check this by going into RPI terminal and type

Code: Select all

cd /media/hdd/
you should see the contents of your HDD.

RoflWaffle17
Posts: 2
Joined: Sat Aug 30, 2014 3:13 am

Re: How-To: Raspberry Pi media SERVER (easy)

Mon Nov 17, 2014 2:30 am

jelleke60: I am able to cd /media/HDD and see the file I'm using to test this (a simple .mkv file I'm trying to stream). However, when I am in XMBC, all I see is "System Volume Information" I've reinstally Wheezy, and re walked through this tutorial and am still coming up short. I think it has something to do with the scraper. I'm not really sure how to implement that.

bennysthe1
Posts: 1
Joined: Wed Dec 03, 2014 4:23 am
Location: Perth. Western Australia
Contact: Website

Re: How-To: Raspberry Pi media SERVER (easy)

Wed Dec 03, 2014 4:29 am

teeth_03 wrote:A couple points to make when I did this 6 months ago:

1. I had to chmod the whole directory structure before I had permission to write anything.

2. NTFS is a bad idea, backup your data and reformat using ext4.

3. I had to configure the NFS settings before XBMC on a 2nd Pi could access it.

Do you know anything about using SMART tools for monitoring the drive and sending email alerts if something goes wrong?
Why not ntfs? I already have a full media hdd in ntfs and don't want to re-format it. Is it really such a bad idea to leave it?

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 18379
Joined: Sat Jul 30, 2011 7:41 pm

Re: How-To: Raspberry Pi media SERVER (easy)

Mon Dec 08, 2014 9:43 am

NTFS is much slower due to large software overheads trying to cope with the format.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Please direct all questions to the forum, I do not do support via PM.

lisa986
Posts: 1
Joined: Tue Dec 09, 2014 3:16 am

Re: How-To: Raspberry Pi media SERVER (easy)

Tue Dec 09, 2014 3:25 am

but I think NTFS is acceptable :D




-------------------------------------------------
coque samsung galaxy s6 edge coque galaxy s6 edge coque samsung galaxy s6 edge
Last edited by lisa986 on Thu Jul 16, 2015 2:27 am, edited 2 times in total.

User avatar
DougieLawson
Posts: 30954
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website

Re: How-To: Raspberry Pi media SERVER (easy)

Tue Dec 09, 2014 10:26 am

lisa986 wrote:but I think NTFS is acceptable :D
If you want you RPi to run lots of CPU and be very slow transferring your data choose NTFS.
If you want it to be much faster (three times faster or better) choose a native Linux filesystem like EXT4.
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

Since 2012: 1B*5, 2B*2, B+, A+, Zero*2, 3B*3

Please post ALL technical questions on the forum. Do not send private messages.

Merria Tomlin
Posts: 1
Joined: Mon Dec 08, 2014 3:19 am

Re: How-To: Raspberry Pi media SERVER (easy)

Thu Dec 11, 2014 2:49 am

I am not too acquainted with Raspberry Pi media Server, I do acknowledge the importance of high-tech for the network. But I've obtained so much useful knowledge in this forum. Thanks for all !


étui galaxy s5 film protection samsung galaxy s5 mini

jelleke60
Posts: 39
Joined: Mon Aug 05, 2013 7:49 pm

Re: How-To: Raspberry Pi media SERVER (easy)

Wed Dec 24, 2014 1:46 pm

DougieLawson wrote:
lisa986 wrote:but I think NTFS is acceptable :D
If you want you RPi to run lots of CPU and be very slow transferring your data choose NTFS.
If you want it to be much faster (three times faster or better) choose a native Linux filesystem like EXT4.
I'm currently using NTFS to be compatible with my Windows PC (I switch usb cables for the drive to transload my movies that I download on windows). Can you tell me how fast in mb/s I could transfer a file over my LAN network to the samba shared drive on my Pi using EXT4?

User avatar
DougieLawson
Posts: 30954
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website

Re: How-To: Raspberry Pi media SERVER (easy)

Fri Dec 26, 2014 12:33 pm

ext4 is about three times faster because the driver is in the Linux kernel not in user space.
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

Since 2012: 1B*5, 2B*2, B+, A+, Zero*2, 3B*3

Please post ALL technical questions on the forum. Do not send private messages.

Janaaaa
Posts: 1
Joined: Sun Dec 28, 2014 9:03 pm

Re: How-To: Raspberry Pi media SERVER (easy)

Sun Dec 28, 2014 9:13 pm

Great post. Thank you. I have a question - will this work on a live recording? Say, I am feeding an audio to Pi through a 'MIC IN' setup and don't want it to be recorded/stored but just want it to be streamed.

dnbly
Posts: 2
Joined: Sun Jan 04, 2015 9:52 pm

Re: How-To: Raspberry Pi media SERVER (easy)

Sun Jan 04, 2015 10:26 pm

Great tutorial. I have this working remotely from my home to tablet at university (including FileZilla on PC for easy file management)!

Is there a way to modify this setup for multiple user access i.e. allowing different devices to simultaneously watch items from the same media folders? My scenario: While I access remotely, someone at home wants to access. We are both using Kodi and the same account, so when one is logged in the other loses connection. The intent is to have Kodi installed on several machines, each being able to access the media folders for their own playback. I have tried creating a 2nd user (e.g. home) with the intention of creating a read-only usergroup for home devices however have not been able to find a working solution but maybe I just missed something simple.

Has anyone done something similar to this or can point me in the direction of a tutorial or helpful discussion on the matter? Thanks

jelleke60
Posts: 39
Joined: Mon Aug 05, 2013 7:49 pm

Re: How-To: Raspberry Pi media SERVER (easy)

Thu Jan 08, 2015 1:46 pm

dnbly wrote:Great tutorial. I have this working remotely from my home to tablet at university (including FileZilla on PC for easy file management)!

Is there a way to modify this setup for multiple user access i.e. allowing different devices to simultaneously watch items from the same media folders? My scenario: While I access remotely, someone at home wants to access. We are both using Kodi and the same account, so when one is logged in the other loses connection. The intent is to have Kodi installed on several machines, each being able to access the media folders for their own playback. I have tried creating a 2nd user (e.g. home) with the intention of creating a read-only usergroup for home devices however have not been able to find a working solution but maybe I just missed something simple.

Has anyone done something similar to this or can point me in the direction of a tutorial or helpful discussion on the matter? Thanks
I see no reason why you can't stream simultaniously from the same account? I have only 1 account set up and use it on all devices, sometimes 3 - 4 people are streaming with the same account on the same time (that's all in my home network). I haven't tested streaming remotley and local at the same time with the same user but I suppose you could just create a new user and use it to stream simultaniously?

dnbly
Posts: 2
Joined: Sun Jan 04, 2015 9:52 pm

Re: How-To: Raspberry Pi media SERVER (easy)

Thu Jan 15, 2015 5:30 pm

jelleke60 wrote:
dnbly wrote:Great tutorial. I have this working remotely from my home to tablet at university (including FileZilla on PC for easy file management)!

Is there a way to modify this setup for multiple user access i.e. allowing different devices to simultaneously watch items from the same media folders? My scenario: While I access remotely, someone at home wants to access. We are both using Kodi and the same account, so when one is logged in the other loses connection. The intent is to have Kodi installed on several machines, each being able to access the media folders for their own playback. I have tried creating a 2nd user (e.g. home) with the intention of creating a read-only usergroup for home devices however have not been able to find a working solution but maybe I just missed something simple.

Has anyone done something similar to this or can point me in the direction of a tutorial or helpful discussion on the matter? Thanks
I see no reason why you can't stream simultaniously from the same account? I have only 1 account set up and use it on all devices, sometimes 3 - 4 people are streaming with the same account on the same time (that's all in my home network). I haven't tested streaming remotley and local at the same time with the same user but I suppose you could just create a new user and use it to stream simultaniously?
I tried using the same account, there must be a problem with my setup as I can only get one device streaming at a time; setting up another device kicks the old device off the connection. I will have a tinker and report back if I find the problem. Thanks

UPDATE: the problem was with using both local and IP access at the same time, changed all kodi installations to run using public IP and problem fixed

Rextob
Posts: 2
Joined: Thu Feb 19, 2015 9:09 am

Re: How-To: Raspberry Pi media SERVER (easy)

Thu Feb 19, 2015 9:28 am

Hi
i was wondering if i can use a usb memory stick instead of the usb harddrive. would it work, i'm fairly new to working with raspberry.

Cheers

DirkS
Posts: 7733
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: How-To: Raspberry Pi media SERVER (easy)

Thu Feb 19, 2015 4:54 pm

Rextob wrote:Hi
i was wondering if i can use a usb memory stick instead of the usb harddrive. would it work,
Yes

Return to “Teaching and learning resources”

Who is online

Users browsing this forum: No registered users and 3 guests