Re: Manual to install Swisscenter on Synology DSx0 - 2008/10/03 10:42Hi Babachan,
I had a quick glance and it looks very promising. I'll experiment a bit with font sizes: except for "Now Playing" the fonts are quite small (at least for me ). Could you give me a hint where to change them? And how are the various ".GDF"-files called by the script?
Moreover, on my machine the text is wrapped too 'early', meaning I've got plenty of space on my screen, but still the text is wrapped. Where can I adjust that one?
looking forward to your reply, regards, Klaas --------------------------------------------------------------------------- SwissCenter SVN 1091 Simese 1.40 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15 Synology DS107+ (128), firmware: DSM 2.0-0702 Pinnacle SC200
| | The administrator has disabled public write access.
BABACHAN
User
Posts: 43
Re: Manual to install Swisscenter on Synology DSx0 - 2008/10/03 10:55I'll experiment a bit with font sizes: except for "Now Playing" the fonts are quite small (at least for me ). Could you give me a hint where to change them? That is strange. The size should be the same on your machine. Did you use the supplied fonts or make your own?
And how are the various ".GDF"-files called by the script? The functions text(), get_text_width() and get_text_height() from image.php load the font based on the size given. They format the arial_tt%d.gdf (from the configuration) into for instance arial_tt14.gdf for size 14. If you want bigger font size you have to recreate the font files. The supplied files are 1.3 larger than the ttf sizes. For instance when a size of 14 is requested the file arial_ttf14.gdf is loaded and this file contains a converted 14*1.3 sized font.
Moreover, on my machine the text is wrapped too 'early', meaning I've got plenty of space on my screen, but still the text is wrapped. Where can I adjust that one? This is even stranger. Because the wrap is based on the actual text width and the screen size. Did you alter your image_screen.php or did you use the on I posted?SwissCenter 1.21.1 client: Popcorn Hour A-100 servers: Synology DS207+ (128) firmware DSM 2.0-0722 servers: Windows XP SP2
| | The administrator has disabled public write access.
klaasvaak
User
Posts: 1305
Re: Manual to install Swisscenter on Synology DSx0 - 2008/10/03 12:04Hi Babachan,
Wrapping issue is solved (I had an error in my code).
Regarding the font size I still got some problems. I don't see how I can change the font size within the code (or shouldn't I). What I can see, that you use three font size 13, 15 and 21. What I can do is using other fonts (the ones I already created) and save 'em as "arial_tt13.gdf", arial_tt15.gdf (the one for "Now Playing" is big enough for me ). But I suppose there should be a more cleaver way to do deal with this.
Moreover, would you be able to create a fourth size for previous, next, playing time and track number?
regards, Klaas --------------------------------------------------------------------------- SwissCenter SVN 1091 Simese 1.40 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15 Synology DS107+ (128), firmware: DSM 2.0-0702 Pinnacle SC200
| | The administrator has disabled public write access.
BABACHAN
User
Posts: 43
Re: Manual to install Swisscenter on Synology DSx0 - 2008/10/03 14:03Hi Klaas,
Nice to hear that the wrapping is working.
Now about the font size. There is no need to change the size in the code. The swisscenter code uses sizes 13, 14, 15, 21, 22, 24, 25 and 36. These are in percentages. These sizes are converted to points based on the display resolution. For instance, my resolution is 720x576 (displayed in support info as clients detected). The font size 22 is converted to ceiling(576 * 21 / 1000) = 13. The Text() function displays a true type font with this font size. So far what I figured out from the original code. Correct me if I wrong . I altered the Text() to display a GD font if selected in the config. So it will load font arial_ttf13.gdf. This file actually contains a GD font with size 22 * 1.3 = 28. Because I found out that the true type size is actually 1.3 times bigger on the display then the same gd font size.
So to end my story. If you want bigger fonts you have to make them yourself as described in step 14a. For instance, use size 30 instead of 28 and save it as arial_ttf13.gdf. For more detailed info on the actual file contents of a gdf file see hereSwissCenter 1.21.1 client: Popcorn Hour A-100 servers: Synology DS207+ (128) firmware DSM 2.0-0722 servers: Windows XP SP2
| | The administrator has disabled public write access.
klaasvaak
User
Posts: 1305
Re: Manual to install Swisscenter on Synology DSx0 - 2008/10/03 16:14Hi Babachan,
Got the font nice now and the "PLAY NOW"-screen looks fine. Again some problems with the "wrap" function; the spacing is too large for the fonts I llike to use, but I'll try to work it out. If any issues pop up, I'll drop you a line.
anyway many thanks, regards, Klaas --------------------------------------------------------------------------- SwissCenter SVN 1091 Simese 1.40 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15 Synology DS107+ (128), firmware: DSM 2.0-0702 Pinnacle SC200
| | The administrator has disabled public write access.
BABACHAN
User
Posts: 43
Re: Manual to install Swisscenter on Synology DSx0 - 2008/10/04 03:14Hi Klaas,
The spacing is not determined by the code. It is part of the font file. If you don't like the spacing you have too use a smaller character width when creating the font. I used the formula: character width = font size / 1.5. This ensures that the wide characters like M and W are not overlapping the other characters. But again its up to you to decide. You are experiencing the disadvantages of fixed width font. We have to live with that SwissCenter 1.21.1 client: Popcorn Hour A-100 servers: Synology DS207+ (128) firmware DSM 2.0-0722 servers: Windows XP SP2
| | The administrator has disabled public write access.
klaasvaak
User
Posts: 1305
Re: Manual to install Swisscenter on Synology DSx0 - 2008/10/05 14:23As per today the manual is updated and an improved “Now Playing”-screen is available. Thanks to BABACHAN for the great contribution.
The “Now Playing”-screen has now three different font sizes and became language unspecific. Instructions can be found under step [11] and [12] of the manual.
regards, Klaas --------------------------------------------------------------------------- SwissCenter SVN 1091 Simese 1.40 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15 Synology DS107+ (128), firmware: DSM 2.0-0702 Pinnacle SC200
| | The administrator has disabled public write access.
Joe_999
User
Posts: 112
Re: Manual to install Swisscenter on Synology DSx0 - 2008/10/26 19:56Hi Klaas, Hi Babachan,
while doing a fresh installation of SVN1108 I had to use Klaas´s earlier image.php in order to get the SC config screen displaying the SC installation test results being displayed.
The files as currrently linked to in the "Manual" didn´t do it for me!
I will do a step by step approach as soon as I will have some time and report!
Regards
JoeClients: Popcorn A-100 with 4 GB Flash-Memory, Mozilla Firefox on MS Win 7 Ultimate X64 Media storage on NAS: Synology DS207+ SC 1.22 latest SVN installed on DS207+ (RAID 1) with FW 2.3-1118 utilizing: Apache 2.2.13, MySQL 5.1.34, PHP 5.2.10 GbE network with Zyxel GS-108A PCH-A100 connected via HDMI in 1920x1080p to display.
| | The administrator has disabled public write access.
klaasvaak
User
Posts: 1305
Re: Manual to install Swisscenter on Synology DSx0 - 2008/12/09 14:08CS1132 through CS1134 (see here) arranges the implementation of Flickr. The updates cause the "Now Playing"-screen to go black. Download file "/base/image.php" from here and your "Now Playing"-screen will return including the Flickr option.
regards, Klaas --------------------------------------------------------------------------- SwissCenter SVN 1134 Simese 1.40 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15 Synology DS107+ (128), firmware: DSM 2.0-0702 Pinnacle SC200
| | The administrator has disabled public write access.
Joe_999
User
Posts: 112
Re: Manual to install Swisscenter on Synology DSx0 - 2008/12/13 04:36Hi Klaas,
At least in my case SC config - systemtest page remains blank after update to SVN1034.
Also the use of your latest image.php, image_screens.php, music_radio_image.php didn´t resolve it.
Do you observe the same on your DS207+?
Regards
JoeClients: Popcorn A-100 with 4 GB Flash-Memory, Mozilla Firefox on MS Win 7 Ultimate X64 Media storage on NAS: Synology DS207+ SC 1.22 latest SVN installed on DS207+ (RAID 1) with FW 2.3-1118 utilizing: Apache 2.2.13, MySQL 5.1.34, PHP 5.2.10 GbE network with Zyxel GS-108A PCH-A100 connected via HDMI in 1920x1080p to display.
| | The administrator has disabled public write access.
klaasvaak
User
Posts: 1305
Re: Manual to install Swisscenter on Synology DSx0 - 2008/12/13 05:40Hi Joe,
Everything works fine with me ... from which SVN did you update to SVN 1134?
regards, Klaas --------------------------------------------------------------------------- SwissCenter SVN 1134 Simese 1.40 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15 Synology DS107+ (128), firmware: DSM 2.0-0702 Pinnacle SC200
| | The administrator has disabled public write access.
Joe_999
User
Posts: 112
Re: Manual to install Swisscenter on Synology DSx0 - 2008/12/13 06:22Hi Klaas,
strange, I had SC on SVN1133 (updated from time to time through my Media Player) when I observed today that the systemtest screen remained blank. Then I updated to SVN1134, again, the systemtest page remained blank.
O.K., I will have a deeper look now!
Thanks for confirming your "no problem"!
Regards
JoeClients: Popcorn A-100 with 4 GB Flash-Memory, Mozilla Firefox on MS Win 7 Ultimate X64 Media storage on NAS: Synology DS207+ SC 1.22 latest SVN installed on DS207+ (RAID 1) with FW 2.3-1118 utilizing: Apache 2.2.13, MySQL 5.1.34, PHP 5.2.10 GbE network with Zyxel GS-108A PCH-A100 connected via HDMI in 1920x1080p to display.
| | The administrator has disabled public write access.
klaasvaak
User
Posts: 1305
Re: Manual to install Swisscenter on Synology DSx0 - 2009/01/09 16:03The manual and relevants files are updated for SwissCenter SVN 1144. Comments are welcomed.
regards, Klaas --------------------------------------------------------------------------- SwissCenter SVN 1144 Simese 1.46 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15 Synology DS107+ (128), firmware: DSM 2.0-0702 Pinnacle SC200
| | The administrator has disabled public write access.
Dutchsea
User
Posts: 277
Re: Manual to install Swisscenter on Synology DSx0 - 2009/01/09 16:32Hi Klaas,
Not related to this latest change but I just noticed your remark on the port number. My CS uses port 5000 and so SC can use port 8080 in my case (and does)
Regards,
WouterQNAP TS-509 (1.6 MHz, 4 GB ) – Linux - PHP 5.2.11, MySQL 5.1.36 & Apache ??? – Swisscenter SVN [1405] Custom PC (2.8 MHz, 4GB ) – Windows 7 Pro - PHP 5.2.9-1, MySQL 5.1.32 & Simese v2.5.10 - Swisscenter SVN [1376] Synology CS407 (0.5 MHz, 128 ) – Linux - PHP 5.2.10, MySQL 5.1.34 & Apache
| | The administrator has disabled public write access.
klaasvaak
User
Posts: 1305
Re: Manual to install Swisscenter on Synology DSx0 - 2009/01/09 16:57Hi Wouter,
I suppose you didn't enable the "Surveillance Station" as this feature uses port 8080.
regards, Klaas --------------------------------------------------------------------------- SwissCenter SVN 1144 Simese 1.46 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15 Synology DS107+ (128), firmware: DSM 2.0-0702 Pinnacle SC200
| | The administrator has disabled public write access.
Dutchsea
User
Posts: 277
Re: Manual to install Swisscenter on Synology DSx0 - 2009/01/09 17:37Hi Klaas,
That must be it. For the reinstall I will use the port 8050 for SC as you suggest.
Thanks again,
WouterQNAP TS-509 (1.6 MHz, 4 GB ) – Linux - PHP 5.2.11, MySQL 5.1.36 & Apache ??? – Swisscenter SVN [1405] Custom PC (2.8 MHz, 4GB ) – Windows 7 Pro - PHP 5.2.9-1, MySQL 5.1.32 & Simese v2.5.10 - Swisscenter SVN [1376] Synology CS407 (0.5 MHz, 128 ) – Linux - PHP 5.2.10, MySQL 5.1.34 & Apache
| | The administrator has disabled public write access.
klaasvaak
User
Posts: 1305
Re: Manual to install Swisscenter on Synology DSx0 - 2009/01/10 06:57EDIT: WARNING
On January 5th, last Synology recently released bèta version "DSM 2.1-0803".
From this date the Synology firmware requires that all paths (and also all symbolic links) are case sentative. It's possible that this is not taken into account in your personal SwissCenter configuration; at least I didn't. This caused SwissCenter not to perform at all anymore after the firmware upgrade.
So, I suggest that before updating the firmware all paths (especially those pointing at the fonts and cache) are made case sensative.
The procedure to install SwissCenter on a Synology CS/DS remains the same.
regards, KlaaS --------------------------------------------------------------------------- SwissCenter SVN 1144 Simese 1.46 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15 Synology DS107+ (128), firmware: DSM 2.0-0803 Pinnacle SC200
| | The administrator has disabled public write access.
Hoorna
User
Posts: 34
Re: Manual to install Swisscenter on Synology DSx0 - 2009/02/06 07:32Hi Klaas,
Today I tried to install Swisscenter (version 1.22) on my DS106 with firmware DSM 2.0-731 using your manual. Unfortunately at step 12 there is a problem. The file Image.php from version 1.22 differs a lot from that in you manual and from Image.php on your webpage.
I have not checked if this is also the case with the file Image_screens.php.
Can you help me?SwissCenter 1.22 without SVN-updates Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15 Synology DS106 (64MB ), firmware: DSM 2.0-0731 Pinnacle SC1000g
| | The administrator has disabled public write access.
klaasvaak
Visitor
Re: Manual to install Swisscenter on Synology DSx0 - 2009/02/06 08:05Not sure what the problem is you're having, but you can use file "/base/image.php" and "/base/image_screens.php" from my web site.
Note that the website needs to be updated (which will happen soon), but the downloads are valid for V1.22.
Hope this solves your problems, if not drop a line,
regards, Klaas --------------------------------------------------------------------------- SwissCenter SVN 1167 Simese 1.46 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15 Synology DS107+ (128), firmware: DSM 2.0-0803 Pinnacle SC200
| | The administrator has disabled public write access.
Hoorna
User
Posts: 34
Re: Manual to install Swisscenter on Synology DSx0 - 2009/02/08 11:38Hi Klaas,
I have successfully installed Swisscenter on my DS106. The most is working now (I can hear music, see videos en see some photos) but I have a few problems.
The first problem is that on the Now Playing screen the text is missing. I get the blue screen with the two yellow stripes and with the correct Albumart but no text. I installed your arial font-files in the font directory (are they usable on a DS106?).
Second, I cannot get the most of my photos on my television: on the tv-screen I get the error (in yellow text) "Unkwown Format". There are a view photos that I can see: I think photos with a relatively low resolution.
I hope that you can help.
Greetings.SwissCenter 1.22 without SVN-updates Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15 Synology DS106 (64MB ), firmware: DSM 2.0-0731 Pinnacle SC1000g
| | The administrator has disabled public write access.
klaasvaak
User
Posts: 1305
Re: Manual to install Swisscenter on Synology DSx0 - 2009/02/08 12:13hoorna wrote:The first problem is that on the Now Playing screen the text is missing. Can you run the system tests? If the installation checks are displayed, the PHP block should mention the following: Successfully located a TrueType Font for generating "Now Playing" images.Is this check alright for your system?
In addition you may have a look at the “Miscellaneous Configuration” of the config menu and see and check the path of the TrueType font. This path has to point to the location of the font files. In my case this is:
Code:
/volume1/Web/svr/swiss/fonts/arial_tt%d.gdf
Pls note the path MUST be case sensitive.
Let me know the result and we can dig further if necessary.
hoorna wrote:Second, I cannot get the most of my photos on my television I don't have the "UNKNOWN FORMAT" problem, however, most photos don't play on a CS/DS. There's a ticket to solve this (see ticket 138).
regards, Klaas ---------------------------------------------------------------------------
SwissCenter SVN 1167
Simese 1.46 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP
Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15
Synology DS107+ (128), firmware: DSM 2.0-0803
Pinnacle SC200
| | The administrator has disabled public write access.
Hoorna
User
Posts: 34
Re: Manual to install Swisscenter on Synology DSx0 - 2009/02/08 14:02On the system test I get a red cross at the PHP test with the following message:
De volgende controles zijn geslaagd:
Uw PHP-versie wordt ondersteund. Alle noodzakelijke PHP-modules zijn beschikbaar. TrueType lettertype voor het genereren van "SPEELT NU" informatie gevonden.
De volgende controles zijn mislukt:
Niet alle voor SwissCenter aanbevolen PHP-modules (zip) zijn beschikbaar. Enkele niet-kritische functies zijn uitgeschakeld.
Is this all right?
The location of the font files on the "Miscellaneous Configuration" (Diversen) of of the config menu gives me the following:
/volume1/web/swisscenter/fonts/arial_tt21.gdf
This is what I filled in myself yesterday.
The system doesn't accept:
/volume1/web/swisscenter/fonts/arial_tt%d.gdf
When I tried to save this line I get the error:
De instellingen zijn opgeslagen.... maar het lettertype lijkt niet correct (of niet beschikbaar)
I will look at your suggestion for the display of photos
I am looking forward for your reaction.SwissCenter 1.22 without SVN-updates Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15 Synology DS106 (64MB ), firmware: DSM 2.0-0731 Pinnacle SC1000g
| | The administrator has disabled public write access.
klaasvaak
User
Posts: 1305
Re: Manual to install Swisscenter on Synology DSx0 - 2009/02/08 14:23Ah I see, your path is pointing at a font file that doesn't exist. While using to a fixed sized font (arial_tt21.gdf) your reference is pointing at various sized fonts.
I suggest you download four font sizes from here and paste them all in directory "/fonts". Then enter path
Code:
/volume1/Web/svr/swiss/fonts/arial_tt%d.gdf
again in config menu “Miscellaneous Configuration”. Now, the reference should be accepted and the text will be displayed at the "Now Playing"-screen.
regards, Klaas ---------------------------------------------------------------------------
SwissCenter SVN 1167
Simese 1.46 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP
Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15
Synology DS107+ (128), firmware: DSM 2.0-0803
Pinnacle SC200
| | The administrator has disabled public write access.
Hoorna
User
Posts: 34
Re: Manual to install Swisscenter on Synology DSx0 - 2009/02/08 15:36Thank you for your reply . I downloaded the font files and placed them in the font-directory. Then I filled in:
/volume1/web/swisscenter/fonts/arial_tt%d.gdf
The path was indeed accepted (Hoera) .... but ...... still no text in the "Now Playing screen".
What to do next?SwissCenter 1.22 without SVN-updates Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15 Synology DS106 (64MB ), firmware: DSM 2.0-0731 Pinnacle SC1000g
| | The administrator has disabled public write access.
klaasvaak
User
Posts: 1305
Re: Manual to install Swisscenter on Synology DSx0 - 2009/02/08 18:15Probably, you've got an outdated version of file "/base/image.php". The latest version fit for Synology you can download from here. Let's see if this works ...
regards, Klaas --------------------------------------------------------------------------- SwissCenter SVN 1167 Simese 1.46 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15 Synology DS107+ (128), firmware: DSM 2.0-0803 Pinnacle SC200
| | The administrator has disabled public write access.
Joe_999
User
Posts: 112
Re: Manual to install Swisscenter on Synology DSx0 - 2009/02/09 04:09Joe_999 wrote: Hi Klaas,
At least in my case SC config - systemtest page remains blank after update to SVN1034.
Also the use of your latest image.php, image_screens.php, music_radio_image.php didn´t resolve it.
Do you observe the same on your DS207+?
Regards
Joe
Klaas,
just to support Hoorna´s findings and my previous comment from Dec. 2008:
I also did a fresh install of SC on my DS207+ some days ago to the latest SVN and again after downloading your latest image.php and image_screen.php the SC config - systemtest page remained blank.
I then did few changes to the current SC image.php as proposed much earlier by you (April 2008?) and this problem was solved. I don´t know, however, how the play now screen looks like since I have the problem that the play now screen in SC due to my high resolution of 1080x1920 does not work flawlessly because of limited resources of the DS207+. I might try to use a "lighter" http server instead of the Apache as proposed somewhere else in the forum to solve this problem. Could it be that the RAID1 on my DS207+ absorbes resources that are available on your DS107+?
As soon I will have some time I will step into your´s and Hoorna´s investigations and report my observations.
Regards
JoeClients: Popcorn A-100 with 4 GB Flash-Memory, Mozilla Firefox on MS Win 7 Ultimate X64 Media storage on NAS: Synology DS207+ SC 1.22 latest SVN installed on DS207+ (RAID 1) with FW 2.3-1118 utilizing: Apache 2.2.13, MySQL 5.1.34, PHP 5.2.10 GbE network with Zyxel GS-108A PCH-A100 connected via HDMI in 1920x1080p to display.
| | The administrator has disabled public write access.
Hoorna
User
Posts: 34
Re: Manual to install Swisscenter on Synology DSx0 - 2009/02/09 08:36Hi Klaas,
I downloaded the latest image.php from your webpage unfortunately without success. My Now Playing screen is still the same (blue screen with two yellow stripes and albumart but no text).
greetings, Alfred
P.S. My situation differs from Joe_999. My config-page isn't blank: I can see the testresults with the icons.SwissCenter 1.22 without SVN-updates Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15 Synology DS106 (64MB ), firmware: DSM 2.0-0731 Pinnacle SC1000g
| | The administrator has disabled public write access.
klaasvaak
User
Posts: 1305
Re: Manual to install Swisscenter on Synology DSx0 - 2009/02/09 13:33Hi Afred & Joe,
Very odd, all works fine here.
Would you both pls post your files "/base/image.php" and "/base/image_screens.php", a log file when trying to get the "Now Playing"-screen and the exact path (mind the capitals) to your font directory and font files.
regards, Klaas --------------------------------------------------------------------------- SwissCenter SVN 1167 Simese 1.46 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15 Synology DS107+ (128), firmware: DSM 2.0-0803 Pinnacle SC200
| | The administrator has disabled public write access.
Dutchsea
User
Posts: 277
Re: Manual to install Swisscenter on Synology DSx0 - 2009/02/09 15:18Klaas. Joe & Hoorna,
FYI, I also have the blank system test page problem. It appeared after upgrading from SC 1.21.1 to SVN 1444
At the same time I could't access SC via my showcenter anymore. SC was only accessible via my pc or via Joe's trick described in this thread.
Below the support.log code (level 9) at the time I request the system test page.
[2009.02.09 20:38:46] SQL> select value from system_prefs where name='NEW_MESSAGES_CHECK_TIME' [2009.02.09 20:38:46] SQL> select value from system_prefs where name='MESSAGES_ENABLED' [2009.02.09 20:38:46] SQL> select value from system_prefs where name='INTERNET_SETTING' [2009.02.09 20:38:46] SQL> select value from system_prefs where name='INTERNET_CHECK_TIME' [2009.02.09 20:38:46] SQL> select value from system_prefs where name='INTERNET_AVAILABLE' [2009.02.09 20:38:46] ------------------------------------------------------------------------------ [2009.02.09 20:38:46] Page Requested : http://192.168.1.100:8050/config/? by client (192.168.1.8) [2009.02.09 20:38:46] SQL> select value from system_prefs where name='CACHE_STYLE_DETAILS' [2009.02.09 20:38:46] SQL> select value from system_prefs where name='DATABASE_PATCH' [2009.02.09 20:38:46] SQL> select value from system_prefs where name='CONFIG_PAGE_CHARSET' [2009.02.09 20:38:47] SQL> select value from system_prefs where name='SVN_REVISION' [2009.02.09 20:38:47] SQL> select value from system_prefs where name='SVN_REVISION' [2009.02.09 20:38:47] - File Stat of /index.php [2009.02.09 20:38:47] Array [2009.02.09 20:38:47] ( [2009.02.09 20:38:47] [0] => 2306 [2009.02.09 20:38:47] [1] => 45630516 [2009.02.09 20:38:47] [2] => 33188 [2009.02.09 20:38:47] [3] => 1 [2009.02.09 20:38:47] [4] => 1024 [2009.02.09 20:38:47] [5] => 100 [2009.02.09 20:38:47] [6] => 0 [2009.02.09 20:38:47] [7] => 11533 [2009.02.09 20:38:47] [8] => 1234208219 [2009.02.09 20:38:47] [9] => 1233356204 [2009.02.09 20:38:47] [10] => 1234207892 [2009.02.09 20:38:47] [11] => 4096 [2009.02.09 20:38:47] [12] => 24 [2009.02.09 20:38:47] [dev] => 2306 [2009.02.09 20:38:47] [ino] => 45630516 [2009.02.09 20:38:47] [mode] => 33188 [2009.02.09 20:38:47] [nlink] => 1 [2009.02.09 20:38:47] [uid] => 1024 [2009.02.09 20:38:47] [gid] => 100 [2009.02.09 20:38:47] [rdev] => 0 [2009.02.09 20:38:47] [size] => 11533 [2009.02.09 20:38:47] [atime] => 1234208219 [2009.02.09 20:38:47] [mtime] => 1233356204 [2009.02.09 20:38:47] [ctime] => 1234207892 [2009.02.09 20:38:47] [blksize] => 4096 [2009.02.09 20:38:47] [blocks] => 24 [2009.02.09 20:38:47] ) [2009.02.09 20:38:47] [2009.02.09 20:38:47] SQL> select value from system_prefs where name='CACHE_DIR' [2009.02.09 20:38:47] SQL> select value from system_prefs where name='CACHE_DIR' [2009.02.09 20:38:47] SQL> select value from system_prefs where name='PLAYLISTS' [2009.02.09 20:38:47] SQL> select value from system_prefs where name='PLAYLISTS' [2009.02.09 20:38:47] SQL> select value from system_prefs where name='PLAYLISTS' [2009.02.09 20:38:47] - PHP Version : 5.2.0 [2009.02.09 20:38:47] - Suggested PHP module 'zip' not installed [2009.02.09 20:38:47] SQL> select value from system_prefs where name='TTF_FONT' [2009.02.09 20:38:47] SQL> select value from system_prefs where name='TTF_FONT'
I will see if it helps to update my image.php and image_screen.phpQNAP TS-509 (1.6 MHz, 4 GB ) – Linux - PHP 5.2.11, MySQL 5.1.36 & Apache ??? – Swisscenter SVN [1405] Custom PC (2.8 MHz, 4GB ) – Windows 7 Pro - PHP 5.2.9-1, MySQL 5.1.32 & Simese v2.5.10 - Swisscenter SVN [1376] Synology CS407 (0.5 MHz, 128 ) – Linux - PHP 5.2.10, MySQL 5.1.34 & Apache
| | The administrator has disabled public write access.
Dutchsea
User
Posts: 277
Re: Manual to install Swisscenter on Synology DSx0 - 2009/02/09 17:00Update: I changed the image.php and image_screen.php files but the system test screen remains blankQNAP TS-509 (1.6 MHz, 4 GB ) – Linux - PHP 5.2.11, MySQL 5.1.36 & Apache ??? – Swisscenter SVN [1405] Custom PC (2.8 MHz, 4GB ) – Windows 7 Pro - PHP 5.2.9-1, MySQL 5.1.32 & Simese v2.5.10 - Swisscenter SVN [1376] Synology CS407 (0.5 MHz, 128 ) – Linux - PHP 5.2.10, MySQL 5.1.34 & Apache
| | The administrator has disabled public write access.
klaasvaak
User
Posts: 1305
Re: Manual to install Swisscenter on Synology DSx0 - 2009/02/09 17:09Did you use the latest fonts (four types) as well? regards, Klaas --------------------------------------------------------------------------- SwissCenter SVN 1167 Simese 1.46 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15 Synology DS107+ (128), firmware: DSM 2.0-0803 Pinnacle SC200
| | The administrator has disabled public write access.
Hoorna
User
Posts: 34
Re: Manual to install Swisscenter on Synology DSx0 - 2009/02/09 17:23Hi Klaas,
Here are the files you requested.SwissCenter 1.22 without SVN-updates Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15 Synology DS106 (64MB ), firmware: DSM 2.0-0731 Pinnacle SC1000g
| | The administrator has disabled public write access.
klaasvaak
User
Posts: 1305
Re: Manual to install Swisscenter on Synology DSx0 - 2009/02/09 17:25euh ... could you attach the files? thanks, Klaas --------------------------------------------------------------------------- SwissCenter SVN 1167 Simese 1.46 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15 Synology DS107+ (128), firmware: DSM 2.0-0803 Pinnacle SC200
| | The administrator has disabled public write access.
Hoorna
User
Posts: 34
Re: Manual to install Swisscenter on Synology DSx0 - 2009/02/09 17:36I sended you an email with the requested files.
greetings, AlfredSwissCenter 1.22 without SVN-updates Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15 Synology DS106 (64MB ), firmware: DSM 2.0-0731 Pinnacle SC1000g
| | The administrator has disabled public write access.
Joe_999
User
Posts: 112
Re: Manual to install Swisscenter on Synology DSx0 - 2009/02/09 18:15Hi Klaas,
if I use the files image.php and image_screen.php what I downloaded again from your webpage - I get a blank system test screen, - see the play now screen, however, without any text.
The file support_no_playing_info.log is the according log. Of course, I downloaded also again the gdf files from your webpage and had put them into .../web/svr/swiss/fonts.
If I use the attached image.php (from SVN1167) where I just replace @imagettftext ... and function get_text_width ... with your suggestions from July 2008 everything works fine for me! Pls. see also the according log: support_with_play_now_screen.log.
Probably, the files on your webpage (SVN1144) don´t match with my current SVN1167?
I didn´t try to implement your suggested changes into the SVN1167 files, probably that´s one problem in my case?
Clients: Popcorn A-100 with 4 GB Flash-Memory, Mozilla Firefox on MS Win 7 Ultimate X64 Media storage on NAS: Synology DS207+ SC 1.22 latest SVN installed on DS207+ (RAID 1) with FW 2.3-1118 utilizing: Apache 2.2.13, MySQL 5.1.34, PHP 5.2.10 GbE network with Zyxel GS-108A PCH-A100 connected via HDMI in 1920x1080p to display.
| | The administrator has disabled public write access.
Hoorna
User
Posts: 34
Re: Manual to install Swisscenter on Synology DSx0 - 2009/02/10 01:25Hi Klaas,
In this post I give it a new try to send you the files you requested yesterday. Yesterday evening I sent them by email also.
The exact path to my fontdirectory and fontfiles is "/volume1/web/swisscenter/fonts".
SwissCenter 1.22 without SVN-updates Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15 Synology DS106 (64MB ), firmware: DSM 2.0-0731 Pinnacle SC1000g
| | The administrator has disabled public write access.
Joe_999
User
Posts: 112
Re: Manual to install Swisscenter on Synology DSx0 - 2009/02/10 03:49Alfred,
probably, you might wanna try the image.php (based on SVN1167) what is included in my previous post in the log_0001.zip to see whether it works on your environment too? Just replace this file with the existing image.php (save it before) and keep all the other ones, except file.php, where the shell_exec needs to be replaced with the exec function.
JoeClients: Popcorn A-100 with 4 GB Flash-Memory, Mozilla Firefox on MS Win 7 Ultimate X64 Media storage on NAS: Synology DS207+ SC 1.22 latest SVN installed on DS207+ (RAID 1) with FW 2.3-1118 utilizing: Apache 2.2.13, MySQL 5.1.34, PHP 5.2.10 GbE network with Zyxel GS-108A PCH-A100 connected via HDMI in 1920x1080p to display.
| | The administrator has disabled public write access.
Hoorna
User
Posts: 34
Re: Manual to install Swisscenter on Synology DSx0 - 2009/02/10 06:33Hi Joe,
I will try your suggestion tonight when I am at home.
For reason of clearity because you forgot to mention image_screens.php: should I use the original image_screens.php from version 1.22 or the file which Klaas sent me earlier?SwissCenter 1.22 without SVN-updates Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15 Synology DS106 (64MB ), firmware: DSM 2.0-0731 Pinnacle SC1000g
| | The administrator has disabled public write access.
Joe_999
User
Posts: 112
Re: Manual to install Swisscenter on Synology DSx0 - 2009/02/10 09:06Hi Alfred,
just use the original one! In my case I only need to do the changes to the image.php, at least to get the system test screen and the play now screen displayed correctly. I don´t know whether there are other limitations on e.g. IP radio since Klaas also offers a modified third file to tackle some features there.
Good success!
JoeClients: Popcorn A-100 with 4 GB Flash-Memory, Mozilla Firefox on MS Win 7 Ultimate X64 Media storage on NAS: Synology DS207+ SC 1.22 latest SVN installed on DS207+ (RAID 1) with FW 2.3-1118 utilizing: Apache 2.2.13, MySQL 5.1.34, PHP 5.2.10 GbE network with Zyxel GS-108A PCH-A100 connected via HDMI in 1920x1080p to display.
| | The administrator has disabled public write access.
Hoorna
User
Posts: 34
Re: Manual to install Swisscenter on Synology DSx0 - 2009/02/10 10:22Hi Klaas,
Do you support Joe's opinion and suggestions or do you have an other opinion/suggestion?
AlfredSwissCenter 1.22 without SVN-updates Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15 Synology DS106 (64MB ), firmware: DSM 2.0-0731 Pinnacle SC1000g
| | The administrator has disabled public write access.
Hoorna
User
Posts: 34
Re: Manual to install Swisscenter on Synology DSx0 - 2009/02/10 15:29This evening I tested the suggestion of Joe. In the attached file you can find the testresults.
I think Joe's analysis is right. When I use his image.php I can see text on the Now Playing screen . Unfortunately this text is very, very small (almost not readabel). Furthermore this image.php gives a warning on the config page (sie also the attached file).
Gentlemen what should I do now. As you can see in my profile I use Swisscenter 1.22 without SVN updates. Which image.php, image_screens.php and music_radio_image.php files should I use and where can I find them? And is then the problem solved with the very, very small text?
On this moment I thank you all for the progress. We are getting quite close.
SwissCenter 1.22 without SVN-updates Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15 Synology DS106 (64MB ), firmware: DSM 2.0-0731 Pinnacle SC1000g
| | The administrator has disabled public write access.
Joe_999
User
Posts: 112
Re: Manual to install Swisscenter on Synology DSx0 - 2009/02/10 18:43Alfred,
it´s not an elegant solution to your missing GDF file in the other location .../swiss/....
However, until a good solution is found you could simply copy the arial12.gdf file located in the directory volume1/web/svr/swisscenter/fonts/ into a directory volume1/web/svr/swiss/fonts/ in order to obtain the missing file volume1/web/svr/swiss/fonts/arial12.gdf and the failures should be gone.
However, that´s not a nice solution just an interim one until we have got a good one!
What about the size of the text in this case?
JoeClients: Popcorn A-100 with 4 GB Flash-Memory, Mozilla Firefox on MS Win 7 Ultimate X64 Media storage on NAS: Synology DS207+ SC 1.22 latest SVN installed on DS207+ (RAID 1) with FW 2.3-1118 utilizing: Apache 2.2.13, MySQL 5.1.34, PHP 5.2.10 GbE network with Zyxel GS-108A PCH-A100 connected via HDMI in 1920x1080p to display.
| | The administrator has disabled public write access.
Hoorna
User
Posts: 34
Re: Manual to install Swisscenter on Synology DSx0 - 2009/02/11 01:58Hi Joe en Klaas,
To me it looks like if you guys are on different planets. A few days ago I got the fonts (and also image.php, image_screens.php) from Klaas via attached files with post on this forum. The fonts can also be found on Klaas' webpage. Now it seems a have the wrong php-files and there is a arial12.gdf missing (or arial_tt12.gdf?). It is confusing to me.
Furthermore if I temporary should make a new directory /volume1/web/svr/fonts (Joe's suggestion) or hardcode my own directory /volume1/web/swisscenter/fonts in image.php it wil not help. I do not have the right font.
Joe is it possible that you are using a mediaplayer with HD-quality and that you therefor need a different type of font. I have a SC1000g without HD-quality.
Klaas and Joe please help!!SwissCenter 1.22 without SVN-updates Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15 Synology DS106 (64MB ), firmware: DSM 2.0-0731 Pinnacle SC1000g
| | The administrator has disabled public write access.
klaasvaak
User
Posts: 1305
Re: Manual to install Swisscenter on Synology DSx0 - 2009/02/11 06:09Hi Joe and Afred,
Of couse you can revert back to the previous fonts and that will solve the issue. However, in the latest releases multiple sized fonts are used.
The problems could be caused by the fact the GDF-fonts are OS-depending, so different Linux systems require different GDF-fonts. In order to check this I suggest, you try my SwissCenter files (to be downloaded from here), after you've made a copy of your current SwissCenter. If you still don't have a working "Now Playing"-screen, I think we have to convert the GDF-fonts fit for your systems (I possibly "big endian").
regards, Klaas --------------------------------------------------------------------------- SwissCenter SVN 1172 Simese 1.46 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15 Synology DS107+ (128), firmware: DSM 2.0-0803 Pinnacle SC200
| | The administrator has disabled public write access.
Hoorna
User
Posts: 34
Re: Manual to install Swisscenter on Synology DSx0 - 2009/02/11 13:52Hi Klaas,
Thank you for your reply. I will try your suggestion tomorrow night.
Before testing I have a two questions. First in which directory should I put our swiss-centerfiles. Second, will your swisscenter-files corrupt my database?
AlfredSwissCenter 1.22 without SVN-updates Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15 Synology DS106 (64MB ), firmware: DSM 2.0-0731 Pinnacle SC1000g
| | The administrator has disabled public write access.
klaasvaak
User
Posts: 1305
Re: Manual to install Swisscenter on Synology DSx0 - 2009/02/11 15:06Hi Alfred,
No, your database won't be touched. The new SwissCenter files will pick-up the data from the DB.
However, I suggest you first update your SwissCenter to the latest SVN (at the moment 1172), then back-up your files and finally copy all files and directories in the same directory where you've stored them at the moment.
looking forward to hear the results, regards, Klaas --------------------------------------------------------------------------- SwissCenter SVN 1172 Simese 1.46 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15 Synology DS107+ (128), firmware: DSM 2.0-0803 Pinnacle SC200
| | The administrator has disabled public write access.
Hoorna
User
Posts: 34
Re: Manual to install Swisscenter on Synology DSx0 - 2009/02/12 14:51Hi Klaas,
Tonight I tested your suggestion. I backuped my files in the swisscenterdirectory, deleted all the files, placed your SVN1172 files in that directory and started the config-screen. Then in telnet I ran the chown- and chmod-commands to change the properties of the files. In the end I opened the config-screen. Everything was all right exept that the cache directory was not known, so I created the cache directory myself.
Then I tried to play music. Everything is oke exept ........ the text on the Now Playing screen: no the text.
Before you draw (the wrong?) conclusions you have to taken into account that the Now Playing screen worked with the image.php file with I got this week from Joe (exept that the text was very, very small and almost unreadable) . See his and mine forum-posts earlier this week. It seems to me that the fonts aren't the problem and that they are working on the DS106. It looks likes if something else causes the problem. Am I right?
I hope that you can give me a resolution.
greetings, Alfred
P.S. In the end I deleted your SVN1170 files and placed my swisscenterfiles back. Now I have an new problem: my config-screen is blank and the Now Playing screen remains black. Is this probably caused by updating my files to SVN1172 with I did earlier this evening?SwissCenter 1.22 without SVN-updates Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15 Synology DS106 (64MB ), firmware: DSM 2.0-0731 Pinnacle SC1000g
| | The administrator has disabled public write access.
klaasvaak
User
Posts: 1305
Re: Manual to install Swisscenter on Synology DSx0 - 2009/02/12 15:45Hi Afred,
Humm, that's no good news. Well, the "Now Playing"-image can be recovered by using the "/base/image.php" and "/base/image_screens.php" that you've downloaded from me (SVN 1170).
I expect there's an error with the link to the font folder, but what ...
I'll think it over again ... it should work, but it doesn't
regards, Klaas
PS Is there a way I can download your SwissCenter files, so I can have a closer look and do some tests? --------------------------------------------------------------------------- SwissCenter SVN 1172 Simese 1.46 / PHP 4.4.4 / MySQL 4.0.21 / Windows XP Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15 Synology DS107+ (128), firmware: DSM 2.0-0803 Pinnacle SC200
| | The administrator has disabled public write access.
Hoorna
User
Posts: 34
Re: Manual to install Swisscenter on Synology DSx0 - 2009/02/12 16:15Hi Klaas,
You are right with the using the image.php and image_screens.php from your SVN1170. The config-screen and Now Playing (without text) is working again.
You can download my swisscenter-files here. (The directories log and updates are missing!)
I really hope that you can find the error!! Please let know if I can help.SwissCenter 1.22 without SVN-updates Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15 Synology DS106 (64MB ), firmware: DSM 2.0-0731 Pinnacle SC1000g
| | The administrator has disabled public write access.
Hoorna
User
Posts: 34
Re: Manual to install Swisscenter on Synology DSx0 - 2009/02/13 04:01Hi Klaas,
I have red your posts from last week over and over again. With Google I eventually found that my DS106 has a Freescale 8241 processor; so it is big endian.
With that knowledge I converted your font-files with your ConvertGDFHeader.exe into new font-files with the same name. And what happens ........ IT WORKS NOW!! I have a working Now Playing screen.
I am sorry that I did not try this suggestion earlier. Despite of that: thank you very much.
greetings, AlfredSwissCenter 1.22 without SVN-updates Apache 2.2.8 / PHP 5.2.6 / MySQL 5.0.51b / Linux Synology 2.6.15 Synology DS106 (64MB ), firmware: DSM 2.0-0731 Pinnacle SC1000g
| | The administrator has disabled public write access.