Ubuntu Installation In Laptop

1. Install Ubuntu with default options.
2. Install Ubuntu updates.
3. Setup screen saver.


Update Packages with Synoptic Package Manager
1. Select Ubuntu 5.10 "Breezy Badger" (Binary)
2. Add "Community Maintained (Universe)" version.
3. Added "gcc", make, kernel sources, iptables development libraries,svn,

Install linuxant driver:
1. Download dldrinstall.run file.
2. Run dldrinstall.run file. This will unpack and install the driver. Then it will ask you to launch the brower and point it to the 127.0.0.1:xxxx. Follow the instruction and download the appropriate windows driver (in my case it is wpc54g driver).
3. Buy the linuxant driver for 19.95. Follow the instructions to generate the license key. Input the license key in the webpage. Now your driver is installed.

Install and Configure wpa supplicant:
1. Go to http://www.linuxant.com/driverloader/wlan/full/downloads.php page to download wpa supplicant for debian package.
2. Install the package using "dpkg -i filename" command.
3. Installation will ask you run the command "/usr/sbin/dldrwpaconfig" from root shell. Run it.
4. When it asks the question "Do you want to compile supplicant with OpenSSL support" say "yes".
5. It will ask you "the configuration script supports only wpa-psk" say "yes"
6. It will ask you the wpa preshared key. Supply the pre shared key.
7. Go to the networking tool and activate the wireless interface. (make sure you specify the static IP incase if you use static IP configuration.
8. Now your wireless connection should be up and running.

libipq links for working with iptables in linux

http://www.eecs.harvard.edu/cs143/pa3/

http://www.crhc.uiuc.edu/~grier/projects/libipq.html

http://lists.netfilter.org/pipermail/netfilter-devel/2005-February/018631.html

TCP syn attack
http://www.networkdictionary.com/security/TCPSYNAttack.php?PHPSESSID=c2a79111d168faf

Summary of the netfilter developer workshop 2004

Harald Welte

http://www.netfilter.org/documentation/conferences/nf-workshop-2004-summary.html

Linux netfilter Hacking HOWTO

Linux 2.4 NAT HOWTO

Netfilter Extensions HOWTO

Rusty's Unreliable Guide To Kernel Hacking

IP Tables Tutorial

IP Table Source Code

NetFilter Wiki

Rusty's Remarkably Unreliable Guides

Unreliable Guide To Hacking The Linux Kernel

Unreliable Guide To Locking

IPTable extension writing tutorial

netfilter module example




Shell Programming


Learning the Shell

vnc server configuration

I'm using tightvnc from my client machine (windows xp) to connect to the ubuntu server. However, the tighvnc client didn't display the screen beyond 640x480. So the screen was smaller in the client machine.

Solution: Edited the vnc.conf file in /etc directory to specify $geometry = "1024x960";... now the screen in the tightvnc client is big enough to see most of the window elements in the server. Now I have to figure out how to start vncserver automatically.
Chapter 2: Preparing a New Partition.

Since I used a linux machine with all the drives used up, I didn't want to create a new partition. I followed the hint mentioned in this document.

1. Created a directory /home/lfs for using as the mount directory.
2. Created a mount point directory /mnt/lfs
3. Add the following two lines to .profile file in the root directory.
LFS=/mnt/lfs
mount --bind /home/lfs /mnt/lfs

Chapter 3: Packages and Patches

1.Create a working directory for the downloaded packages and patches with the following command:
#mkdir -v $LFS/sources
2. Make this directory writable and sticky.
#chmod -v a+wt $LFS/sources