Monday, 14 December 2009

xfce4 verve plugin as standalone application

I liked very much this plugin, when i tried xfce4 last time, also i liked xfce4, but i didnt like the root menu, so i switched back to fluxbox.

This plugin is nice because:

- application launcher
- url, ftp and file launcher
- auto complete
- saves history commands

I did some changes on verve-plugin.c (mostly was deleting code, and fixing)
i didn't bore in putting the code 100% ok, may concern at the time was just to put it working...
For now i didn't notice any bug or crash :D

Download here

Tuesday, 8 December 2009

qtfarm farmville autocliker

Download here (built with QT and needs xdotool package(nix system))
New version here (uses xlib calls instead xdotool, but sometimes fails on click)
Bash script, check this post

Sunday, 29 November 2009

Farmville auto-clicker

New GUI here
Simple autoclicker script, needs xdotool installed

Download here
For default settings (12x12) use: sh
Or custom mode: sh num_rows num_columns click_interval_time wait_interval_before_pointing
If give this error(Syntax error: Bad for loop variable), use bash (bash
Download old script here (bash script for *nix based)

Sunday, 6 September 2009

Bash Prompts

Nice article about Bash Prompts here.
Have fun :)

Thursday, 23 July 2009

Latest google chrome build for linux

Browse to the end of list and download last one.

Using any file manager or command line, extract chrome folder and make an link to /usr/bin or /usr/local/bin.

# unzip
# su
# mkdir -p /opt/google
# mv chrome-linux /opt/google/
# ln -s /opt/google/chrome-linux/chrome /usr/bin/
# exit
# chrome

Starts very fast and has a nice aspect, but they still working on it to release an stable version. keep in touch.

My conky configuration

Download here

Wednesday, 22 July 2009

More simple bash scripts

Script for start X session automatically, after making login ( without using any login manager)
if (($(ps -A | grep -c X) > 0));
echo starting X....;startx;

Script for unzip multiple files. Replacing "zip" extension name and "unzip" command on script, we can change to open other files as well.
for file in *zip
unzip "$file"

Script to get links from an list every X time, for example, usefull to automatically open download links like rapidshare, netload, megaupload,...
Changing time and application, it can be useful to do lots of things =)

cat $1 | while myLine=`line`
echo "Requesting" $myLine
$app $myLine;
sleep $waitTime && echo ""

Some usefull commands
Play random mp3
slocate *.mp3 | mpg321 -@ - -z

Play random mp3 from specific folder
slocate *.mp3 | grep /home/user/files/mp3/new/ | mpg321 -@ - -z

Download links from an text file list
wget -i file.txt

Download recursively all page files
wget -r http://url/folder/

Download sequentially files
curl -O http://url/img[01-99].png

Saturday, 11 July 2009

Mount FTP as filesystem

CurlFtpFS is a filesystem for accessing FTP hosts based on FUSE and libcurl.


localhost ~ # emerge net-fs/curlftpfs in gentoo
localhost ~ # apt-get install curlftpfs in ubuntu/debian
localhost ~ # ./configure && make && make install by the manual way


localhost ~ # modprobe fuse if you dont have fuse module loaded
localhost ~ # curlftpfs /mnt/mountpoint


localhost ~ # fusermount -u /mnt/mountpoint

Thats it, now you can access with any file explorer like konqueror, nautilus…..we can do almost everything like edit source code

Adding on fstab /mnt/mountpoint fuse rw,uid=500,user,noauto 0 0

or Making alias
alias mHost=’curlftpfs /mnt/mountpoint’

More int at

Mount SSH as filesystem

SSHFS is a filesystem client based on the SSH File Transfer Protocol.


localhost ~ # emerge sys-fs/sshfs-fuse in gentoo
localhost ~ # apt-get install sshfs in ubuntu/debian
localhost ~ # ./configure && make && make install manual way


localhost ~ # modprobe fuse if you dont have fuse module loaded
localhost ~ # sshfs /mnt/mountpoint use “-o allow_other” for share between multiple users


localhost ~ # fusermount -u /mnt/mountpoint

Thats it, now you can access with any file explorer like konqueror, nautilus…..we can do almost everything like edit source code, create, delete….

Adding on fstab

or Making alias
alias mHost=’modprobe fuse;sshfs /mnt/mountpoint -o allow_other’

More info at

Friday, 10 July 2009

Simple CTRL ALT DEL in linux

Install xkill
Attribute an shortcut to a key for xkill

And voilĂ , just click on window do you want to kill :D
(In picture on right, gimp is being killed)

Description: kill a client by its X resource

How to compile kernel script

Download here

/usr/src/linux &&

echo "Running kernel configuration..." &&
make menuconfig &&

echo "Compiling kernel..." &&
make &&

echo "Installing kernel modules..." &&
make modules_install &&

echo "Making backup of old kernel..." &&
mv /boot/config /boot/config-old &&
mv /boot/ /boot/ &&
mv /boot/kernel /boot/kernel-old &&

