SliTaz SliTaz Forum

You are not logged in.

#1 2012-03-30 21:15:53

lopanrs
Member
Registered: 2012-03-30
Posts: 6

Recreate a ISO with needed packages to 3g connect

Hello everybody, SliTaz works fine to me, all i want is a distro to boot and UP in seconds, everything works (wifi, eth0, audio, video) except my 3G dongle (ZTE MF-110).

I'm running SliTaz-4.0-RC3 from a iso file in my /boot directory of VectorLinux 6 distro, and grub2 to load the systems.

How can i add the packages linux-dialup-2.6.37, wvstreams-4.6.1, wvdial-1.61 and perhaps anothers in the SliTaz-4.0-RC3 iso file ? I tried to unpack the rootfs.gz packages with i create earlier with cat rootfs4.gz rootfs3.gz rootfs2.gz rootfs1.gz > rootfs.gz to run the ISO from grub2, but the command (xz -d rootfs.gz -S .gz) reports me a corrupt file. That's it, basically how to build a personal slitaz iso is what i want.

thanks and sorry the bad english.

wtf brazilian invasion ? hehehe

Offline

#2 2012-03-30 22:04:06

Trixar_za
Administrator
Registered: 2011-03-29
Posts: 1,506

Re: Recreate a ISO with needed packages to 3g connect

We're already working on adding all the packages SliTaz 4 will require to make 3G connection work. The list being: linux-dialup, ppp and usb_modeswitch - yep, you really only need those three. We just have to write a dialer program that works with 3G modems wink

Offline

#3 2012-03-31 20:43:59

lopanrs
Member
Registered: 2012-03-30
Posts: 6

Re: Recreate a ISO with needed packages to 3g connect

NICE, thanks for fast reply.

So, next release of SliTaz should have those packages !?

I suggest to include wvdial and his frontend pyWvdial, probably easy than build a dialer from scratch...

Thank you, should i change the status of the post ?

Offline

#4 2012-03-31 21:15:01

Trixar_za
Administrator
Registered: 2011-03-29
Posts: 1,506

Re: Recreate a ISO with needed packages to 3g connect

Well, we don't really /need/ wvdial to make it work. Not that it's not light in itself, considering it only uses like 500kb of space on the iso image. Still that's 500kb we could save hey. I also don't want to use python scripts since that means having to add like 8MB to the iso size because python is huge. Would be better to write it in bash using yad to generate the dialog for the dialer.

Technically it would just be easier to write a dialer program that runs through ppp. It's actually not that hard to bolt on the settings needed for a device, but most values are dynamic, which means we can't use hard coded configuration files to do it and must do it via command line instead - that's where it gets a little tricky.

Offline

#5 2012-04-01 01:41:56

lopanrs
Member
Registered: 2012-03-30
Posts: 6

Re: Recreate a ISO with needed packages to 3g connect

Now i see the point, it is incredible how slitaz works with only 35MB, and have to agree with you to keep the things smaller.

Thanks again and i'll wait for next release with 3g support.

see ya !

Offline

#6 2012-04-01 06:56:43

lopanrs
Member
Registered: 2012-03-30
Posts: 6

Re: Recreate a ISO with needed packages to 3g connect

Until the next release i solved using the 4.0-RC3 iso from grub2 and install the packages:

usb-modeswitch-1.2.3

usb-modeswitch-data-20120120

linux-dialup-2.6.37

wvdial-1.61

wvstreams-4.6.1

Copy the wvdial.conf used with my other linux distro to /etc

Then burn the 4.0-RC3 iso into a cdrw and leave it on the drive and use the command: tazlito writeiso lzma

For my surprise the iso generated is smaller than the original:

-rw-r--r--    1 root     root      38688768 Mar 30 12:05 slitaz-4.0-RC3.iso

-rw-r--r--    1 root     root      37748736 Apr  1 03:27 slitaz.iso

And now just open a terminal and send wvdial.

Offline

#7 2012-04-01 07:36:55

Trixar_za
Administrator
Registered: 2011-03-29
Posts: 1,506

Re: Recreate a ISO with needed packages to 3g connect

That would do it - the pain just comes when usb-modeswitch does not switch the modem automatically hmm

Offline

#8 2012-04-01 09:39:24

lopanrs
Member
Registered: 2012-03-30
Posts: 6

Re: Recreate a ISO with needed packages to 3g connect

Yes, but it depends of hardware i think, i try nokia cs-11, zte mf110 and huawei e173s, the nokia (/dev/ttyACM0) and zte (/dev/ttyUSB2) became a modem if ejected (eg. eject /dev/sr1) but huawei not, only works with usb-modeswitch...

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.020 seconds, 8 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]