Jump to content


Pike_Bishop

Member Since 21 Aug 2011
Offline Last Active 02 Apr 2024 20:12
*****

#1457882 E2iPlayer Install Script !

Posted by Pike_Bishop on 5 June 2022 - 23:00

Hi,

 

@rantanplan is right, what a useless discussion.

anyone is free to rewrite my script themselves so that .tar.gz is used instead of .zip.

but ok when i have the time and the inclination i might do it myself.

 

 

regards

Pike




#1437966 script per cron starten, geht nicht !

Posted by Pike_Bishop on 13 March 2022 - 17:19

Das hätte schon noch geklappt, die cronjobs müssen da beim busybox cron ins File /etc/cron/crontabs/root

geschrieben werden.

Hättest mal nen cronjob per Befehl in telnet/ssh eingetragen also z.b: so;

(crontab -l 2>/dev/null; echo "0 2,3,4,5 * * 0,1,2,3,4 sh /usr/script/standby.sh") | crontab - 

hättest das sehen können wennst dich danach auf die Suche gemacht hättest wo der denn nun eingetragen wurde.

 

 

Grüsse

Pike




#1426566 Axas E4HD 4K - wie kann ich ein E2 Image in anderen Slot installieren?

Posted by Pike_Bishop on 4 February 2022 - 17:49

Hi,

 

Wenn per telnet dann so (für Slot 2);

ofgwrite -m2 -r -k /media/usb/e4hd

wenn das Image z.b: auf /media/usb liegt im Verzeichnis e4hd.

 

 

Grüsse

Pike




#1425262 E2iPlayer Install Script !

Posted by Pike_Bishop on 1 February 2022 - 03:51

Hi,

 

here is a new version with that you didn't need to install libcrypto-compat manually as you can see in post #7 from @blzr to solve the openssl error.

this does the script now automatically if it isn't installed in pli images.

 

 

regards

Pike

Attached Files




#1424902 E2iPlayer Install Script !

Posted by Pike_Bishop on 30 January 2022 - 20:14

good hint , thanks.

works too in openpli-8.0




#1424454 E2iPlayer Install Script !

Posted by Pike_Bishop on 29 January 2022 - 00:33

Hi,

 

i have written a script (in english language) with that you can install e2iplayer from git, it is for use with hotkey designated, and you can use this script also for updating e2iplayer.

it is only working from openpli-8.0 upwards, because it needs the program p7zip, and this isn't available before openpli-8.0 (it works also in openatv and openatv-7.x (python 3)).

 

so that e2iplayer and the script works it needs first the plugins (they are on feed);

enigma2-plugin-extensions-e2iplayer-deps

enigma2-plugin-extensions-ppanel

and the package (also on feed from openpli-8.0 upwards);

p7zip

 

if necessary the script installed this plugin{s}/package automatically, so it is nothing to do for users.

 

ok, so that the script works the following is to do (configuration);

 

1.) put the extracted script with name "e2iplayer_install_update_en.hidden.sh" on your box to the directory /usr/script (if this directory didn't exists create it first).

2.) make it executable with the following telnet/ssh command;

chmod 755 /usr/script/e2iplayer_install_update_en.hidden.sh

3.) put it on a button to your choice for hotkey, -> that's it.

 

please do not rename this script, because it needs .hidden in the name so that it works correct with hotkey in background.

 

now you can start the script with hotkey.

 

 

What did this script doing ?

 

it installed e2iplayer from git, out of the box it is configured for the e2iplayer from @zadmario, if users want to install instead

the e2iplayer version from @maxbambi they must change the line 13 in the script from that;

#FILE_ADRESS=https://gitlab.com/maxbambi/e2iplayer/-/archive/master/e2iplayer-master.zip

to that;

FILE_ADRESS=https://gitlab.com/maxbambi/e2iplayer/-/archive/master/e2iplayer-master.zip

and line 15 from that;

FILE_ADRESS=https://gitlab.com/zadmario/e2iplayer/-/archive/master/e2iplayer-master.zip

to that;

#FILE_ADRESS=https://gitlab.com/zadmario/e2iplayer/-/archive/master/e2iplayer-master.zip 

but edit the script only wih a unix-compatble editor as example with notepad++

 

but at the moment the e2iplayer from @zadmario is much better i think, so better you didn't change the lines above.

 

 

if you start the script now,(as i already said) it installed the e2iplayer, thereby you can see messages to this job on the osd from your tv

so that you know what is matter, and also it creates a logfile which you can found on your box in /tmp it is named _e2iplayer_install.log.

