Linux

Sponsored by ThisHostingRocks

Nov 21, 2009 - 1 minute read - tips

Short tips

Mounting an iso - Example: mount -t iso9660 -o loop /home/downloads/pup.iso /mnt/Image The ‘-t’ option specifies the filetype – this is optional. This command works with both ISO and MDF images. making a floppy image file from a bootable floppy to use when making a bootable cd dd if=/dev/fd0 of=/tmp/floppy.img Battery check: grep -F capacity: /proc/acpi/battery/BAT0/info Notice that the BAT0 part of the command may be different on your laptop, eg, compaq nc6000 names the batteries, C137 and C138, so replace BAT0 with C137 or C138.

Nov 21, 2009 - 2 minute read - tips

Acer Aspire one - Tips

The Acer aspire one netbook runs a modified version of Redhat Linux called Linpus. This is the fastest booting Linux I have seen, it is ready for use 20 seconds after pressing the on button. Wireless setup was straight forward using the network manager launched from the icon on the task bar. All that was needed was to enter the SSID and the key. Although I did have to switch the router to WEP encrytion to get it to work.

Nov 21, 2009 - 1 minute read - tips

smoothwall on flash card + spamassasin

Setting up spam assassin http://member.melbpc.org.au/~parsonsd/filtering/spamass.html Smoothwall on CF (flash card) http://community.smoothwall.org/forum/viewtopic.php?t=16604&highlight=usb+install

Nov 21, 2009 - 3 minute read - tips

Using RPM as an intrusion detection system

to use the Red hat package manager as an intrusion detection system Some of the commands in the following list require the importation of the Red Hat GPG public key into the system’s RPM keyring. This key verifies that packages installed on the system contain an Red Hat package signature, which ensures that the packages originated from Red Hat. The key can be imported by issuing the following command as root (substituting with the version of RPM installed on the system): rpm –import /usr/share/doc/rpm-/RPM-GPG-KEY rpm -V package_name The -V option verifies the files in the installed package called package_name.

Nov 21, 2009 - 1 minute read - tips

Floppy to Floppy copy with only one drive

Floppy to Floppy Copy with only one drive #!/bin/sh #Floppy to floppy copy with only one floppy drive #Copy this script to a file and give it a name eg. floppycopy #Make it executable with the command :- chmod +x floppycopy #Usage #In a terminal, #cd to the directory containing floppycopy, su to root, and type ./floppycopy #insert the disk to be copied when asked, and press enter #insert the disk to be copied to when asked, and press enter #remove disk when ‘disk copied’ message appears #clear the terminal clear #warn user echo “This command will delete all files on the target disk before copying!!!” #prompt user to insert source disk echo -n “Insert source disk and hit …return” read Response mount /dev/fd0 /mnt/floppy #mount target disk dd if=/dev/fd0 of=diskcopy.swp #copy contents of source to swap umount /mnt/floppy #prepare for switching of disks echo “WARNING!!!!

Nov 21, 2009 - 1 minute read - tips

Getting rid of the Linux dual boot menu in the master boot record

Getting rid of the Linux dual boot menu in the master boot record and preparing to install windows. **Required ***Windows 98 bootable installation disk === Using a win98 installation disk. === Insert disk into cd drive and (re)start machine. When the machine starts, the menu will offer two options:- **Boot from hard disk **boot from cd rom drive ***choose boot from cd rom drive. The next menu offers:- **start windows 98 setup from cd rom **start computer with cd rom support **start computer without cd rom support ***choose start the computer with cdrom support.