Thursday, February 14, 2008

Wednesday, February 13, 2008

Rsync instead of AnnLab :)

BT? Proximus? Verizon?

Check this out:

On all client machines put this in crontab


rsync -arvv --delete psmf::sounds .


On the PSMF machine put this into /etc/rsyncd.conf


uid=linus
gid=in
pid file=/tmp/rsync.pid

[sounds]
comment=SRP Vocal Announcements
path=/media/foobar



Therefore Samuel - I was right again... As I said in my previous posts - there is no need to reinvent the wheel. It works BETTER than AnnLab.
If you've listened to me you wouldn't be in the shit you're in now.

Saturday, February 9, 2008

Sexy babes

Cocktail (Cisco switches, HP DL380G4, Sun Fire T2000, Sun Fire V240)


The classy ones(Sun fire V240)


The old school (Netra 1125)


The new generation (Netra T2000):

Wednesday, January 23, 2008

Cross compiling

After a couple of days of hard work I was able to build one cross compiler hosted on i686 Linux and targetted for Sparc Solaris.
Although it was quite straightforward in principle it required some Solaris packages to be unpacked in order to obtain all the headers and libraries I needed for compilation

The packages I used were SUNWhea, SUNWlibC, SUNWlibm.
I needed also the PThread library in order to build libgomp.
In order to get their content unpack the none.bz2 from each one with the command
$ bzcat none.bz2  cpio -C 512 -idu

I have then downloaded gcc-4.2.2 and binutils-2.17.
In order to build it I have used this script:

#!/bin/bash

export TARGET=sparc-sun-solaris2.10
export BUILD=x86_64-unknown-linux-gnu

export PREFIX=`pwd`/$TARGET
export SRC=`pwd`/src
export BINUTILS=binutils-2.17
export GCC=gcc-4.2.0

export PATH=$PREFIX/bin:$PATH

INCLUDE=`pwd`/src/$TARGET/include
LIBS=`pwd`/src/$TARGET/lib

init ()
{
mkdir -p $PREFIX
mkdir -p build
}

binutils ()
{
mkdir build/$BINUTILS
cd build/$BINUTILS
$SRC/$BINUTILS/configure \
--prefix=$PREFIX \
--target=$TARGET \
--with-gnu-as \
--with-gnu-ld \
--disable-nls \
--with-headers=$INCLUDE \
--with-libs=$LIBS
make all install
cd ..
}

gcc ()
{
#export CC=$TARGET-gcc
#export PATH=$PREFIX/$TARGET/bin:$PATH
#export LD_LIBRARY_PATH=$PREFIX/$TARGET/lib
mkdir build/$GCC
cd build/$GCC
$SRC/$GCC/configure \
--prefix=$PREFIX \
--target=$TARGET \
--enable-languages=c,c++ \
--disable-nls \
--with-gnu-as \
--with-gnu-ld \
--with-headers=$INCLUDE \
--with-libs=$LIBS
make all install
cd ..
}

init
binutils
gcc

Afterwards I was able to compile a simple hello world with the newly generated compiler. It felt good... Mission accomplished...

Still I am not quite okay with the size of the includes and libraries used - I had to do some tricks in order to build them. The cleanest solution would be to install a fresh system and take the files directly from there.

Friday, December 28, 2007

Update 28.12.2007

1. Heading for Prague. Long way in front of me.

Update 27.12.2007

1. I left Sighet by car. An awfully long road (10h maybe) by car in ugly weather. Driving lone is sad and gets me sleepy.

2. I finally got back my card from BRD. The branch manager apologized... It was a small victory against them - I have nothing personally with the bank but they should learn that they have to SELL products to me in order to increase their profits.

3. I adhered to a private pension fund. I ope I did a good choice... but who knows.

Wednesday, December 26, 2007

Update 26.12.2007

1. My nephew's Tudor birthday. Many 12 years old boys around playing a concerto on their mobile phones. Funny and annoying in the same time.

2. Visit to Barsana Monastery and to Botiza. We were warmly welcomed by Ionuc and his grandparents.