OESF Portables Forum

Model Specific Forums => Gemini PDA => Gemini PDA - Linux => Topic started by: Wormhole on June 13, 2018, 08:48:25 am

Title: Changing wifi MAC address and connmanctl in debian?
Post by: Wormhole on June 13, 2018, 08:48:25 am
Does anyone experience that the MAC address changes on boot? I use the mac address to bind static ip. But it is maybe better to instruct debian to use a static ip.
Also the connmanctl won't remeber the wifi passpharse, only often. Strange...
Title: Changing wifi MAC address and connmanctl in debian?
Post by: Murple2 on June 13, 2018, 09:06:26 am
Quote from: Wormhole
Does anyone experience that the MAC address changes on boot? I use the mac address to bind static ip. But it is maybe better to instruct debian to use a static ip.
Also the connmanctl won't remeber the wifi passpharse, only often. Strange...

Is this with the wifi or the ethernet?

There may be a way to pass the MAC address as a kernel option at boot. If not then you can use the programs ip or macchanger, but you need to do this before the network is brought up - this can be achieved by creating a systemd unit file.  See here: https://wiki.archlinux.org/index.php/MAC_ad...ng#systemd_unit (https://wiki.archlinux.org/index.php/MAC_address_spoofing#systemd_unit)

If you know which network driver you are using you can google it and see how MAC address is usually set. Sometimes
there just needs to be a file with the address in that is read when the driver loads.
Title: Changing wifi MAC address and connmanctl in debian?
Post by: Adam Boardman on June 13, 2018, 09:37:16 am
Quote from: Wormhole
Does anyone experience that the MAC address changes on boot?

Once you've done the updates it seems to settle down.
Title: Changing wifi MAC address and connmanctl in debian?
Post by: Wormhole on June 13, 2018, 05:49:09 pm
Quote from: Murple2
Quote from: Wormhole
Does anyone experience that the MAC address changes on boot? I use the mac address to bind static ip. But it is maybe better to instruct debian to use a static ip.
Also the connmanctl won't remeber the wifi passpharse, only often. Strange...

Is this with the wifi or the ethernet?

There may be a way to pass the MAC address as a kernel option at boot. If not then you can use the programs ip or macchanger, but you need to do this before the network is brought up - this can be achieved by creating a systemd unit file.  See here: https://wiki.archlinux.org/index.php/MAC_ad...ng#systemd_unit (https://wiki.archlinux.org/index.php/MAC_address_spoofing#systemd_unit)

If you know which network driver you are using you can google it and see how MAC address is usually set. Sometimes
there just needs to be a file with the address in that is read when the driver loads.

It the MAC address for the wifi chip.
Thanks for the tip. I will check it out.
Title: Changing wifi MAC address and connmanctl in debian?
Post by: Wormhole on June 13, 2018, 05:51:38 pm
Quote from: Adam Boardman
Quote from: Wormhole
Does anyone experience that the MAC address changes on boot?

Once you've done the updates it seems to settle down.

Which update are you referring to?
Title: Changing wifi MAC address and connmanctl in debian?
Post by: Adam Boardman on June 14, 2018, 07:53:54 am
Quote from: Wormhole
Which update are you referring to?

As per Gemini_Firmware page on support.planetcom.co.uk:

Please note that you will need to update your Debian Linux to enjoy the latest development. See https://github.com/gemian/gemini-keyboard-apps/wiki/DebianTP (https://github.com/gemian/gemini-keyboard-apps/wiki/DebianTP) for further information regarding updating and configuring your Debian system
Title: Changing wifi MAC address and connmanctl in debian?
Post by: Wormhole on June 17, 2018, 01:02:44 am
Quote from: Adam Boardman
Quote from: Wormhole
Which update are you referring to?

As per Gemini_Firmware page on support.planetcom.co.uk:

Please note that you will need to update your Debian Linux to enjoy the latest development. See https://github.com/gemian/gemini-keyboard-apps/wiki/DebianTP (https://github.com/gemian/gemini-keyboard-apps/wiki/DebianTP) for further information regarding updating and configuring your Debian system

No even than, it is still not stable.
Title: Changing wifi MAC address and connmanctl in debian?
Post by: Wormhole on June 17, 2018, 02:56:10 pm
Quote from: Wormhole
Quote from: Adam Boardman
Quote from: Wormhole
Which update are you referring to?

As per Gemini_Firmware page on support.planetcom.co.uk:

Please note that you will need to update your Debian Linux to enjoy the latest development. See https://github.com/gemian/gemini-keyboard-apps/wiki/DebianTP (https://github.com/gemian/gemini-keyboard-apps/wiki/DebianTP) for further information regarding updating and configuring your Debian system

No even than, it is still not stable.

For those who experience the same. You can setup connmanctl service inside /var/lib/connman (see also https://www.mankier.com/5/connman-service.config) (https://www.mankier.com/5/connman-service.config))

Example of a service.example.config):

[service_home]
Type = wifi
Name = my_home_wifi
Security = WPA
Passphrase = password
IPv4 = 192.168.2.2/255.255.255.0/192.168.2.1
Nameservers=8.8.8.8,8.8.4.4

works great.