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/)
-
By default you can use user
root
and930920
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-id
Preventing "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
- Then it will be saved to
-
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 <your STB model>.dbcs.infomir.com
-
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.
-
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
- 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;}'
-
-
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
fw_printenv
You can change all the variables above
and more
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 cookiesecho "1" > /mnt/Userfs/cookies.ini
Exit Vi
To save and exit use
:wq
To exit without saving changes use
:q!