howto

Monitoring bind/named with Munin on cPanel DNS Only

Last night I attempted to get named monitoring working with Munin on my two cPanel DNS Only boxes. Named is actually the most important service to monitor on a DNS Only box so in my opinion it should be enabled by default when you install Munin via WHM.
The whole process was actually really straightforward and the only thing I had to do was to apply a set of Debian instructions I found here, on CentOS. Here’s how you can install Munin and setup named monitoring Read More…

How To: Restore Default Settings on Safari (Mac OS X Lion)

I just installed the Mac OS X Lion 10.7.2 GM update and noticed that Safari was behaving a bit weird after the update so I thought I reset it’s settings to default.

Here’s how it’s done:

1. Open Safari and click on Safari in the upper left hand corner.
2. Click Reset Safari.

3. Restart Safari. This will resolve most problems. If this does not solve the problem, proceed on to Step 4.
Read More…

How to: Install and Configure PPTP VPN on a cPanel server

This tutorial will show you how to easily install and configure a PPTP VPN server on a cPanel (RHEL/CentOS) server. A VPN server can be used to access geographically restricted websites if your cPanel server is located in a non-restricted country. Also you can use it to encrypt your data connection between your computer and cPanel server if for example you’re connected to a public WiFi hotspot and want to visit your web-banking account. Read More…

Using netselect-apt to find the fastest Debian mirror

Setting up a VPS.NET server in Tokyo today was the first time I worked on a box in Asia and because USA and EU Debian mirrors where ~300ms away (and I was getting like 30-40KB/sec), I had to search for a local Japan Debian mirror.
First I thought I’d just got to the Debian mirrors list, find the URL for the Japan mirror and apply it to my sources.list file.
But again I was getting max 0,8-1MB/sec which still was very slow for my expectations (Japan is amongst the Top 3 of countries with the highest Internet connections speeds).

The solution was: netselect-apt

I just did a

root@dev:~# apt-get install netselect-apt
root@dev:~# netselect-apt squeeze

and a few seconds later I got

The fastest server seems to be:

http://ftp.dti.ad.jp/pub/Linux/debian/

Writing sources.list.
Done.

Then I just copied the sources.list netselect-apt created to my /etc/apt/ folder and ran apt-get update again.

Presto!

So what does netselect-apt do actually? First it downloads a list of all the worldwide mirrors from the official Debian website using wget. Then it pings each and every server to see which one is nearer to the physical location of your server. Finally it writes a sources.list file in the current directory. Do note however that it doesn’t speed-test every server, but only measures the latency between the mirror and your box. So to be precise you’re getting the nearest server, not the fastest. In todays networks though, with 100Mbps and 1Gbps uplinks, it’s almost certain that the nearest server will also be the fastest too.

TinyMCE non-latin character support on CS-Cart

Just managed to fix TinyMCE Greek character support on CS-Cart 2.2.1 :-)
@georgetasioulis
George Tasioulis

Wasn’t really that big of a deal after all :-)

First I downloaded the updated TinyMCE package (v.3.4.4) The Tool posted on the CS-Cart forums here for my CS-Cart installation (v.2.2.1).
Then using a text editor I opened up lib/js/tinymce/tiny_mce.js for editing, searched for entity_encoding and changed it from named to raw.
You may find quite a few instances of the string entity_encoding in the file, but the correct one to change is this:

validate:true,entity_encoding:"named",url_converter:p.convertURL

Read More…

How To: Add Social Buttons to Squarespace

A few days ago I helped @tpsaras install social widgets to his Squarespace based foodblog Foodzine. Although Squarespace allows for a seamless implementation of social widgets, the catch here was to display them only under each post and not on the homepage.

First we had to create the necessary code for our Facebook and Twitter widgets, then add the code into HTML Snipsets via the Squarespace Website Management and finally hide the buttons from the homepage via CSS.

Read More…

Stress testing WordPress on a single node VPS

Lately I’ve been trying to find a cheap close-to-perfect-but-not-so-difficult-to-setup solution for my personal blog. A kind of “set and forget” thing if you will.
Until now, my blog was running on a Dell Dual-Xeon /w 2GB RAM cPanel server (along with a few other sites) and was working pretty smooth. Based on pingdom’s full page test my blog needed 6-7 seconds to fully load which is kind of acceptable considering the theme, the twitter/flickr integration on the sidebar and the needed dns queries to contact facebook, google analytics and woopra servers.

Last night bestvpscloud from the VPS.NET forums pointed out to this script that installs nginx, php5, mysql, exim4 and wordpress on low-end VPS servers, and after reading the comments I got to this guy’s blog who also suggested adding the dotdeb.org repository and upgrade to PHP 5.3.

Read More…

How To: Reveal Hidden Passwords in Firefox

Today I wanted to replace my router and realized that I don’t remember my ISP’s username and password. Like in any router’s web interface, the ISP’s password is saved behind asterisks (or dots in case of Windows Vista/7) but there’s an easy way to reveal this password in Firefox:

Just paste the following code in your browsers address bar when you’re on the page that displays the username and password of your connection and press Enter.

Read More…

How To: Use the Apple Magic Mouse on your Windows PC

The Magic Mouse is SEX IN THE FORM OF A MOUSE! A client just gave me one as a present. Best client, EVER! :D
@jimeh
Jim Myhrberg

Back in October 2009, Apple released the Magic Mouse, the first pointing device with a multi-touch surface. Like with the iPod or the iPhone, you interact with the device using gestures. And of course like with any other mouse, you can click it: The mouse itself is the button!

The Magic Mouse

I bought the Magic Mouse from the London Apple Store during a quick trip there and because my previous mouse was a Logitech MX518, when I first started using the Magic Mouse I got a little bit disappointed by the lack of precision when trying to do some very detailed work. Getting it to work with Windows 7 is not that difficult, all you have to do is follow the simple steps of this how-to.

Read More…

 Scroll to top