Author Topic: Installing the MiniDLNA media streaming server in Ubuntu  (Read 56876 times)

0 Members and 1 Guest are viewing this topic.

Offline galaxytdm

  • Ubuntu 11.04
  • Sr. Member
  • ****
  • Posts: 335
  • Karma: 7
  • Gender: Male
  • Something Something dark side
    • View Profile
    • Awards
Re: Installing the MiniDLNA media streaming server in Ubuntu
« Reply #15 on: December 21, 2011, 11:49:17 pm »
Your original method is working fine for me, so is there any real need to change it?
If you need help ask a professional, then act upon their advice.
Anything less and you're just wasting peoples time.

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 17681
  • Karma: 457
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Installing the MiniDLNA media streaming server in Ubuntu
« Reply #16 on: December 22, 2011, 12:00:37 am »
Not really .. any update to the minidlna package in the repo's *may* break your MiniDLNA installation .. but you're OK to fix it IF/WHEN that happens if you want .. up to you ;)
« Last Edit: December 22, 2011, 12:02:11 am by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline BkS

  • BkS Media Founder
  • Hero Member
  • *****
  • Posts: 1690
  • Karma: 49
  • Gender: Male
  • sudo service reality-check start
    • View Profile
    • BkS Media
    • Awards
Re: Installing the MiniDLNA media streaming server in Ubuntu
« Reply #17 on: July 30, 2012, 04:09:55 pm »
I'm getting parsing errors when trying to rebuild the database.

Quote
bally@bally-laptop:~$ minidlna -R
parsing error file /etc/minidlna.conf line 11 : + "A" for audio  (eg. media_dir=A,/home/bally/Downloads)
parsing error file /etc/minidlna.conf line 12 : + "V" for video  (eg. media_dir=V,/home/bally/Downloads)
rm: cannot remove `/var/lib/minidlna/files.db': Permission denied


Here's what my /etc/minidlna.conf looks like:

(click to show/hide)
If you try to look through Windows, you can see what the person is doing.
If you try to look through a Penguin, it WILL bite you.

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 17681
  • Karma: 457
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Installing the MiniDLNA media streaming server in Ubuntu
« Reply #18 on: July 30, 2012, 04:13:05 pm »
How did you install minidlna ?

The ereason I ask is becuase when I instaled it a while ago from the default repos .. it didn't work.

Let me know which distor/version/architecture and I'll take another looksee.

[EDIT]

Looks like wherever you got it from, the version you're running stores the files.db file at a different location
/var/lib/minidlna/files.db
instead of
/var/cache/minidlna/files.db

Try this:-
Code: [Select]
sudo minidlna -R
then
Code: [Select]
sudo chown -R bally:bally /var/lib/minidlna
then try:
Code: [Select]
minidlna -R
and let me know if it now works.
« Last Edit: July 30, 2012, 04:31:34 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline BkS

  • BkS Media Founder
  • Hero Member
  • *****
  • Posts: 1690
  • Karma: 49
  • Gender: Male
  • sudo service reality-check start
    • View Profile
    • BkS Media
    • Awards
Re: Installing the MiniDLNA media streaming server in Ubuntu
« Reply #19 on: July 30, 2012, 05:07:26 pm »
I install it from the default repos, in Ubuntu 12.04 x64.

Output from commands:

Quote
bally@bally-laptop:~$ sudo minidlna -R
parsing error file /etc/minidlna.conf line 11 : + "A" for audio  (eg. media_dir=A,/home/bally/Downloads)
parsing error file /etc/minidlna.conf line 12 : + "V" for video  (eg. media_dir=V,/home/bally/Downloads)
bally@bally-laptop:~$ sudo chown -R bally:bally /var/lib/minidlna
bally@bally-laptop:~$ minidlna -R
parsing error file /etc/minidlna.conf line 11 : + "A" for audio  (eg. media_dir=A,/home/bally/Downloads)
parsing error file /etc/minidlna.conf line 12 : + "V" for video  (eg. media_dir=V,/home/bally/Downloads)
rm: cannot remove `/var/lib/minidlna/files.db': Permission denied
bally@bally-laptop:~$
« Last Edit: July 30, 2012, 05:08:58 pm by BkS »
If you try to look through Windows, you can see what the person is doing.
If you try to look through a Penguin, it WILL bite you.

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 17681
  • Karma: 457
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Installing the MiniDLNA media streaming server in Ubuntu
« Reply #20 on: July 30, 2012, 06:14:49 pm »
First kill minidlna:
Code: [Select]
sudo service minidlna stop
sudo killall minidlna

Then run:
Code: [Select]
sudo sudo apt-get build-dep minidlna
and let it install any dependencies.

Then run:
Code: [Select]
sudo gedit /etc/minidlna.conf

And make your minidlna.conf read:-

Code: [Select]
# port for HTTP (descriptions, SOAP, media transfer) traffic
port=48200

# network interfaces to serve, comma delimited
network_interface=wlan0

