Tiny Core Linux

Tiny Core Extensions => TCE News => TCE 2.x => Topic started by: Jason W on November 11, 2009, 05:32:48 PM

Title: macchanger
Post by: Jason W on November 11, 2009, 05:32:48 PM
Thanks to ZhaoChunsheng for:

Code: [Select]
Title:          macchanger-1.5.0.tcz
Description:    This is a GNU/Linux utility for viewing/manipulating the MAC address of network interfaces.
Version:        1.5.0
Author:         Alvaro Lopez Ortega <alvaro@alobbs.com>
Original-site:  http://www.alobbs.com/macchanger
http://www.gnu.org/software/macchanger
Copying-policy: -
Size: 92 KB
Extension_by:   ZhaoChunsheng
Comments:       Welcome to the GNU MAC Changer Utilities package!
Change-log:     ----
Current:        2009/11/11 - First version


Title: Re: macchanger
Post by: mic on August 19, 2021, 02:57:15 AM
Hi dude.
But where download link  for macchanger 1.5.0.tcz  ?
Title: Re: macchanger
Post by: Juanito on August 19, 2021, 03:14:34 AM
It was last available in tc-4.x:

http://tinycorelinux.net/4.x/x86/tcz/macchanger-1.5.0.tcz.info

You could download it manually and try it in later versions of tinycore
Title: Re: macchanger
Post by: mic on August 19, 2021, 06:10:27 AM
but  this is .txt file !
How download .tcz ?
Title: Re: macchanger
Post by: Rich on August 19, 2021, 06:17:32 AM
Hi mic
Leave out the  .info  extension.
Title: Re: macchanger
Post by: mic on August 19, 2021, 06:32:27 AM
Th. guys
downloaded successfully  .... BUT install not ! 
Say "could not find mcchanger package " .  (/home/myname/macchanger)
Title: Re: macchanger
Post by: Rich on August 19, 2021, 06:38:14 AM
Hi mic
You need to save it to your  tce/optional/  directory.
Title: Re: macchanger
Post by: mic on August 19, 2021, 06:58:03 AM
Install in Tiny Core  and lubuntu 18.4
About TC  got it  ... but about lubuntu can't .  If not difficult, please tell ... I install at the same time
p.s.  I thought no problems were expected - since one core!
Title: Re: macchanger
Post by: Rich on August 19, 2021, 07:11:24 AM
Hi mic
Lubuntu does not use  .tcz  packages. You will need to unpack it first if you want to try it on Lubuntu.

First install  squashfs-tools.tcz.
Then run  unsquashfs macchanger-1.5.0.tcz
You will find a new directory called  squashfs-root  that contains all of the  macchanger  files.
Title: Re: macchanger
Post by: mic on August 19, 2021, 07:40:31 AM
but in which directory should the folder with files be placed?
Title: Re: macchanger
Post by: Rich on August 19, 2021, 07:49:54 AM
Hi mic
If you look under  squashfs-root  you will find  usr/local/bin/macchanger.
Copy that  macchanger  file to your  Lubuntu  /usr/local/bin/  directory.
Title: Re: macchanger
Post by: mic on August 19, 2021, 10:15:23 AM
unfortunaly,  squashfs-tools.tcz  file can't have in internet
Title: Re: macchanger
Post by: Juanito on August 19, 2021, 11:05:18 AM
Which version (12.x ?) and which architecture (x86 ?) are you using?
Title: Re: macchanger
Post by: mic on August 19, 2021, 11:42:33 AM
Lubuntu 18.4 LTS   .... yes, x86 
Title: Re: macchanger
Post by: Rich on August 19, 2021, 01:40:00 PM
Hi mic
unfortunaly,  squashfs-tools.tcz  file can't have in internet
So load the extension:
Code: [Select]
tce-load -i macchanger-1.5.0.tcz
Then copy the file to a USB thumb drive:
Code: [Select]
cp /tmp/tcloop/macchanger-1.5.0.tcz/usr/local/bin/macchanger /mnt/YourThumbDrive
And copy the file from your thumb drive to your Lubuntu computer.
Title: Re: macchanger
Post by: mic on August 22, 2021, 06:18:13 AM
Th. you pal .
But problem in macchanger !  After reboot the computer, MAC values are reset to Permanent MAC !
Title: Re: macchanger
Post by: Rich on August 22, 2021, 06:30:33 AM
Hi mic
You will have to place your  macchanger  command in a script that runs at startup.
Title: Re: macchanger
Post by: mic on August 22, 2021, 06:51:33 AM
Hi Rich.
That is, it is normal for macchanger?

Can I ask you for some link to the script creation guide ... and where to put it ?!
Title: Re: macchanger
Post by: Rich on August 22, 2021, 07:32:00 AM
Hi mic
To the best of my knowledge, all network devices have their MAC address hardcoded in firmware and will revert to
that address when rebooted.

For Tinycore, create a file in  /home/tc/.X.d/  containing the following:
Code: [Select]
sudo ifconfig eth0 down
sudo macchanger -m xx:xx:xx:xx:xx:xx eth0
sudo ifconfig eth0 up

For Lubuntu, I don't know. It's a little dated, but maybe this will help:
https://askubuntu.com/questions/166777/how-can-you-make-a-sh-file-come-on-at-startup-in-lubuntu-12-04
Title: Re: macchanger
Post by: mic on August 22, 2021, 07:47:23 AM
Thanks a lot, Rich! I roughly understood what it was about!
Title: Re: macchanger
Post by: Rich on August 22, 2021, 08:04:24 AM
Hi mic
If the system uses  ifconfig  to bring up the network, the  hw ether  option can also set the MAC address:
Code: [Select]
ifconfig eth0 192.168.1.45 netmask 255.255.255.0 broadcast 192.168.1.255 hw ether xx:xx:xx:xx:xx:xx up
Title: Re: macchanger
Post by: mic on August 23, 2021, 04:21:35 AM
Hi Rich.
18.4 LTS   uses  "ip"  (  sudo ip link set dev name address XX:XX:XX:XX:XX:XX  )  ( but i thought macchanger is setting the address permanently!  )