Categories
Computer Hardware Hard Drives

Windows 7 – Windows cannot be installed to this disk

I was trying to install windows on my new ASRock H81M-ITX motherboard and for some reason loading windows 7 pro 64bit to my OCZ agility 2 I got this error message:

Windows cannot be installed to this disk. This computer’s hardware may not support booting to this disk. Ensure that the disk’s controller is enabled in the computer’s BIOS menu.

BIOS saw 60GB SSD, the windows installer tool saw and let me format 60GB SSD, so if you are in my shoes and sounds similar, what I did to fix it was go to BIOS, enable SMART, DISABLE EXTERNAL (this seemed to do it), and enable HOT PLUG (not sure if needed, but I did enable).

Hope that helps!

Categories
nagios

Could not open external command file for reading via open(): (13) -> Permission denied in nagios v4.01

I ended up getting this in my nagios.log, the fix was to change the permissions on the rw file!

chmod 777 /usr/local/nagios/var/rw/nagios.cmd

Categories
nagios

Directory index forbidden by Options directive: /var/www/html/

I was receiving this error in my nagios apache log:

Directory index forbidden by Options directive: /var/www/html/

to fix this, I just did touch index.html to /var/www/html It creates a file in the directory that is empty. I found this safer then turning on indexes for my nagios install.

Categories
cPanel linux

How to delete all mail in queue for cPanel exim

I ran into an issue where a user was spamming and queue up thousands of email in our cPanel server. To clear it out, I did this:

/etc/init.d/exim stop

exim -bpru | awk {'print $3'} | xargs exim -Mrm

or

exim -bpru|grep frozen|awk {'print $3'}|xargs exim -Mrm

/etc/init.d/exim start

I had about 120k emails in queue and it took about 20 seconds to remove them all. If you want to fine tune it, you can have exim delete only specific emails in queue:

grep -lr 'a certain string' /var/spool/exim/input/ | \sed -e 's/^.*\/\([a-zA-Z0-9-]*\)-[DH]$/\1/g' | xargs exim -Mrm

Credit to: http://bradthemad.org/tech/notes/exim_cheatsheet.php
 

To delete frozen emails from a specific email address:

exiqgrep -i -f luser@example.tld | xargs exim -Mrm

If you just want to delete mail queue directories, sometimes faster delete:

/var/spool/exim/input and the /var/spool/exim/msglog directories

Categories
Linux

internal server error with CSF (Config Server Firewall) in cPanel after upgrade in cPanel

So I was receiving this error after cPanel upgraded:

Internal Server Error

500

No response from subprocess (/usr/local/cpanel/whostmgr/docroot/cgi/addon_csf.cgi): subprocess exited with status 2

 

This did not fix it:

 

/usr/sbin/csf -x
/scripts/perlinstaller --force URI
/usr/sbin/csf -e
/usr/sbin/csf -u


If that doesn’t work this will:

 

curl -s configserver.com/free/csupdate | perl

 

 

Categories
Gaming

STEAM and Darkfall Unholy Wars screenshots when pressing i

I noticed when I was playing Darkfall Unholy Wars it would alwyas screenshot when pressing i, even though my steam screenshot was set to F12. I changed it to SHIFT + F12 and I was good. People were recommended disabling the overlay, but I enjoy being able to chat with STEAM friends still, and changing it to SHIFT + F12 resolved it.

Categories
Linux

How to move files that are older then x days in linux

I found this useful:
sudo find ./* -mtime +2 -exec mv {} /hosting/dropbox/ops/user/client/ \;
breakdown…
./* is the current directory, including all files, but you could use full path.
mtime +2 is 2 days old
mv is the command being executed
and after the brackets is the directory the files are moving to
Categories
Themes Wordpress

Issue with sociable plugin and Montezuma theme in wordpress

I love this new theme! I tried it, addded a few widgets, looks great. One thing I had an issue with was the sociable plugin throwing a bunch of little arrows on the icons, so I had to find a way to fix it.

Go to CSS Files and then content.css. Scroll down and find “Unordered Lists in posts and comment bodies”. There are two lines throughout there that add the arrows. Just delete them:
background: transparent url(%tpldir%/images/icons.png) -48px -84px no-repeat;
background: transparent url(%tpldir%/images/icons.png) 0px -48px no-repeat;

Any questions, let me know…will gladly help more if I can!

source

Categories
photo Photography

My new siberian husky puppy

[zp src=”1.jpg” album=”vivi/TitusPullo/” width=”900″]

Categories
Programming

A simple one click bat file to mirror drives for backup

I use this script to mirror a drive, and it only transfers files that are changed/new. So it can help save bandwidth/time if you are using a slow link/connection.

1) Download robocopy and place it in the correct directory (by default windows 7 and 8 can skip this step)

2) create a .bat file and put these contents in:

@echo off

robocopy E:\ “\\server\j” /MIR /E

3) There you go, just double click it!