you can have a look in this logfile if the script didn't makes the job correct, but in this case you become also a message on the osd.

 

if the install from the e2iplayer is then ready. it needs a enigma2-gui restart, the script does this also automatically, but

if records are running at this time the script displaces the enigma2-gui restart to 10 minutes later, and this repeating until then till nothing record is running.

 

 

please note:

if you use (install) the e2iplayer version from @zadmario then after start from e2iplayer it comes a error as you can see in the following picture

(but this error is only a cosmetic problem because this e2iplayer still works good in openpli-8.0. 

 

openssl_error.jpg

 

This is the first file.

Attached File  e2iplayer_install_script_en_for_hotkey.zip   2.01KB   109 downloads

 

Here is the latest script

Attached File  e2iplayer_install_script_de_for_hotkey_vers-5.zip   4.24KB   22 downloads

 

regards

Pike




#1421118 OpenSSL als IPK nachinstallieren

Posted by Pike_Bishop on 17 January 2022 - 23:57

Hi,

 

Und hier noch was für Euch hier, hab im OpenATV ein Script geschrieben das den E2iPlayer immer am aktuellen Stand hält, das funktioniert hier in nem PLI-8.0

ebenfalls seit schon nun über nen Monat.

Das häng ich hier nun unten zum Downloaden an, das Script macht nix anderes als den E2iPlayer aus dem Git zu installieren (geht auch für python 3 also für Oatv-7.x, is hier aber nicht relevant).

 

Konfiguration des Scripts damit alles wie gewünscht läuft;

1.) Script entpacken und an der Box nach /usr script kopieren (wenns das Verzeichnis /usr script noch nicht gibt dann eben selber zuvor anlegen).

2.) Script ausführbar machen mit telnet/ssh Befehl wie folgt;

chmod 755 /usr/script/e2iplayer_install_update.hidden.sh

3.) Script mittels Hotkey auf ne Taste legen -> fertig.

 

Vorraussetzungen das der E2iPlayer im PLI läuft sind weiters die e2iplayer-deps, und auch das Plugin ppanel damit mein Script angewendet werden kann.

Die e2iplayer-deps kann man über den Feed (genauso wie auch das Plugin ppanel) installieren oder beides so wie folgt in telnet/ssh;

opkg update
opkg install enigma2-plugin-extensions-e2iplayer-deps
opkg install enigma2-plugin-extensions-ppanel

Das Script ist so wie es ist für die E2iPlayer Version von @zadmario eingestellt (aktualisiert so also auf die @zadmario Version).

 

Wer da stattdessen auf die Version von @maxbambi gehen wollen würde muss nur vor Zeile 13 die Raute wegnehmen und vor Zeile 15 ne Raute setzen, so damit das dann so aussieht;

# maxbambi
FILE_ADRESS=https://gitlab.com/maxbambi/e2iplayer/-/archive/master/e2iplayer-master.zip
# zadmario
#FILE_ADRESS=https://gitlab.com/zadmario/e2iplayer/-/archive/master/e2iplayer-master.zip

Das aber nur mit nem Linuxtauglichen Editor wie z.b: mit Notepad++ tun, es geht aber auch an der Box direkt mit dem FileCommander Plugin.

 

Das wärs schon, noch was abschliessend dazu, man muss das nicht verwenden denn das Plugin selbst (der E2iPlayer) sollte ja eh eine eigene UpdateRoutine haben

, doch ich habe das Script geschrieben da diese UpdateRoutine und auch die Update Möglichkeit übern Oatv Feed selbst damals ne Weile einfach nicht funktionieren wollte.

Seit dem aber verwende ich es selber öfters um bequem mal zwischen @zadmario und @maxbambi hin und her zu switchen

(wobei das aber eh grade keinen Sinn mehr macht, da bei der @maxbambi Version kaum noch was geht).

 

Na egal, wer will kanns verwenden, wer nicht der eben nicht, doch wenns jemand verwendet, das Script nicht umbenennen, und auch nur mit Hotkey verwenden, und

auch klar ist -> nach der Anwendung vom Script immer nen Enigma2-GUI Neustart machen.

 

Das Script kann sowohl zum Updaten der Version, als auch für ne Neuinstallation verwendet werden (wenn also noch gar kein E2iPlayer installiert ist).

Bei ner Neuinstallation aber ist darauf zu achten das zuvor zumindest die e2iplayer-deps, besser auch noch das Plugin ppanel (siehe oben) installiert wurden.

 

 

Grüsse

Pike

Attached Files




#1387566 Vpn manager

