Backs up all databases, saves the last 4 copies.


# modify the following :
export DB_BACKUP=”/home/user/mysql_backup/”
export DB_USER=”root”
export DB_PASSWD=”********”

echo “MySQL_Backup”
echo “———————-”
echo “* Rotating 4 backups…”
rm -rf $DB_BACKUP/04
mkdir $DB_BACKUP/01

echo “* Creating new backup…”
mysqldump –user=$DB_USER –password=$DB_PASSWD –all-databases | bzip2 > $DB_BACKUP/01/mysql-`date +%Y-%m-%d`.bz2
echo “———————-”
echo “Done”
exit 0

= Changing the libsensors License =

When lm-sensors 2 was written, all the code was placed under the GPL license (version 2), including the library, libsensors. Over time, a number of developers complained to us that this made it impossible for them to link their application to libsensors due to license incompatibilities. Indeed, a library released under the GPL can only be used by code itself released under the GPL. This excludes proprietary tools but also tools released under BSD-style licenses and libraries released under the LGPL, for example.

For a long time we have been ignoring the issue, because it wasn’t easy to solve. Basically we needed to get the approval of all copyright holders and preferably all other significant contributors if we wanted to be able to change the license. That being said, the problem was real, so we decided to tackle it still. So we started a 1-year campaign to collect as many approvals as possible from all past contributors to libsensors, ending on July 1st, 2010.

= Position of the Copyright Holders =

* Frodo Looijaard agrees (2009-06-28)
* Jean Delvare agrees (2009-06-28)
* Adrian Baugh agrees (2009-06-28)
* Mark M. Hoffman agrees (2009-07-06)

= Position of the Contributors =

* Andre Prendel agrees (2009-07-05)
* Darrick J. Wong agrees (2009-07-09)
* Hans de Goede agrees (2009-07-03)
* Kyösti Mälkki agrees (2009-07-08)
* Mark D. Studebaker agrees (2009-06-29)
* Philip Edelbrock agrees (2009-06-29)
* Rudolf Marek agrees (2009-07-07)
* Bob Schlärmann agrees (2009-09-06)
* Luuk Kleiweg agrees (2009-07-14)
* George Spelvin agrees (2009-06-30)

= Actual Licensing Change =
Continue Reading…

Wine 1.2.1 Released

Valic —  October 11, 2010 — Leave a comment

The Wine maintenance release 1.2.1 is now available.

Whats new in this release:

  • Translation updates.
  • Various bug fixes.

The source is available now. Binary packages are in the process of being built, and will appear soon at their respective download locations.

Bugs fixed in 1.2.1:

3975  FILE: printing does not work as expected
13344  DPP – Images with “Fit to window” corrupted

Continue Reading…

Here are some examples of useful scp commands:

$ scp file1 [email protected]:/tmp/

Password: ******
Above code copies file1 to server1.

$ scp server1:/tmp/file1

Password: ******
Copy remote file1 to local working directory. Use the -p option to preserve permissions and timestamps on the copied files.

$ scp -p file1 server1:/tmp/If the SSH service is configured to listen on a port other than the default port 22, use -P to indicate that port on the scp command line:

$ scp -P 12345 file1 server1:/tmp/

Connect to a particular port.To do recursive copies, from a particular point in the remote file system, use the -r option:

$ scp -r dir1 [email protected]:/tmp/

Copies all dir1 to remote /tmp .
I hope I was helpful.

1. First install the apache with this command:

apt-get install apache2

2. Now use locate to find if the is availble on your server:



it will found in “/usr/lib/apache2/modules”

3. New apache follow some folders to enable and disable mods so now do this:

cd /etc/apache2/mods-enabled

touch rewrite.load

vim rewrite.load (you may use any editor to edit this file)

4. Now paste this following line:

Continue Reading…

Page 1 of 212