Wednesday, December 31, 2008

echo "Hello 2009!"

I feel that I'm getting old when I see this pic. I'm starting to miss the old daze =)





What will happen with the boys this 2009?

Tuesday, December 16, 2008

Create a BT3 usb drive

here is the steps to create a backtrack 3 usb pendrive,which I had done it with my 4G usb that i bought from cd-R king. this was taken from http://wirelessdefence.org/Contents/Backtrack3_USB_Howto.htm

Configuring the USB device:

First we need to create two partitions on the USB device:

1. Boot up your Linux machine (this is only required for initial installation a VMware machine will work fine).

2. In the Linux machine run "tail -f /var/log/messages" and insert the USB drive. In my case the following is displayed "[sdb] Attached SCSI removable disk" so we now know the USB device is sdb.

3. fdisk /dev/sdb

4. Command (m for help): p (to see what is on the drive).

5. If there are any existing partitions on the device delete them using d you will then be prompted for the partition number.

6. Command (m for help): n (to create a new partition)

7. Command action e extended, p primary partition (1-4): p (for primary)

8. Partition number (1-4): 1 (for first partition)

9. First cylinder (1-245, default 1): 1 or Enter (to start at the first cylinder)

10. Last cylinder or +size or +sizeM or +sizeK (1-245, default 245): +1024M (to create a 1Gb partition)

11. Command (m for help): t (to set partition type)

12. Hex code (type L to list codes): b

13. Command (m for help): n (to create a new partition)

14. Command action e extended, p primary partition (1-4): p (for primary)

15. Partition number (1-4): 2 (for the second partition)

16. First cylinder (126-245, default 126): Enter (to accept default)

17. Last cylinder or +size or +sizeM or +sizeK (126-245, default 245): Enter (to use the rest of the disk this will create a 1Gb partition if you're using a 1Gb disk)

18. Command (m for help): t (to set partition type)

19. Partition number (1-4): 2

20. Hex code (type L to list codes): 83

21. Command (m for help): p (to make sure there are two partitions of the type and size you are expecting)

22. Command (m for help): w (to write you changed to the disk, without this step nothing is actioned).


Mounting the new partitions in Linux:

1. Create 2 mount points e.g. mkdir /usb and mkdir /usb1

2. mount /dev/sdb1 /usb (mount the FAT partition)

3. mount /dev/sdb2 /usb1 (mount the Linux partition)

Note: If you are having trouble mounting any particular drive do a format on the windows partition or an fsck on the Linux partition prior to performing the mount.


Installing Back Track 3 to USB:

1. Copy the Backtrack 3 .iso image: bt3final_usb.iso to / on you Linux machine.

2. mkdir /bt3_iso (create a mount point to mount the .iso image)

3. mount -o loop -t iso9660 bt3final_usb.iso /bt3_iso (mount the Backtrack 3 .iso image)

4. cp -r /bt3_iso/boot /usb (copy the boot directory to the FAT partition)

5. cp -r /bt3_iso/BT3 /usb (copy the BT3 directory to the FAT partition)

6. mkdir /usb1/changes (manually create a "changes" folder on the Linux partition)

7. /usb/boot/bootinst.sh (execute bootinst.sh on the FAT partition and follow prompts)

8. vi /usb/boot/syslinux/syslinux.cfg (or use another text editor to open the file)

9. At the end of the APPEND line, under the mode you are planning to use e.g. KDE, add the following:

changes=/dev/sdb2

So, for the MENU LABEL BT3 Graphics mode (KDE)

"......rw autoexec=xconf;kdm" becomes "......rw autoexec=xconf;kdm changes=/dev/sdb2"

After you have made the changes save the file.

Saturday, December 13, 2008

Unix Tip: FORGET THE CRONTAB MAN

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

UNIX GURU UNIVERSE
UNIX HOT TIP

Unix Tip 3186 - October 26, 2008

http://www.ugu.com/sui/ugu/show?tip.today

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


FORGET THE CRONTAB MAN

For some reason many admins forget the field order of the
crontab file and alway reference the man pages over-and-over.
Make your life easy. Just put the field definitions in
your crontab file and comment (#) the lines out so the
crontab file ignores it.


#minute (0-59),
# hour (0-23),
# day of the month (1-31),
# month of the year (1-12),
# day of the week (0-6 with 0=Sunday).
# commands
0 2 * * 0,4 /etc/cron.d/logchecker