source:http://linuxpoison.blogspot.com/2008/06/13578175807518.html
tutorial - google gadgets for linux
source:http://linuxpoison.blogspot.com/2008/06/13578175807518.html
tutorial - Convert your videos quickly, easily, and all at once with WinFF and FFmpeg
WinFF is a GUI for the command line video converter, FFMPEG. It will convert most any video file that FFmpeg will convert. WinFF does multiple files in multiple formats at one time. You can for example convert mpeg's, flv's, and mov's, all into avi's all at once. WinFF is available for Windows 95, 98 , ME, NT, XP, VISTA, and Debian, Ubuntu, Redhat based GNU/Linux distributions.
source:http://linuxpoison.blogspot.com/2008/06/13578175804909.html
tutorial - Install PHP5 on Ubuntu
PHP is a general-purpose scripting language suited for Web development. The PHP script can be embedded into HTML. This section explains how to install and configure PHP5 in Ubuntu System
Installation
To install PHP5 you can enter the following command in the terminal prompt:
sudo apt-get install php5 libapache2-mod-php5
You can run PHP5 scripts from command line. To run PHP5 scripts from command line you should install php5-cli package. To install php5-cli you can enter the following command in the terminal prompt:
sudo apt-get install php5-cli
You can also execute PHP5 scripts without installing PHP5 Apache module. To accomplish this, you should install php5-cgi package. You can run the following command in a terminal prompt to install php5-cgi package:
sudo apt-get install php5-cgi
To use MySQL with PHP5 you should install php5-mysql package. To install php5-mysql you can enter the following command in the terminal prompt:
sudo apt-get install php5-mysql
source:http://linuxpoison.blogspot.com/2008/06/135781758017261.html
tutorial - Checking your CDs with cdck
Therefor it is good to have a little tool that analyzes your discs properly so that you can make a backup in time. Such a tool is cdck. It's just a small command-line program, but as many Unix-tools it is a specialized tool which does it's job right.
source:http://linuxpoison.blogspot.com/2008/06/13578175803709.html
tutorial - Sending email attachments from linux command line
$ mutt -s "Logs" -a http_access.log nikesh@domain.com
Or Without subject:
$ echo | mutt -a [file] [mail@address.com]
Mutt website: http://www.mutt.org/.
source:http://linuxpoison.blogspot.com/2008/06/13578175806681.html
tutorial - Disable users from loggin into the server, except the administrator
1) Edit the pam file for the service you want to control, in this example i modify ssh pam control file, located in /etc/pam.d/sshd
Add this line
account required pam_nologin.so
2) Create the /etc/nologin file, just do "touch /etc/nologin"
This should disable the login from ssh. If you want to disable the login from terminal, modify the /etc/pam.d/login file.
3) To re-enable the login just remove /etc/nologin
source:http://linuxpoison.blogspot.com/2008/06/135781758012382.html
tutorial - Windows COM Ports equivalent in Linux
Devices | Windows Com Port | Linux equivalent |
Mouse | COM 1 | /dev/ttyS0 |
External Modem | COM 2 | /dev/ttyS1 |
Floppy Drive | Normal Floppy cable | /dev/fd0 |
Printer | Lpt Port | /dev/lp0 |
CDROM Drive | IDE cable | /dev/cdrom |
source:http://linuxpoison.blogspot.com/2008/06/135781758013670.html
tutorial - How to quickly bind a range of IPs on RedHat based systems
Normally when you add a new IP to a network interface in a RedHat based system you create a file ifcfg-eth0:x in /etc/sysconfig/network-scripts/. For example:
/etc/sysconfig/network-scripts/ifcfg-eth0:0
DEVICE=eth0:0
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.0.100
NETMASK=255.255.255.0
NETWORK=192.168.0.0
BROADCAST=192.168.0.255
TYPE=Ethernet
Similar to the above example you can create several aliases. But what if you have to add a lot of IPs that are in a range like this? Let’s say that I want to add 100 IPs this way… this is possible, but not very effective, right? RedHat based systems offer a method to bind a range of IPs in a quick way allowing us to eliminate the need to create a lot of files and saving us time doing this.
Create a file /etc/sysconfig/network-scripts/ifcfg-eth0-range0 if this doesn’t exist, or just add to it if you already have it, the following lines:
/etc/sysconfig/network-scripts/ifcfg-eth0-range0
IPADDR_START=192.168.0.100
IPADDR_END=192.168.0.200
CLONENUM_START=0
where: IPADDR_START is the first IP and IPADDR_END is the last IP in the range. CLONENUM_START is the number that will be assigned to the first IP alias interface (eth0:0 in this example).
If you need to add more ranges of IPs then just use a different file for ex. ifcfg-eth0-range1, for each one of the ranges. You need to be careful and use the proper CLONENUM_START to not overwrite other aliases. Once you have configured the range/s of IPs you just need to restart the network service in order to activate it:
service network restart
source:http://linuxpoison.blogspot.com/2008/06/13578175801007.html
tutorial - How to rename all files in directory at once
tar zxvf mvb_1.6.tgz -C /usr/share/
chown -R root:root /usr/share/mvb_1.6/
ln -fs /usr/share/mvb_1.6/mvb /usr/bin/mvb
To rename all files in directory at once
mvb NEW_NAME
source:http://linuxpoison.blogspot.com/2008/06/1357817580492.html
tutorial - How to add multiple IP addresses manually?
# ifconfig
will output all the configured addresses. For example:
eth0: inet addr:10.10.10.10 Bcast:10.10.10.255 Mask:255.255.255.0
...... and more information.
To add on extra IP addresses type:
# ifconfig eth0:1 11.11.11.12 netmask 255.255.255.0
for additional IP addresses, make sure you increment the 1 in eth0:1, for example, a third IP address (third one including your BASE IP) would be added:
# ifconfig eth0:2 11.11.11.13 netmask 255.255.255.0
Hope it helps anyone struggling!
source:http://linuxpoison.blogspot.com/2008/06/135781758016535.html
tutorial - HowTo Create a Driver Diskette from an Image File
To create a driver diskette from a driver diskette image:
-
Insert a blank, formatted diskette into the first diskette drive.
-
From the same directory containing the driver diskette image, such as drvnet.img, type
dd if=drvnet.img of=/dev/fd0 as root.
source:http://linuxpoison.blogspot.com/2008/06/13578175807796.html
tutorial - How to protect your server from DDos Attack
On the Internet, a distributed denial-of-service (DDoS) attack is one in which a multitude of compromised systems attack a single target, thereby causing denial of service for users of the targeted system. The flood of incoming messages to the target system essentially forces it to shut down, thereby denying service to the system to legitimate users.
There is a perl script which prevent this:
First do the Installation of a simple perl script:
wget http://www.inetbase.com/scripts/ddos/install.sh
chmod 0700 install.sh
./install.sh
Uninstalling:
wget http://www.inetbase.com/scripts/ddos/uninstall.ddos
chmod 0700 uninstall.ddos
./uninstall.ddos
When you run this Perl script, it will then run an netstat command check how many times each IP is connected and if there are more then the number of connections you specified then it will automatically run a command in APF for the IP to be banned.
source:http://linuxpoison.blogspot.com/2008/06/135781758018789.html
tutorial - Firefox vs. Safari vs. IE vs. Opera
Web 2.0 applications and sites place the focus firmly on browser performance. Anyone who still believes that the speed of your DSL connection is the only potential bottleneck is gravely mistaken. Key parts of Ajax applications run locally, which means that — all other things being equal — the speed of the browser will be crucial in determining the user experience. For Ajax-based business applications, the browser becomes even more important because data will be accessed from within-firewall servers rather than the internet. Companies deploying such solutions will be able to improve employee productivity by paying attention to browser performance.
More
source:http://linuxpoison.blogspot.com/2008/06/135781758014577.html
tutorial - Ubuntu 8.04 vs. Fedora 9
...in the past three years, a few distributions have made stupendous leaps in performance and usability, winning the affection of millions of mainstream desktop users.
The recent releases of Ubuntu 8.04 and Fedora 9 — two top Linux distributions — mark another step forward in the evolution of the Linux desktop. I've been running both of them to see which offers the better blend of usability and advanced features.
More
source:http://linuxpoison.blogspot.com/2008/06/135781758010493.html