sudo apt-get install libssh2-php
php -m |grep ssh2 #you should see ssh2
sudo service apache2 restart #apache restart if you are using apache
sudo apt-get install libssh2-php
php -m |grep ssh2 #you should see ssh2
sudo service apache2 restart #apache restart if you are using apache
This script go over all Qmail mailboxes and removes oldest emails from accounts that are over 250MB in size and removes 5MB worth of emails.
Works ok PLESK systems on CentOS.
Read More
First find the template you want to convert to VM
xe template-list
xe template-list name-label="vm_name"
xe vm-param-set uuid=<Template UUID> is-a-template=false
xe vm-reset-powerstate uuid=<Template UUID> force=true
Use Below command to setup cron as service
$ cron-config Do you want to remove or reinstall it (yes/no) yes Do you want to install the cron daemon as a service? (yes/no) yes Enter the value of CYGWIN for the daemon: [ ] ntsec Do you want the cron daemon to run as yourself? (yes/no) no Do you want to start the cron daemon as a service now? (yes/no) yes
Next use crontab to create the sceduled task
$ crontab -e 0 0 * * * rsync -avz --delete --password-file /etc/rsync.pwd /cygdrive/g/www/ rsync://[email protected]:/Public/www
This syncs my laptop with my NAS every day at midnight. I also have a task in my windows Task Manager to wake the laptop from sleep at that time to do the sync. So I can sleep, without worry.
First create a template for 14.04 since it’s not an option:
TEMPLATE_UUID=`xe template-list name-label="Ubuntu Lucid Lynx 10.04 (64-bit)" params=uuid --minimal`
NEW_TEMPLATE_UUID=`xe vm-clone uuid=$TEMPLATE_UUID new-name-label="Ubuntu Trusty 14.04 (64-bit)"`
xe template-param-set other-config:default_template=true other-config:debian-release=trusty uuid=$NEW_TEMPLATE_UUID
With 6.2 SP1 and all the patches, it works out of the box.
The only thing left to do is to install Xen Tools with this command:
sudo dpkg -i /media/