Sign up here and you can log into the forum!

/conf/umsp.php Does not exist

Discussion, features, plugins--everything about zoster's UMSP UPnP Media Server software

/conf/umsp.php Does not exist   

Postby bhudspeth » Fri Dec 09, 2011 8:30 pm

Can someone help me? I cannot see umsp.php at /conf/umsp.php
bhudspeth
n00b
 
Posts: 10
Joined: Fri Dec 09, 2011 7:24 pm

Re: /conf/umsp.php Does not exist   

Postby kroetkroet » Sat Dec 10, 2011 12:39 am

Hello there!

If you telnet/ssh to your wdlxtv environment, execute:

Code: Select all
touch /conf/umsp.php


and then you'll have one ;)
WDLXTV-fan! - In case you need further assistance: read our WIKI, search our Forum and most of all: donate 'something' to b-rad for his great efforts!!!
User avatar
kroetkroet
Beta Tester
 
Posts: 1013
Joined: Mon Apr 05, 2010 11:53 pm

Re: /conf/umsp.php Does not exist   

Postby bhudspeth » Sat Dec 10, 2011 5:30 am

Pefect! Thank you for letting me know that. It worked great.

Now my next question is...How can I edit that file? I tried to CHMOD it to 775 from the "File Manager" util on the web page, but it didn't let me edit it. I was able to chmod it using ssh, but I dont know how to edit a file from within ssh :(

I would like to add the following text:
-----
$myMediaItems[] = array(
'id' => 'umsp://plugins/noname?php=peliculas_icefilms',
'parentID' => '0',
'dc:title' => 'Movies icefilms.info (ENG)',
'upnp:class' => 'object.container',
bhudspeth
n00b
 
Posts: 10
Joined: Fri Dec 09, 2011 7:24 pm

Re: /conf/umsp.php Does not exist   

Postby mad_ady » Sat Dec 10, 2011 6:18 am

You can use nano as a command line text editor (e.g.: nano /conf/umsp.php), or you can copy the file on your windows system (via FTP) and edit it with notepad and copy it back.

Or, you can paste this to write what you want in the file from ssh:
Code: Select all
echo "<?php
global $myMediaItems;
$myMediaItems[] = array(
'id' => 'umsp://plugins/noname?php=peliculas_icefilms',
'parentID' => '0',
'dc:title' => 'Movies icefilms.info (ENG)',
'upnp:class' => 'object.container',
);
?>" > /conf/umsp.php


Copy/paste it in your shell. By the way, I fixed your syntax - you need both <?php ?> tags, as well as the line with global $myMediaItems for this to work.
User avatar
mad_ady
Developer
 
Posts: 4570
Joined: Fri Nov 05, 2010 9:08 am
Location: Bucharest, Romania

Re: /conf/umsp.php Does not exist   

Postby bhudspeth » Mon Dec 12, 2011 5:21 pm

thanks guys!

Im sorry this is a dumb question, but clearly i am a *nix n00b. How to I save the umsp file when using nano from SSH? I tried to look it up, but it says type ^X...i don't know that that means because when I actually type ^X, nothing happens in the SSH window.
bhudspeth
n00b
 
Posts: 10
Joined: Fri Dec 09, 2011 7:24 pm

Re: /conf/umsp.php Does not exist   

Postby mad_ady » Mon Dec 12, 2011 10:23 pm

"^" is a shortcut for CTRL. So you would press the key combination CTRL+X
Here are some details: http://www.gentoo.org/doc/en/nano-basics-guide.xml
User avatar
mad_ady
Developer
 
Posts: 4570
Joined: Fri Nov 05, 2010 9:08 am
Location: Bucharest, Romania

Re: /conf/umsp.php Does not exist   

Postby bhudspeth » Wed Dec 14, 2011 4:29 am

Thanks for all your help!!!
bhudspeth
n00b
 
Posts: 10
Joined: Fri Dec 09, 2011 7:24 pm


Return to UMSP Media Server

Who is online

Users browsing this forum: No registered users and 1 guest