# set this to the directory you want scanned.
# * if have multiple directories, you can have multiple media_dir= lines
# * if you want to restrict a media_dir to a specific content type, you
#   can prepend the type, followed by a comma, to the directory:
#   + "A" for audio  (eg. media_dir=A,/home/jmaggard/Music)
#   + "V" for video  (eg. media_dir=V,/home/jmaggard/Videos)
#   + "P" for images (eg. media_dir=P,/home/jmaggard/Pictures)
media_dir=A,/home/bally/Music
media_dir=P,/home/bally/Pictures
media_dir=V,/home/bally/Videos

# set this if you want to customize the name that shows up on your clients
friendly_name=BALLY-LAPTOP

# set this if you would like to specify the directory where you want MiniDLNA to store its database and album art cache
db_dir=/var/cache/minidlna

# set this if you would like to specify the directory where you want MiniDLNA to store its log file
log_dir=/var/log

# this should be a list of file names to check for when searching for album art
# note: names should be delimited with a forward slash ("/")
album_art_names=Cover.jpg/cover.jpg/AlbumArtSmall.jpg/albumartsmall.jpg/AlbumArt.jpg/albumart.jpg/Album.jpg/album.jpg/Folder.jpg/folder.jpg/Thumb.jpg/thumb.jpg

# set this to no to disable inotify monitoring to automatically discover new files
# note: the default is yes
inotify=yes

# set this to yes to enable support for streaming .jpg and .mp3 files to a TiVo supporting HMO
enable_tivo=no

# set this to strictly adhere to DLNA standards.
# * This will allow server-side downscaling of very large JPEG images,
#   which may hurt JPEG serving performance on (at least) Sony DLNA products.
strict_dlna=no

# default presentation url is http address on port 80
presentation_url=http://192.168.0.2:48200/

# notify interval in seconds. default is 895 seconds.
notify_interval=900

# serial and model number the daemon will report to clients
# in its XML description
serial=12345678
model_number=1

# use different container as root of the tree
# possible values:
#   + "." - use standard container (this is the default)
#   + "B" - "Browse Directory"
#   + "M" - "Music"
#   + "V" - "Video"
#   + "P" - "Pictures"
# if you specify "B" and client device is audio-only then "Music/Folders" will be used as root
#root_container=.

then run:
Code: [Select]
sudo gedit /etc/default/minidlna

and make it read:-

Code: [Select]
# Defaults for minidlna initscript
# sourced by /etc/init.d/minidlna
# installed at /etc/default/minidlna by the maintainer scripts

# These options can be set to modify the behavior of the minidlna init script.
# The options commented out show the default values.

# Start the daemon if set to "yes"
START_DAEMON="yes"

# Path to the configuration file
CONFIGFILE="/etc/minidlna.conf"

# Path to the log file
#LOGFILE="/var/log/minidlna.log"

# User and group the daemon should run as
USER="bally"
GROUP="bally"

# Additional options that are passed to the daemon
#DAEMON_OPTS=""

then run:
Code: [Select]
sudo mkdir -v /var/cache/minidlna
sudo service minidlna stop
minidlna -R
sudo chown -R bally:bally /var/cache/minidlna

Now REBOOT and go test the it on your phone/Xbox/whatever .. there should be a device listed as BALLY-LAPTOP, and you should be able to access any supported media files you put in the:-

~/Music
~/Pictures
~/Videos

directories on the Ubuntu box.
« Last Edit: July 30, 2012, 07:06:16 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline BkS

  • BkS Media Founder
  • Hero Member
  • *****
  • Posts: 1690
  • Karma: 49
  • Gender: Male
  • sudo service reality-check start
    • View Profile
    • BkS Media
    • Awards
Re: Installing the MiniDLNA media streaming server in Ubuntu
« Reply #21 on: July 31, 2012, 11:47:49 am »
Works like a charm. Cheers old yin! ;D

Using MediaHouse from the Play store, as suggested by Mark. I'm on the free version, and it suits my needs perfectly.

Now all I need to do, is install minidlna on my home-server. Can I use a comma to add extra folders to the minidlna.conf?
If you try to look through Windows, you can see what the person is doing.
If you try to look through a Penguin, it WILL bite you.

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 17681
  • Karma: 457
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Installing the MiniDLNA media streaming server in Ubuntu
« Reply #22 on: July 31, 2012, 01:09:29 pm »
I don't know if it supports comma separated values .. but there's nothing stopping you doing it like this:

media_dir=A,/home/bally/Music
media_dir=P,/home/bally/Pictures
media_dir=V,/home/bally/Videos
media_dir=/path/to/new/share1
media_dir=/path/to/new/share2
media_dir=/path/to/new/share3
media_dir=/path/to/new/share4

etc.



Thanks for the feedback on the MediaHouse UPnP / DLNA Browser software .. as one of my sons has jujst become the proud owner of an HTC Desire C .. so we finally have sommat Android in the house :)

For other readers the MediaHouse UPnP / DLNA Browser can be found at these links

