Hi Guys,

Here is my method to make your MAC address random with each reboot

1. Open terminal and navigate to Desktop:
cd Desktop

2. Use command to create new text file:
touch macc.sh

3. Edit it in gedit or leafpad and add the following text:

!#/bin/bash
ifconfig wlan0 down
macchanger -r wlan0
ifconfig wlan0 up
service network-manager restart


4. Save the file and call it macc.sh (or whatever you choose)

5. Change permissions on it to make it executable:
chmod +a macc.sh

6. in the terminal, navigate to /root/.config/

7. Add directory called auto start like this:
mkdir autostart

8. Now you should have path:
/root/.config/autostart

9. Now in terminal, type:
leafpad /root/.config/autostart/myscript.desktop

10. Paste the following:


[Desktop Entry]
Name=MyScript
GenericName=A descriptive name
Comment=Some description about your script
Exec=/root/Desktop/macc.sh
Terminal=true
Type=Application
X-GNOME-Autostart-enabled=true

11. Now save file and test it by rebooting, issue the reboot command

12. Check ifconfig and verify the mac has changed!

For some reason, this only works for me if the file is my desktop, I don't know why.

I am not sure how working with network manager will effect this if you are using the drop downs, but for boot, it randomizes my MAC everytime

Enjoy