www.flickr.com
Petri Lopia's items Go to Petri Lopia's photostream

Apple Mac OS X and locked files

I had a client whos Microsoft Windows 7 Fujitsu laptop I had to fix.

I used Hiren’s BootCD bootable Linux rescue CD to copy files from that laptop to my clients external harddrive and everything when without a problems.

When I started to move files from that external harddrive to my iMac (Actually to my drobo) I noticed that some (for some reason not all the files on that directory because) files were
locked so I could not move those files… I didn’t want to go thru all the files using graphical user interface so I had to find way to fix those files using command line.

So after a little bit searching I noticed that I can use chflags command to do what I wanted so I started terminal and said:

sudo chflags -R nouchg /Volumes/Drobo/UnCheck

That unlocked all the files from /Volumes/Drobo/UnCheck directory which was exactly what I wanted to do =) I had to do it to couple of other directories too but that was not a hard job
compared to doing all of this using graphical user interface =)

Continue reading Apple Mac OS X and locked files

Dell PowerEdge 2650 server and memory limited message

I was installing Debian GNU/Linux to one of my old Dell PowerEdge 2650 servers but everytime
when I booted it up I got annoying message on my screen:

"Amount of available memory limit to 256 MB!
 Strike the F1 key to continue, F2 to run the setup utility"

I find out that you can get rid of this message when you turn off “OS Install Mode” on BIOS because when it’s turned on
memory is limited to 256 MB. I have no idea why… If you know comment and let me know.

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 =)

p5rn7vb

Raspberry Pi: Get GPS Working with Kismet

After normal wheezy-raspbian installation you should run:

apt-get update && apt-get upgrade

To update your software.

Now get the newest Kismet code from kismet home page:
http://www.kismetwireless.net/download.shtml
or direct link here: http://www.kismetwireless.net/code/kismet-2013-03-R1b.tar.xz.

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 kismetwireless.net 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