MediaHouse UPnP / DLNA Browser (free edition)
or
MediaHouse Pro-Edition UPnP / DLNA Browser (commercial edition)

WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline BkS

  • BkS Media Founder
  • Hero Member
  • *****
  • Posts: 1690
  • Karma: 49
  • Gender: Male
  • sudo service reality-check start
    • View Profile
    • BkS Media
    • Awards
Re: Installing the MiniDLNA media streaming server in Ubuntu
« Reply #23 on: July 31, 2012, 01:46:51 pm »
Tell your son I wish him good luck with his HTC... ::) Not a problem, streams HD 1080p video just fine on my S3, quality is amazing as well.

I'll give that suggestion a try, it might be a cleaner way of keeping track of folders, etc, as well. Now to read over the PPA instructions. I should really update the NAS to 12.04... I'll do it later.
If you try to look through Windows, you can see what the person is doing.
If you try to look through a Penguin, it WILL bite you.

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 17681
  • Karma: 457
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Installing the MiniDLNA media streaming server in Ubuntu
« Reply #24 on: July 31, 2012, 02:00:44 pm »
Tell your son I wish him good luck with his HTC... ::)

What were the rolled eyes about ? .. the kids a college student that just went out and got himself a job (his first "proper" job) during the holidays .. he can't afford an S3, and I think he's done himself proud earning the money for his HTC himself .. I'm certainly proud of him :)
« Last Edit: July 31, 2012, 02:05:53 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline BkS

  • BkS Media Founder
  • Hero Member
  • *****
  • Posts: 1690
  • Karma: 49
  • Gender: Male
  • sudo service reality-check start
    • View Profile
    • BkS Media
    • Awards
Re: Installing the MiniDLNA media streaming server in Ubuntu
« Reply #25 on: July 31, 2012, 02:05:37 pm »
Tell your son I wish him good luck with his HTC... ::)

What were the rolled eyes about ? .. the kids a college student that just went out and got himself a job during the holidays .. he can't afford an S3, and I think he's done himself proud earning the money for his HTC himself :)

You've gotten the wrong end of the stick, I wasn't meaning that in a bad way. It's great he's got a job, just HTC's are notorious for hardware faults, and lack of updates from the manufacturer. I thought you of all people would've understood that, assuming you read The Reg, and what not?

All I meant was, expect him to ask you to fix it when it breaks.
« Last Edit: July 31, 2012, 02:07:50 pm by BkS »
If you try to look through Windows, you can see what the person is doing.
If you try to look through a Penguin, it WILL bite you.

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 17681
  • Karma: 457
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Installing the MiniDLNA media streaming server in Ubuntu
« Reply #26 on: July 31, 2012, 02:08:38 pm »
Ahh .. apologies then .. nope, I've had no real need to follow what goes on with smartphones .. and the choice was his anyway :)
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline BkS

  • BkS Media Founder
  • Hero Member
  • *****
  • Posts: 1690
  • Karma: 49
  • Gender: Male
  • sudo service reality-check start
    • View Profile
    • BkS Media
    • Awards
Re: Installing the MiniDLNA media streaming server in Ubuntu
« Reply #27 on: July 31, 2012, 02:12:42 pm »
Just be armed with a USB cable. ;D



Anyway, looks like that PPA is outdated. My home-server can't get the fingerprint, and if it does, it closes the TLS connection.

Quote
Error: can't find signing_key_fingerprint at https://launchpad.net/api/1.0/~stedy6/+archive/stedy-minidlna
bks@bally-server:~$ sudo add-apt-repository ppa:stedy6/stedy-minidlna
Error reading https://launchpad.net/api/1.0/~stedy6/+archive/stedy-minidlna: Peer closed the TLS connection
bks@bally-server:~$

Looks like I'm moving nowhere fast.
If you try to look through Windows, you can see what the person is doing.
If you try to look through a Penguin, it WILL bite you.

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 17681
  • Karma: 457
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Installing the MiniDLNA media streaming server in Ubuntu
« Reply #28 on: July 31, 2012, 02:17:16 pm »
Forget that PPA if the one in 12.04 is now working.

[EDIT]

OK, which version you runnin on the server ?

[EDIT 2]

Try manually adding the signing key:
Code: [Select]
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 661F5D0B
« Last Edit: July 31, 2012, 02:32:53 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline BkS

  • BkS Media Founder
  • Hero Member
  • *****
  • Posts: 1690
  • Karma: 49
  • Gender: Male
  • sudo service reality-check start
    • View Profile
    • BkS Media
    • Awards
Re: Installing the MiniDLNA media streaming server in Ubuntu
« Reply #29 on: August 01, 2012, 09:17:58 pm »
It seems my box not getting the PPA seems to be a problem in itself. It's not adding any ppa I try. It fails, yet all my packages are up-to-date. So either an update has broke it, or it's a sign to update the damn thing. I really don't wanna go through all the hassle of setting everything up again. -___-
If you try to look through Windows, you can see what the person is doing.
If you try to look through a Penguin, it WILL bite you.

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal