FreeNAS 0.7 live: how to install packages (like mldonkey)

If you want to install FreeBSD packages on FreeNAS live you have to “move” your /usr/local directory where you have more space.
This is what you have to do to install mldonkey, for example:
Create a directory local inside your storage:
mkdir /data/local
now copy the content of the current local directory to the new one:
cp -a /usr/local/ /data/local/
and link it in it’s new place, after removing the old one:
rm -r /usr/local
ln -s /data/local /usr/local

Now your /usr/local dir have more spaces and you can install whatever you want. I’ve installed mldonkey with
pkg_add -r
(since FreeNAS it’s based on FreeBSD 7.2) then i’ve moved my home dir to the storage doing the same things above.
NB: mldonkey needs, you can download it from here and you have to copy it at boot time in /usr/lib.
To have all the jobs done at startup you’ve to create a simple script (and put it in your storage, i’ve created mine in /data dir):

rm -r /usr/local
ln -s /data/local /usr/local
rm -r /usr/home/simplex
ln -s /data/simplex /usr/home/simplex
cp /data/ /usr/lib

Now chmod +x the script and tell FreeNAS to launch it after boot.
Go to System->Advanced->Command scripts and add the command sh /data/ or whatever you’ve called it and set type PostInit.
I’ve also added screen to launch mlnet inside it.
Enjoy mldonkey on FreeNAS!

FreeBSD 8.0-RELEASE Available

The FreeBSD Team released a new FreeBSD version, 8.0.
What’s new in this version?
– A new virtualization container named “vimage” has been implemented. This is a jail with a virtualized instance of the FreeBSD network stack and can be created by using jail(8) command.
– Xen Dom-U, VirtualBox guest and host, hierarchical jails.
– NFSv3 GSSAPI support, experimental NFSv4 client and server.
– The ZFS file system has been updated to version 13. The changes include ZFS operations by a regular user, L2ARC, ZFS Intent Log on separated disks (slog), sparse volumes, and so on.
– The wireless network support layer (net80211) now supports multiple BSS instances on the supported network devices.
– Gnome 2.26.3, KDE 4.3.1.
See the detailed releas notes to see in depth what was changed from 7.0-RELEASE.
You can buy cds/dvd here.
Or download it using torrents or directly from a mirror.
Or you can upgrade your remote server with freebsd-update(8). (read the man of your current FreeBSD version!!).
And enjoy FreeBSD!

United States Patent 7,617,530: Rights elevator. Microsoft patent sudo. Or only the gui to have administrator privileges?

This is ridiculous but at the same time so sad. USPTO accepted the request, and now Microsoft have the patent for that is common know as ‘sudo’. Or only for the gui?
Reading from the patent:

This invention relates to elevating a computer user’s rights.
And after:
Rights elevator 114 is capable of elevating a user’s rights; including permitting a task that is prohibited by a current user’s account or the controlled-access application. The rights elevator may enable a user to elevate his rights from that of a limited-rights account, such as a standard user (e.g., non-admin) account, to a higher-rights account, such as an administrator account. The rights elevator may enable the user to elevate his or her rights through user interface 116, such as by presenting a name of a higher-rights account and enabling submission of an authenticator for that account.
Does Microsoft invented this? Really? I don’t think so.
From the webpage of sudo:
Sudo was first conceived and implemented by Bob Coggeshall and Cliff Spencer around 1980 at the Department of Computer Science at SUNY/Buffalo. It ran on a VAX-11/750 running 4.1BSD. An updated version, credited to Phil Betchel, Cliff Spencer, Gretchen Phillips, John LoVerso and Don Gworek, was posted to the net.sources Usenet newsgroup in December of 1985.

Now, i don’t get if this patent is strictly related to the user interface that permit this temporary “privilege escalation” or if they really have the patent for the concept behind sudo, plus a graphic interface.
This patents are getting ridiculous, really.

Install Slackware 13.0 on Acer Aspire One AO751h

If you have tried to install Slackware on this netbook…
…you know that default installer doesn’t see the hard disk, because the kernel needs support for Intel US15W chipset :/.
But there’s a workaround for us, we need to insert in the kernel the module that allows chipset work properly.
You have to download the pata_sch.ko module from here, or take it from an installed slackware, or download kernel-modules- package and extract the module.
This is what i’ve done: i’ve put the module in one usb key, i’ve created a bootable usb key with default usbboot.img image and i’ve booted with the hugesmp.s kernel.
Now it’s time for the little trick, mount the key with the module (or you can setup the nic card and download it straight from the web), copy the module and insert it in the kernel:
mount /dev/sdb1 /mnt
cp /mnt/pata_sch.ko .
umount /mnt
insmod pata_sch.ko

Now you can see the disk, enjoy your Slackware on Aspire One a751 :)

Slackware doesn’t see the hard drive during installation because there isn’t pata_sch module. This happen again when you try to boot your new installation.
So, after installation, when you press the EXIT button, do not reboot but chroot inside your installed Slackware, with chroot /mnt
Then create a custom mkinitrd with the pata_sch module built-in, with
mkinitrd -c -k -m ext3:pata_sch -f ext3 -r /dev/sdax
Assuming you’re using ext3 and sdax is the / partition, the module should be present in the installation if you’ve installed kernel-modules-smp-
That’s all.
I’ve installed Slackware in an encrypted LVM volume, following the README_CRYPT.TXT guide, except for the mkinitrd command, i’ve used:
mkinitrd -l it -c -k -m ext3:pata_sch -f ext3 -r /dev/cryptvg/root -C /dev/sdxx -L
And i’ve used GRUB instead of LILO, because i’ve installed the bootloader in the /boot partition instead MBR, where there is Truecrypt bootloader for Windows encrypted partition.
If someone have other tips about Slackware on this netbook, feel free to write a comment, thanks.

Slackware 13.0 released!

Slackware 13.0 is out!
Finally Pat released this new waited version of Slackware Linux!
What are most important changes?
– Linux kernel
– X.Org X Server 1.6.3
– KDE 4.2.4
– Xfce 4.6.1
– A new .txz compressing format for Slackware packages
– An official 64bit port! (x86_64)
– and lot more..

Check the announce to know everything about what was changed/improved in this new version.
If you want to support the project, you can buy an official DVD/CD rom set at, pre-orders are active.
Or you can find torrents here, direct links to DVD torrents:


How to upgrade:
follow the istructions of the holy UPGRADE.TXT :)
For italians:
per aggiornare da Slackware 12.2 a 13.0 c’e’ una guida sul wiki di e un topic sul forum.
Enjoy the slack :>