Client:~# cd /home/user/.ssh/
Client :~# ssh-keygen -t rsa
Anmerkung bzgl. Passphrase: 3 x RETURN drücken, da sonst diese bei Anmeldung abgefragt wird. Ggf. können Sie natürlich zwecks Sicherheit die Passphrase nutzen.

to generate the key in the server: ssh-keygen -t rsa -b 2048

ssh-copy-id root@servername.comain.ch

ssh-copy-id “user@host -p 8129”

Download and Burn the ISO
Boot up and install with the needed modules
apt-get install mysql-server
apt-get install myphpadmin

change /etc/network/interfaces

iface eth0 inet static
address 192.168.59.11
netmask 255.255.255.0
network 192.168.59.0
broadcast 192.168.59.255
gateway 192.168.59.1

change /etc/hosts

change the internal DNS server entrys

init 0

#!/bin/sh
# 2011-10-12 Patrick Biber
# Version 0.1
# This Script Controlls der server.php script from the MOVERS project

OPERATOR="it@operator.com"
LOG_FILE="/var/www/domains/southpolecarbon.com/movers-log/MOVERS-`date "+%A"`"

echo -e "Start MOVERS SERVER Controll Script (Zurich, `date "+%Y-%m-%d_%H:%M"`) ...\n" > $LOG_FILE

chown www-data $LOG_FILE
chmod 0770 $LOG_FILE

# server.php Aufruf

# Script Ueberwachungs-Schlaufe
MSERVER="`ps aux | grep server.php | grep -v grep`"
if [ "$MSERVER" == "" ]; then
# Falls ein MOVERS SERVER Script Fehler aufgetreten ist
su www-data "-c /usr/local/bin/startmoverphp.sh"
echo -e "\nRestarted MOVERS SERVER (Zurich, `date "+%Y-%m-%d_%H:%M"`) ..." >> $LOG_FILE
echo -e "\nserver.php Service was not running, the controll Script started it again" >> $LOG_FILE
echo -e "\nError mail to $OPERATOR ..." >> $LOG_FILE
mail -s "MOVERS-SERVER-Error" $OPERATOR < $LOG_FILE fi

OS X and many flavors of *nix come with Crontab, an excellent program to run unattended jobs. I currently use crontab to run AWStats. I also have several scripts that I run nightly. This short tutorial should allow you to set up your own Crontab jobs.

Create a script you wish to run. For this example, I am going to use the awstats.pl script to update my stats. The command to run the update is:

/path/to/awstats.pl -update -config=myconfig

2. Create a new crontab file for your user. This is accomplished by opening the Terminal.app, found in your Application/Utilities folder. Type the following into the terminal:

crontab -e

If you do not have a crontab file, one will be created for you and opened in vi.

3. Choose when you would like the job to run. Every job is a line in your crontab file. The first 5 arguments specify the time to run the job, and the 6th argument is the command to run.

Argument 1: Minute (0 – 59)
Argument 2: Hour (0 – 23)
Argument 3: Day of Month (1 – 31)
Argument 4: Month (1-12)
Argument 5: Day of Week (0 – 6) Sunday = 0
Argument 6: Command

So if I want to update my stats every 30 minutes, my entry in my crontab file will look like this:

*/30 * * * * /path/to/awstats.pl -update -config=myconfig

Save the file, and crontab should report:

crontab: installing new crontab

To see a list of your crontabs, run this command:

crontab -l

That’s it! Crontab will now update the stats every half hour. It also will generate an email to your local user account to let you know it did its job. Most times your local user account’s mailbox will not be where you want to be notified. To forward your email, create a file in your home directory called .forward. In the file put the email address where you would like the notification to be sent to.

cd /home/paede/.VirtualBox/VDI/

~/.VirtualBox/VDI$ VBoxManage modifyhd XPtest.vdi –resize 30000

Via VBox neue Maschine mit VM erstellen

:~/.VirtualBox/VDI$ VBoxManage clonehd XPtest.vdi XPtestfett.vdi –existing