Friday, May 25, 2007

Le gros pipe

Comme disait Madam, j'ai sortit le gros pipe !!


$ wget ftp://ftp.vim.org/pub/vim/unix/vim-7.1.tar.bz2 \
-O- | bunzip2 -c | tar xf -
--14:56:16-- ftp://ftp.vim.org/pub/vim/unix/vim-7.1.tar.bz2
=> `-'
Resolving ftp.vim.org... 192.87.102.36, 2001:610:1:80aa:192:87:102:36
Connecting to ftp.vim.org|192.87.102.36|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD /pub/vim/unix ... done.
==> PASV ... done. ==> RETR vim-7.1.tar.bz2 ... done.
Length: 6,876,053 (6.6M) (unauthoritative)

100%[===================================================================================>] 6,876,053 199.20K/s ETA 00:00

14:56:45 (254.16 KB/s) - `-' saved [6876053]

$ ls vim [hit tab]
vim71/ vim-7.1.tar.bz2

Thursday, May 24, 2007

Installing FreeBSD (part 2)

OK ... pkg_add finished his job, now I just did a pkg_add -r xfce, and I am able to have a running window manager !

Next task is to get a working qt4, so it looks like there is no such thing in the precompiled library. So I downloaded the port archive (a big tarball that you can get from http://www.freebsd.org/ports/installing.html).


pkg_add -r wget
cd /usr/
wget ftp://ftp.freebsd.org/pub/FreeBSD/ports/ports/ports.tar.gz
gunzip < ports.tar.gz | tar xf -


Now on to compile Qt ! (that might take some time on my old Pentium-3 666 MHz).

cd /usr/ports/x11-toolkits/qt4-gui/
make install clean


... wait some time ...
And it does not work !
Seems like I have to upgrade my Xorg, to match the one used by the port manager to build qt4. So I downloaded the sources from Trolltech and worked with it ...


[root@ubuntu.corp.adobe.com qt4-gui]# make
===> qt4-gui-4.2.3_2 depends on executable in : moc-qt4 - found
===> qt4-gui-4.2.3_2 depends on executable in : qmake-qt4 - found
===> qt4-gui-4.2.3_2 depends on executable in : rcc - found
===> qt4-gui-4.2.3_2 depends on executable in : uic-qt4 - found
===> qt4-gui-4.2.3_2 depends on file: /usr/local/libdata/xorg/libraries - not found
===> Verifying install for /usr/local/libdata/xorg/libraries in /usr/ports/x11/xorg-libraries
Read /usr/ports/UPDATING for the procedure to upgrade or install xorg 7.2.
*** Error code 1

Stop in /usr/ports/x11/xorg-libraries.
*** Error code 1

Stop in /usr/ports/x11-toolkits/qt4-gui.
*** Error code 1

Stop in /usr/ports/x11-toolkits/qt4-gui.

Installing FreeBSD (part 1)

Here is what I did ...

Get the netinst CD.
Start the install with it, went until the post-install stuff. Then I clicked on install Linux compatibility but it looks like some mirrors does not have those package, so my installer stalled...
I didn't know that so I downloaded and burnt the two CDs instead ...

For disk layout, I installed on a dummy machine, so hitting A (default), then Q (quit) at each partition menu worked for me :)

Initially I wanted to setup a RAID-1 (I have two equivalent 40Gigs disks), following this (http://www.onlamp.com/pub/a/bsd/2005/11/10/FreeBSD_Basics.html?page=1), but the OS didn't want the geom partition (the equivalent of the md devices on Linux) as a /root partition at boot.

I had my first disk on the primary master and my second disk on the primary slave, that might explain it ...

So I did some scary thing in rescue mode ; booting from the primary master device, then mounting all the other partitions, remounting in read write the / partition (mount -o rw /dev/a0... /), and replace the geom entries in /etc/fstab with primary master device ones ...

Then I was able to boot correctly. I wanted to be able to su from my regular user account, so I added myself to the wheel account (# pw user mod bsergean -G wheel)

Now I am installing Xorg from the port system:
# pkg_add -r xorg
It's quite slow to download all those bits, so I'll keep the rest for later ...

Friday, May 04, 2007

The spring is sunny.

I upgraded my laptop (IBM T42p) from Mandriva 2007.0 to Mandriva 2007.1 (Spring) this week. I have to say I am quite happy now. Everything seems to work fine.

I have a Fire-GL graphical board, and it was setup correctly after some random command.

- Downloaded the ati drivers from plf non-free backport
- I Had problems to make it work thought ...
- So I downloaded the ati drivers from plf non-free
- XFDrake, some X server restart, then I manually ran aticonfig, and now my glxinfo knows that there are some ATI drivers there ...

So I can play with Mantisse or with the 3D desktop, I haven't done that yet but I am looking forward !

On the wifi side, I have an Atheros chip. So I recompiled the mad-wifi drivers that I had in the past, did a make install. And Mandriva network manager found its way to our wireless rooter, in wpa mode. And I'm wondering if my install did something, or what, but now the wifi connection is __way__ faster than it used to be with 2007.0 (maybe another problem, with wep, my previous setting, but I doubt it).

Flash 9 is working, I think I just clicked on the flash installer and rpmdrake showed up. Some next next clicking and I can watch stupid things on youtube.

-> I am a happy user (I might give some bucks to the guys at Mandriva for their hard work), Linux is getting close to be a prime class citizen on the desktop side !