Debian, how to list open ports and firewall configuration

If you want a list of all open ports on your pc, you can type

netstat -tulpn

Omit the “n” if you don’t want to solve addresses

For firewall configuration

iptables -nL

“n” has also the scope


how to look for packets to install or already installed

This is my first article since I am also using Debian (now just upgraded to Squeeze) ๐Ÿ˜€

However, since I am working only by ssh, I found out that the following two commands are very very useful to know…

Take in account that all the commands are run as root, so if you are not, you may need the ‘sudo’ in front..

If you want to search through the repository for tomcat, run an update:

apt-get update

Then you can be sure that the list you are going to look through is the most recent and therefore:

apt-cache search tomcat

This will print out all the result matching the string ‘tomcat’

Instead, if you wanna look through all the *installed* packet, then type:

dpkg --get-selections | grep tomcat

Among the result, packages with a corresponding ‘deinstall’ are those packages that have been removed without the ‘–purge’ option…

If you want to purge them all, just type:

aptitude purge $(dpkg --get-selections | grep deinstall | sed s/deinstall//)

Ps: a special thanks to Alessia for giving me a reason to continue toย publishย on this space ๐Ÿ˜€

quick introduction to ssh/scp in linux


These are just some most common command for dealing with ssh in Linux.

First, let’s make sure we have ssh (in Ubuntu and most all linux distribution it should be already included):

elect@elect-laptop:~$ ssh

If we get something like this, it is fine

usage: ssh [-1246AaCfgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec]
[-D [bind_address:]port] [-e escape_char] [-F configfile]
[-i identity_file] [-L [bind_address:]port:host:hostport]
[-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
[-R [bind_address:]port:host:hostport] [-S ctl_path]
[-w local_tun[:remote_tun]] [user@]hostname [command]

Now, if I want to copy my file test.txt present in my home folder on server in the pippo directory where i know the credentials of user

elect@elect-laptop:~$ scp test.txt user@server:/pippo

Note: server can be also an IP address

If it is the first time, I will be asked something like

The authenticity of host ‘server (012.345.678.901)’ can’t be established.
RSA key fingerprint is z6:32:07:6e:05:45:45:07:0e:01:2a:ca:0b:5b:b7:fg.
Are you sure you want to continue connecting (yes/no)?

Just time yes and continue

Then it is time for the password

user@server’s password:

Type it, and this is the result:

elect@elect-laptop:~$ scp text.txt user@server:/pippo
user@server’s password:
test.txt 100% 756KB 755.9KB/s 00:00

To transfer an entire directory

elect@elect-laptop:~$ scp -r directory user@server:/pippo

The other way round for keep text.txt in my home directory….

elect@elect-laptop:~$ scp user@server:/pippo/text.txt .

Ps: note the dot “.” at the end

….. or a directory

elect@elect-laptop:~$ scp -r user@server:/pippo/directory .

if you want to move all files, the traditional asterisked ” * ” is always valid ๐Ÿ™‚

Howto: ATI CAL on Karmic 64 bit with Boinc (Collatz project)

Coming from a recent upgrade from 8800gt to 4870 x2, I really wanted to put this new monster under work with Boinc ( you can exploit your ATI gpu only if it’s on this list)

But there were so many problem: i spent more than two days with segmentantions fault, creating deb driver packages, no gpu relevating, ecc..

This is how i solved :p

1) Check you have drivers installed AND working properly

Download the Catalyst 9.12 (the lastest) here

I never got they working properly by creating the deb in this way:

./ –buildpkg Ubuntu/9.04

I just installed in the normal way:

sudo ./

Next, next, next, …

At the end:

sudo aticonfig –initial


You must be able to run the desktop effect

2) Download and install Boinc

Here the last linux x86_64 6.10.32



It will create a folder BOINC in that directory


Now, before the critical point you need to be sure to have the option nopat added after the kernel in grub (tested with 2.6.31-20)

..and maeby even “libqtgui4” installed…

Prey the ATI big-tits goddess

And run


If you get something like

16-Feb-2010 22:04:30 [—] ATI GPU 0: ATI Radeon HD 4700/4800 (RV740/RV770) (CAL version 1.4.519, 1024MB, 1200 GFLOPS peak)
16-Feb-2010 22:04:30 [—] ATI GPU 1: ATI Radeon HD 4700/4800 (RV740/RV770) (CAL version 1.4.519, 1024MB, 50 GFLOPS peak)


They are two here, coz i have a 4870 x2

3) Configure Collatz

Now download collatz_2.01_x86_64-pc-linux-gnu__ati14_r1.2.tar.bz2

– copy both and to /usr/lib64

cd collatz_2.01_x86_64-pc-linux-gnu__ati14_r1.2/app

ldd collatz_2.01_x86_64-pc-linux-gnu__ati14

you should see something similar to this: => /usr/lib64/ (0x00002b373b4e3000) => /usr/lib64/ (0x00002b373b6d1000) => /usr/lib64/ (0x00002b373b914000) => /usr/lib64/ (0x00002b373bb33000) => /lib64/ (0x00002b373be3b000) => /lib64/ (0x00002b373c08e000) => /lib64/ (0x00002b373c29d000) => /lib64/ (0x00002b373c5e2000) => /usr/lib64/ (0x00002b373c7fd000) => /lib64/ (0x00002b373c91e000) => /lib64/ (0x00002b373cb27000) => /usr/lib64/ (0x00002b373cd2b000) => /usr/lib64/ (0x00002b373cf3d000)
/lib64/ (0x00002b373b4b4000) => /usr/lib64/ (0x00002b373d273000) => /usr/lib64/ (0x00002b373d477000) => /usr/lib64/ (0x00002b373d679000

– copy the app_info.xml, app file and the 2 libs ( and to projects/

– make sure to have a copy of the 2 libs ( and removing 64 from the name in /usr/lib64/

sudo ln -s

sudo ln -s

4) Test it

cd ../collatz_2.01_x86_64-pc-linux-gnu__ati14_r1.2/test_files

cp ../app/collatz_2.01_x86_64-pc-linux-gnu__ati14 ./

cp../libs/* ./

and run the test: ./collatz_2.01_x86_64-pc-linux-gnu__ati14

It will take some time (in my case just ca 20s)

Now, to run Boinc you need the demon


and the graphical interface

sh run_manager

Both of them run in BOINC folder

It’s over, you can join Collatz (the only project at the moment supporting ATI gpu computing, Milkyway is still on the “way” )

A thanks specially to Stoffel, Marco Vuano and this blog

Ubuntu karmic 9.10 and Unreal Tournament

After the installation, just install the, you can find it here ๐Ÿ™‚

Then, if you running on a 64bit you will need to do a little modify

sudo gedit /usr/local/games/ut2004/ut2004

Then, add after the exec something, in order to be like this ๐Ÿ™‚

# Let’s boogie!
if [ -x “${UT2004_DATA_PATH}/ut2004-bin” ]
cd “${UT2004_DATA_PATH}/”
exec “./ut2004-bin-linux-amd64” $*
echo “Couldn’t run UT2004 (ut2004-bin). Is UT2004_DATA_PATH set?”
exit 1

Finally, the link under Application -> Other, will work B-)