Category Archives: Tips and Tricks

Windows Speedtest Software

So we all have heard of sure, but what about something that can test from different locations  and create a awesome report for slowdowns and such?

I have found DownTester from what a killer app, works so far on all Windows Desktops and Servers I have tested on.

Its simple you install setup your locations and hit go.

I find once setup for the home user under Advanced Setting to tweak the stop at 20MB’s this way it just doesn’t burn up your bandwidth.

You can add  your list from a list here is my personal one. Frankfurt,DE Amsterdam,NL Paris,France London,UK Singapore Tokyo,Japan New York,New York Chicago,Illinois Atlanta,Georga Miami,Florida Seattle,Washingon Silicon Valley,California Los Angeles,California Sydney,Australia

** Linux Command Line **



Have at it!! You will enjoy this software.


Mount: special device /dev/xvdd does not exist When Installing XenServer Tools on Linux

According to the Citrix documentation, the command to mount the XenServer tools ISO image on a Linux OS is this:

mount /dev/xvdd /mnt

But this does not work on CentOS or Ubuntu virtual machines, because these use a different naming convention for CD-ROM devices.

Mount XenServer Tools in CentOS

sudo mount /dev/cdrom1 /mnt

Mount XenServer Tools in CentOS 7

sudo mount /dev/sr0 /mnt

Mount XenServer Tools in Ubuntu

sudo mount /dev/cdrom /mnt

Moving NOC-PS

Have you ever had hardware failure or just messed up your NOC-PS install?

Well here is how you can backup, move, and restore your installation with the following commands.


On the old NOC-PS VM:

Enable SSH if you have not done before:

– in the NOC-PS VM console press “escape” -> arrow down -> “OS shell”

passwd www-data
*choose password*
mv /etc/init.d/K50dropbear /etc/init.d/S50dropbear

Connect with a SSH file transfer utility with username “www-data” and the password chosen, and download the latest backup file from /backup, or make a new one with: pg_dump -U noc-ps | gzip  > backup.sql.gz

– Power down the old NOC-PS VM

– Install NOC-PS on new VM

– Update NOC-PS to the latest version via the web interface

– Enable SSH on new NOC-PS installation.

– Transfer the backup file to the new NOC-PS installation with a SSH file transfer utility

– Execute on the new VM:

killall php-cgi ; dropdb -U noc-ps noc-ps
createdb -U postgres -O noc-ps noc-ps
gzip -dc backup.sql.gz | psql -U noc-ps

Installing Zend Optimizer with IonCube Loader

Zend Optimizer and Ioncube, can safely be installed on an InterWorx server. Ref:

To install Zend Optimizer.

cd /usr/src/
tar xzf ZendOptimizer-3.3.9-linux-glibc23-i386.tar.gz

Now locate php.ini and extension directory. To locate php.ini, run following command:

php -i |grep php.ini

You will get a similar output.

Configuration File (php.ini) Path /etc/php-cgi.ini

Now locate extension_dir using following command:

grep extension_dir /etc/php-cgi.ini

Copy Zend extension to php extension dir using following command:

cp /usr/src/ZendOptimizer-3.3.9-linux-glibc23-i386/data/5_2_x_comp/ /usr/lib/php5/

Then add following line to /etc/php.d/ioncube.ini

zend_extension = /usr/lib/php5/

Then restart web server.

Please note that if you add above line to /etc/php-cgi.ini, you will get following error:

-bash-3.00# php -v
PHP Fatal error: [ionCube Loader] The Loader must appear as the first entry in the php.ini file in Unknown on line 0

Hope this helps

How to Create ISO Storage on XenServer

This post walks you through how to create local volume on a XenServer host to serve as ISO repo.

1. ssh to the XenServer host

2. Check free local disk space:

df -h

Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda1              4127440   1976852   1940924  51% /
none                    381120         4    381116   1% /dev/shm
                         52408     52408         0 100% /var/xen/xc-install 

3. Check available physical disk space:

[root@Host1 ~]# pvs
  PV         VG                                                 Fmt  Attr PSize   PFree  
  /dev/sda3  VG_XenStorage-43851e54-d3bf-0602-5e84-93629cfe7851 lvm2 a-   457.75G 457.75G

4. Check volume groups:

[root@Host1 ~]# vgs
  VG                                                 #PV #LV #SN Attr   VSize   VFree  
  VG_XenStorage-43851e54-d3bf-0602-5e84-93629cfe7851   1   1   0 wz--n- 457.75G 457.75G

5. Create the new LV (Logical Volume) in the available VG:

lvcreate -L 10G -n iso-images VG_XenStorage-43851e54-d3bf-0602-5e84-93629cfe7851

6. list:


7. make a filesystem on this new LV:

mkfs.ext3 /dev/VG_XenStorage-43851e54-d3bf-0602-5e84-93629cfe7851/iso-images

8. create a mount point:

mkdir /mnt/iso-images

9. make the LV in the VG known to the kernel:

vgchange -a y

10. create the repository:

xe sr-create name-label=iso-images type=iso device-config:location=/mnt/iso-images/ device-config:legacy_mode=true content-type=iso

11. confirm new repository listed in XenServer:

xe sr-list

12. mount the new FS:

mount -t ext3 /dev/VG_XenStorage-43851e54-d3bf-0602-5e84-93629cfe7851/iso-images /mnt/iso-images/

13. [OPTIONAL] edit /etc/fstab to mount at boot

After following these steps, you can now use something like wget to download ISO images to the /mnt/iso-images mount and have them available to XenServer.

Delete Files Older Than x Days

The find utility on linux allows you to pass in a bunch of interesting arguments, including one to execute another command on each file. We’ll use this in order to figure out what files are older than a certain number of days, and then use the rm command to delete them.

Command Syntax

find /path/to/files* -mtime +5 -exec rm {} \;

Note that there are spaces between rm, {}, and \;


  • The first argument is the path to the files. This can be a path, a directory, or a wildcard as in the example above. I would recommend using the full path, and make sure that you run the command without the exec rm to make sure you are getting the right results.
  • The second argument, -mtime, is used to specify the number of days old that the file is. If you enter +5, it will find files older than 5 days.
  • The third argument, -exec, allows you to pass in a command such as rm. The {} \; at the end is required to end the command.

This should work on Ubuntu, Suse, Redhat, or pretty much any version of linux.


Blocked at AOL

AOL as we know is still a large ISP, but a massive pain in the butt to hosting providers because one piece of spam and bang your IP is blocked.

This is a simple test to tell if AOL has you blocked. First SSH into your server or vps the run this following command.

telnet 25

If you get a response your not blocked, if no response well you are. Then you have to go down the fun path of fixing this.