Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/allendema/infomir_shifting
https://github.com/allendema/infomir_shifting
bash informir kernel linux m3u mag ministra portal script scripts stb vi
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/allendema/infomir_shifting
- Owner: allendema
- License: agpl-3.0
- Created: 2022-01-12T23:20:59.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-19T21:36:14.000Z (about 3 years ago)
- Last Synced: 2024-11-13T02:34:40.190Z (3 months ago)
- Topics: bash, informir, kernel, linux, m3u, mag, ministra, portal, script, scripts, stb, vi
- Homepage:
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### This will demonstrate a few command one can use to change
### the behaviour of MAG STBs from Infomir.
- https://www.infomir.eu/
- https://wiki.infomir.eu/eng/set-top-box/stb-linux-webkit/# Getting started
Seting up SSH
- The shipped Firmware has port 22 open for SSH-Connections.
- This is not the case if you updated the Firmware from Settings.
(You can install one with the port 22 open from: [https://soft.infomir.com/](https://soft.infomir.com/))- By default you can use user ```root``` and ```930920``` as user and password respectivly.
- You can change that to whatever you like, and/or set up SSH to use your public key.
- ```ssh-copy-id -i ~/.ssh/mykey root@mag_stb_IP```
- https://www.ssh.com/academy/ssh/copy-idPreventing "Your Portal is blocked"
- Infomir will try to connet to different domains to get a list of blocked portals.
- Download Portal domains to a file.
- Then it will be saved to ```/mnt/Userfs/data/ad.json```
- You can create a script to remove this file on every boot.- Open up ```vi``` to edit ```/etc/hosts```
- ```bash vi /etc/hosts```
- add following domains there:
- ```0.0.0.0 stat.infomir.com```
- ```0.0.0.0 .dbcs.infomir.com```- # If this does not do anything, alternate the NAND.
Create a backup of the file first
```scp /path/to/rdir_backup.sh root@MAG_IP_ADDRES:/usr/local/share/app/bin/rdir.sh```
Changing Mac Address, Serial Number, STB Model etc.### Printing current values
- Print current MACAddres with:
- ```/bin/sh /usr/local/share/app/bin/rdir.sh MACAddress```
- Print current Model with:- ```/bin/sh /usr/local/share/app/bin/rdir.sh Model```
### Changing MACAddress
- Open up ```vi``` to edit ```/usr/local/share/app/bin/rdir.sh```
- Find this line:
```dd if=/dev/$device bs=1 count=32 skip=$(($shft+32)) 2>/dev/null | strings -n1 | awk '{printf ("%s", $0); exit;}'```
and edit it to wanted MACAddres, see below.
- ``` dd if=/dev/$device bs=1 count=32 skip=$(($shft+32)) 2>/dev/null | strings -n1 | awk '{printf ("00:1A:79:00:00:00"); exit;}' ```### Changing STB Model
- ```vi /usr/local/share/app/bin/rdir.sh```
- Find ```dd if=/dev/$device bs=1 count=32 skip=$(($shft+96)) 2>/dev/null | strings -n1 | awk '{printf ("%s", $0); exit;}'```
and edit it to any other Informir device from MAG or Aura series.(AuraHD2 may come with the benifit of the option to install "apps" from Infomir portal ```http://apps.infomir.com.ua/```)
```dd if=/dev/$device bs=1 count=32 skip=$(($shft+96)) 2>/dev/null | strings -n1 | awk '{printf ("MAG254"); exit;}'``` or
```dd if=/dev/$device bs=1 count=32 skip=$(($shft+96)) 2>/dev/null | strings -n1 | awk '{printf ("AuraHD"); exit;}'```
Editing env. variables
### Printing env. varibles
```fw_printenv```
### Changing env. variables
You can change all the variables above
and [more](https://wiki.infomir.eu/eng/set-top-box/for-developers/stb-linux-webkit/customization/most-used-variables)
```fw_setenv portal2 http://example.org/c```
Load a portal with different Bootmedia bank
```cd /usr/local/share/app```
```./run.sh $PORTAL_TO_LOAD "file:///usr/local/share/app/web/system/pages/loader/index.html?bootmedia=bank0"```
Where bootmedia can be ```bank0``` or ```bank1```
Owerwriting cookies
Avoid eventual tracking by cookies
echo "1" > /mnt/Userfs/cookies.ini
Exit Vi
To save and exit use
```:wq```To exit without saving changes use
```:q!```