Posted by Pike_Bishop on 25 September 2021 - 23:28

Hi,

 

i have installed now openpli-8.1 and no problem, the trick for vpn manager works in openpli-8.1 also.

 

 

regards

Pike




#1357045 FS-Cache for NFS

Posted by Pike_Bishop on 9 June 2021 - 22:40

Hi,

 

Da sich hierzu keiner meldet, zeig ich dir mal wie ich das mache jedoch für cifs (aber is ja ein Anfang).

Ich hab dazu zwei Scripte -> einmal das init Script mit Namen start_synology_ds213_mount_script.sh , das sieht so aus;

#!/bin/sh

PATH_FOR_SCRIPT=/usr/script
SCRIPT_TO_START=synology_ds213_mount.sh

. /etc/default/rcS


sh $PATH_FOR_SCRIPT/$SCRIPT_TO_START &


: exit 0

Dieses init Script liegt an der Box in /etc/init.d und ruft lediglich ein weiteres Script (das wahre Script) auf was sich um den Rest kümmert.

Das init Script muss in den Startlevel verlinkt werden mit in diesem Fall;

cd /etc/rcS.d
ln -s ../init.d/start_synology_ds213_mount_script.sh S99start_synology_ds213_mount_script.sh

Das sogenannte wahre Script liegt dann an der Box in /usr/script und nennt sich synology_ds213_mount.sh . es sieht so aus;

#!/bin/sh

## Variablen ##
TMP=/tmp
LOGFILE=$TMP/synology_ds213_mount.log


exec 3>&1 4>&2
trap 'exec 2>&4 1>&3' 0 1 2 3
exec 1>$LOGFILE 2>&1

sleep 10

DATE="$(date +%a.%d.%b.%Y-%H:%M:%S)" && echo -e "\nDATUM: $DATE\n"

mkdir -p /synology/DiskStation

if ! mount -t cifs //192.168.178.22/video /synology/DiskStation -o vers=3.0,username=xxxxxx,password=xxxxxxxxx,_netdev,rw,soft,iocharset=utf8 ; then
	echo -e "\nABBRUCH !\nSynology DS213 mounten fehlgeschlagen.\n"
else
	echo -e "\nSynology DS213 erfolgreich gemountet.\n"
fi

exit

Die Scripte müssen natürlich ausführbar sein, das wird in diesem Fall mit folgenden Befehlen in telnet oder ssh erreicht;

chmod 755 /etc/init.d/start_synology_ds213_mount_script.sh
chmod 755 /usr/script/synology_ds213_mount.sh

Und das wars dann schon, nach nem Box Neustart wird dann immer das init Script gestartet welches immer das sogenannte wahre Script ausführt

welches wiederum mein synology NAS per cifs in das Verzeichnis /synology/DiskStation mountet.

 

Ist alles als Beispiel zu sehen denn du müsstest das ja alles an deine Wünsche bzw. Gegebenheiten anpassen.

 

 

Grüsse

Pike 




#1324587 Treibertausch et5x00, et6x00, et9x00

Posted by Pike_Bishop on 28 February 2021 - 20:01

Hi,

 

Ach ja hier noch das quasi Gegenscript also mit dem kannst die neuen Treiber installieren statt der alten Treiber.

Den Check ob ein Intaktes SEC-Board vorhanden ist hab ich da rausgenommen, denn die gehen ja auch bei nicht intaktem Sec-Board zu installieren soweit ich das glaube.

Das Script nennt sich dann halt et_new_drivers_install.hidden.sh und ist genauso einzurichten wie schon das Script um die alten Treiber zu installieren, also an der Box nach;

/usr/script

legen und mit folgendem Befehl ausführbar machen;

chmod 755 /usr/script/et_new_drivers_install.hidden.sh

und dann wieder per Hotkey auf ne Taste legen.

 

Mag sein das man aus den zwei Scripten auch eines machen könnte was halt abwechselnd erst die alten Treiber und bei erneuter Ausführung dann die neuen Treiber installieren würde,

dann wieder die alten Treiber usw..

aber dafür bräuchte ich ja einige Infos zu den bewussten Boxen ob ich da irgendwie anhand der Grösse die Treiber unterscheiden könnte oder mittels nem Zeitstempel

doch ist das vielleicht auch schon übertrieben in der Sache denn von diesen Boxen wirds ja irgenwann in der nächsten Zukunft eh kaum noch welche geben die laufen

, und die zwei Scripts tuns ja auch. 

 

 

Grüsse

Pike

Attached Files




#1324331 Treibertausch et5x00, et6x00, et9x00

