Wednesday, February 18, 2009

Import & Export Mail from Outlook express/Microsoft outlook to Thunderbord

Microsoft Outlook Express

These instructions are intended for users of Microsoft Outlook Express 6. If you are a user of a different version ofOutlook Express

Exporting the address book

  1. Open Outlook Express and press File → Export → Address Book...

  2. The Address Book Export Tool will start. Select the option Text File (Comma Separated Values) and then pressExport.

  3. Save the file in a memorable location. Give the file a descriptive name, such as mail_address_book.csv, and pressNext.

  4. Select the details from the address book which you would like to export. If you are unsure, tick all of the options. Then, press Finish.

  5. You should receive a message stating that the Address book export process has completed. Press OK and thenClose. Your address book should now have been exported successfully.

Exporting mail messages from Outlook Express

Because Microsoft Outlook Express is unable to export its mail messages to an intermediate format, you must install another piece of software in order to export your email.

Microsoft Office Outlook

These instructions are intended for users of Microsoft Office Outlook 2003. If you are a user of a different version ofOutlook, you may find instructions specific to that version on the wiki.

Exporting all Outlook data

[Caution]

This method may be unreliable and should be used for backup purposes only.

  1. Open Outlook and press Tools → Options...

  2. Select the Mail Setup tab and press Data Files...

  3. A screen called Outlook Data Files will be displayed. Select the first file in the list, make a note of its name, and pressOpen Folder...

  4. A folder will open. Find the file you just selected. If you have difficultly finding the file, it should be of type Office Data File or have the file extension .pst.

  5. Copy the file into the location you are using to store your exported settings.

  6. Repeat this process for all of the files which were listed on the Outlook Data Files screen.

Exporting your contacts

  1. Open Outlook and press File → Import and Export...

  2. The Import and Export Wizard will start. Select the option Export to a file and then press Next.

  3. Select Comma Separated Values (DOS) and press Next

  4. Select the Contacts folder and press Next. Then, choose where to save the file and press Next.

  5. A screen listing Actions to be performed will be shown. Press Finish to export your contacts to the location you selected in the previous step.

Exporting mail messages

Because Microsoft Outlook is unable to fully export its mail messages to a usable intermediate format, you must install another piece of software in order to export your email.

Preparing email for export using Mozilla Thunderbird

Because some mail clients (such as Microsoft Outlook and Microsoft Outlook Express) do not store their mail messages in a standard format, an additional piece of software must be used to convert the mail before export. Mozilla Thunderbird is a free, open-source application which is able to do this.

The following instructions explain how to obtain Thunderbird and then use it to prepare mail messages for export:

  1. Open a web browser and navigate to the Mozilla Thunderbird website. Follow the link to download Mozilla Thunderbird.

  2. Once the download has completed, run the installer package. Follow the instructions to install Thunderbird.

  3. Once the installer has completed, start Mozilla Thunderbird. You should be greeted with the Import Wizard. Follow the instructions to import all settings - this should import your mail and some other data.

  4. If the Import Wizard does not appear, press Tools → Import... and choose the Mail option. Follow the instructions to import your mail.

Exporting email messages from Mozilla Thunderbird

These instructions are intended for users of Mozilla Thunderbird and users of Outlook and Outlook Express who imported their mail into Thunderbird (see the section called “Preparing email for export using Mozilla Thunderbird”).

  1. Press Start → Run, type %AppData%\Thunderbird\Profiles\ into the box provided, and then press OK. A folder will open.

  2. In the newly-opened folder, you should find another folder with a name made up mostly of random characters, for example fyhsxlr3.default. Open this folder.

  3. In this folder, locate a folder named Mail or ImapMail. Select this folder and copy it to a safe location.

  4. When you switch to Ubuntu, make a back-up copy of the folder you just made a copy of. This folder contains all of your mail folders from Thunderbird, in the mbox format.

Basic installation for phpmyadmin in ubuntu

*Basic installation for phpmyadmin in ubuntu-:

$ apt-get install apache2 

*Install php5 libapache2-mod-php5* 



$  apt-get install php5 libapache2-mod-php5 

$  /etc/init.d/apache2 restart 

*Install mysql-Server-:* 



$ apt-get install mysql-server 

 If you are running a server you should probably bind your address by 
editing *bind-address* 

$ vim  /etc/mysql/my.cnf and replacing its value (127.0.0.1) by your IP 
address 

 Set your root password in mysql during installation. 

mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('xxxxxx') 

*xxx is your password* 

$ apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin 

Restart apache service 

$ /etc/init.d/apache2 restart 

$ apt-get install phpmyadmin 

$ vi /etc/apache2/apache2.conf 

                                      Include this line in apache 

Include /etc/phpmyadmin/apache.conf 

$ /etc/init.d/apache2 restart 

$ apt-get install php5-mysql mysql-client 

$ vi /etc/php5/apache2/php.ini 

                                         Check it " extensions=mysql.so" is 
there 

$ /etc/init.d/apache2 restart 

$ /etc/init.d/mysql restart 


installation & configuration backuppc in fedora 9/10

Installing backuppc in fedora9/10

I have been given the task of setting up one backuppc server, and below are the steps on how I did it :)

