Posts

Showing posts from June, 2013

Advertisement.

TransHimalaya.in

Everest Helicopter Tour for a day

Book exciting packages at www.transhimalaya.in

Recieve email with attachment using VB.Net and openpop.net

Grabbing the body of the e-mail message is a little bit trying. You need to actually grab the MessagePart (in the e-mail address we used the MessageHeader). Once you have the MessagePart you can then access the following methods .FindFirstPlainTextVersion() and .FindFirstHtmlVersion(), plain text and HTML respectively.
First you will need to test whether the e-mail has an attachment. If it does we need to set up a situation where we can loop through all the attachments, in case there is more than one. Below is a bit of code that will save the attachments to a folder on the local drive

Imports OpenPop.Pop3
Imports OpenPop.Mime
Imports System.Data
Public Class Form1

    Private Sub btnGet_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnGet.Click
        Dim pop3Client As Pop3Client

        pop3Client = New Pop3Client
        pop3Client.Connect(txtServer.Text, Integer.Parse(txtPort.Text), cbSSL.Checked)
        pop3Client.Authenticate(txtUser.Text, txtPwd.Text)


        …

Install vncserver / No machine for remote access on Debian Linux

Update and Upgrade your server with current packages

Being logged into your server as root, do the following:

server$ apt-get update
server$ apt-get upgrade
server$ apt-get dist-upgrade
to upgade your whole installation.

IV. Installing GNOME

After having done a dist-upgrade we are used to reboot the servers. This might not be necessary in all cases and might be a strange obsession from ancient MS Windows times, but we would recommend it to allow all scripts to become initialized anew.

After reboot login as root again and do the following:

server$ apt-get install gnome-desktop-environment
V. Install fonts for GNOME and VNC

Install some (required) fonts for the VNC server GNOME session:

server$ apt-get install xfonts-100dpi
server$ apt-get install xfonts-100dpi-transcoded
server$ apt-get install xfonts-75dpi
server$ apt-get install xfonts-75dpi-transcoded
server$ apt-get install xfonts-base
VI. Install VNC server

We prefer TightVNCServer, simply because it worked from the very beginning…

server…

Backup Windows Server to another Server : SyncToy

Backup Windows Server A to another Server B.

To create backup of data at A to server B.

1. Create a shared folder with write permission in B.

2. Access this folder in server A in my computer > Mapnetwork drive and create a new drive named z:
which represent //B/sharedfolder

3. Install a free windows software SyncToy

4. Create the folder pair and give it a name "server backup".

5. To automate the backup schedule a task in Task scheduler.
 > use synctoycmd.exe  with folder pair name as  argument  "server backup" - R

Problem you may face
problem with synctoy 2.1. It can't find mapped network drives when run via Task Scheduler running the following command: "C:\Program Files\SyncToy 2.1\SyncToyCmd.exe" with aruments "-R" It works fine when I run it manually from the synctoy GUI. The command also works fine when I execute the command above via the command line. Solution:
You need to setup synctoy using the UNC path instead of the mapped dri…

Google+ Followers