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 πŸ˜€

Howto: unreal tournament 2004 on the new Ubuntu 11.04 Natty Narwhal

I assume you have already installed the game..

Since the libstdc++5 is no more in the repo, let’s download from here:

http://packages.ubuntu.com/maverick/libstdc++5

(choose your correct version, that is 32 or 64bit, and install it)

Then download the 3369-2 patch:

http://treefort.icculus.org/ut2004/ut2004-lnxpatch3369-2.tar.bz2

Copy and replace everything (default path /usr/local/games/ut2004/), if you prefer by graphical interface just run nautilus in root mode:

sudo nautilus

Now if you are on 64bit, just modify these file:

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

and substitute lines

if [ -x “${UT2004_DATA_PATH}/ut2004-bin” ]

exec “./ut2004-bin” $*

with

if [ -x “${UT2004_DATA_PATH}/ut2004-bin-linux-amd64” ]

exec “./ut2004-bin-linux-amd64” $*

And you are done

Ps: if you have problem with the sound, just run ut2k4 with aoss:

aoss ut2004

Hope its useful πŸ™‚

Ubuntu Maverick on Toshiba NB200

nb200

This netbook has a very particular problem, basically it stops if you don’t press any button..

I have never met such a problem

However, looking over internet, I found a easy and fast fix:

Enter in the bios, go to the processor power setting, and choose “always low” instead “dynamic”

Maybe this will not be the best for someone, but for my point of view, I have never experienced some slowness and saving battery is what I care most, so I didn’t have any problems πŸ™‚

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

Reboot.

You must be able to run the desktop effect

2) Download and install Boinc

Here the last linux x86_64 6.10.32

Then

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

It will create a folder BOINC in that directory

cd BOINC

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

./boinc

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)

WE GOT IT

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

./boinc

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” ]
then
cd “${UT2004_DATA_PATH}/”
exec “./ut2004-bin-linux-amd64” $*
fi
echo “Couldn’t run UT2004 (ut2004-bin). Is UT2004_DATA_PATH set?”
exit 1

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