Posted by Pike_Bishop on 28 February 2021 - 01:23

Hi rantanplan,

 

Na das hört sich doch schonmal ganz gut an.

Hier nochmal ne aufgeräumtere Version vom Script (hatte auch noch ne Message vergessen einzubauen falls Abbruch kommt weil kein intaktes Sec-Board vorhanden - ist jetzt auch drinnen).

Und ja sollte eh auch für die anderen Xtrend Boxen wie die et5000 und die et6000 klappen, nur kann das halt nur der testen der so ne Box hat.

 

Hätte trotzdem gerne noch das Logfile gesehen.  ;)

 

 

Grüsse

Pike

 

 

 

Attached Files




#1324311 Treibertausch et5x00, et6x00, et9x00

Posted by Pike_Bishop on 27 February 2021 - 23:08

Hi,

 

Ich häng das selbe Script lieber mal hier an zum Downloaden (nimm lieber das).

 

 

Grüsse

Pike

Attached Files




#1324307 Treibertausch et5x00, et6x00, et9x00

Posted by Pike_Bishop on 27 February 2021 - 23:00

Hi rantanplan,

 

Na dann teste mal bitte das hier;



​#!/bin/sh 
## Variablen ##
BOXIP=http://localhost
WGET=/usr/bin/wget
TMP=/tmp
LOGDIR=/home/root
LOGFILE=$LOGDIR/et_old_drivers_install.log


exec 3>&1 4>&2
trap 'exec 2>&4 1>&3' 0 1 2 3
exec 1>$LOGFILE 2>&1


# Close OSD Window.
$WGET -q -O - $BOXIP/web/remotecontrol?command=174 && sleep 2

# OSD Startmessage for Job Start incl. Starttime.
Startdate="$(date +%a.%d.%b.%Y-%H:%M:%S)" && echo -e "\nJOB START -> $Startdate !"
$WGET -O - -q "$BOXIP/web/message?text=Start%20Old%20Drivers%20Install%20...%20%20->%20%20$Startdate&type=1&timeout=10" > /dev/null && sleep 10

# Function to stop E2.
e2_stop() {
	echo -e "\nStopping E2 and Install the Old Drivers !\nAnd at last the Box is rebooting complete...\n"
	$WGET -O - -q "$BOXIP/web/message?text=Stopping%20E2%20and%20Install%20the%20Old%20Drivers%20%21&type=1&timeout=10" > /dev/null
	sleep 10 && init 4
}


# Check if a intact Sec-Board is present.
if lsusb | grep dead:beef ; then
	echo -e "\nIntact Sec-Board present.\n"
else
	echo -e "\n\nABORT !\nNo intact Sec-Board found,\ntherefore it isn't fit for Old Drivers.\n" && exit 1
fi

# Check which Boxtype.
#BOX="$(cat /proc/stb/info/boxtype)"
BOX="$(cat /proc/stb/info/boxtype | cut -b 1-3)"

# Check which is the Kerneldir (needed to extract the Old Drivers in the correct Dir).
KERNELDIR="$(ls -l /lib/modules | awk '{print $NF}')"


# Install the old drivers if the E2-Box is a et9x00, it needs the first line under "# Check which Boxtype."
# which is out commented (it's a possibility with array), but now we use easier possibiltiy instead.
#et9=(et9x00 et9000 et9100 et9200 et9500)
#for i in "${et9[@]}"; do
#	if [ "$i" = "$BOX" ] ; then 
#	echo -e "BOX = "$i"\n"
#	$WGET -P $TMP https://github.com/neo-pli-bsps/meta-xtrend/releases/download/Binaries-1.0/et9x00-drivers-3.8.7-20130524.zip
#	fi
#done

