Author Archives: admin

Setting timezone on CentOS

Timezone data files are stored on: /usr/share/zoneinfo   $ sudo rm /etc/localtime $ sudo ln -s /usr/share/zoneinfo/Europe/Athens /etc/localtime # # now check it's ok # $ date Wed Oct 1 12:42:33 GMT 2008

Posted in Linux | Comments Off on Setting timezone on CentOS

Create large file from command prompt

A quick way to create a file of a specific size from command prompt: fsutil file createnew C:\bigfile.txt 5000000000 The above command will create bigfile.txt with size 4,65GB.

Posted in Windows | Comments Off on Create large file from command prompt

Stop Bind from performing forward lookups using IPv6

You may get logs similar to the following: Sep 17 16:15:07 nsserver named[21089]: network unreachable resolving ‘ns2.vistaprint.com/A/IN’: 2001:503:a83e::2:30#53 You can specify OPTIONS=’-4′ in /etc/sysconfig/named to tell named not to use IPv6 or disable IPv6 completely on your machine. You can … Continue reading

Posted in Linux | Comments Off on Stop Bind from performing forward lookups using IPv6

Useful PowerCLI scripts

—Find VMs with snapshots Connect-VIServer vcenter Get-VM | Get-Snapshot | Select Created, VM —Find VMs with mounted ISO Get-VM | FT Name, @{Label="ISO file"; Expression = { ($_ | Get-CDDrive).ISOPath }} —Get Datastores and Used Storage for VMs within Cluster … Continue reading

Posted in Virtualization | Comments Off on Useful PowerCLI scripts

Useful Linux Commands

In order to add additional repositories on your Centos you have to run: rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm This command for example will add the EPEL repository. You can find additional repositories on http://wiki.centos.org/AdditionalResources/Repositories ——————————————————————————————- Searching for packages with yum: yum list … Continue reading

Posted in Linux | Comments Off on Useful Linux Commands