What I did to disable it was go to: /etc/sysconfig/rhn
and delete all of the files in it. If you want to re-enabled it after, you can just copy the files back, so you may want to copy them to a location you want to keep them at.
What I did to disable it was go to: /etc/sysconfig/rhn
and delete all of the files in it. If you want to re-enabled it after, you can just copy the files back, so you may want to copy them to a location you want to keep them at.
wget -O - -q icanhazip.com
you will get a very easy looking readout
example:
root@madhost419 [~]# wget -O - -q icanhazip.com
74.122.196.130
root@madhost419 [~]#
or via curl:
curl http://www.cPanel.net/showip.cgi
PINK CROSS HAIR COMMANDS:
cl_crosshaircolor 5 (This tells the game you want to create a custom colour using the RGB values)
cl_crosshaircolor_r 255
cl_crosshaircolor_g 0
cl_crosshaircolor_b 255
cl_crosshairthickness 1 (This sets the thickness of the cross hair lines, default is 0.5)
cl_crosshairgap 0 (This sets the distance of the gap between the cross hair, default is 0)
cl_crosshairdot 1 (This adds a centre dot to the middle of the cross hair, default is 0)
cl_crosshairalpha 255 (This makes the cross hair totally solid with less transparency, default is 200)
Using the squirrel app: http://www.squirrelsql.org/ I had issues with only seeing 100 rows in a table. I fixed this by going to File -> New Sessions Properties -> Object Tree -> Contents -> limit rows. The default is 100, but you can uncheck it and you should be good.
If not, you can also do the same under New Sessions Properties -> SQL -> SQL Results – limit rows. Then uncheck it and hit OK.
That worked for me!
I couldn’t get alt f4 working on any of my apps on my new microsoft surface pro with type keyboard 2. It ended up being that my function lock was set! I had to unlock that via: function + caps lock (Thanks rsutoratosu on Anandtech). And now ALT F4 works, time to go kill some apps!
I bought this bitfenix prodigy case for about $30 off craiglist, someone didn’t like that it was white, and for $30, couldn’t be beat for this case. As it was retailing for about $80 at newegg/microcenter. I was going to build my girlfriend a new PC and thought ITX was the way to go, after building my own gaming rig on ITX, but using an SG05 ( linky to build ). We went to go look at some monitors at mirceoter, and ended up coming up with a sweet touch screen Dell for her. Nice and neat, and it saved us $1500 from buying an imac, LOL!
So what to do with this case, well, my current NAS was about 3~ years old, had about 2TBx7 HDD’s, and was running JBOD, so nothing fancy. It was a neat little water cooling server in an Antec 300, but I wanted to do something different. I actually had 7 WD 2TB RE4’s laying around not doing anything, so I thought lets build an awesome ITX NAS box! So here we are, throwing together a 7 HDD + 1 SSD NAS box running Windows 7.
I love building PC’s, and I love the fact I do it without cutting, or modding (maybe someday i’ll cut and mod), but I like to keep things stock as possible.
I purchased:
Adapec 5805 off ebay for $100, which has 2 8087’s internal, so I could use 2 fanouts for at least 8 drives. It also has 512MB of onboard memory for the raid 5 I wanted to do. Kicker was it came with a working BBU!
I also snagged a 150mm PSU that I read would fit nicely: Seasonic 360W 80PLUS Gold ATX12V Power Supply SSR-360GP
I got a Intel Pentium Processor G3220, nothing fancy, but it is a slight upgrade to my Q9550 that the server is currently running. No worries though, as I need ZERO cpu to RDP and just make sure everything is hunky dory.
I got a ASRock H81M-ITX, which is my first ASRock mobo, so far so good running this thing.
Couple with 4GBx2 DDR3 I had to purchase as well.
So far i’ll be using the intel CPU cooler, and might swap it out for something decent if I find this thing’s too loud.
I got some molex to SATA power adapters, as the PSU only came with 5 SATA power connectors. I also got some 8087 fanout cables I did not have, ran about $15 bucks for the 2 8087’s, and $10 for the 2x molex to sata connectors.
Swapped out the stock bitfenix brushless fans (model BFF-SCF-12025KK-RP) for my scythe SFLEX SFF21G’s hooked up to some devolts to 9v, so they’re nice and silent. I also purchased a nice bitfenix spectre 230mm fan, threw it up front to see it push some air. If this does not work, i’ll grab a 140mm or 120mm scythe i’ve got laying around and use that. I don’t need a LOT of airflow, but the more I can get while keeping silence would be great.
Here’s what 5 of my 6 drives look like … the SSD and other 2TB are in the 5.25″ bay.
[zp src=”P1040631.JPG” album=”blog/Bitfenix/” width=”600″]
I had one problem where I realized the 8087 connectors are a little tight … so I am not snapping in the 3 bay disk set as to not stress the card. This is what it looks like snapped in/stressed:
[zp src=”P1040629.JPG” album=”blog/Bitfenix/” width=”600″]
This is how i’ll leave it:
[zp src=”P1040630.JPG” album=”blog/Bitfenix/” width=”600″]
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!
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
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.
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