![]() |
Change mac address
Hi, is it possible to change mac address of N900 via xterminal? Thank you for your posts
|
Re: Change mac address
Should be possible with ifconfig. First bring down your WLAN, or make sure it isn't in use.
Then, as root: ifconfig wlan0 hw ether 00:00:00:00:00:00 |
Re: Change mac address
I know how to change, but i asked if is it possible, because some drivers doesn't support this function...
|
Re: Change mac address
Yes it is posible.
|
Re: Change mac address
there is macchanger in extras-devel, but be sure you know what you're doing, because extras-devel includes software that is untested, unstable and might brick your device, proceed with caution, you have been warned.
|
Re: Change mac address
Is there a way to set it up so that the mac address gets automatically changed on start-up?
|
Re: Change mac address
Put it in an upstart script.
|
Re: Change mac address
I wrote a little handy script that help me a lot when needing a new mac fast on my n900 (its just bash so it works on every linux dist that names their vlan interface wlan0):
Create a file in /usr/bin/ called macchanger, make it executable: chmod +x /usr/bin/macchanger edit /usr/bin/macchanger and insert this text: #!/bin/bash echo "they block my mac" ifconfig wlan0 down ole=`ifconfig wlan0|grep HWaddr|awk '{print $5}'` one=`df |md5sum |awk '{print }'|grep -o ..` two=`free |md5sum |grep -o ..` thr=`ps auxww |md5sum |grep -o ..` ifconfig wlan0 hw ether 00:1F:DF:`echo $one`:`echo $two`:`echo $thr` new=`ifconfig wlan0|grep HWaddr|awk '{print $5}'` ifconfig wlan0 up echo $ole "->" $new echo "i fist their fish" Reason i am using 3 strings md5sumed is to get decent randomization as this is hard to accomplish in bash |
Re: Change mac address
You do realize that `macchanger` is in the repositories?
|
Re: Change mac address
Quote:
Code:
one=`df |md5sum |awk '{print }'|grep -o ..`Code:
one=`df |md5sum |awk '{print }'|head -c 2` |
| All times are GMT. The time now is 08:14. |
vBulletin® Version 3.8.8