Koozali.org: home of the SME Server

[Announce] kPlaylist RPM for SME 7.x

Offline cool34000

  • *
  • 339
  • +0/-0
Re: [Announce] kPlaylist RPM for SME 7.x
« Reply #15 on: December 01, 2007, 09:10:11 PM »
I was starting a big funny/silly post to answer to you, but finally I won't... Let's stay fair and don't spend much time on this!

Just read carefully wiki instructions, it talking about some custom template to create in some cases!!!

Sorry, I was presuming you read the wiki :hammer:

Offline zener

  • *
  • 18
  • +0/-0
    • http://www.techtalkireland.com
Re: [Announce] kPlaylist RPM for SME 7.x
« Reply #16 on: December 02, 2007, 01:51:08 PM »
Sorry, I was presuming you read the wiki :hammer:

As I said in my post those are the files in the system NOW. I have installed this about 4 times in all, religiously following your WIKI to the letter - it didn't work. The SAMBA share is not accessible to anyone except the admin user. Not just for me but for another person also attempting to get this to work who has a lot more unix experience than me.

I have executed those commands in the wiki so often I practically know them by heart but they don't fix the problem. Even changing the share permissions didn't have any effect. The reason there is no custom template shown above is because I had just reinstalled the system AGAIN for the 5th time and hadn't got that far yet this time.

Thanks for your help.

ZEN
Just because I can't speak doesn't mean I'm dumb !! :-D ...

Offline cool34000

  • *
  • 339
  • +0/-0
Re: [Announce] kPlaylist RPM for SME 7.x
« Reply #17 on: December 02, 2007, 02:11:07 PM »
I was updating the wiki when you replied. There are a few modifications like I promised on top of the thread about "admin-only" issue after RPM install.
This work for me in the default install (music stored in opt/kplaylist/files) and now users can browse/download/upload using Samba. Don't change default chmod on this folder!

WITHOUT a custom-template, YOU CAN'T give access to another directory than default (/opt/kplaylist/files), so paste the content of the custom-template you've made following wiki instructions.

Offline zener

  • *
  • 18
  • +0/-0
    • http://www.techtalkireland.com
Re: [Announce] kPlaylist RPM for SME 7.x
« Reply #18 on: December 02, 2007, 02:27:46 PM »
Great ! the Samba share works now. Thanks.

Below is the custom template I've created. I copied and pasted the commands to the sever so as not to make any errors - to be sure:

I've just done a signal-event post-upgrade and reboot and the system has gone foobar ! The line :

Code: [Select]
Syntax error in line 853 of /etc/httpd/conf/httpd.conf:
php_admin_value takes two arguments, PHP Value Modifier (Admin)

keeps repeating on the console !

Code: [Select]
#--------------------------------------------------------------
# kplaylist - Web based jukebox
#--------------------------------------------------------------
Alias /kplaylist /opt/kplaylist/html
{
    if (exists $kplaylist{'URL'})
      { $OUT .= "Alias  /$kplaylist{'URL'} /opt/kplaylist/html"; }
}
 
<Directory /opt/kplaylist/html>
{
    my $kplaylistsec = $kplaylist{'HTTPS'} || "off";
    if ($kplaylistsec eq "off")
      { $OUT .= "  # SSLRequireSSL on"; }
    else
      { $OUT .= "  SSLRequireSSL on"; }
}
  Options None
  Options +Indexes
  Options FollowSymLinks
  AllowOverride None
  order deny,allow
  deny from all
{
    my $kplaylistpa = $kplaylist{'PublicAccess'} || "local";
    if ($kplaylistpa eq "local")
      { $OUT .= "  allow from $localAccess"; }
    else
      { $OUT .= "  allow from all"; }
}
  AddType application/x-httpd-php .php .php3 .phtml
  AddType application/x-httpd-php-source .phps
  php_admin_value open_basedir
/opt/kplaylist:/tmp:/usr/share/pear:/home/e-smith/files/ibays/music/files
  php_admin_value post_max_size { $kplaylist{MaxUpload} }
  php_admin_value upload_max_filesize { $kplaylist{MaxUpload} }
  php_value allow_url_fopen on
  php_value memory_limit 32M
</Directory>

ZEN
« Last Edit: December 02, 2007, 02:36:06 PM by zener »
Just because I can't speak doesn't mean I'm dumb !! :-D ...

Offline cool34000

  • *
  • 339
  • +0/-0
Re: [Announce] kPlaylist RPM for SME 7.x
« Reply #19 on: December 02, 2007, 02:43:08 PM »
Looks like you messed up modifying the custom-template!
Code: [Select]
  php_admin_value open_basedir /opt/kplaylist:/tmp:/usr/share/pear:/home/e-smith/files/ibays/music/filesThis goes in one line... :?

Offline zener

  • *
  • 18
  • +0/-0
    • http://www.techtalkireland.com
Re: [Announce] kPlaylist RPM for SME 7.x
« Reply #20 on: December 02, 2007, 02:51:54 PM »
I just noticed that. I used Pico to edit the file via a secure shell - ssh - from Terminal on my Mac and placed the cursor at the end of the line but once I started typing it moved down to the following line. I assumed this was Pico just continuing the line for clarity when infact it was actually inserting a CR. I've since re-edited widening the window on ssh and ensuring the command was all one line. I saved out and then rechecked and it's ok this time. I'll post back if it's worked.

ZEN
Just because I can't speak doesn't mean I'm dumb !! :-D ...

Offline cool34000

  • *
  • 339
  • +0/-0
Re: [Announce] kPlaylist RPM for SME 7.x
« Reply #21 on: December 02, 2007, 03:08:33 PM »
It is working! (just tested it a few hours ago with an ibay without a symlink)
If it's not for you, like the wiki said, ensure that Apache can read/write those files.
For an ibay, that means how your MP3 ibay is configured (who is owner and who have read/write access)

Offline zener

  • *
  • 18
  • +0/-0
    • http://www.techtalkireland.com
Re: [Announce] kPlaylist RPM for SME 7.x
« Reply #22 on: December 02, 2007, 03:21:18 PM »
It is working now, thanks for your patience. It seems ssh and terminal inserted a CR automatically when the end of a line was reached screwing up the command ! Widening the terminal window prevented it from doing this.

I've added the ibay to the "find" panel and presto it now finds the files.

Thanks again for your help and the hard work you've put in.

ZEN

Just because I can't speak doesn't mean I'm dumb !! :-D ...

Offline raem

  • *
  • 3,972
  • +4/-0
Re: [Announce] kPlaylist RPM for SME 7.x
« Reply #23 on: December 04, 2007, 09:18:26 AM »
zener

The correct way to prevent line wrapping when using pico is:

pico -w filename
...

Offline zener

  • *
  • 18
  • +0/-0
    • http://www.techtalkireland.com
Re: [Announce] kPlaylist RPM for SME 7.x
« Reply #24 on: December 04, 2007, 11:04:58 AM »
Thanks for that, maybe I'll stick to vi from now on though.

This is a really nice system - impressed with the layout and the link to the song lyrics.

Just a few questions:

Is there any limit to the number of files or directories allowed ?
Which version ID3 tag does the app read ?
Some of the song names became corrupt once listed in kplaylist - not the actual files just their link in the list.
I've had this in the past with other audio players where they don't like certain characters in the filename, for example "&" or " ' ". I presume this is down to unicode and translations, would that be right ?
Could it also be the number of characters in the filename ? I noticed that most of the files affected had a lot of characters in their name but not all of them.

Thanks again.

ZEN
Just because I can't speak doesn't mean I'm dumb !! :-D ...

Offline cool34000

  • *
  • 339
  • +0/-0
Re: [Announce] kPlaylist RPM for SME 7.x
« Reply #25 on: December 04, 2007, 12:04:37 PM »
Hi,

Quote from: zener
Is there any limit to the number of files or directories allowed ?
I can remember that there's a MySQL limit. Actually this limit is for updating the database... Look on kplaylist forum, this question has been answered. You should find out which value needs to be changed and have an idea on how much an mp3 cost in memory during this process. Don't change the default value if all works nice!

Quote from: zener
Which version ID3 tag does the app read ?
kPlaylist use ID3v1 by default. You can use ID3v2 as described in the wiki. Depends on how your music files are tagged... I use ID3v1 which has better results for me.

Quote from: zener
I presume this is down to unicode and translations, would that be right ?
I guess so too. Some of french caracters are strange too ('é' ; 'è' ; à ; and so on...)
I tried that:
Code: [Select]
db configuration setprop smb UnixCharSet ISO8859-1
expand-template /etc/smb.conf
/etc/init.d/smb restart
And it fixed my problem (after re-uploading the few folders with strange names). Don't know what should your UnixCharSet be, I can't remember where I found the original info. Google should have the answer for you!
There's also an UTF-8 version of kPlaylist, only available with a custom download on kPlaylist website...