venerdì 17 settembre 2010

[HOWTO] - Slax powered by zen-kernel v. 2.6.32

Ecco spiegato passo passo come installare il nuovo kernel 2.6.32 nella nostra Slax: 

Fonte:http://www.slax.org/forum -  Thanks to : fanthom

Before you start: make a backup on your existing Slax installation!

WARNING: after upgrading, all kernel dependent Slax modules like: Virtualbox or proprietary GPU drivers will need to be updated to the new kernel version too.
WARNING: If you are changing something in kernel config and recompiling kernel once again, you may need to replace all kernel modules (M) in initrd and 001-core.lzm accordingly.

Hardware requirements:
at least 2GB of memory when Slax runs with copy2ram cheatcode
1,5GB of free space on usb stick or hard drive when building up maximum compatibility kernel (all options enabled)

Let's start!

Section I Kernel

First of all make sure that Slax devel package is activated:

activate /mnt/sdb1/slax/optional/006-devel.lzm


download recent kernel version and unpack it somewhere:

wget http://distfiles.gentoo.org/distfiles/linux-2.6.32.tar.bz2
 

tar -xvjf linux-2.6.32.tar.bz2 -C /root/

enter kernel directory and download zen-kernel patches (sq4lzma, reiser4, tuxonice, and other features included, more info: http://zen-kernel.org/included-code)

cd /root/linux-2.6.32

 
wget http://downloads.zen-kernel.org/2.6.32/2.6.32-zen4.patch.lzma

 
decompress zen file and patch the kernel:

lzma -d 2.6.32-zen4.patch.lzma
patch -p1 < 2.6.32-zen4.patch

 
once you have kernel patched you need to configure it. Best way is to use old slax kernel config file.

cp /usr/src/linux/.config .
make oldconfig


script will give you around 100 questions - all changes between kernel 2.6.27.27 and 2.6.32.
If you are not sure which option choose, better keep enter pressed (default options are usually safe).
Check if your configuration is correct:

make menuconfig


Navigate to "File systems" menu and mark ext4 as built in (*) and FUSE as (M). Then go to -> "Miscellaneous filesystems", Aufs and Squashfs can go as a kernel module (M), lzma compression must be (*)
Mark other drivers and features as you like :D
EDIT: Read cheater1034 post before you finish with configuration: http://www.slax.org/forum.php?action=view&parentID=53971
Now it's time to build a kernel so:

make && make modules_install && make firmware_install


It's gonna take long time so grab a beer.
If no errors are reported you can copy your shiny new zen kernel to Slax /boot directory

cp arch/x86/boot/bzImage /mnt/sdb1/boot/vmlinuz


Comments:
1. Good idea it to store compiled sources somewhere (maximum 1,5GB when uncompressed), in case when you'll be adding/changing something, you wont have to go through whole process once again
and compilation will be much faster.
2. If you use Slax on different machines try to compile as many drivers as it's possible as a (M), kernel wont be bloated that much (my gentoo kernel stripped to maximum takes 1.7MB only)
3. Other/Newer zen patches can be found here: http://downloads.zen-kernel.org/
4. Best place for compilation is RAM (fastest). Boot slax with copy2ram cheatcode or use tmpfs instead: http://en.wikipedia.org/wiki/Tmpfs

Section II Initrd

To tweak initial ramdisk, do as follows:

cp /mnt/sdb1/boot/initrd.gz /root
gunzip /root/initrd.gz
mount -o loop /root/initrd /mnt/cdrom


I never do PXE boot so I have removed drivers.lzm from initrd. Also, we don't need old kernel drivers (2.6.27.27) so we can remove them from /mnt/cdrom/lib/modules. Last step is to add proper catalog structure for 2.6.32-zen4. We just need 3 drivers to boot up our new kernel: fuse, aufs and squashfs

rm -r /mnt/cdrom/lib/modules/2.6.27.27/
mkdir -p /mnt/cdrom/lib/modules/2.6.32-zen4/kernel/fs/fuse/
mkdir -p /mnt/cdrom/lib/modules/2.6.32-zen4/kernel/fs/squashfs/
mkdir -p /mnt/cdrom/lib/modules/2.6.32-zen4/kernel/fs/aufs/
cp /lib/modules/2.6.32-zen4/kernel/fs/fuse/fuse.ko /mnt/cdrom/lib/modules/2.6.32-zen4/kernel/fs/fuse/
cp /lib/modules/2.6.32-zen4/kernel/fs/squashfs/squashfs.ko mnt/cdrom/lib/modules/2.6.32-zen4/kernel/fs/squashfs/squashfs.ko
cp /lib/modules/2.6.32-zen4/kernel/fs/aufs/aufs.ko /mnt/cdrom/lib/modules/2.6.32-zen4/kernel/fs/aufs/
depmod -b /mnt/cdrom


Now we have to convert usr.lzm from initrd to squashfs4 format (new kernel wont be able read old lzm modules). First, copy it to root folder and extract the content.

mkdir /root/usr
lzm2dir /mnt/cdrom/usr.lzm /root/usr/


Download my module and activate it: (you can also build sq4fs tools from sources using cvs - to add lzma compression just edit Makefile, Phillip left some hints there)

wget http://www.slax.org/modules/3155/dl/squashfs4-tools.lzm

It will create squashfs4-tools folder under /root directory. You'll find there a mksquashfs and unsquashfs binaries patched for lzma compression.

/root/squashfs4-tools/mksquashfs /root/usr /root/usr.lzm
mv /root/usr.lzm /mnt/cdrom/


All done for now so repack initrdand move it to boot folder:

umount /mnt/cdrom
gzip /root/initrd
mv /root/initrd.gz /mnt/sdb1/boot/


Comments:
1. If you want PXE boot or other drivers in initrd then add them to drivers.lzm. Remember to create lzm module using new squashfs4-tools.

Section III Converting slax modules to the new format

Same usage as with usr.lzm file

/root/squashfs4-tools/mksquashfs /mnt/live/memory/images/002-xorg.lzm/ /mnt/sdb1/slax/base/002-xorg.lzm
/root/squashfs4-tools/mksquashfs /mnt/live/memory/images/003-desktop.lzm /mnt/sdb1/slax/base/003-desktop.lzm


Now we need to get rid of old drivers from 001-core.lzm so:

cp -r /mnt/live/memory/images/001-core.lzm/ /root/001-core/
rm -r /root/001-core/lib/modules/*
rm -r /root/001-core/lib/firmware/*
cp -r /lib/firmware/* /root/001-core/lib/firmware/
mkdir /root/001-core/lib/modules/2.6.32-zen4/
cp -r /lib/modules/2.6.32-zen4/* /root/001-core/lib/modules/2.6.32-zen4/
/root/squashfs4-tools/mksquashfs /root/001-core/ /mnt/sdb1/slax/base/001-core.lzm


Comments:
1. Any volunteer to write a script for automatic conversion?

Thats it!
Reboot and enjoy :D

Section IV Debugging

When something goes wrong and you finish with:
"looking for Slax data Directory"
you will have an access to the debug shell so take those actions:
1) run lsmod and make sure you have fuse, aufs and squashfs loaded
2) mount your usb key manually:

mkdir /mnt/usb

mount /dev/sdb1 /mnt/usb


If you get message like "/dev/sdb is not a valid block device" or similar it means that you are short of some required drivers or filesystem support. Add them to config, recompile kernel and replace all drivers in initrd and 001-core.lzm. If you are able to mount the stick then everything should go fine.


Final Comments:
1. I didn't replace original squashfs tools in 001-core.lzm cause I need them for repacking modules.
2. New sq4lzma modules are little bit bigger in size. I used defaults options so experiments with block size etc are very welcome.
3. Zen sources are rich of experimental/untested features, be aware of that. Familiarize yourself with Issue Tracker: http://zen-kernel.org/issues

Good luck!

venerdì 27 agosto 2010

[Slax-Remix] v08/2.6.35.3/slackware-current

Finalmente è uscita la versione finale della Slax-Remix v.08

Grazie ancora a tutti gli utenti della community che hanno lavorato e continuano a lavorare a questo progetto.

Eccovi il link dove poterla scaricare:

Slax-Remix v08

Enjoy ^_^

mercoledì 18 agosto 2010

Slax Remix-v08-BETA2

Per tutti gli appassionati di Slax Remix è disponibile una nuova versione (la 0.8) in modalità beta.

Qui potete trovare i dettagli dei cambiamenti rispetto alla versione precedente mentre qui potete scaricare la versione beta2.

Ora non ci resta che aspettare la versione final....vi terrò informati ;-)

Happy Linux a tutti !!!

martedì 17 agosto 2010

Slax Drive

In questo post voglio parlarvi di Slax Drive.

Slax Drive è in pratica un disco di rete che ti permette di archiviare i tuoi dati direttamente online. Puoi metterci tutti i tuoi file per poi accedervi da qualsiasi computer (sia con sistema operativo Linux che con sistema operativo Windows).Slax Drive è un servizio a pagamento, anche se si può provare gratuitamente prima di aquistarlo. Questo è un'ottima possibilità per sostenere lo sviluppo Slax e ottenere qualcosa di utile allo stesso tempo.

Questo è il link per accedere a Slax Drive (bisogna prima registrarsi gratuitamente)

Slax Drive

Che state aspettando???Correte a provarlo!!! ^_^

Slax Portable - Hai Linux direttamente nella tua chiavetta.

17 Agosto 2010 - Fonte: http://www.informaticamica.com

Slax Portable, ovvero la versione di Linux Slax, che sarà trattata in questo articolo è quella trasportabile che s'installa direttamente su chiavetta USB. Tenete a mente che esistono anche altri formati in cui è possibile scaricare e salvare Slax. Esiste, per esempio, il formato ISO che una volta scaricato nel vostro disco potrà essere masterizzato come Immagine bootable in un CD. Ma che cos'è Slax, più in dettaglio, nel nostro caso 'Slax Portable'?
La risposta è che Slax, è un sistema operativo Linux moderno, snello, che, per il suo funzionamento, usa dei moduli precompilati e offre un'interfaccia grafica veramente accattivante. Penso che sia geniale come, nonostante le sue dimensioni praticamente ridotte, Slax offra un'ampia gamma di pacchetti di software già pre-installati. Per i neofiti o, semplicemente, chi non ha tempo, Slax, mediante interfaccia grafica Web, offrè la possibilità di creare la propria copia di sistema operativo finemente personalizzata. Oltre alla superba interfaccia grafica, peraltro veramente intuitiva, in più, Slax è corredato da un set di potentissimi strumenti di recovery, che permettono una piacevole e proficua amministrazione.

Funzionamento:

Slax funziona con un approccio di tipo modulare. Con i moduli, infatti, questo Sistema Operativo, vi darà la possibilità di aggingere velocemente ulteriori pacchetti software. Cosi se in Slax noterete che, ancora, non disponete del vostri pacchetti preferiti: l'editor di testo, il browser, gli strumenti di rete, etc.. allora non dovrete fare altro che andare nel sito e scaricarli e successivamente aggiungerli a Slax senza alcun bisogno di installazioni e configurazioni.

Schermata della KDE di Slax:


Sito Software House: http://www.slax.org/

* Size dopo l'estrazione: 199 MB
* Tipo di licenza: Freeware (per uso personale)
* Requisiti di Funzionamento: Microsoft Windows 2000, XP, Vista, 7 - Linux - Chiavetta USB

Come installare Slax:

1. Scaricare il software. Scompattare il file .tar direttamente nella vostra chiavetta USB.
2. Lanciare il bootinst.bat o bootinst.sh per creare l'avvio al boot.
3. La chiavetta adesso è bootable, riavviare il sistema imponendogli di partire direttamente da USB.

Nota Operativa: Usare una chiavetta USB dedicata per l'esecuzione del sistema operativo potrebbe dimostrarsi una scelta utile.

Scarica il software (Sito esterno)

venerdì 6 agosto 2010

Slax Remix V7

Bene oggi vi parlerò di Slax Remix 7.

Ok ma che cos'è???

Slax Remix è una derivata di Slax creata da un utente del forum ufficiale di Slax (fanthom) e gruppo di appassionati di informatica,che fornisce oltre alle classiche funzioni di Slax anche nuove funzionalità e maggior supporto ai driver.

Per saperne di più vi rimando al Thread ufficiale sul forum ufficiale di Slax.

http://www.slax.org/forum.php?action=view&parentID=62815

Happy Linux!!!

lunedì 19 luglio 2010

Convertire .deb in LZM o in DIR per Slax !

19 Luglio 2010 - Fonte: http://www.unicz.net/blog

Per raggiungere il nostro scopo, cioè per convertire i file da deb in lzm, utilizzeremo un semplicissimo nautilus-script.

  • Create un nuovo foglio vuoto e inseriteci dentro:

#!/bin/bash

while [ $# -gt 0 ]; do
source=$1
destination=`echo “$source” | sed ‘s/.w*$/.lzm/’`
directory=`echo “$destination” | sed ‘s/.w*$//’`
/bin/mkdir “$directory”
/usr/bin/deb2lzm “$source” “$destination”
/usr/bin/lzm2dir “$destination” “$directory”
shift
done

  • posizioniamoci sul file clicchiamo su tasto destro del mouse su Proprietà => Permessi e spuntiamo “Consentire l’esecuzione del file come programma”, ora non ci resta che copiarlo nella directory /home/$UTENTE/.gnome2/nautilus-scripts/slax-tools/ (dove $UTENTE sarà il vostor nome utente) con il nome “deb2lzm2dir” (o qualunque voi vogliate).
  • riavviamo nautilus (da terminale date il comando killall nautilus)

Per utilizzare lo script dovrete posizionarvi su un file .deb e cliccare con il tasto destro del mouse su script => slax-tools =>deb2lzm2dir ed il gioco è fatto !