Goneill.com



home viral videos linux pictures *commming soon* mythtv

Linux

Tip and Tricks I have learned from the web...

#
1

/* howto block an IP with iptables */

Code:


iptables -I INPUT -s 66.111.55.130 -j DROP
iptables -I OUTPUT -s 66.111.55.130 -j DROP
iptables -I FORWARD -s 66.111.55.130 -j DROP

 

#
2

Make an ISO cmd line style

# Make a CD image file of the data.

/home/CDimage can be used to store the iso9660 image. The following command makes tony.iso from the data in hilo/home/denault

mkisofs -L -r -m '*.o' -o /home/CDimage/tony.iso /hilo/home/denault

# Inspect the image by mounting it.

mkdir /mnt/iso
mount -t iso9660 -o ro,loop=/dev/loop0 /home/CDimage/tony.iso /mnt/iso
umount /home/CDimage/tonyiso

# Copy the file over to your PC and use your CD software to burn the image to a CD. Hint: Double click on the image as the EasyCD program recongizes the .iso extension.

 

#
3

How to join avi and mpg files in linux

How to join avi files in linux:
code:
avimerge -o output.avi -i input1.avi input2.avi

How to join mpg files in linux:

code:

cat movie* > movie.mpg

© 2007 goneill.com | Inspired by DemusDesign