Main Menu

friends

Banner

Latest articles

how to copy hidden files from one directory to another
10/03/2010 | mad mad mod

Let's assume that you have a directory "test" containing the following files:  [root@blackmod test]# ls -la
total 8
drwxr-xr-x.  2 root root 4096 2010-03-10 06:11 .
dr-xr-x---. 11 root root 4096 20 [ ... ]


the easy way to kill processes
29/12/2009 | mad mad mod

Use pkill to kill processes based on their name. For example to terminate all instances of mplayer:


# pkill mplayer
    


Other Articles

Designed by:
SiteGround web hosting Joomla Templates
mad mad mod
NASA: 2012: Beginning of the End or Why the World Won't End? E-mail
Internet Curiosities

 

 

NASA F.A.Q. about 2012: http://www.nasa.gov/topics/earth/features/2012.html

 

 

 

 

 
convert mysql table from MyISAM to InnoDB E-mail
sysadmin

MyISAM is the default storage engine for MySQL. Unfortunately it doesn't support transactions or foreign keys (but it has some other nice features like compression). However, because InnoDB does support transactions and foreign keys you might want to change your tables from MyISAM to InnoDB storage-Engine

If you are not sure which storage engine you should use you should also have a look at this great site: http://www.mysqlperformanceblog.com/2009/01/12/should-you-move-from-myisam-to-innodb/ 

 

Step 1: check your my.cnf configfile

 

change this line

 

skip-innodb

 

to

 

 

# skip-innodb

 

now restart mysql:

 

# /etc/init.d/mysql restart

the location of the mysql start script depends on your Linux distribution and  mysql implementation.

 

 

Step 2: convert the table to InnodB

 

start the MySQL command-line interface, switch to your database and alter the table you want to convert:

 

mysql> ALTER table mytable ENGINE=Innodb;

 

 

 

 
How to fake the mac address on Linux E-mail
sysadmin

Step 1. shutdown the interface (e.g. eth0)



# ifconfig eth0 down



Step 2: change the mac address to e.g. 11:22:33:44:55:66



# ifconfig eth0 hw ether 11:22:33:44:55:66



Step 3. restart the interface



# ifconfig eth0 up

 

 

 

 
mad mad mod, Powered by Joomla! and designed by SiteGround web hosting