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
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
gpresult /Scope User /v
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.
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
From command prompt: echo %logonserver%
—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
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
If you ever have trouble with a service being stuck in a ‘starting’ or ‘stopping’ state, you can run a couple of simple commands to kill the service. –First query the process to find it’s PID: sc queryex |more –Kill … Continue reading
Firstly we have to install some prerequisites: yum install make gcc kernel-devel kernel-headers glibc-headers perl Mount the VMware Tools CD mkdir /mnt/cdrom mount /dev/cdrom /mnt/cdrom Copy the install bundle from the CD and extract it cp /mnt/cdrom/VMware-Tools*.tar.gz /tmp/ cd /tmp/ … Continue reading
To copy share permissions from one shared folder to another you have to use the permcopy command which is included in Windows Resource Kit Tools: permcopy \\SourceServer Sharename \\Destinationserver Sharename This command will copy the share permissions but not the … Continue reading