August 7, 2008 at 9:56 am
· Filed under Linux
# ifconfig eth0 down
# ifconfig eth0 hw ether 00:80:48:BA:d1:20
# ifconfig eth0 up
# ifconfig eth0 |grep HWaddr
This is always fun to do. Why might you want to do this. Say your friend paid for internet access at at coffee shop. Your friend leaves early. You change your mac to what his mac is and then you can freely surf the internet with out paying. Kind of like using a parking meeter that still has time on it :>
Permalink
July 9, 2008 at 7:05 am
· Filed under Linux, Unix
So you go to use crontab -e and you get some strange stuff at the bottom of the line. Yup you are in ee, which is even older then vi. This can often happen when you are using a serial connection, and even when using ssh. This is a simple fix, with examples below.
TERM=vt100 ; export TERM ; EDITOR=vi;export EDITOR
user@server:~$ echo $TERM
xterm
user@server:~$ TERM=vt100 ; export TERM ; EDITOR=vi;export EDITOR
user@server:~$ echo $TERM
vt100
Permalink
December 4, 2007 at 10:28 am
· Filed under Linux, Solaris
[root@Linux ~]# who -r
run-level 3 Sep 22 14:51 last=S
root@Solaris# who -r
. run-level 3 Feb 26 09:51 3 0 S
Permalink