Archive for February, 2007

Install webmin

Saturday, February 10th, 2007

Omdat er een oude versie van webmin in de Debian repositories zit, en de nieuwste stabiele versie toch wel heel erg prettig is, raad ik iedereen aan gewoon even de nieuwste versie te downloaden, en deze te installeren.

Allereerst zet je het volgende in /etc/apt/sources.list:
deb http://http.us.debian.org/debian stable main contrib non-free
deb http://non-us.debian.org/debian-non-US stable/non-US main contrib non-free
deb http://security.debian.org stable/updates main contrib non-free


apt-get update
dpkg -i webmin_1.320_all.deb

Nu kan je inloggen op https://ip-adres-server:10000 inloggen met je root account en wachtwoord, en alles configureren zoals jij wilt!

Slipstream Debian (3)

Sunday, February 4th, 2007

Luckily I do not know/do/type everything by heart. I do copy sometimes something commands from other sites to see what there context is. for some reason the parameters that person used, did work with him, but not with me. I figured it out, and the final step is:

root@ubuntu:/home/ubuntu# mkisofs -o output.iso -b boot/boot.img -c boot/boot.catalog -no-emul-boot -boot-load-size 4 -boot-info-table newiso/

__ Edit __
“This is not a bootable disk. Please inseert a bootable floppy and press any key to try again”
Speaks for itself I’m afraid :’(

Slipstream Debian (2)

Sunday, February 4th, 2007

I created a new kernel config, by using the ubuntu kernel-config,and altering only the options of which I’m sure I need them. This results in a kernel that does not give any errors while compiling. The kernel-config can be found here.

Now I can continue with creating the final iso-file.

root@ubuntu:/mnt/memory# mkdir /home/ubuntu/newiso/pool/main/k/kernel-image-2.6.19.2_10.00.Custom_amd64/
root@ubuntu:/mnt/memory# cp kernel-image-2.6.19.2_10.00.Custom_amd64.deb /home/ubuntu/newiso/pool/main/k/kernel-image-2.6.19.2_10.00.Custom_amd64/
root@ubuntu:/mnt/memory# cd /home/ubuntu/newiso/pool/main/
root@ubuntu:/home/ubuntu/newiso/pool/main# chmod -R o-w *
root@ubuntu:/home/ubuntu/newiso/pool/main# cd ../../../

And then, all that’s left to do, is to put it alltogether to an in iso file:

root@ubuntu:/home/ubuntu# mkisofs -o debian_custom001-x86_64.iso -J -R -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table newiso/
INFO: UTF-8 character encoding detected by locale settings.
Assuming UTF-8 encoded filenames on source filesystem,
use -input-charset to override.
mkisofs: Uh oh, I cant find the boot catalog directory 'isolinux'!

Now I forgot about isolinux. Just have to figure out how I’m going to fix this.

Slipstream Debian

Saturday, February 3rd, 2007

For the current default stable debian release doesn’t support my chipset, I decided to slipstream my own Debian cd, installer included. I will try to minimalise the amount of packages, for I think the default netboot cd offers still too many. Also, I will use the newest stable kernel: 2.6.19.2 . Because I screwed up my previous ubuntu installation and because the ubuntu installer denies service, I do it all from a live-cd.

root@ubuntu:/home/ubuntu# w-get http://cdimage.debian.org/debian-cd/3.1_r4/ia64/iso-cd/debian-31r4-ia64-netinst.iso
root@ubuntu:/home/ubuntu# mkdir /mnt/iso
root@ubuntu:/home/ubuntu# mount -o loop /home/ubuntu/debian-31r4-ia64-netinst.iso /mnt/iso
ioctl: LOOP_SET_FD: Invalid argument

I can’t figure out what the ioctl error means exactly, some say it’s a module that wasn’t compiled in the kernel, but that is not the problem here. Luckily I found a way to fix it:

root@ubuntu:/home/ubuntu# mkdir /mnt/memory
root@ubuntu:/home/ubuntu# mount -t tmpfs tmpfs /mnt/memory
root@ubuntu:/home/ubuntu# mkdir /mnt/iso
root@ubuntu:/home/ubuntu# cp debian-31r4-ia64-netinst.iso /mnt/memory/
root@ubuntu:/home/ubuntu# mount -o loop /mnt/memory/debian-31r4-ia64-netinst.iso /mnt/iso

So now the iso is extracted/mounted in /mnt/iso. First off, I copied everything to another directory, looked if there are any differences (which weren’t the recursive directory loop warning can be ignored), and set the rights so that I can do the rest as a normal user.
root@ubuntu:/home/ubuntu# mkdir newiso
root@ubuntu:/home/ubuntu# cp -a /mnt/iso/* newiso/
root@ubuntu:/home/ubuntu# cp -a /mnt/iso/.disk/ newiso/
root@ubuntu:/home/ubuntu# diff -crN /mnt/iso/ newiso/
diff: /mnt/iso/debian: recursive directory loop
root@ubuntu:/home/ubuntu# cd newiso/pool/main/
root@ubuntu:/home/ubuntu/newiso/pool/main# chmod -R o+w *

Now, it’s time to compile the kernel.
root@ubuntu:/home/ubuntu# apt-get install kernel-package libncurses5-dev
...
root@ubuntu:/home/ubuntu# w-get http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.19.2.tar.gz
root@ubuntu:/usr/src# rm -rf /mnt/memory/*
root@ubuntu:/home/ubuntu# cd /mnt/memory
root@ubuntu:/usr/src# tar -xzf /home/ubuntu/linux-2.6.19.2.tar.gz

Ubuntu uses 1.7 GiB according to ‘df’. The default partition (tmpfs) ubuntu creates is 1.9 GiB, while the extracted linux kernel is 557 MiB. Herefor I emptied /mnt/memory first, and extracted it there.

root@ubuntu:/mnt/memory# cd linux-2.6.19.2/
root@ubuntu:/mnt/memory/linux-2.6.19.2# make oldconfig
root@ubuntu:/mnt/memory/linux-2.6.19.2# make-kpkg kernel-image

And then I get stuck with some error during the compiling of the kernel. Busy on figuring out what I did wrong during the configuration of the kernel. You can find my kernel-configuration here.

Ipv6, the request

Thursday, February 1st, 2007

I’m back again. I’ve made up my mind: I’m not going to give any guarantees again about the regularity I’ll post here. However, I will try to do this on a more regular base, instead of once every three monhts.

I decided to keep myself busy with Ipv6 the next few weeks, besides my coding (also starting on perl, besides php) activities. First of all is to request an ipv6 range of addresses. I wanted to do this at first with xs26.net, you do however need to create a RIPE-handle which is not a real big problem if you know what you’re doing. For I didn’t, I decided to follow on this tutorial. Unfortunately xs26.net rejected my RIPE-handle every time without a clear error.

I decided to look for another Ipv6 provider, and found sixxs.net which looks (to me) just as good, or even better than xs26.net. The advantage of sixxs.net is that it has an all-in-one solution. There is one form you need to fill out, and that’s the entire Sign-up process. No more dealing with several handles with a third-party (which is a quite important party though), and just filling in some personal info of which I’m pretty sure that’s right ;)

Now it’s time to wait for the verification by a human (of which unfortunately no automated version is available). And then I want to see if it’s possible to give every device that is connected to the internet an own ipv6 address. I have been given by my ISP, xs4all, one ipv6 address, which is intended for one tunnel only. A next step would be that I can enter my ipv6-range into the xs4all-configuration panel, so that no more tunneling is required.