# Install the Old Drivers for Xtrend Boxes as et5x00, et6x00, or et9x00.
case $BOX in
	et5)
	echo -e "BOX = et5x00\n"
	$WGET -P $TMP https://github.com/neo-pli-bsps/meta-xtrend/releases/download/Binaries-1.0/et5x00-drivers-3.8.7-20130524.zip
	e2_stop
	unzip -o $TMP/et5x00-drivers-3.8.7-20130524.zip -d /lib/modules/$KERNELDIR/extra
	chmod 644 /lib/modules/$KERNELDIR/extra/*
	;;
	et6)
	echo -e "BOX = et6x00\n"
	$WGET -P $TMP https://github.com/neo-pli-bsps/meta-xtrend/releases/download/Binaries-1.0/et6x00-drivers-3.8.7-20130524.zip
	e2_stop
	unzip -o $TMP/et6x00-drivers-3.8.7-20130524.zip -d /lib/modules/$KERNELDIR/extra
	chmod 644 /lib/modules/$KERNELDIR/extra/*
	;;
	et9)
	echo -e "BOX = et9x00\n"
	$WGET -P $TMP https://github.com/neo-pli-bsps/meta-xtrend/releases/download/Binaries-1.0/et9x00-drivers-3.8.7-20130524.zip
	e2_stop
	unzip -o $TMP/et9x00-drivers-3.8.7-20130524.zip -d /lib/modules/$KERNELDIR/extra
	chmod 644 /lib/modules/$KERNELDIR/extra/*
	;;
	*)
	$WGET -O - -q "$BOXIP/web/message?text=ABORT%20%20->%20%20%28%20No%20matching%20Xtrend-Box%20found%20%29%20%21&type=3" > /dev/null
	echo -e "\n\nABORT !\nNo matching Xtrend-Box found.\n" && exit 1
	;;	
esac


# Complete Restart of the Box.
init 6

exit

 

Mal gucken ich hab ja keine Xtrend zum Testen.

Wichtig ist das du das Script mit nem Linux Kompatiblen Editor erstellst und benenn es z.b: et_old_drivers_install.hidden.sh wobei das hidden in der Bezeichnung ist sehr wichtig,

denn nur durch das kannst das so verwenden mit Hotkey das es im Hintergrund läuft.

Andernfalls würde ein Fenster geöffnet bleiben was nur stört da wir ja das Fenster schliessen und die Messages per WebIf und wget ausgeben, ausserdem gibt es Logging dazu.

 

Das Script kommt an der Box nach /usr/script und dann mit Befehl (z.b: in telnet);

chmod 755 /usr/script/et_old_drivers_install.hidden.sh

ausführbar machen.

Und zuletzt auf ne Taste mit Hotkey legen und dann starten.

Das Logfile lass ich nach /home/root schreiben (es nennt sich et_old_drivers_install.log) da ja durch den Neustart /tmp geleert wird und so gäbe es das Logfile ja dann nicht mehr.

Dieses Logfile hätte ich gerne gesehen wennst getestet hast.

 

 

Grüsse

Pike




#1315811 Check OPENVPN

Posted by Pike_Bishop on 6 February 2021 - 01:32

hi,

 

for external ip i use a script as following;

#!/bin/sh

echo "original IP:\tXX.XXX.XXX.XXX"
ACTIVE_IP=$(wget -qO- http://ipecho.net/plain ; echo)
echo -e "active IP:\t$ACTIVE_IP"

exit

in the second line you can write instead the  XX.XXX.XXX.XXX your right ip from your provider so that it shows booth, the provider ip and the openvpn ip (good to compare).

if you want to use it without script then that;

wget -qO- http://ipecho.net/plain ; echo

is enough.

 

and for the other thing;

ps  | grep -v grep | grep openvpn

regards

Pike




#1269424 Mediaportal installieren klappt nicht

Posted by Pike_Bishop on 3 November 2020 - 02:30

Hi,

 

Ich hab hier PLI-7.2 da konnte ich es sehr einfach installieren soweit ich mich erinnere musste ich da nix nachinstallieren extra (is schon lange her wieder inzwischen)

(wobei ich das Mediaportal aber eh schon seit Langem nicht mehr nutze da da eh nix mehr dabei ist was mich interessieren würde).

 

Wenn was fehlt wie z.b: python-mechanize dann installiert man das so wie folgt in etwa über telnet nach;

opkg update
opkg install python-mechanize

Man kann auch gucken ob es das Paket für die Box gibt in etwa so;

opkg list | grep python-mech

da kommt z.b: hier das;

python-mechanize - 0.2.5-r2.2 - python-mechanize version 0.2.5-r2
python-mechanize - 0.2.5-r2.1
python-mechanize-dbg - 0.2.5-r2.2 - python-mechanize version 0.2.5-r2 - Debugging files
python-mechanize-dev - 0.2.5-r2.2 - python-mechanize version 0.2.5-r2 - Development files
python-mechanize-src - 0.2.5-r2.2 - python-mechanize version 0.2.5-r2

also Paket da, aber @rantanplan hat natürlich recht wirst was neueres flashen müssen erst, denn PLI-7.1 ist alt

und wer weiss ob da noch ein Feed dafür vorhanden ist (wenn nicht kannst ja nix mehr nachinstallieren), also PLI-7.3 installieren und dann gucken was geht.

 

 

Grüsse

Pike