#40359 - 18/10/2001 04:02
Re: Displayserver 2.0b2 and backup
[Re: rob]
|
carpal tunnel
Registered: 18/06/2001
Posts: 2504
Loc: Roma, Italy
|
Great Rob, simply GREAT! Taym
_________________________
MK II BLUE/RED 12GB #923 + RADIO
_________________________
= Taym = MK2a #040103216 * 100Gb *All/Colors* Radio * 3.0a11 * Hijack = taympeg
|
Top
|
|
|
|
#40360 - 18/10/2001 08:29
Re: Displayserver 2.0b2 and backup
[Re: BAG]
|
enthusiast
Registered: 20/02/2001
Posts: 345
|
In reply to:
Is there a way I could get a copy of the original mp3list.html template because that seems to be what those PERL scripts need to create a backup with the EMPEG's full directory structure.
Also can't seem to get the perl script to work in win2000. When I double click it an msdos window pops up and then momentarily disappears. Perhaps I didn't install the useragent module correctly. This whole perl thing scares me. A windows version would be great!
The original displayserver served up the data in this format. I haven't played with the new one enough to write a compatible module. It should still be on Frank's site (or at least I HOPE it is... I need to grab it now)
You should be able to run both at the same time, just adjust the port number in displayserver 2.0.
RE: perl in Windows... Sorry, I was the one to convert the slashes TO Unix, so I'm afraid I can't help you much there...
_________________________
Synergy
[orange]mk2, 42G: [blue] mk2a, 10G[/blue][/green]
I tried Patience, but it took too long.
|
Top
|
|
|
|
#40361 - 18/10/2001 12:01
Re: Displayserver 2.0b2 and backup
[Re: drakino]
|
old hand
Registered: 12/08/2000
Posts: 702
Loc: Netherlands
|
I have looked at zmodem, but couldn't find any suitable software for delphi. If anyone finds some freeware zmodem implementation, let me now...
Frank van Gestel
_________________________
Frank van Gestel
|
Top
|
|
|
|
#40362 - 18/10/2001 13:58
Re: Displayserver 2.0b2 and backup
[Re: synergy]
|
new poster
Registered: 17/10/2001
Posts: 4
|
when i execute the perl script with the ip address of my empeg substituted in I get the following response from perl:
Bareword found where operator expected at getmp3s.pl line 25, near "$server = "h
ttp"
(Might be a runaway multi-line "" string starting on line 24)
(Missing operator before http?)
Bareword found where operator expected at getmp3s.pl line 25, near "//empeg"
(Missing operator before empeg?)
Bareword found where operator expected at getmp3s.pl line 26, near "$urlroot = "
http"
(Might be a runaway multi-line "" string starting on line 25)
(Missing operator before http?)
Bareword found where operator expected at getmp3s.pl line 26, near "//empeg"
(Missing operator before empeg?)
String found where operator expected at getmp3s.pl line 43, near "$dest =~ s/[?*
""
(Might be a runaway multi-line "" string starting on line 26)
(Missing semicolon on previous line?)
syntax error at getmp3s.pl line 25, near "$server = "http"
Unmatched right square bracket at getmp3s.pl line 43, at end of line
Unmatched right curly bracket at getmp3s.pl line 96, at end of line
syntax error at getmp3s.pl line 96, near "}"
Execution of getmp3s.pl aborted due to compilation errors.
Any idea how to correct this?
Thanks,
BG
|
Top
|
|
|
|
#40363 - 18/10/2001 14:12
Re: Displayserver 2.0b2 and backup
[Re: BAG]
|
enthusiast
Registered: 20/02/2001
Posts: 345
|
Without seeing it, it looks like an unmatched quote.
send me a copy of it at syn.nospam@d0gz.net (removing the spam part of course) and I'll take a look at it.
_________________________
Synergy
[orange]mk2, 42G: [blue] mk2a, 10G[/blue][/green]
I tried Patience, but it took too long.
|
Top
|
|
|
|
#40364 - 18/10/2001 22:30
Re: Displayserver 2.0b2 and backup
[Re: fvgestel]
|
enthusiast
Registered: 30/12/2000
Posts: 249
Loc: Dover, NJ
|
is there ANY chance the Displaysever2.0 will work with the updated release
Yes it does, just don't install the 1.03 kernel...
Ok...for some wacky reason, I can't get the darn thing to install after upgrading to 2.0b3. I'm not using the .mp3, since I removed it from my player earlier, and emplode doesn't like that file so much anymore. I used zmodem to transfer the install.sh and install.tar files to my player, but after making install.sh executable, I can't get it to run. When I type "./install.sh" it tells me there is no so file or directory, even though it appears with a "ls" command in the same directory.
Does the Linux kernal work differently now with 2.0b3? Am I doing something really stupid that should be obvious? I could have sworn that I installed ds2b2 this way before (over 1.03, though).
- Chris
32GB MK2 090000664 Smoke
Queue # 2 (who the heck was 1?)
_________________________
- Chris
Orig. Empeg Queue position 2
|
Top
|
|
|
|
#40365 - 18/10/2001 22:44
Re: Displayserver 2.0b2 and backup
[Re: cwillenbrock]
|
pooh-bah
Registered: 02/06/2000
Posts: 1996
Loc: Gothenburg, Sweden
|
Take a look at the very first line in the script; it sounds as if the
#!/path/to/interpreter
line is pointing to a file that doesn't exist (at least on your player).
Edit that to point to where your sh/bash executeble resides and you should be in business...
/Michael
_________________________
/Michael
|
Top
|
|
|
|
#40366 - 18/10/2001 23:43
Re: Displayserver 2.0b2 and backup
[Re: mtempsch]
|
old hand
Registered: 12/08/2000
Posts: 702
Loc: Netherlands
|
Or you edited the install.sh file on the PC, in which case the file needs to be converted to unix format again.
As michael said, the interpreter is misinterpreted, as it now has an extra character at the end...
Frank van Gestel
_________________________
Frank van Gestel
|
Top
|
|
|
|
#40367 - 19/10/2001 05:21
Re: Displayserver 2.0b2 and backup
[Re: fvgestel]
|
carpal tunnel
Registered: 15/08/2000
Posts: 4859
Loc: New Jersey, USA
|
Greetings!
Thanks!!! I forgot about that, and did not see the ^M appear anywhere. That fixed my other problem, as well.
Paul G.
SN# 090000587 (96GB Smoke)
SN# 030103046 (10GB Blue - Emergency Spare)
_________________________
Paul Grzelak 200GB with 48MB RAM, Illuminated Buttons and Digital Outputs
|
Top
|
|
|
|
#40368 - 19/10/2001 09:34
Re: Displayserver 2.0b2 and backup
[Re: fvgestel]
|
enthusiast
Registered: 30/12/2000
Posts: 249
Loc: Dover, NJ
|
Hmmmm...
it sounds as if the
#!/path/to/interpreter
line is pointing to a file that doesn't exist
It points to /bin/bash, which exists.
Or you edited the install.sh file on the PC
I didn't, though. I did extract install.sh on the my PC, but I never opened or edited the file. I just moved it over with zmodem.
- Chris
32GB MK2 090000664 Smoke
Queue # 2 (who the heck was 1?)
_________________________
- Chris
Orig. Empeg Queue position 2
|
Top
|
|
|
|
#40369 - 21/10/2001 15:45
Re: Displayserver 2.0b2 and backup
[Re: cwillenbrock]
|
enthusiast
Registered: 30/12/2000
Posts: 249
Loc: Dover, NJ
|
Still at a loss for why I can't get DS to install. Still looking to see if anyone can point me to the potential problem.
I just redownloaded ds2b2.zip, extracted it down to the install.sh and install.tar files, moved them over to my player, made the install.sh file executable and tried to run it. It still gives me the same error. I'm thinking that the environment on my empeg is different somehow, but I'm too much of a Linux novice to know how it's different.
I know that..
a) the install.sh was never opened/edited/changed on my PC. I moved it over, along with the install.tar file, without touching it.
b) the first line of the install file point to /bin/bash, and that /bin/bash is still a valid path/filename on my empeg.
Perhaps I glance at the attached log would help some of you gurus tell me what I'm missing. This method is supposed to work, correct? As in..I should be able to move those two files over and install using install.sh, right?
- Chris
32GB MK2 090000664 Smoke
Queue # 2 (who the heck was 1?)
Attachments
41850-session.txt (157 downloads)
_________________________
- Chris
Orig. Empeg Queue position 2
|
Top
|
|
|
|
#40370 - 22/10/2001 02:08
Re: Displayserver 2.0b2 and backup
[Re: cwillenbrock]
|
pooh-bah
Registered: 02/06/2000
Posts: 1996
Loc: Gothenburg, Sweden
|
Hmmm, didn't spot anything in your log...
Still thinking it might be a spurious character... Did you 'tab out' the install.sh filename when trying to run it? Might be a wacky character in the filename itself... Try to enter ./inst[TAB] , instead of typing all the name yourself, this'll make the shell expands the filename which should include any invisible character.
Also, though you didn't open it on the PC, try to take a look at that first line with a hex editor (or just open it in Notepad; it should all be one long line with small black squares where linefeeds should be (don't use wordpad or word, as they both autotranslate Unix style linefeeds to Windows style).
/Michael
_________________________
/Michael
|
Top
|
|
|
|
#40371 - 22/10/2001 16:24
Re: Displayserver 2.0b2 and backup
[Re: mtempsch]
|
enthusiast
Registered: 30/12/2000
Posts: 249
Loc: Dover, NJ
|
Still thinking it might be a spurious character...
I'm thinking not. I tabbed out the filename, but that didn't seem to make a difference.
Also, though you didn't open it on the PC, try to take a look t that first line with a hex editor (or just open it in Notepad;
Okay...I just redownloaded (again) the zip from Frank's site, extracted it with winzip down to install.sh and install.tar, and opened install.sh in Notepad (THE Notepad).
I don't see any of the small black squares (though I do know what you're talking about). Looks like windows style linefeeds here. So I guess...somewhere along the way (though I don't understand where it could happen) these characters are being converted. Perhaps this happens when opening the file in Notepad (as in, this newer version of Notepad acts the same way WordPad does in this regard. I'm using Windows 2000 SP2). That's really the only thing I can think of...but then, it wouldn't be a problem if I never opened it up in Notepad. The file should still have the original Unix style linefeeds. How could that change just by extracting the files?
Puzzled...
- Chris
32GB MK2 090000664 Smoke
Queue # 2 (who the heck was 1?)
_________________________
- Chris
Orig. Empeg Queue position 2
|
Top
|
|
|
|
#40372 - 22/10/2001 17:04
Re: Displayserver 2.0b2 and backup
[Re: mtempsch]
|
enthusiast
Registered: 30/12/2000
Posts: 249
Loc: Dover, NJ
|
Okay..I still don't know how, but the linefeeds were being converted to Windows style somewhere during extraction. How this would happen between WinZip and zmodem, I don't know, but there it is.
I wrote a little PHP script to convert the windows style linefeeds to Unix style (it was the first thing I thought of off the top of my head after a long day of writing PHP scripts for work)...
$file=fopen("install.sh", "r");
$text = fread($file,filesize("install.sh"));
fclose($file);
$newtext = str_replace("\r\n","\n",$text);
$wfile=fopen("test.sh", "w");
fputs($wfile,$newtext);
?>
...moved the resulting file over to the empeg, and voila. Now I'm just curious to know how install.sh is being changed (given that the original on Frank's site isn't that way).
Perplexed...
- Chris
32GB MK2 090000664 Smoke
Queue # 2 (who the heck was 1?)
_________________________
- Chris
Orig. Empeg Queue position 2
|
Top
|
|
|
|
#40373 - 22/10/2001 17:21
Re: Displayserver 2.0b2 and backup
[Re: cwillenbrock]
|
enthusiast
Registered: 30/12/2000
Posts: 249
Loc: Dover, NJ
|
While I'm on a roll here talking to myself...
Yes, I found the option in Winzip (that I didn't know existed) that's labeled "TAR file smart CR/LF conversion" and it was enabled. I disabled that and extracted the original archive again, and the linefeeds were not converted. I didn't suspect Winzip would have been changing the files while extracting, though I guess that was the last remaining possibility.
Appeased...
- Chris
32GB MK2 090000664 Smoke
Queue # 2 (who the heck was 1?)
_________________________
- Chris
Orig. Empeg Queue position 2
|
Top
|
|
|
|
#40374 - 22/10/2001 23:08
Re: Displayserver 2.0b2 and backup
[Re: cwillenbrock]
|
pooh-bah
Registered: 02/06/2000
Posts: 1996
Loc: Gothenburg, Sweden
|
Learn something new every day - I had no idea that WinZip had such an option. Previously, stuff here on the board has been zipped up just to protect from accidental conversion of linefeeds between platforms...
/Michael
Hmmm, "TAR file smart CR/LF conversion" probably means that 'true' zip files are OK, and only tar files are affected...
Edited by mtempsch on 23/10/01 07:12 AM.
_________________________
/Michael
|
Top
|
|
|
|
#40375 - 23/10/2001 08:20
Re: Displayserver 2.0b2 and backup
[Re: mtempsch]
|
enthusiast
Registered: 30/12/2000
Posts: 249
Loc: Dover, NJ
|
Hmmm, "TAR file smart CR/LF conversion" probably means that 'true' zip files are OK
I would imagine so. In this case it was a tar inside of a zip. As a reference, I'm using WinZip 7.0, so I assume any newer version than that would have the option (and apparently enabled by default. Grrrrr).
That's a useful nugget of information, wouldn't you say?
- Chris
32GB MK2 090000664 Smoke
Queue # 2 (who the heck was 1?)
_________________________
- Chris
Orig. Empeg Queue position 2
|
Top
|
|
|
|
#40376 - 23/10/2001 09:48
Re: Displayserver 2.0b2 and backup
[Re: cwillenbrock]
|
addict
Registered: 16/08/1999
Posts: 453
Loc: NRW, Germany
|
Yep WinZip v8 did the same thing to me. I have a nice (freeware) editor called PFE that showed the problem and let me simply resave the file as a UNIX format file.
(list 6284, Mk1 S/N 00299 4GB blue [for sale]. Mk2 S/N 080000094 26GB blue)
_________________________
(list 6284, Mk1 S/N 00299 4GB blue [sold]. Mk2 S/N 080000094 20GB blue)
|
Top
|
|
|
|
#40377 - 24/10/2001 15:17
Re: Displayserver 2.0b2 and backup
[Re: fvgestel]
|
old hand
Registered: 12/08/2000
Posts: 702
Loc: Netherlands
|
Everyone who had problems with large playlists or playlists that aren't shown, should try the attached binary. It is not advisable to use large playlists (+1000 entries) with displayserver. I just tested a playlist containing 3000 entries, which lets netscape exit with an application error; in IE5.5 it takes about ten minutes to load and causes IE to use more than 64 Mb of memory
This also fixes problems when tags are defined in the metafid without values...
just extract the binary from the zip-file and copy it over the old one.
I'll create a beta3 soon...
Frank van Gestel
Attachments
42445-ds2.zip (23 downloads)
_________________________
Frank van Gestel
|
Top
|
|
|
|
#40378 - 24/10/2001 16:23
Re: Displayserver 2.0b2 and backup
[Re: fvgestel]
|
journeyman
Registered: 04/10/2001
Posts: 99
Loc: VA, USA
|
In beta 3 you going to make it so we can send the .mp3 file to the empeg using emplode?
I wanna get Display Server on my empeg but of course upgraded to 2.0 before I noticed all of what Display Server could do. Now I'm stuck without it b/c I don't know much about linux or the empeg in general and can't upload the mp3 file that comes with display server.
Of course if someone wants to create a in-depth walk threw on how to do it now without waiting I'd be willing to give it a try. I do have developer installed and I do know how to get into it and get to a shell prompt.
Blue MK2 20 Gig, Slowly getting filled to the brim.
_________________________
Blue MK2 20 Gig #090000956
4796 Songs Available at all times.
|
Top
|
|
|
|
#40379 - 24/10/2001 21:29
Re: Displayserver 2.0b2 and backup
[Re: CyberGlitch]
|
new poster
Registered: 24/07/1999
Posts: 8
Loc: Cambridge, UK
|
You can go the rather convoluted route of using RZ and SZ (Receive ZModem and Send ZModem). Telnet into the empeg using Hyperterminal, remount one of the partitions in r/w mode (don't forget to umount first). Then, type 'rz' on the empeg to initiate a receive and use Hyperterminal to SZ the file to the empeg.
The real problem with doing this is that the displayserver installer tries to find the .mp3 file in the playlist database (it greps the entire list until it finds a file with the correct file size (very dodgy) then extracts it. It may be possible but I don't know how to add a manually uploaded file to the empeg tracks database.
I ended up doing a manual install by simply copying the actions described in the display server read me e.g. "tar xzfO blah.mp3 install.sh | /usr/bin/bash" (or something similar) etc. I did manage to get it all up and running eventually but unfortunately, it has a tendency to core dump whenever I try to use any of the exciting features like streaming mp3s to my PC.
--
Dean
--
Dean
_________________________
--
Dean
|
Top
|
|
|
|
#40380 - 25/10/2001 06:05
Re: Displayserver 2.0b2 and backup
[Re: fvgestel]
|
addict
Registered: 16/08/1999
Posts: 453
Loc: NRW, Germany
|
Works great Frank! Even seems a bit faster than the old one.
Thanks very much
_________________________
(list 6284, Mk1 S/N 00299 4GB blue [sold]. Mk2 S/N 080000094 20GB blue)
|
Top
|
|
|
|
#40381 - 25/10/2001 09:22
Re: Displayserver 2.0b2 and backup
[Re: fvgestel]
|
new poster
Registered: 17/08/2001
Posts: 8
|
I've unzipped the ds2b2.mp3 with the "TAR file smart CR/LF conversion" DISABLED. I'm ready to upload the install.sh and install.tar files via Transfer in Hypertrm. Can someone assist me in how to 'mount' or 'umount' the drives and what directory I should upload to? From there I would like to launch empackager.exe on the win platform to complete the install.
Thanks in advance for any help.
|
Top
|
|
|
|
#40382 - 25/10/2001 10:24
Re: Displayserver 2.0b2 and backup
[Re: falcos]
|
pooh-bah
Registered: 02/06/2000
Posts: 1996
Loc: Gothenburg, Sweden
|
Have no clue as to directory and/or the empackager (haven't played with it yet), but for remounting writeable, enter the commands
rw followed by
rwm - this command may take some time to execute.
When you're done
ro and
rom in order to remount readonly
/Michael
_________________________
/Michael
|
Top
|
|
|
|
#40383 - 25/10/2001 10:30
Re: Displayserver 2.0b2 and backup
[Re: fvgestel]
|
enthusiast
Registered: 30/12/2000
Posts: 249
Loc: Dover, NJ
|
Quick question for you...where do you find those little minix.gif icons that you use in displayserver?
Thanks.
_________________________
- Chris
Orig. Empeg Queue position 2
|
Top
|
|
|
|
#40384 - 25/10/2001 11:45
Re: Displayserver 2.0b2 and backup
[Re: mtempsch]
|
old hand
Registered: 30/07/2000
Posts: 879
Loc: Germany (Ruhrgebiet)
|
Hi.
The factory "ro" command includes the equivalent of the "rom" command. And if it wouldn't, the "correct" order of those two commands would be "rom" first followed by "ro", AFAIK.
cu,
sven
_________________________
proud owner of MkII 40GB & MkIIa 60GB both lit by God and HiJacked by Lord
|
Top
|
|
|
|
#40385 - 25/10/2001 12:10
Re: Displayserver 2.0b2 and backup
[Re: falcos]
|
old hand
Registered: 12/08/2000
Posts: 702
Loc: Netherlands
|
The easiest way to install ds2 on the empeg on 2.0 is first downgrade to 1.03, use emplode to upload ds2b2.mp3 to the empeg, then reinstall v2.0 developer-image. After that, connect empeg over serial and start empackager. It should find the file and start the install-program
To install the new executable :
- open hyperterm and start shell
# rw
# rwm
# cd /tmp
- use send-file option in hyperterm to send file ds2b2.mp3
# cd /opt/ds2b2
- check if you are in the right dir
# ls -l
if you see this line :
-rwxr-xr-x 1 root root 95783 Oct 4 22:48 ds2
it means you've got the old beta2 version
move the old executable :
# mv ds2 ds2.old
- copy the new one to the dir :
# cp /tmp/ds2 ds2
- make the new file executable :
# chmod +x ds2
- check the new file
# ls -l
- output should look like this:
-rwxr-xr-x 1 root root 93103 Oct 24 23:46 ds2
- remount the disks ro :
# ro; rom ( or rom;ro. I think ro only is sufficient to remount all disks ro, haven't checked)
- reboot empeg (pull plug)
Edited by fvgestel (25/10/2001 12:16)
_________________________
Frank van Gestel
|
Top
|
|
|
|
#40386 - 25/10/2001 14:29
Re: Displayserver 2.0b2 and backup
[Re: fvgestel]
|
pooh-bah
Registered: 13/09/1999
Posts: 2401
Loc: Croatia
|
Errr, which kernel do we use for DS under 2.b3?
_________________________
Dragi "Bonzi" Raos
Q#5196
MkII #080000376, 18GB green
MkIIa #040103247, 60GB blue
|
Top
|
|
|
|
#40387 - 26/10/2001 07:46
Re: Displayserver 2.0b2 and backup
[Re: mtempsch]
|
new poster
Registered: 17/08/2001
Posts: 8
|
I've now got the display server working through a manual install thanks to all of your help. Very Nice!
|
Top
|
|
|
|
#40388 - 26/10/2001 15:23
Re: I'm a geek wannabe
[Re: fvgestel]
|
enthusiast
Registered: 30/12/2000
Posts: 249
Loc: Dover, NJ
|
I'm having a little trouble with the script I'm working on. I have a script that allows for download or streaming of an MP3 file, and works most of the time. I haven't had any problems downloading mp3s using the script, but certain songs will stop playing in the middle of the song while streaming.
I'm not having the trouble while using displayserver to stream the same songs from the empeg...only when using my script to stream the songs from my backup copy. It seems to thing the file is smaller than it really is.
Perhaps it's hitting something in the file that it interprets as some sort of EOF character? What does displayserver do to the content data of the file before it is sent, if anything? Is there a header that can help? What headers do you use when getting the mp3 (via m3u)?
Thanks.
_________________________
- Chris
Orig. Empeg Queue position 2
|
Top
|
|
|
|
|
|