LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 09-04-2006, 12:20 PM   #1
linuxhippy
Senior Member
 
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu
Posts: 1,185

Rep: Reputation: 47
Quick Web Page builder


I have a lot of mp3 files on 2 cds that I have organized into folders. I want to make a web page for these files so that it's easy to navigate them and then burn them onto the cds. Is there an automated web page building program that would do this in Slackware?
 
Old 09-04-2006, 12:25 PM   #2
mike160
Member
 
Registered: Jan 2006
Location: Connecticut
Distribution: Ubuntu 10.10, Lubuntu 10.10, #!Crunchbang 10 "Statler"
Posts: 84

Rep: Reputation: 15
You could just make a local page and link the files to links on the page.

I personally use Nvu.. works great.

www.nvu.com
 
Old 09-04-2006, 12:35 PM   #3
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,203

Rep: Reputation: 292Reputation: 292Reputation: 292
You could write a bash script to do this. Something like:

Code:
#!/bin/bash

cd <your mp3 dir>
for file in `ls`
do
echo "<a href=" $file ">" $file "</a>" >> mp3list.html
done
Of course would need to make the script recursively transverse directories too. 'man ls' will help.
 
Old 09-04-2006, 01:31 PM   #4
msantinho
Member
 
Registered: Oct 2005
Location: Lisbon
Distribution: Slackware
Posts: 51

Rep: Reputation: 15
If you know Perl and you have Apache with mod_perl installed, you can use Apache::MP3 ("Generate streamable directories of MP3 and Ogg Vorbis files").

Links (remove spaces and replace dots)
CPAN: searchDOTcpanDOTorg/~lds/Apache-MP3-4.00/MP3.pm
DEMO: wwwDOTmodperlDOTcom/Songs/
 
Old 09-04-2006, 05:34 PM   #5
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30
or
Code:
#!/bin/bash
find /path/to/files -name \*.mp3 -print0 | xargs -0 -i -t echo "<a href="{}">"{}"</a>" >> mp3list.html
 
Old 09-04-2006, 05:46 PM   #6
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,012

Rep: Reputation: 111Reputation: 111
Or you could let Apache and/or Firefox generate a file listing.

Last edited by tuxdev; 09-04-2006 at 05:47 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cant make web server run my local web page... Nik0s Linux - Newbie 22 10-08-2006 10:30 PM
LXer: Godaddy.com to Support Open Source Web Builder, Ruby on Rails LXer Syndicated Linux News 0 04-22-2006 08:54 PM
WYSIWYG web page builder mirak Linux - Software 12 10-05-2004 11:18 AM
Jerky mouse when web browsers download web page stodge Linux - Software 1 07-08-2003 10:29 PM
Web Page Builder RedHatMN Linux - Newbie 4 04-05-2001 05:25 PM


All times are GMT -5. The time now is 03:05 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration