if URL = http://ftp.tudelft.nl/centos.org/5.5/os/i386/ (d1008 current) (Note: onnet needs to match boot media) then "netinstall" provide this info: Server = ftp.tudelft.nl Path = /centos.org/5.5/os/i386
http://ftp.tudelft.nl/centos.org/5.5/os/x86_64/ Server = ftp.tudelft.nl Path = /centos.org/5.5/os/x86_64 http://ftp.tudelft.nl/centos.org/5.5/isos/x86_64/CentOS-5.5-x86_64-netinstall.iso
http://ftp.tudelft.nl/centos.org/6.2/os/x86_64/ Server = ftp.tudelft.nl Path = /centos.org/6.2/os/x86_64 http://ftp.tudelft.nl/centos.org/6.2/isos/x86_64/CentOS-6.2-x86_64-netinstall.iso
http://ftp.tudelft.nl/centos.org/6.5/os/i386/ Server = ftp.tudelft.nl Path = /centos.org/6.5/os/i386 http://ftp.tudelft.nl/centos.org/6.5/isos/i386/CentOS-6.5-i386-netinstall.iso
rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm rpm -Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm rpm -Uhv http://apt.sw.be/redhat/el4/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el4.rf.i386.rpm
rpm -Uvh http://download.fedora.redhat.com/pub/epel/4/i386/epel-release-4-9.noarch.rpm rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-3.noarch.rpm See for latest version: http://download.fedora.redhat.com/pub/epel/5/i386/repoview/epel-release.html ==> rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
Remove NetworkManager, manual network config:
/etc/init.d/NetworkManager stop update-rc.d -f NetworkManager remove /etc/init.d/networking stop vi /etc/network/interfaces /etc/init.d/networking start
Disable GUI (X) and start in CLI:
update-rc.d -f gdm remove /etc/init.d/gdm stop
/ch-gateway.en.html|Debian Networking Reference]]
Howto Boot debian in text mode instead of graphical mode (GUI)
You can prevent automatic running of the GUI when you boot your debian machine by disabling your login manager be it KDM, GDM or XDM from running at boot time. To disable the login manager from automatically running at boot up, run the following command as root #update-rc.d -f gdm remove Replace gdm with kdm or xdm if they are what you use. To start X manually, you would then have to login at the command prompt and enter the command startx. To reset your login manager so that it runs at boot up, do #update-rc.d -f gdm defaults
# set sources.list cat > /etc/apt/sources.list deb http://ftp.nl.debian.org/debian/ lenny main deb-src http://ftp.nl.debian.org/debian/ lenny main deb http://security.debian.org/ lenny/updates main contrib deb-src http://security.debian.org/ lenny/updates main contrib # update: aptitude update # first upgrade the core apt packages aptitude install apt dpkg aptitude # perform the full upgrade aptitude full-upgrade # old way: apt-get dist-upgrade
# Create bootable CD 0. get 'boot.img.gz' with same version/arch as ISO 1. mount USB in Linux 2. raw copy IMG: > zcat boot.img.gz > /dev/sdb 3. mount in macOS 4. copy ISO in root dir of USB
# Installing debootstrap or cdebootstrap from backports.org # add vi /etc/apt/sources.list deb http://www.backports.org/debian etch-backports main apt-get update apt-get install -t etch-backports debootstrap # It is not recommended that you use live-helper from # backports.org as it is likely to be out of date. apt-get install -t testing live-helper
# i386 wget http://cdimage.debian.org/debian-cd/current-live/i386/iso-hybrid/debian-live-8.2.0-i386-standard.iso wget http://ftp.debian.org/debian/dists/stable/main/installer-i386/current/images/hd-media/boot.img.gz # amd64 wget http://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/debian-live-8.2.0-amd64-standard.iso wget http://ftp.debian.org/debian/dists/stable/main/installer-i386/current/images/hd-media/boot.img.gz same: http://ftp.debian.org/debian/dists/stable/main/installer-i386/20150422+deb8u2/images/hd-media/boot.img.gz # # in Debian8-VM: zcat boot.img.gz > /dev/sdb # on Mac copy ISO (note: in Debian the partition table was corrupt??) cp debian-live-8.2.0-i386-standard.iso /Volumes/Debian\ Inst/ # note when you boot the USB stick, the first installer welcom page is quick, but then it is slow >10m (read ISO in RAM?)
# create bootable USB stick with latest standard netinst debian ISO for easy system install: # http://www.debian-administration.org/article/Boot_Debian_from_an_USB_device fdisk -l umount /dev/sdb wget http://ftp.debian.org/debian/dists/stable/main/installer-i386/current/images/hd-media/boot.img.gz # sudo sh -c 'zcat boot.img.gz > /dev/sdb' zcat boot.img.gz > /dev/sdb mkdir /mnt/sdb mount /dev/sdb /mnt/sdb # old: wget http://cdimage.debian.org/debian-cd/5.0.7/i386/iso-cd/debian-507-i386-netinst.iso wget wget http://cdimage.debian.org/debian-cd/current/i386/iso-cd/debian-6.0.6-i386-netinst.iso cp debian-6.0.6-i386-netinst.iso /mnt/sdb sync umount /dev/sdb
zcat boot.img.gz > /dev/sdb
# get tools: apt-get install dosfstools syslinux mtools tofrodos # check DOS partition table with 1 primary, bootable, FAT16, 2GB partition: umount /dev/sdb1 # create FAT16 (type 6) partition and set bootable flag: fdisk /dev/sdb # install MBR install-mbr /dev/sdb # create a FAT16 partition: mkdosfs -n DEBIAN6 -F 16 /dev/sdb1 # create bootable disk: syslinux /dev/sdb1 # mount USB disk: mkdir -pv /mnt/sdb1 mount /dev/sdb1 /mnt/sdb1 cd /mnt/sdb1 # get boot images: wget -c http://ftp.debian.org/debian/dists/stable/main/installer-i386/current/images/hd-media/vmlinuz wget -c http://ftp.debian.org/debian/dists/stable/main/installer-i386/current/images/hd-media/initrd.gz # create config file: cat > syslinux.cfg default vmlinuz append initrd=initrd.gz ^D todos syslinux.cfg # copy ISO image wget -c http://cdimage.debian.org/debian-cd/6.0.4/i386/iso-cd/debian-6.0.4-i386-netinst.iso # done sync cd umount /dev/sdb1
# debian-netinst-usb-boot-setup.txt 1. download the latest stable 'debian-x.x.x-amd64-netinst.iso' from: https://www.debian.org/distrib/netinst/ Direct link: http://cdimage.debian.org/debian-cd/8.6.0/amd64/iso-cd/debian-8.6.0-amd64-netinst.iso 2. download MATCHING latest stable 'boot.img.gz' from: http://ftp.debian.org/debian/dists/Debian8.6/main/installer-amd64/current/images/hd-media/ Direct link: http://ftp.debian.org/debian/dists/Debian8.6/main/installer-amd64/current/images/hd-media/boot.img.gz 3. in Linux (not Mac), low-level copy 'boot.img.gz' to USB dev: zcat boot.img.gz > /dev/sdb 4. in Mac (or Linux), copy 'debian-x.x.x-amd64-netinst.iso' to the root filesystem of USB disk. 5. boot USB
> diskutil list ... /dev/disk3 (external, physical): #: TYPE NAME SIZE IDENTIFIER 0: Debian Inst *8.0 GB disk3 > diskutil unmountDisk /dev/disk3 Unmount of all volumes on disk3 was successful > sudo dd if=/dev/zero of=/dev/rdisk3 bs=1024 count=1 Password: 1+0 records in 1+0 records out 1024 bytes transferred in 0.001703 secs (601283 bytes/sec) > sudo dd bs=1m if=debian-9.5.0-amd64-netinst.iso of=/dev/rdisk3 # that worked! samba HW server could boot from USB stick, and no kernel modue error this time...
This worked on CentOS5:
then:
ln -s /usr/java/jre1.5.0_17/bin/java /usr/bin/java
convert from host (your machine) byte order to network byte order: htons() host to network short htonl() host to network long ntohs() network to host short ntohl() network to host long