Restoring wordpress from database

I messed up the permissions on my box and on restart three quarters of the services would not come up so doing a database backup was out. All my previous DB backups had the plugins still active. So when I tried to restore using them the blog is viewable, but when I try to log in I get a blank page on checking my Apache logs I saw the following error

Cannot use string offset as an array in wp-includes/capabilities.php on line 116

Restored database a couple of times nothing worked, tried upgrading & updating database nothing worked. Finally just installed WP from scratch with blank database. Opened up PhpMyadmin replaced new WP tables with tables from old WP DB backup, skipped table wp_options as it broke the new WP and both user tables as I had already setup the new user data on install, but I guess if you want to keep the old user data you can transfer these too.
Now I just made a backup of wp_options after restoring all the settings e.g blog name etc and turning off all plugins. This way next time all I have to do is just switch this table with the one from a backup whose plugins were still on at backup and am good to go.

unable to share new HD or Partition

If you have a new HD or a new partition and you are trying to add it as a samba share you might run into some problems. Check your log files if you see an error message like

 SELinux is preventing smbd (smbd_t) "search" to  (file_t)

.  Just log in as root and do

#  restorecon -v /mnt/newdrive 

the -v option tells it to give a verbose output of whatever its doing. You should be able to access your shares now. This puzzled me for a minute because I could still access other shares on the older partition/drive and even new ones as long as they were on the older drive but any new shares on new drive/partition were inaccessible.

Popular linux alternative apps

Looking for an alternative linux app compareable to your favorite MS apps . Well adler has just made your work a little bit easier. Just follow the link and there is a list of some 50 apps, that measure up to some commonly used windows apps.
I found Gmount-Iso to very interesting as I have been looking for an ISO app.

NB: This is a post I redid as I lost it when I messed up the box.