Category Archives: Linux
Howto: Increase disk space in a mdadm raid
I currently have a Ubuntu Linux server running two mdadm RAID`s. One of the RAID sets is set up using 6 x 500 GB SATA drives. Now i have purchased 6 x 1500 GB SATA drives that will replace the … Continue reading
Locate duplicate files under Ubuntu (And some ranting)
Edit: Post updated due to obvious user error Looking for a program to find dublicate files? Then fdupe saves the day! root@bais:/home/samba/raid0# apt-cache search fdupe fdupes – identifies duplicate files within given directories By the way, how come the apt … Continue reading
How to get your mdadm RAID`s back after OS crash or a reinstall
If all your disks are connected, simply try a: mdadm –assemble –scan This should find and activate all your RAID systems
How to reset MySQL root password
To reset the MySQL root password, do the following: USE DATABASE mysql; SET PASSWORD FOR root@localhost=PASSWORD(‘yournewpassword’); FLUSH PRIVILEGES; And voila! You have changed your password. PS: If you have a “problem” with beeing able to login to MySQL without using … Continue reading
(scam?) ” OpenSSH <= 5.2 zero day exploit code - 48 hours until it is publicly released”
Aparantly, somebody is willing to release a OpenSSH exploit in less than 48 hours. I hope (and guess) that it is a joke, but if not, the results can become “interesting”. Read more @: http://lists.grok.org.uk/pipermail/full-disclosure/2009-July/069752.html
Clear the Postfix mail queue
If you for some reasont want to clear the Postfix mail queue, you could do a: postsuper -d ALL Or if you just want to remove deferred mail: postsuper -d ALL deferred
Getting Groupwise to work on Ubuntu 64bit (9.04)
Just a quick post on what i did to get Groupwise up and running on Ubuntu 64bit: 1) Installed a 32bit virtual Ubuntu machine, and converted the Groupwise installer to a .deb package with “alien -c filename”. 2) Moved the … Continue reading
Cron commands not working when outputting to stderr(2>&1)
The error: username@host:/home/foo> fetchmail -f /opt/rt-fetchmail/fetchmail 2>&1 /dev/null Enter password for username@/dev/null: Solution: Change the cron entry / command to the following: fetchmail -f /opt/rt-fetchmail/fetchmail > /dev/null 2>&1 This will stop -all- output from appearing.
Fix for the “Out of memory! Callback called exit.” error in Request Tracker (RT)
When RT is upgraded, users can experience WSOD(White Screen Of Death), all the log will say is: “Out of memory! Callback called exit.”. Not so informative eh? The solution is pretty simple, run this query in the database: “ALTER TABLE … Continue reading