Showing posts with label Mac OSX. Show all posts
Showing posts with label Mac OSX. Show all posts

Wednesday, July 15, 2009

How to Change Mac OS X Leopard Network Interface MAC Address

I’ve found that there is an easy way to spoof your Network Interface MAC Address…
Why we spoof the MAC Adress…??
Spoof MAC address is used when we need to be another computer…
For example… My ISP has a policy to customer, so only registered computer MAC Adress can be connected to the internet…. So when you connected the cable to other devices like your notebook…
Your notebook can’t access the internet…
It can be solved by spoofing your Network Interface MAC Address ( in this example i use device en0/ LAN)
Go to Terminal in Applications > Utilities > Terminal

16:~ hanskristian$ sudo -s
Password:
16:~ root#


Now You’ll be root in the system
Check your Network interface
16:~ root# ifconfig -l
this command will list your network interface… in this example i use en0 interface
16:~ root# ifconfig en0 ether XX:XX:XX:XX:XX:XX
change XX:XX:XX:XX:XX:XX with your new MAC Address ( In this case i change my notebook mac adress with my computer ehternet mac address)
your network interface will have new MAC adress, check it by this command
16:~ root# ifconfig en0 grep ether

nb: the changes aren’t permanent, if you reboot your macbook.. The spoofed MAC Adress will be removed..

How to Color Your OS X Command Prompt

The world is more beautiful if the world is colourful... right...???
The world for IT-geeks is a TERMINAL... it's a very uninteresting looking for a black and white terminal, in this tutorial i'll show you how to color your command prompt :)

For bash shell user
1. Open Terminal window and do these commands!
$ cd ~
$ echo ‘alias ll=’ls -lG” >> .profile
$ echo ‘alias ‘ls=’ls
-G” >> .profile

2. close the terminal window,and open new terminal, check the result with these command
$ ls
$ ll

For tcsh user
1. OpenTerminal window, and do these commands !
> cd ~
> echo ‘alias ll=’ls -lG” >> .tcshrc
> echo ‘alias
‘ls=’ls -G” >> .tcshrc

2. close the terminal window,and open new terminal, check the result with these command !
> ls
> ll

How to modify vim appearance

I would tell you about how to modify the vim appearance, so it will look better :
“note that in this tutorial you must have vim installed, i have tested this in my box both of Mac OS X and FreeBSD“
goto your home directory by using this command :
# cd ~
# vim .vimrc

Write down this text :
syntax oncolorscheme wombatset number
Afterabove steps, make a directory in your home directory :
# mkdir .vim
# mkdir .vim/colors
# cd .vim/colors

Then grab the wombat scheme in this web http://files.werx.dk/wombat.vim
# fetch http://files.werx.dk/wombat.vim

Check your vim now, by edit some script or config :)