←  [EN] Third-Party Development

Forums

»

Error PPanel from DM800se

zaccomass's Photo zaccomass 1 Feb 2012

Good evening, I would like to download the settings from my web space and tried to change the PPanel.xml like this:

<file name="My Setting"
url="http://my-space/sett...ng/mono.tar.gz"
target="/tmp/mono.tar.gz"
runAfter="tar -xvzf /tmp/mono.tar.gz -C /; rm -f /tmp/mono.tar.gz /; reboot"
confirmation="Confirm?"/>


Now it happens that hangs at the end of the download and run the following commands to exit I press the remote control!

What's wrong?
Edited by zaccomass, 1 February 2012 - 22:13.
Quote

dAF2000's Photo dAF2000 2 Feb 2012

Welcome on this forum.
First, make small steps. Remove the runAfter and see if it downloads the file. Then add the tar command, etc. and see where it goes wrong.
Quote

zaccomass's Photo zaccomass 6 Feb 2012

Welcome on this forum.
First, make small steps. Remove the runAfter and see if it downloads the file. Then add the tar command, etc. and see where it goes wrong.


Thanks dAF2000 , in reference to the above information, I could give a practical example, please?
Quote

dAF2000's Photo dAF2000 6 Feb 2012

Well, just start with this:

<file name="My Setting"
url="http://my-space/sett...ng/mono.tar.gz"
target="/tmp/mono.tar.gz"
confirmation="Confirm?"/>

(without the runAfter)

And check if the file /tmp/mono.tar.gz is updated. I that works fine, you know the download works.
Quote

zaccomass's Photo zaccomass 7 Feb 2012

Hello DAF2000, I made the test good and download the file mono.tar.gz in to / tmp but now is missing the part that, automatically, unzip the tar.gz file and run the next reloading setting?

Last thing on the screen I get stuck at 100% of the white bar feed and download to get over it I have to press exit on the remote, why?

Thanks
Edited by zaccomass, 7 February 2012 - 10:02.
Quote

dAF2000's Photo dAF2000 7 Feb 2012

Hello DAF2000, I made the test good and download the file mono.tar.gz in to / tmp but now is missing the part that, automatically, unzip the tar.gz file and run the next reloading setting?

That's because we've removed the runAfter. I just wanted to know if the download is right. If you add that line, it should unzip again:

runAfter="tar -xvzf /tmp/mono.tar.gz -C /; rm -f /tmp/mono.tar.gz ; reboot"

(By the way, "reboot" is not a very nice solution to reload the settings. But it works, anyway)

Last thing on the screen I get stuck at 100% of the white bar feed and download to get over it I have to press exit on the remote, why?

Thanks

That's strange. It should just download without any pressing any key on the remote. I have no answer to that. You could try another file from the internet to test if there's something wrong with the server on http://my-space.
Quote

zaccomass's Photo zaccomass 7 Feb 2012


Hello DAF2000, I made the test good and download the file mono.tar.gz in to / tmp but now is missing the part that, automatically, unzip the tar.gz file and run the next reloading setting?

That's because we've removed the runAfter. I just wanted to know if the download is right. If you add that line, it should unzip again:

runAfter="tar -xvzf /tmp/mono.tar.gz -C /; rm -f /tmp/mono.tar.gz ; reboot"

(By the way, "reboot" is not a very nice solution to reload the settings. But it works, anyway)

Last thing on the screen I get stuck at 100% of the white bar feed and download to get over it I have to press exit on the remote, why?

Thanks

That's strange. It should just download without any pressing any key on the remote. I have no answer to that. You could try another file from the internet to test if there's something wrong with the server on http://my-space.


The problem unfortunately is that if the bar of the download stops at 100% and rhyme do not press exit on remote control executes the command in "runAfter" I also tried with other links but it is the same.
Quote

zaccomass's Photo zaccomass 7 Feb 2012

I add ...
Could you kindly tell me a Dovo your link I can download any plugins for Enigma2 like OpenVPN, driver DDTUSB ecc ecc thanks.
Edited by zaccomass, 7 February 2012 - 10:58.
Quote

dAF2000's Photo dAF2000 7 Feb 2012

Try this as PPanel:

<execute name="My Setting"
target="wget -O /tmp/mono.tag.gz http://my-space/setting/mono.tar.gz; tar -xvzf /tmp/mono.tar.gz -C /; rm -f /tmp/mono.tar.gz; reboot"
confirmation="Confirm?"/>
Quote

zaccomass's Photo zaccomass 7 Feb 2012

Try this as PPanel:

<execute name="My Setting"
target="wget -O /tmp/mono.tag.gz http://my-space/setting/mono.tar.gz; tar -xvzf /tmp/mono.tar.gz -C /; rm -f /tmp/mono.tar.gz; reboot"
confirmation="Confirm?"/>


Ok this also works if you open a blank interface (with a square frame), so at that point you do not know what to do and then restarts automatically, however it may go.

While for a link where you can download plugins for Enigma2 like OpenVPN, etc. etc. DDTUSB driver???
Quote

dAF2000's Photo dAF2000 7 Feb 2012

While for a link where you can download plugins for Enigma2 like OpenVPN, etc. etc. DDTUSB driver???

You need to use "opkg install <package>" to install plugins. Simply downloading a plugin doesn't work (in most cases).
Quote

zaccomass's Photo zaccomass 7 Feb 2012


While for a link where you can download plugins for Enigma2 like OpenVPN, etc. etc. DDTUSB driver???

You need to use "opkg install <package>" to install plugins. Simply downloading a plugin doesn't work (in most cases).

Sorry but where can I download the packages?
Quote

dAF2000's Photo dAF2000 7 Feb 2012

Sorry but where can I download the packages?

You can't download them. Only opkg install works.
Quote

zaccomass's Photo zaccomass 7 Feb 2012


Sorry but where can I download the packages?

You can't download them. Only opkg install works.

Sorry but maybe I expressed myself badly, I wanted to ask, since I'm not very good, how do I complete the command to download the package
well ..... if you use a terminal command is:

ipkg install / tmp / xxxxx.ipk

so how do I know what it's called the package (in my case openvpn) to put in place of xxxxxx??
Quote

dAF2000's Photo dAF2000 7 Feb 2012

"opkg list" gives you a list of all packages you can install. In that list you will see OpenVPN is called "openvpn".
To install it: opkg install openvpn

That's the only right way to install packages.
Quote

zaccomass's Photo zaccomass 7 Feb 2012

"opkg list" gives you a list of all packages you can install. In that list you will see OpenVPN is called "openvpn".
To install it: opkg install openvpn

That's the only right way to install packages.

ok, last thing I just installed the latest OpenPLi-2.1-beta-20120207-dm800se, I wanted to ask if there is the possibility to disable the green button (download plugin) in the Plugins menu, thank you.
Quote

dAF2000's Photo dAF2000 7 Feb 2012

I don't know, can't help you with that. I never disabled the green button before.
Quote

zaccomass's Photo zaccomass 7 Feb 2012

I don't know, can't help you with that. I never disabled the green button before.


Ok, but why in this picture I can not find the folder with the file PPanel_tutorial.xml??

I can create myself and where?
Edited by zaccomass, 7 February 2012 - 12:32.
Quote

zaccomass's Photo zaccomass 7 Feb 2012

Fixed by looking at the position where it was in the old image that is in etc/ppanels ok
Quote