Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info

READ-ONLY-MODE: PLEASE DO NOT POST NEW STUFF!
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile       

The time now is Mon 10 Aug 2020, 00:49
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Multimedia
Unable to run minidlna in Xenialpup 7.5
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [20 Posts]   Goto page: 1, 2 Next
Author Message
Scott99

Joined: 21 Feb 2016
Posts: 72

PostPosted: Wed 26 Feb 2020, 15:50    Post subject:  Unable to run minidlna in Xenialpup 7.5
Subject description: Missing libraries
 

I am running Xenialpup 7.5 on a HP Pavillion dv200 laptop. I have minidlna-1.0.22-1 installed. I am getting the following error message:


# /etc/init.d/minidlna restart
minidlna stopped.
/usr/sbin/minidlna: error while loading shared libraries: libsqlite3-3.6.12.so.0: cannot open shared object file: No such file or directory
minidlna is not running.

What do I need to do to fix this and get it running? P.S. I will be connectiing to a Roku box. Thanks in advance. Scott
Back to top
View user's profile Send private message 
OscarTalks


Joined: 05 Feb 2012
Posts: 2202
Location: London, England

PostPosted: Wed 26 Feb 2020, 16:19    Post subject:  

Where did the minidlna package come from?
If it was not compiled in a compatible environment you are likely to get library mismatches like that.
The packages.ubuntu.com website shows the official xenial version number as 1.1.5 which looks to be later than yours.
Sometimes you can work around these things by installing a library if it is really missing or by creating a symlink named as the needed lib and being a link to a lib of a similar name, but best to install a compatible package from the outset.

_________________
Oscar in England

Back to top
View user's profile Send private message 
Scott99

Joined: 21 Feb 2016
Posts: 72

PostPosted: Thu 27 Feb 2020, 09:25    Post subject:  

Hi Oscar, I downloaded the package from one of the puppy linux download pages. You've been very helpful to me in the past. May I approach this from a different angle. I would like to stream downloaded videos from my computer, running Xenialpup 7.5, to my Roku receiver. Can you advise me how to do this? Thanks, Scott
Back to top
View user's profile Send private message 
OscarTalks


Joined: 05 Feb 2012
Posts: 2202
Location: London, England

PostPosted: Thu 27 Feb 2020, 14:39    Post subject:  

I have experience of setting up media streaming servers like icecast and shoutcast, but this is something different and I only glanced at minidlna and dlna servers/clients after reading your question so I am no expert in these matters.

From what I read though it looks like minidlna might well be a satisfactory way of doing what you want. I think it is just that the one you installed is too old and unsuitable for your Puppy. I looked up the source code for minidlna and it seems the latest version is 1.2.1 from 2017 which I downloaded and compiled in a fresh XenialPup32 without any difficulty. I can let you have a copy if you want to test if you can make it work for you. Obviously if compiled in Xenial it runs without any library errors. Otherwise search for it in PPM and install the one offered from the "universe" repo.

I can make it run here, (as root or as some other user), but I can't really test streaming over LAN to a Roku box because I don't have one of those. You have to set up the configuration the way you want it in /etc/minidlna.conf. For stop and start I used the init.d script from Ubuntu with one line removed, but there is an alternative one in the source which would probably be OK as well. If running minidlna as some other user you may have to add the desired user (and possibly group). As with all servers you have to make sure that ports are open so as to allow clients to be able to connect to them.
http://minidlna.sourceforge.net

_________________
Oscar in England

Back to top
View user's profile Send private message 
Scott99

Joined: 21 Feb 2016
Posts: 72

PostPosted: Thu 27 Feb 2020, 19:20    Post subject:  

Ok. So I followed your link and downloaded the current minidlna version. I unpacked it and attempted an install which didn't work. This is what I found in the config log: It was created by MiniDLNA configure 1.1.3, which was
generated by GNU Autoconf 2.69. Invocation command line was

$ ./configure

