HowTo - Linux

May 19, 2009

Force umount on Linux

Posted by Martin Perron in HowTo - Linux 1 comment

Did you ever had a problem to unmount a drive/share on a linux system? Maybe the mount share is not accessible but the mount still there.
Example:
umount /mnt/blah
unmount error 16 = Device or resource busy
Refer to the umount.cifs(8) manual page (man 8 umount.cifs)
You can do the following:
umount -f /mnt/blah
If it doesnt work, use the lazyness method:
umount [...]


Apr 28, 2009

Howto kill and logout users on Linux

Posted by Martin Perron in HowTo - Linux No comments

Type the following command to kill the user:
# skill -KILL -u theuser


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 [...]