PDA

View Full Version : h9s se mac adress change



illias28
16-03-22, 12:35
Hi, could you please help me to change the mac adress of my zgemma h9s se.
i have found a tuto in zgemma.org but it dosent work ,when i type the command "macprog" i get an error message "command unknown"
i have also tried all methodes found in other sites using telnet, and the option in openvix image to change mac adress, but in vaine.
thank you.

twol
16-03-22, 13:46
in OpenViX:...... menu/setup/network/device/Network setup/Network MAC settings

illias28
16-03-22, 20:15
thank you Twol for your help,but i have already tested this methode but it doesn't work.
i have run the commande " ifconfig" in telnet and i recieved the following report((see image))

twol
16-03-22, 20:28
thank you Twol for your help,but i have already tested this methode but it doesn't work.
i have run the commande " ifconfig" in telnet and i recieved the following report((see image))

Sorry cannot see the imaeg .. too small
all I can say is that I have used it to switch Mac addresses when testing Stalker and it worked fine.

illias28
16-03-22, 21:05
63474
sorry for small image. try to open it with paint please

illias28
16-03-22, 21:12
Sorry once again for small image .here is another one63475

twol
16-03-22, 21:40
So why do you want to switch mac addresses

maxben
16-03-22, 23:16
The ViX method of changing the mac only works on wired lan, it looks like the OP is using wireless.

twol
17-03-22, 05:28
The ViX method of changing the mac only works on wired lan, it looks like the OP is using wireless.

Thanks for clarification

maxben
17-03-22, 11:14
The ViX method for changing mac relies on 2 files both named hwmac.

One lives in etc/enigma2 which is the file created using ViX ui.

The other lives in /etc/network/if-pre-up.d and contains



#!/bin/sh

[ "x$IFACE" != "xeth0" -a "x$IFACE" != "x--all" ] && exit 0

if [ -f /etc/enigma2/hwmac ]; then
macadr=`cat /etc/enigma2/hwmac`
if [ "$macadr" != "" ];then
busybox ip link set addr $macadr dev eth0 2>/dev/null || :
fi
fi


Perhaps this can be modified for wireless and ideally there should be a choice of either selectable from the UI

Over to you @twol :)

twol
17-03-22, 11:37
Will look later - thanks

illias28
17-03-22, 11:47
thank you all for your help; yes i am using wifi to connect to internet.what should i change in the files HWMAC to change the mac adress.
the reason for me to change mac adress: for one month i have hade an abonnement in supcam on a vuplus solo2;but now i have bought a zgemma h9 s se 4k;i have tried to use my abonnement on this reciever but it doesnt work.i have contacted the provider and he told me that it is not possible because of the mac adress ; an that i should buy another abonnement for the new reciever. i have read in some forums that the providers could reset the mac adress ,but it seems that this one is only a resseller with no knowledge in this domaine.thats why i am trying to change my mac adress but in vain.

dsayers
17-03-22, 11:58
If it's IPTV via Mac address there's a way to change Mac address via stalker Qt plugin
https://www.linuxsat-support.com/thread/132830-stalker-portal-on-enigma2/?postID=521750#post521750

That might need editing for py3.

twol
20-03-22, 11:28
@illias28 - so I have code now to change teh Mac address for a WiFi connection(still have to test), but as I have now found out (!), there is one MAC Address for the wired (Ethernet) connection and a second MAC for the wireless connection.
The WiFi Mac address is also much longer than the Lan Mac address - so not sure you can swap them - (maybe linked somehow to WiFi password)
... and I am guessing that you have given your supplier the Lan Mac address - as that is the one displayed currently

So changing the WiFi Mac address may not help you.

Anyway I will finish testing code and then post for you to try if you want to do this.

illias28
20-03-22, 13:58
Hi,
thank you very much for all of you for your help;and specialy to TWOL
i have finally changed my mac adress after i have used ethernet conexion .but this is impossible with wifi.
i hope there will be a solution for wifi conexion in the future,because i would like to use my reciever with wifi since the router is far from my reciever.

urie
20-03-22, 16:01
Hi,
thank you very much for all of you for your help;and specialy to TWOL
i have finally changed my mac adress after i have used ethernet conexion .but this is impossible with wifi.
i hope there will be a solution for wifi conexion in the future,because i would like to use my reciever with wifi since the router is far from my reciever.
buy a set of homeplugs

maxben
21-03-22, 00:03
@illias28 - so I have code now to change teh Mac address for a WiFi connection(still have to test), but as I have now found out (!), there is one MAC Address for the wired (Ethernet) connection and a second MAC for the wireless connection.
The WiFi Mac address is also much longer than the Lan Mac address - so not sure you can swap them - (maybe linked somehow to WiFi password)
... and I am guessing that you have given your supplier the Lan Mac address - as that is the one displayed currently

So changing the WiFi Mac address may not help you.

Anyway I will finish testing code and then post for you to try if you want to do this.

Mac address for wired and wireless is exactly the same length

root@zgemmah9twin:~# ifconfig

eth0 Link encap:Ethernet HWaddr 00:1D:EC:xx:xx:xx

wlan0 Link encap:Ethernet HWaddr 74:EE:2A:xx:xx:xx

I can also test this when you have it ready.

twol
21-03-22, 07:56
Mac address for wired and wireless is exactly the same length

root@zgemmah9twin:~# ifconfig

eth0 Link encap:Ethernet HWaddr 00:1D:EC:xx:xx:xx

wlan0 Link encap:Ethernet HWaddr 74:EE:2A:xx:xx:xx