configure:3590: error: in `/root/minidlna-1.2.1':
configure:3592: error: no acceptable C compiler found in $PATH

Not sure what I did wrong. Also when I searched ppm I got sorry no matching package name. I'm not a programmer so I need to know that I am following all the required steps for any operation precisely. Thank you in advance for your patience and support. Scott
Back to top
View user's profile Send private message 
OscarTalks


Joined: 05 Feb 2012
Posts: 2202
Location: London, England

PostPosted: Fri 28 Feb 2020, 12:41    Post subject:  

I think that is simply because you have not loaded the devx which you need to do if you want to compile anything. After you do that, it is always a good idea to run ./configure --help and read the information before deciding what options you need to include along with ./configure

For example in this case:-
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-netgear --enable-readynas
(not sure if those last 2 are needed but they don't seem to hurt)

Anyway, I will attach the one I compiled to make things easier, you can do your own experiments with compiling as an aside if you wish to learn.

I have done some experimenting and can report that I have this one fully working here in 32bit Xenial (hope you are definitely using 32bit).

Install the .pet and edit the media_dir path in /etc/minidlna.conf
You will probably want this to be outside of pupsave (to save space) if it is a frugal install, so something like /mnt/home/media as the directory where all the media files will be stored.
The minidlna daemon scans this and creates a database and logs (under /var)

To start it:-
/etc/init.d/minidlna start
Or you can stop or restart with:-
/etc/init.d/minidlna stop
/etc/init.d/minidlna restart
Presumably it will automatically start on boot once installed.
Look in Task Manager to verify that minidlnad is running
(Will be running as root unless you want to change that)

I can't test a Roku box because I don't have one, but I read that you can use VLC as a DLNA client for accessing and playing the media files, so I tested my build of VLC 2.2.8 which I have running in DpupStretch elsewhere in my LAN.

You have to make sure that no firewalls are blocking it.
You have to make sure that UPnP is enabled in your router.

I am attaching the picture of VLC in DpupStetch which finds (and plays) the "Dark Matter" video which is hosted in the XenialPup file system via minidlna server over LAN connection.
minidlna-client-vlc.jpg
 Description   Receiving and playing a "Dark Matter" video using VLC as client in one Puppy and minidlna as server in another Puppy over LAN connection.
 Filesize   53.11 KB
 Viewed   173 Time(s)

minidlna-client-vlc.jpg

minidlna-1.2.1-i686-xenial.pet
Description  Compiled from source in XenialPup32 - tested and working on my LAN
pet

 Download 
Filename  minidlna-1.2.1-i686-xenial.pet 
Filesize  160.24 KB 
Downloaded  81 Time(s) 

_________________
Oscar in England

Back to top
View user's profile Send private message 
Scott99

Joined: 21 Feb 2016
Posts: 72

PostPosted: Fri 28 Feb 2020, 19:23    Post subject:  

Ok Oscar I'm almost there. This is what I see on my tv which has a Roku box:

scottspuppy: ReadyNAS

Browse Folders

Added: Unknown

and these folders

Browse Folders, Pictures

Music , Video

The folders are all empty and I don't know if they exist and if so, where they are located.

Hopefully, this will make sense to you or someone on the forum. Thanks again, Scott
Back to top
View user's profile Send private message 
OscarTalks


Joined: 05 Feb 2012
Posts: 2202
Location: London, England

PostPosted: Fri 28 Feb 2020, 21:14    Post subject:  

In my VLC I just had to click the little arrow to expand the "Browse Folders" item and it showed the video which was the only file I had placed in my /mnt/home/media directory in the server computer.

So what is the location of your media files in the Puppy computer and have you set this directory as the media_dir in the /etc/minidlna.conf file?

_________________
Oscar in England

Back to top
View user's profile Send private message 
Scott99

Joined: 21 Feb 2016
Posts: 72

PostPosted: Fri 28 Feb 2020, 21:53    Post subject:  

Do I need to nstall vcl on Roku? I couldn't find the config file in the /ect directory. media_dir=/mnt/home/desktop. The config file I edited is located in my root minidnla-1.2.1 folder.
Back to top
View user's profile Send private message 
OscarTalks


Joined: 05 Feb 2012
Posts: 2202
Location: London, England

PostPosted: Sat 29 Feb 2020, 07:09    Post subject:  

No, you do not need to install VLC in Roku, I only used VLC as a substitute and as a way of testing without a Roku.

Did you use my .pet because I had to add the /etc/minidlna.conf file to it manually because the "make install" command does not do so? This means that if you did use my .pet it should be there. If you ended up compiling yourself it might not be there. Not sure about a config file under /root, that does not sound right to me. Is that where you extracted the source code? Maybe you are seeing the wrong config file.

Sounds like the minidlnad daemon is running and Roku is seeing it. The folders in Roku should correspond to folders in Puppy and depending on how you have set the config, one of those folders in Roku should be like a copy of your media_dir folder in Puppy and the media files should be displayed there and available for Roku to play them, but minidlna needs to be finding and registering the media files in the first place.
You might get some clues by looking at the log file at /var/log/upnp-av.log

_________________
Oscar in England

Back to top
View user's profile Send private message 
Scott99

Joined: 21 Feb 2016
Posts: 72

PostPosted: Sat 29 Feb 2020, 10:12    Post subject:  

Hey Oscar, the only folders I can actually explore on my t.v. are Palemoon and Firefox. Am I supposed to create the media_drive folder? Can I search my computer to see if the folders I am seeing the t.v. have been created on my hard drive and where they are located? l did use your package and have copied the configuration file to etc. My firewall is off. I must be missing a step. I have minidnla installed. My computer is connected to the network via LAN. What is not happening is that I can't locate the media files on my computer on my Roku connected t.v.What does Ready-NAS mean and where did it come from? Thanks again. Scott
Back to top
View user's profile Send private message 
OscarTalks


Joined: 05 Feb 2012
Posts: 2202
Location: London, England

PostPosted: Sat 29 Feb 2020, 10:52    Post subject:  

You only have to know where your media files are located in your Puppy PC, you mentioned that they are in /mnt/home/desktop
This could be a directory which you create in the Puppy PC specifically for the purpose, I named mine /mnt/home/media

Then make sure this has been defined in /etc/minidlna.conf
Find and edit the line so it reads:-
media_dir=/mnt/home/desktop

After making any changes you must restart minidlna
/etc/init.d/minidlna restart

You can inspect /var/log/upnp-av.log for information
It should tell you, among other things, how many files have been found by minidlna

Once you are sure minidlna has recognised them, they should become available in Roku over the LAN network. Most of the folder locations in Roku will be empty, you need to find the one that has the shared media files in it. I think you can sort them into different types of media (audio-pictures-video-etc) which would be in different folders but I didn't explore that.

I think ReadyNAS and minidlna are connected derivatives of the same basic thing but I am not sure exactly. The name which is displayed in Roku is supposed to be the name announced by minidlna and you can set this in /etc/minidlna.conf also.

_________________
Oscar in England

Back to top
View user's profile Send private message 
Scott99

Joined: 21 Feb 2016
Posts: 72

PostPosted: Sat 29 Feb 2020, 11:39    Post subject:  

Hello Oscar, it's still not working. Does this output from the log file provide any clues?

[2020/02/29 08:54:40] minidlna.c:1048: warn: Starting ReadyDLNA version 1.2.1.
[2020/02/29 08:54:40] minidlna.c:350: warn: Removed media_dir detected; rebuilding...
[2020/02/29 08:54:40] minidlna.c:1089: warn: HTTP listening on port 8200
[2020/02/29 08:54:40] playlist.c:135: warn: Parsing playlists...
[2020/02/29 08:54:40] playlist.c:269: warn: Finished parsing playlists.
[2020/02/29 10:32:10] minidlna.c:155: warn: received signal 15, good-bye
[2020/02/29 10:33:24] minidlna.c:1048: warn: Starting ReadyDLNA version 1.2.1.
[2020/02/29 10:33:24] minidlna.c:1089: warn: HTTP listening on port 8200
[2020/02/29 10:58:00] minidlna.c:155: warn: received signal 15, good-bye
[2020/02/29 10:59:13] minidlna.c:1048: warn: Starting ReadyDLNA version 1.2.1.
[2020/02/29 10:59:13] minidlna.c:1089: warn: HTTP listening on port 8200

Thanks. Hope you are enjoying your Saturday. What are the Royals up to today:)
Back to top
View user's profile Send private message 
OscarTalks


Joined: 05 Feb 2012
Posts: 2202
Location: London, England

PostPosted: Sat 29 Feb 2020, 15:56    Post subject:  

I still think it is not set up and configured correctly, with the media files you want to "transmit" to Roku being all placed in a specific folder, and then the name of that folder being given as the media_dir in the config file.
That log shows no mention of a directory being scanned or files being found.

Booting fresh Xenial32 here with no save (so no /mnt/home)
My 2 media files are now in /mnt/sda3/media
I set the config to include this as my media_dir and start minidlna
My log looks like this
Note the scanning of /mnt/sda3/media and then when scanning finished - 2 files !

[2020/02/29 19:41:57] minidlna.c:1048: warn: Starting ReadyDLNA version 1.2.1.
[2020/02/29 19:41:57] minidlna.c:346: warn: Creating new database at /var/cache/minidlna/files.db
[2020/02/29 19:41:57] minidlna.c:1089: warn: HTTP listening on port 8200
[2020/02/29 19:41:57] scanner.c:731: warn: Scanning /mnt/sda3/media
[2020/02/29 19:41:57] scanner.c:820: warn: Scanning /mnt/sda3/media finished (2 files)!
[2020/02/29 19:41:57] playlist.c:135: warn: Parsing playlists...
[2020/02/29 19:41:57] playlist.c:269: warn: Finished parsing playlists.

_________________
Oscar in England

Back to top
View user's profile Send private message 
ETP


Joined: 19 Oct 2010
Posts: 1202
Location: UK

PostPosted: Sat 29 Feb 2020, 18:05    Post subject:  

Hi Scott99,

I agree with Oscar that it is still not set up and configured correctly, but you are
close to success as you were when Roku saw your Palemoon folder within opt.
I am going to suggest an easy plan of attack which first involves re-winding.

1. Use PPM to uninstall Oscar's pet.

2. Reboot making sure that you save the session.

3. Visit /var/cache and delete the minidlna folder and it's contents.

4. Install Oscar's pet again but make no changes to any files.

5. So that we are all singing from the same hymn sheet we need a known quantity in terms of test media so
from the link below download the following 2 files: (They are in the more 'videos folder')

Blue Pup V6 - Oct 2014.png (Roku might need this)
Blue Pup V6 - Oct 2014.mpv (12MB)

https://my.pcloud.com/publink/show?code=kZEnOskZtcVVpPsvJ68vdxngjbPPOS6oYU6X

6. Copy those 2 files to opt which should then look similar to the shot below with the Palemoon folder and the 2 files.

7. Reboot again ensuring that you save the session.

8. Check the log to see whether 1 or 2 items have been parsed.

9. Check if the Roku can see and play the video.

Note:
Having media files in opt as Oscar stated is only for testing purposes as they should not be in a location
where they will add to your save file/folder. The objective here is to first establish whether your Roku can play an mp4
served up by minidlna running on a Pup.
ps
Ready-NAS was the former name of minidlna (NAS stood for Network Attached Storage)
Extra-test-videos.png
 Description   
 Filesize   24.71 KB
 Viewed   166 Time(s)

Extra-test-videos.png


_________________
Regards ETP

Kennels

Last edited by ETP on Sat 29 Feb 2020, 18:29; edited 1 time in total
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [20 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Multimedia
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0688s ][ Queries: 12 (0.0156s) ][ GZIP on ]