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 ๐Ÿ™‚


How to made the Nesc syntax colored (highlighting) in Ubuntu


Using TinyOs i was missing the highlighted code, here the solution

Just download the gedit .lang file in

and move it here:

sudo mv ncc.lang /usr/share/gtksourceview-2.0/language-specs/

I know, i know

I update the blog rarely, but this kind of short post is more useful for me (like a reminder) than for you, i suppose ๐Ÿ˜€


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:

./ati-driver-installer-9-12-x86.x86_64.run –buildpkg Ubuntu/9.04

I just installed in the normal way:

sudo ./ati-driver-installer-9-12-x86.x86_64.run

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


sh boinc_6.10.32_x86_64-pc-linux-gnu.sh

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 libbrook64.so and libbrook_cal64.so 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:
libaticalcl.so => /usr/lib64/libaticalcl.so (0x00002b373b4e3000)
libbrook64.so => /usr/lib64/libbrook64.so (0x00002b373b6d1000)
libbrook_cal64.so => /usr/lib64/libbrook_cal64.so (0x00002b373b914000)
libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00002b373bb33000)
libm.so.6 => /lib64/libm.so.6 (0x00002b373be3b000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00002b373c08e000)
libc.so.6 => /lib64/libc.so.6 (0x00002b373c29d000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00002b373c5e2000)
libaticalrt.so => /usr/lib64/libaticalrt.so (0x00002b373c7fd000)
librt.so.1 => /lib64/librt.so.1 (0x00002b373c91e000)
libdl.so.2 => /lib64/libdl.so.2 (0x00002b373cb27000)
libXext.so.6 => /usr/lib64/libXext.so.6 (0x00002b373cd2b000)
libX11.so.6 => /usr/lib64/libX11.so.6 (0x00002b373cf3d000)
/lib64/ld-linux-x86-64.so.2 (0x00002b373b4b4000)
libXau.so.6 => /usr/lib64/libXau.so.6 (0x00002b373d273000)
libxcb-xlib.so.0 => /usr/lib64/libxcb-xlib.so.0 (0x00002b373d477000)
libxcb.so.1 => /usr/lib64/libxcb.so.1 (0x00002b373d679000

– copy the app_info.xml, app file and the 2 libs (libbrook64.so and libbrook_cal64.so) to projects/boinc.thesonntags.com/

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

sudo ln -s libbrook_cal64.so libbrook_cal.so

sudo ln -s libbrook64.so libbrook.so

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 http://radialmind.blogspot.com/2010/01/ati-stream-technology.html

Ubuntu karmic 9.10 and Unreal Tournament

After the installation, just install the libstdc++5.so, 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-)

Ubuntu & Windows: how to save/recover space on your hard disk

This is a really interesting program, allowing you to free space of useless stuff

There is even a preview of the space you could recover, mine was almost one giga ๐Ÿ˜ฎ

Give a try! ๐Ÿ˜‰

In the repo you can find the 0.6.3, otherwise if you prefer the updated version you can download the 0.7.2 on the site, with the nice deb package for ubuntu :p

Here the official site:


Microsoft Office 2007 on Ubuntu Karmic Koala 9.10 64 bit with Wine

I really support OpenOffice, but many times it happens that some people don’t switch to linux just because of incompatibility with M$ Office and Ubuntu…

To convince these people i write this ๐Ÿ™‚ :

So, let’s start…

First of all, remove all the existing Wine installations

sudo apt-get remove wine

Event the hiddend folder

rm -rf ~/.wine

Now, let’s install a newer version, go to the The WineHQ .deb packages archive, download the last version (I tried the Wine 1.1.32 amd64 and Wine 1.1.36 amd64, both working properly) and install it without caring this:

Now, just continue to follow this guide from Install Microsoft Office 2007 going on ๐Ÿ˜‰