Thursday, January 20, 2011

How to Automate the Disk Cleanup Tool in Windows XP

Open a command line window, then launch Cleanmgr.exe /sageset: n to choose the clean-up option. The n variable can be a number from 0 to 65535. When finish press the "Ok" button.
The command Cleanmgr.exe /d C: /sagerun: n perform a full clean-up of the c: drive with the options you set previously.

Now you can easily schedule this operation with a simple cmd file.

Thursday, January 13, 2011

VMWare Issue "Operation Failed Since Another Task Is In Progress"

You get this issue qhen a Vmachine is frozen. It's a snapshot issue. To fix this without rebooting the ESX server, you just have to kill the VM process via command line.

  • Login with SSH into the host running the frozen vmachine
  • The command
    cat /proc/vmware/vm/*/names
    shows you the list of the running VM's on the host. Write down the vmid of the frozen vm
  • The command
    less -S /proc/vmware/vm/vmid_frozen_vm/cpu/status 
    shows you some stats about the vm. Scroll to the right with the right arrow key to get the vm id group (i.e. vm.1760). Write down the number after "vm."
  • The command
    /usr/lib/vmware/bin/vmkload_app -k 9 vm_id_group
    unlock the vm and power off it. In a while you'll be able to run it again.

Thursday, December 30, 2010

VMWare Converter issue: Error code 2147754767 (0x8004230F)

If you get the error "FAILED: Unable to create a VSS snapshot of the source volume(s). Error code: 2147754767 (0x8004230F)" while you're trying to convert a physical windows machine to a virtual one (hot cloning) you just have to check on your physical machine if the service "MS Software Shadow Copy Provider" is running. If not, start it and repeat the conversion procedure.

Friday, April 23, 2010

AWStats: how to get stats from Apache on Fedora 10


as root: yum install awstats

to build the the stats:
/usr/share/awstats/wwwroot/cgi-bin/awstats.pl -config=localhost.localdomain -update

Your stats are now available at
http://localhost/awstats/awstats.pl?config=localhost.localdomain

If you need to see the stats not only from your server but from others pc simply edit
/etc/httpd/conf.d/awstats.conf

and replace
Allow from 127.0.0.1
with the ip addresses of your clients or
Allow from all
to open the stats to all ip addresses.

To update the stats just schedule the command as root
/usr/share/awstats/wwwroot/cgi-bin/awstats.pl -config=localhost.localdomain -update
with cron or Gnome Schedule

Wednesday, March 17, 2010

A Simple ftp server with Fedora 10


as root yum install vsftpd

edit vsftpd configuration file:
as root vi /etc/vsftpd/vsftpd.conf

uncomment anonymous_enable=NO to avoid anonymous connection

add chroot_local_user=YES to limit users to only their home directory

if you want to change the ftp default foder simply add this line:
local_root=/<ftp_folder>

finally start the service:
as root /etc/init.d/vsftpd start