Flickr Photos

Young Red Fox
Red Fox eating rowan berries
Roe Deer
Leopard in the rain
Lion mum taking care of cubs
Male Lion
Lion Cubs Playing
Lazy Spotted Hyena
Female Lion
Golden Jackal

Kali Linux: How to keep your laptop running when you close the lid

I wanted to run some software on my laptop but I wanted to close the lid of my laptop so it would be easier to carry with me but every time when I closed the lid my laptop went to sleep
and stopped everything what it was doing =( I didn’t find any settings from Kali Linux GUI but you can do some small command line kung fu:

This setting disable the sleep mode when your laptop charger is plugged in and you close the lid:

gsettings set org.gnome.settings-daemon.plugins.power lid-close-ac-action nothing

And this one disable the sleep mode when you are running your laptop on battery mode:

gsettings set org.gnome.settings-daemon.plugins.power lid-close-battery-action nothing

After that your laptop should stay a wake even if you close the lid =)

Raspberry Pi: Get GPS Working with Kismet

After normal wheezy-raspbian installation you should run:

<br />
apt-get update &amp;&amp; apt-get upgrade<br />

To update your software.

Now get the newest Kismet code from kismet home page:
or direct link here:

For some reason I couldn’t open that .tar.xz file with my Linux so I had to do this a noob way…
Download that file with my windows computer and then open it with 7-Zip after that I used winscp to transfer it to my Raspberry Pi.

After that we can start to compile and install kismet itself.

First we have to install some thingys which we need when we are compiling kismet:

apt-get install libncurses5-dev libpcap0.8-dev libnl2-dev libpcre3-dev

This doesn’t take too long… about few minutes normally.

At his part we have to copy our kismet files which we downloaded from to our Raspberry Pi and
then go to that directory where those files are and then we can start to compile kismet.
First we have to change rights of that configure file with:

chmod +x configure

Continue reading Raspberry Pi: Get GPS Working with Kismet

Raspberry Pi: How to get Bluetooth keyboard work

I have Prodige NanoX small bluetooth keyboard and touchpad which I wanted to use with my Raspberry Pi so here is how I get it to work:

After we have plugged in our bluetooth receiver we should see it with lsusb:

<br />
Bus 001 Device 004: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dong0le (HCI mode)<br />

If that’s ok then we can enable dbus and reboot after that:

<br />
update-rc.d -f dbus defaults<br />

After reboot we log in as a root and then we need to install bluetooth software:

<br />
apt-get install bluetooth bluez-utils blueman<br />

After we have installed all the stuff we have to reboot again and after reboot log in as a root again.

Continue reading Raspberry Pi: How to get Bluetooth keyboard work

Raspberry Pi: Set time from GPS dongle

I had a little problem with my Raspberry Pi Raspbian Wheezy and with Kali-Linux when I wanted to do some wardriving
and wanted to have right time/date on my Pi and I didn’t have anykind of Internet connection.

You could get right time from the GPS but I didn’t get it to work with NTP and my GPS receiver
but I found a nice script that get’s me around that problem:

<br />
date -s '01/01/2014 00:01'<br />
sleep 1<br />
pkill ntpd<br />
pkill gpsd<br />
gpsd -b -n -D 2 /dev/ttyUSB0<br />
sleep 2<br />
GPSDATE=`gpspipe -w | head -10 | grep TPV | sed -r 's/.*&quot;time&quot;:&quot;([^&quot;]*)&quot;.*/\1/' | head -1`<br />
echo $GPSDATE<br />
date -s &quot;$GPSDATE&quot;<br />
/usr/sbin/ntpd<br />

As far as I know this sets your Pi time to GMT but if that is not your local time then you can add this:

<br />
FIDATE=`date --date='+3 hour'`<br />
echo $FIDATE<br />
date -s &quot;$FIDATE&quot;<br />
sleep 1<br />

This one correct time to be my local (Finnish) time which is +3 hours from that GMT which you get from GPS.

Continue reading Raspberry Pi: Set time from GPS dongle