29

December
2012

PXE support in Slax

After numerous requests for PXE support I've decided to implement it. It wasn't such hard, yet I struggled two problems. First one was an odd behavior of cpio, which wasn't able to create correct archive when asked to pack files from several directories into one. I didn't really find out how to make it work the way I wanted, so I had to create a temporary directory where all files are copied a priory and packed into a CPIO archive later. Another problem was pivot_root call, which refused to work and returned Invalid Argument error every time. Took me a hour to find out what's wrong. Linux live kit though it already escaped initramfs due to forgotten flag file. Anyway, the problems were resolved and I'm now running Slax which booted over PXE.

There is yet one more issue I'd like to address, it is the speed of downloading Slax bundles (.sb files) over TFTP. It's very slow. So I'm compiling busybox with httpd support (yeah) and I'm going to try that instead of tftp, in the hope that it will be somehow faster.

How PXE works: One computer (a server) is running Slax. Use command or boot parameter (unnamed yet) to prepare Slax to act as PXE server - it will just create an initramfs image with all network kernel drivers which are currently available in the currently running Slax, and will start dhcp and tftp services.

Other computers (clients) will have PXE boot selected instead of disk boot. PXE autodiscovery will send to each client computer a new IP address and the needed files (vmlinuz, initrfs.img). Slax boots on client machines, modprobes kernel drivers to enable networking, downloads *.sb files from the local server into memory and runs from there.

User comments
Mark De Silva 2012-12-29 09:36

Great news! Definitely eager to try it out.

Thanks Tomas!

Marvel Bridge 2012-12-29 16:00

Hi

I need recompile the kernel and activate PAE in x86 and kernel-headers.
How?
Please!

STFF 2012-12-29 17:04

You won't get an answer while hijacking another post and not searching the forum!

Marvel Bridge 2012-12-30 00:31

@STFF

Really? Ohhhhh. I am looking at various forums.

Tomas M 2012-12-30 01:39

PAE is not supported officially in Slax, sorry. Recompiling kernel is an option, since source codes are available, but it is not an easy task, you'd have to modify lots of things in Slax, namely kernel modules in initramfs image and kernel drivers in core squashfs bundle. I can guide you through the process but it would be a paid support.

Tomas M 2012-12-30 01:41

Well actually I have to correct myself. It is easy task, it is not just simple :)

Liquid Snake 2012-12-30 02:51

@Marvel Bridge: This is where I learned how to compile kernels: porteus.org/tutoriels/51-development/91-compilation-and-usage-of-custom-porteus-kernel.html

As Porteus is also a live distro, the process is the same.

Thiago Silvino 2012-12-30 08:01

@Thomas M, you could try mounting the /mnt/live by using NFS and copy the sb files from there. Maybe it's faster.

tdmsilvino

Slaxeee 2012-12-30 08:16

An other alternative to http or NFS is sshfs.
Customizing Slax 6 for "ghostlike" distribution, i found it good to give a read-write solution.

I remember too i was in trouble with compiled modules inside PXE. The driver.lzm embeded had to be update and custom detection module too, due to newest network card.

Maybe Tomas could think about an elegant solution to keep those drivers up to date.

Tomas M 2012-12-30 09:38

There is no longer any drivers.lzm inside the initramfs image, so don't worry about that.

jcsoh 2012-12-30 16:23

Off Topic Slax 7 Potential Bug ? (I would have posted in the slax 6 forum but it may not be noted). Can other users confirm if they have the same period.

When using smplayer to play japanese anime with subtitles , the audio and subtitle are not in sync. The same anime played with vlc is in sync.

The above was tested on one desktop only (slax 7 installed to the hard disk in live /frugal mode).

Gary 2012-12-30 18:59

Dear Tomas,

Two improvement recommendation for you:

1. In KDE terminal, you will have "root@slaxetc" when you switch to /etc/. It would be better that you can add one delimiter or something.
2. In the booting process, you may need to do rootcopy after all .sb are mounted.

Best regards,
Gary

Gary 2012-12-30 19:27

Dear Tomas,

I may need to correct item 2.
I can do put file here
/rootcopy/usr/share/icons/oxygen/48x48/skype.png
rather than here
/rootcopy/usr/share/icons/default.kde4/48x48/skype.png

I guess it's how "cp" treats soft-link folders.

Best regards,
Gary

Matt 2012-12-30 20:51

