Flickr Photos

Roe Deer
Leopard in the rain
Lion mum taking care of cubs
Male Lion
Lion Cubs Playing
Lazy Spotted Hyena
Female Lion
Golden Jackal
Golden Jackal
Young Cheetah

Linux: Show your IP-address

Show IP-Address

How to get your IP-address:

ifconfig "eth0"|grep ‘inet addr’|cut -d’ ‘ -f12|cut -c6-20

and if you want to use IP-address at your own scripts just use:

INTIP=`ifconfig eth0|grep ‘inet addr’|cut -d’ ‘ -f12|cut -c6-20` echo "$INTIP"

and now you have your IP-address on $INTIP enviroment and you can use that at your scripts.


Enabling/Disabling devices using command line on windows

I needed to disable smartcard reader on my client laptop because for some reason it had two smartcard readers and I only needed to use one so I had to disable that device on every laptop which I installed so I wanted to make it a bit easier for me.

First of all you need […]

Sony Ericsson GM29 on Linux

Using Sony Ericsson GM29 GPRS modem on Linux to send text messages.

I use this kind of code which I get from usenet but I have modified it for my own purpose:

#! /usr/bin/kermit + set port /dev/ttyS0 set speed 9600 if fail { # Check that port was obtained exit 1 \m(port): \v(setlinemsg) […]

Watchport/T Temperature sensor on Linux

This script will get temperature from Watchport/T and Watchport/H sensors and write it to /var/log/watchport1.log file.

#!/bin/bash # # This script reads the temparature value from Watchport/T Temperature sensor # which is connected to the USB port. # Working on Centos 5 Linux, run by crontab # Change ‘\rT\r’ (Celcius) to ‘\rTF\r’ to get Fahrenheit […]