Posts Tagged ‘admin’

(on Technorati ,

Faking MAC Address in Linux

I’m house-sitting for my brother, and I brought my computer over so I didn’t die of boredom, alone, in a house for a week. The problem is the Internet over here is hooked up directly to the modem, and the Internet provider will only provide an Internet address (IP address) to the ethernet card that was registered to them: the one in my brother’s computer. So, I turned on the computer, checked out the advanced properties of the ethernet card to get the MAC (physical) address and wrote it down. In Linux, using ifconfig, you can tell a particular interface to pretend its address is something else. If you’re using a Debian derivative (I’m using Ubuntu), you’ll probably need sudo before the command.

Note: Copy your current MAC address and put it somewhere safe, just in case – I haven’t tested to see if this is permanent, yet.

On the command line:

sudo ifconfig eth0 hw ether xx:xx:xx:xx:xx:xx

Or, to make it permanent, put it in /etc/network/interfaces

auto eth0
iface eth0 inet dhcp
hw ether xx:xx:xx:xx:xx:xx

If you get an error message, saying the “Device or Resource is busy” then you probably have to bring the interface down first: sudo ifconfig eth0 down. Use ifconfig eth0 to check that it worked – it should show the new address if no error was reported. Once that was done, I connected my computer to the modem and the provider was much more cooperative with my DHCP requests. 😀 Yay, Internet on my computer again! 🙂

Ubuntu Feisty and Azureus

Azureus was acting strange, stopping all downloading shortly after it started. java -version told me my default java was not Sun’s Java 1.5, but gcj 1.4-something. In fact, I did not even have Sun’s Java installed.

Installing Sun’s Java:
Use Synaptic and search for “java5” to install or….

sudo apt-get install sun-java5-bin

Updating the default Java:

sudo update-java-alternatives --set java-1.5.0-sun

Seems to work now. Yay. Now I can catch up on Lost.