Three questions:
1. How do I update slax using diffmod? There doesn't seem to be any instructions on this website regarding how to do that. Perhaps it will be a good idea to put that under Documentation?
2. Is there a new slax 7 forum? Or are we still using the old one?
3. Where is .bashrc located in slax? I can't seem to find it in Home or root.

Slaxeee 2012-12-30 21:51

@Matt

1) -don't know
2) Tomas aims to replace traditional forum with slashdot-like Requests
3)i t seems there is no bashrc. Due to a mc limitation ( mc-wrapper doesn't take care of last directory ), i had to create my own /root/.bashrc to solve the problem.

pistal 2012-12-31 01:21

@Slaxeee
> 3)i t seems there is no bashrc.
There's already .bashrc in /root/ directory; see ls -a -> Slax 7.0.2

Pepe-Cheb 2012-12-31 02:12

Já jsem pro NFS nebo HTTP či FTP , TFTP je extrémně pomalé.
Prosím pak ukázat jak budou vypadat parametry bootu
KERNEL
APPEND

Díky

derek 2012-12-31 11:08

Anyone have luck on ati/nvidia support yet? Cant seem to figure out how to make a kernel module for my AMD HD video. Tried ATI module for Porteus, but without kernel module, I get errors.

jcsoh 2013-01-01 03:12

Off Topic -Slax 7.02 Bug Report -Dolphin Not Refresh Display Of Folder Content
Not alway but frequently.
For eg
I open Dolphin and go to a folder .
I open a terminal there.
I convert a tgz file using tgz2sb .
The process completed but I can't see the resultant sample.sb.
Clicking the back arrow to exit thr folder and coming back in makes no different.
If I close Dolphin and reopen a new instance of Dolphin , I see the sample.sb in the folder.

Slaxeee 2013-01-01 04:09

@jcsoh
I think it's the normal way except if you make the conversion inside Dolphin. Outside, Dolphin may not receive file change event or may be with an small time interval.
To refresh quickly, you can press F5 key too.

jcsoh 2013-01-01 04:27

"To refresh quickly, you can press F5 key too."
Ok , I id wonder if this was Dolphin's normal behaviour , but I think this default sucks . Earlier I thought my conversion failed as the resultant file was no where to be seen. I thought about "refreshing the screen" but I don't know how , so thanks for the F5 key info.

I was a die hard krusader file manager user , but I can say I am starting to get use and like Dolphin with Slax 7.

Wizard57M 2013-01-01 10:59

Hey gang,
Just been running Slax 7.0.2 through a few paces to get the
feel for the new version. After using 6.1.2 for some time,
Slax 7 isn't totally alien. Overall Slax 7 seems to be performing
pretty well, both my Acer Aspire One netbook and my Dell
Inspiron 531S desktop booted without any issues, quite nice!
In Slax 6.1.2, I used KMail for most of my email. What are some of you fellow Slax 7 users using for email?

Caio Arcanjo 2013-01-02 07:52

Thomas

Try bbftp instead of tftp or http.
I'll make a benchmark.. but transfers up to 20MB can be better.. :)

http://doc.in2p3.fr/bbftp/doc.3.2.0.html#instserver

Tomas M 2013-01-02 08:55

Actually I've recompiled busybox with httpd support and it seems it works just fine, so I'll stick with that. I'm going to post a release announcement for the next Slax version as soon as FTP mirrors get updated, so users will be able to test it soon.

Josef K 2013-01-02 09:35

I'm excited to see this version ready with support for PXE.
When will it be released? Today?

zoephan 2013-01-02 12:47

SLAX for INDONESIA?????????? first!

Zik 2013-01-02 17:34

Please I need a Guide to Dual Booting Slax 7 and Windows XP

Zik 2013-01-02 17:34

Please I need a Guide to Dual Booting Slax 7 and Windows XP

jcsoh 2013-01-02 17:38

@ Zik
Post at slax 6 forum and mark title of topic with slax 7.
http://old.slax.org/forum.php

Zik 2013-01-02 19:22

Just posted it Jcsoh. Thank you.
(and sorry for the duplicate comment)

Vojtech 2013-01-18 05:06

Je možne boot po síti s využitím PXE a NFS?
Zkusil jsem v pxelinuxu za APPEND přidat root=/dev/nfs netboot=nfs nfsroot=IP:/cesta
ale nedaří se. Stále nemůže najít /slax.