February 2009 Archives

Feb 19, 2009

Configure Tomcat 6, Java 6 on CentOS 5.2 (With apache on port 8080)

Posted by Martin Perron in Featured, HowTo - Linux 5 comments

Changed: Was configured for Tomcat 5, work well on Tomcat 6
I’m not very smart on installing packages on Linux, but today I need to configure a Tomcat on a CentOS 5.2. The CentOS 5.2 has Tomcat 6 available as yum package, with gcc-java. But Java gurus tell me to use the original Sun JDK to [...]


Feb 6, 2009

Ubuntu Pocket Guide (PDF download)

Posted by Martin Perron in Featured, HowTo - Linux No comments

The Print Edition is available for a recession-busting $9.94 from Amazon.com. Add it to your Amazon order now!
The PDF Edition (eBook) is entirely free of charge and is identical to the Print Edition. Grab the PDF or click here to tell a friend!

http://www.ubuntupocketguide.com/download.html


Feb 5, 2009

Automatize backup with rsync and crontab with date command

Posted by Martin Perron in HowTo - Linux No comments

If you got little backup to do and want to have a backup every night with the date, you can do the following:
Create a script:
vi /root/rsync.sh
Now put that in your script:
folder=`date +%Y_%m_%d`
rsync -avH  /folder/to/backup /backup/$folder >> /var/log/rsync/acc
Then put your script executable:
chmod +x rsync.sh
or
chmod 755 rsync.sh
Create the folder rsync in /var/log:
mkdir /var/log/rsync
Add the script to your [...]