ALL | ||
Ethernet | 802.11 | ARP |
IP | ICMP | |
TCP | UDP |
Reference:
http://jennifermadden.com/javascript/window1.html
typedef unsigned int uint;
uint reverse(uint val)
{
int i;
uint tval=0;
for(i=0; i<sizeof(val)*8; i++)
{
tval <<= 1;
tval |= val&1;
val >>= 1;
}
return tval;
}
typedef unsigned int uint;
uint reverse(uint val)
{
char i;
uint tval=0;
for(i=sizeof(val)*8; val; i--)
{
tval <<= 1;
tval |= val&1;
val >>= 1;
}
return (tval<<i);
}
----------------------script.sh----------------------
#!/bin/sh
ARCHDIRS="alpha blackfin h8300 m68knommu mn10300 s390 arm \
cris m32r microblaze parisc sh avr32 frv ia64 m68k mips \
powerpc sparc xtensa"
for DIR in $ARCHDIRS; do
echo "deleting $DIR"
rm -rf arch/$DIR
done
rm -rf Documentation
DOCDIRS=" / accounting auxdisplay connector DocBook \
filesystems ia64 networking pcmcia spi video4linux vm \
watchdog"
for DIR in $DOCDIRS; do
echo "creating Documentation/$DIR/Makefile"
mkdir -p Documentation/$DIR
touch Documentation/$DIR/Makefile
done
-----------------------------------------------------
1. allocate 12GB of HDD space
2. Install FC11 on VMware
3. Review and modify partitioning layout
4. Delete VolGroup, sda1 and sda2 partitions
5. Create 512MB swap space
6. Create EXT3 file system and mount pount "/"
7. Select "customize now" for software selection
8. Un-select everything in software selection
9. A total of 179 packages will get installed.
mkdir /mnt/cdrom
vi /etc/fstab
>> /dev/cdrom /mnt/cdrom iso9660 defaults 0 0
mount /dev/cdrom
cd /mnt/cdrom/Pakages
rpm -ivh createrepo + DEPENDENCY FILES
rpm -ivh yum + DEPENDENCY FILES
cd /mnt
createrepo .
cd /etc/yum.repos.d/
vi fedora.repo >> enabled=0
vi fedora-updates.repo
>> baseurl=file:///mnt
>> #baseurl
>> #mirrorurl
>> enabled=1
>> gpgcheck=0
yum install ftp make which vim ctags gcc ncur* man-pages
yum install dhclient bzip2 kerenal-devel man ntsysv gpm
yum install openssl* ...
vi /etc/syscofig/network-scripts/ifcfg-eth0
>> DEVICE=eth0
>> BOOTPROTO=dhcp
>> ONBOOT=yes
mv /bin/vi{,.old}
ln -s /usr/bin/vim /bin/vi
vi /sbin/mkinitrdDownload the config file for 2.6.31 from here.
>> after "mknod /dev/hvc0 c 229 0"
>> mknod /dev/sda b 8 0
>> mknod /dev/sda1 b 8 1
>> mknod /dev/sda2 b 8 2
vi /etc/fstab
>> /dev/sda1 / ext3 defaults 0 0
>> /dev/sda2 swap swap defaults 0 0
cd /usr/src/kernelsYou can get the sample make log file from here
tar xjvf linux-2.6.31.tar.bz2
mv config.31 .config
make oldconfig
make
make modules_install
make install
vi /boot/grub/grub.conf
>> default=0
>> timeout=10
>> #hiddenmenu
>> # ... rghb quiet