I can also test this when you have it ready.

Thanks - yes when I check in the debug log, rather than in TV, its exactly same length!
Plan to test this morning then post the change to test

illias28
23-03-22, 14:50
Hi TWOL,
thank you very much for you help,could you please send your code to change mac adress for wifi

twol
23-03-22, 16:39
I am still testing, …….. a few issues.

twol
24-03-22, 11:05
@ALL ... attached are 2 module changes for testing the WiFi MAC reset.
I would suggest that everyone who tests this, runs a settings backup beforehand .... as far as I can see it should be OK, but ..........
So to test.
Please enable debug logs... Menu/setup/system/log/settings ---- enable and save to hdd not flash
Restart.

1. putty - login (root and user password) and then type init 4 (space between)
2. filezilla.
in /usr/lib/enigma2/python/Components rename Network.pyc to xNetwork.pyc, then copy Network.py (from attachment) to /usr/lib/enigma2/python/Components
in /usr/lib/enigma2/python/Screens rename NetworkSetup.pyc to XNetworkSetup.pyc, then copy NetworkSetup.py (from attachments) to /usr/lib/enigma2/python/Screens

3. putty - enter init 6 (space between)

4. post results and debug logs

ccs
24-03-22, 13:08
I've tried it on 6.1.003.005 (Dev), works ok as far as I can tell. Changing the mac address and rebooting remembers the new version.

Putting back the original value and wifi still works.

NB Debug logs will contain encryption keys/passwords.

My VU Ultimo4k doesn't remember wifi values (by default) after a settings restore, I needed to add /etc/wl.conf.wlan3 to backups ages ago.

ET10K wifi gets backed up ok without any need for changes.

twol
24-03-22, 13:27
@ccs …. Really appreciate the testing, many thanks.
does this mean we should be adding more settings to the settings backup if they are present in the image?
i rarely use the wifi connections, so no knowledge …. Thought it was backed up by default

ccs
24-03-22, 13:38
@ccs …. Really appreciate the testing, many thanks.
does this mean we should be adding more settings to the settings backup if they are present in the image?
i rarely use the wifi connections, so no knowledge …. Thought it was backed up by default

I mentioned it when I first got the Ultimo4K (it has built in wifi), but moved over to a wired lan a few weeks later, so it kind of got forgotten.

I worked out what was needed for that specific box when trying out something using wifi, but never reported it.

The ET10K (USB dongle, RTL8192cu, it comes pre-loaded) backs up /etc/wpa_supplicant.conf and /etc/wpa_supplicant.wlan0.conf. I've never added them.

They're even in a Hades backup from 7 years ago. :thumbsup:

ccs
24-03-22, 14:35
The ET10K (USB dongle, RTL8192cu, it comes pre-loaded) backs up /etc/wpa_supplicant.conf and /etc/wpa_supplicant.wlan0.conf. I've never added them.

They're in https://github.com/OpenViX/vix-core/blob/master/src/BackupManager.py

illias28
24-03-22, 15:27
Hi,many thanks for your help, i will try it tonight and give you feed back.

ccs
24-03-22, 15:42
They're in https://github.com/OpenViX/vix-core/blob/master/src/BackupManager.py

.... and have been for at least the last 10 years.

maxben
24-03-22, 16:15
Followed your instructions, wireless connection up on reboot.

Crashes when entering wireless device.

twol
24-03-22, 16:46
Followed your instructions, wireless connection up on reboot.

Crashes when entering wireless device.

So you changed the MAC address, waited for the 2 messages to say network completed and then rebooted? … and then crashed after???

ccs
24-03-22, 18:08
I've just tried again using the changed (new) mac address and all is ok. Also changing from wlan to lan and back again is ok.

twol
24-03-22, 18:18
@maxben … I tested using a h9combo so similar to yours (basically same image) - the wifi initialisation on this box is really, really slow, so between pressing OK to change the MAC and the final finished message is at least 90 seconds if not longer….so thats why I asked about the 2 messages, as it doesn‘t stop you changing menu.s while its doing the change.

The error is not in the changed code but in plugin initialisation.

ANyway will test again tomorrow!

maxben
24-03-22, 18:23
So you changed the MAC address, waited for the 2 messages to say network completed and then rebooted? … and then crashed after???

Selecting either of these causes the crash, don't see anyway of selecting any thing other.

I see nowhere to change the mac!

twol
24-03-22, 18:25
Selecting either of these causes the crash, don't see anyway of selecting any thing other.

I see nowhere to change the mac!

Which version of OpenViX are you on?? Looks like 6.008 ??

Just realised it crashed before changing the MAC address????

ccs
24-03-22, 18:40
.... still works ok for me if I start the process when using wlan. (Other tests started with an active lan.)

ccs
24-03-22, 20:02
Crash now partially understood, so testing can be put on hold for the moment.

maxben
24-03-22, 21:27
Which version of OpenViX are you on?? Looks like 6.008 ??

Just realised it crashed before changing the MAC address????

yes 6.008

Don't get chance to change mac, as above crash happens when trying to enter WLAN or LAN

twol
24-03-22, 21:51
yes 6.008

Don't get chance to change mac, as above crash happens when trying to enter WLAN or LAN

OK, so it looks as if you need to be on 6.1 to handle this change.

Huevos
25-03-22, 13:59
OK, so it looks as if you need to be on 6.1 to handle this change.So you will have to wait a little while.

maxben
25-03-22, 16:48
So you will have to wait a little while.

I don't actually need it so no probs here.