echo "Installing new kernel..." &&
cp /usr/src/linux/ /boot &&
cp /usr/src/linux/.config /boot/config &&
cp /usr/src/linux/arch/i386/boot/bzImage /boot/kernel &&

echo done

Usefull bookmarks (internet archive) --> see offline/old pages that is no longer online/available. --> translate text, web pages and act as proxy =) --> paste code --> host images --> upload files --> find files --> my ip
ipcalc --> calculate mask, wildcard mask, network address, min host, max host...
default_pass --> default passwords

Tuesday, 5 May 2009

Simple text extraction from images

You must have an screenshot tool and an OCR tool, the tools i use is imagemagick to take screenshots and gocr to recognize characters.

import -quality 100 /tmp/scan.png && gocr /tmp/scan.png

For example, testing with this example the output was :
Linux, ubuntu, gentoo, scripts, security, networks, digg, sIashdot, engadget, youtube.

Doesnt work 100% but can be usefull :)

Wednesday, 15 April 2009

How to install Nessus on ubuntu

The synaptics version of Nessus its on version 2 (opensource), on official website of Nessus you can get the latest version.

1) download Nessus and NessusClient depending of your distro and your processor arch
2) reproduce the following steps

# sudo dpkg -i Nessus-XXXXX.deb
# sudo dpkg -i NessusClient-XXXXX.deb

3) Get an activation code for update nessus plugins: register in nessus website at plugins section, click on request an activation code, then click on Register a HomeFeed, then go to your email

# /opt/nessus/bin/nessus-fetch --register XXXX-XXXX-XXXX-XXXX-XXXX

4) adding an user, on Authentication (pass/cert) you can press enter ...
# /opt/nessus/sbin/nessus-adduser

5) starting nessus deamon (server)
# sudo /etc/init.d/nessusd start

6) now its time to run nessus client (gui), also you can run from NessusClient shortcut (look for your desktop environment applications menu)
# /opt/nessus/bin/NessusClient

Friday, 10 April 2009

Fingerprint on gentoo with multiple image verification

I recently installed fingerprint driver for my laptop, and i was looking to this thread on internet, with an nice how to.
But i decided to share some minor changes, its an patched version with:
"One more time" when fails finger recognition it ask you to swap the finger one more time, before telling you to write the password when fails.
It has been patched with multiple image verifications, if you have all fingers mapped, on finger scan it will check if the finger scanned is any of yours fingers. This is good because you can swap your finger in device to map it using different position, more or less velocity, .... with this method the probability of fail on verifications decreases :)

# layman -a wschlich-testing

# echo =app-misc/fprint_demo-0.4 >> /etc/portage/package.keywords
# echo =media-libs/libfprint-0.0.6 >> /etc/portage/package.keywords
# echo =sys-auth/pam_fprint-0.2 >> /etc/portage/package.keywords

# cd /usr/portage/local/layman/wschlich-testing/sys-auth/pam_fprint/
# rm Manifest
# wget -P /usr/portage/distfiles/
# ebuild pam_fprint-0.2.ebuild manifest
# ebuild pam_fprint-0.2.ebuild digest

# cd /usr/portage/local/layman/wschlich-testing/media-libs/libfprint/
# rm Manifest
# wget -P /usr/portage/distfiles/
# ebuild libfprint-0.0.6.ebuild manifest
# ebuild libfprint-0.0.6.ebuild digest

# emerge -av fprint_demo pam_fprint

Then start fprint_demo and enroll your finger
then add "auth sufficient" on /etc/pam.d/system-auth

auth required

and before
auth required try_first_pass likeauth nullok

Thats it, have fun ... comment if worked

Tuesday, 7 April 2009

Script to take picture at boot and send online

Ive made this script to take an picture on every linux boot and send online, just in case someone steel my laptop. (You must specify host, username and pass)

Note: it uses xawtv streamer tool and ftp to send the images to ftp server
If there's no internet connection the script stays on standby waiting for internet connections goes up, then sends. (I have made from some examples, and c# application for windows to do the same, maybe i can post here the application and code)

For example you can add this to startup:
in /etc/conf.d/local.start add sh & &>/dev/null
/etc/inid.d/local restart :)


dt=`date +%y%m%d-%T`

streamer -c /dev/video0 -b 32 -o $file


while true

if eval "ping -c 1"; then
sleep 15;


echo -e "***FTP SERVER DOWNLOAD SPEED***\n" >> /tmp/speedtest.log
ftp -inv $hostname >> /tmp/speedtest.log <<>
quote USER $username
quote PASS $password
cd boot
lcd $filepath
put $filename

rm $file /tmp/speedtest.log

Bash script and perl script to take screenshots online

This perl script was a little bit modified be me, to be used with freeimagehosting, because with with imageshack stopped working :(

I made this script to use with key combinations to select when i want to post an screenshot online or not. (Note: you must change the perl script path...)

To post the screenshot online and automatically open with Firefox
sh 0
To just only save the
sh 1
filename=`date +%y%m%d%H%M%S`.png

mkdir /tmp/screens;
import $file -quality 100;

if [ $1 == 0 ];

firefox $( perl $file ) &