Server setup

                         #yum install backuppc          

                         the perl module needed using yum

    • # yum install perl-Compress-Zlib perl-Archive-Zip perl-File-RsyncP perl-XML-RSS httpd
    • # rpm -Uvh backuppc-3.1.0-1%{dist}.i386.rpm
  1. User backuppc will be created upon installation. Change apache user to backuppc.
    • # vi /etc/httpd/conf/httpd.conf
    • Change 'User apache' to 'User backuppc'
    • Save
  2. Edit file /etc/httpd/conf.d/backuppc.conf
    • # vi /etc/httpd/conf.d/backuppc.conf
    • change 'Allow from 127.0.0.1' to 'Allow from all'
    • Save
  3. Create password for cgi-bin admin user
    • # htpasswd -c /var/lib/backuppc/passwd/htpasswd admin
  4. Edit backuppc config file
    • # vi /etc/BackupPC/config.pl
    • Find and change accordingly
      • $Conf{ServerHost} = 'localhost';
      • $Conf{SplitPath} = '/usr/bin/split';
        $Conf{CatPath} = '/bin/cat';
        $Conf{GzipPath} = '/bin/gzip';
        $Conf{Bzip2Path} = '/usr/bin/bzip2';
      • $Conf{BackupPCUser} = 'backuppc';
      • $Conf{TopDir} = '/var/lib/backuppc';
        $Conf{ConfDir} = '/etc/BackupPC';
        $Conf{LogDir} = '/var/log/BackupPC';
        $Conf{InstallDir} = '/usr';
        $Conf{CgiDir} = '/usr/share/backuppc/cgi-bin';
      • $Conf{ServerInitdPath} = '/etc/init.d/backuppc';
        $Conf{ServerInitdStartCmd} = '$sshPath -q -x -l root $serverHost$serverInitdPath start';
      • $Conf{SshPath} = '/usr/bin/ssh';
      • $Conf{NmbLookupPath} = '/usr/bin/nmblookup';
      • $Conf{PingPath} = '/bin/ping';
      • $Conf{CgiAdminUsers} = 'admin';
    • Save
  5. Grant passwordless sudo for user backuppc to run /bin/gtar and /bin/tar
    • # visudo
    • Add these entries
      • Defaults !lecture # to disable lecture
      • backuppc ALL=NOPASSWD:/bin/gtar,/bin/tar # enable user backuppc to run /bin/tar and /bin/gtar without authentication.
    • Comment this entry
      • #Defaults requiretty
    • Save
  6. Restart apache and backuppc service
    • # /etc/init.d/http restart
    • # /etc/init.d/backuppc restart
  7. Open your browser and point it to 'http://backuppc_server_ip/backuppc' and you should see the backuppc web interface 
  8. After this, you have to do almost all the configuration through the web interface. To test, you can run localhost backup first. You have to create the host, fill up all the setting and you are ready to go. Record the host and ip in /etc/hosts.
Client setup
  1. Create new user
    • # useradd backupuser
    • # passwd backupuser
  2. Grant passwordless sudo for user backupuser
    • # visudo
    • Add these entries
      • Defaults !lecture # to disable lecture
      • backupuser ALL=NOPASSWD:/bin/gtar,/bin/tar # enable user backuppc to run /bin/tar and /bin/gtar without authentication.
    • Comment this entry
      • #Defaults requiretty 
    • Save
  3. From the server using backuppc user, create ssh public key
    • # su -s /bin/bash backuppc
    • $ mkdir .ssh
    • $ chown backuppc.backuppc .ssh
    • $ chmod 700 .ssh
    • $ ssh-keygen -t rsa
    • $ ssh-copy-id -i .ssh/id_rsa.pub backupuser@client
  4. To make sure that the 3rd step is a success, try to ssh to backupuser@client using backuppc user from the server. If no password is asked, then you are ready.
    • # su -s /bin/bash backuppc
    • $ ssh backupuser@client
  5. You can start entering the client to the list of host and start backing up :)

Netdump configuration

Netdump configuration HOWTO
To log VPS host machine crashes you can configure 'netdump' services.

Netdump configuration requires two computers:
- One acts as the netdump server - the box where all crash logs will be stored;
- The other one acts as the netdump client - the VPS host machine.


I. Prepare boxes

1). Install the "netdump-server" package on the server and the "netdump" package on the client (VPS host).
You can use any update agent (up2date, yum, swup) or download and install packages manually via RPM.
For example:
Quote:
# rpm -ivh netdump-0.7.14-4.i386.rpm
# rpm -ivh netdump-server-0.7.14-4.i386.rpm
2). Make sure that netdump servers partition where /var/crash directory located (by default the directory where all crashes will be stored) have enough free disk space, at least as your netdump client (VPS host) box RAM size.


II. Configuration

1). On the netdump server, as root, type:
Quote:
# passwd netdump
and supply a password for netdump user just like what you do to an ordinary user. Then do the following:
Quote:
# chkconfig netdump-server on
# service netdump-server start
2). On the netdump client (VPS host), edit /etc/sysconfig/netdump then uncomment and set the NETDUMPADDR variable to the IP address of the netdump server.
For example:
Quote:
NETDUMPADDR=10.199.243.39
Then execute:
Quote:
# service netdump propagate
and supply the netdump password that was configured on the netdump server. Finally, execute:
Quote:
# chkconfig netdump on
# service netdump start

III. Testing (optional)

To test if the netdump configuration is correct, perform the following
on the netdump client:
Quote:
# cp /usr/share/doc/netdump-xxxxxx/crash.c .
# gcc -DKERNEL -DMODULE -I/lib/modules/$(uname -r)/build/include -c crash.c
# insmod ./crash.o
This will crash the system and you will see a kernel dump on the netdump server in the directory /var/crash//. You will see the file "vmcore-incomplete" while the client is dumping data to the server. The file is renamed to "vmcore" once it is completed.

The size of "vmcore" will vary and may reach several gigs. On a system
with 512Mb of RAM, the above test created a vmcore of approximately
510Mb.