Tuesday, October 17, 2017

AWS Certification Q&A 1

1. Which DNS name can only be resolved within Amazon EC2?

  • D. Private DNS name
  • http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-dns.html
  • An Amazon-provided private (internal) DNS hostname resolves to the private IPv4 address of the instance, and takes the form ip-private-ipv4-address.ec2.internal for the us-east-1 region, and ip-private-ipv4-address.region.compute.internal for other regions (where private.ipv4.address is the reverse lookup IP address). You can use the private DNS hostname for communication between instances in the same network, but we can’t resolve the DNS hostname outside the network that the instance is in.

2. Is it possible to access your EBS snapshots?

Tuesday, September 19, 2017

How To Send A Schedule Recurring Email In Outlook?

From Extend Office post
In Microsoft Outlook, you can easily send a schedule recurring appointment, meeting or task to others. But if you just want to send a schedule recurring email without any appointment, meeting or task, how can you do? Unfortunately, Outlook provides no feature for sending schedule recurring email, but in our tutorial, we will show you how to send a schedule recurring email in Outlook.

 Send A Schedule Recurring Email In Outlook With VBA Code

This tutorial is divided into four parts, you will succeed to send a schedule recurring email after finish these parts. Please do as follows.
First Part: Create a new appointment
1. Please navigate to the Calendar view by clicking Calendar in the Navigation Pane, and then create a new appointment by clicking New Appointment under Hometab.
3. In the Appointment dialog under Appointment tab. You need to:
A: Type in the SubjectB: Enter the recipients’ email addresses in the Location
C: Configure the Start time and the End timeD: Select the reminder under the Reminder drop-down list.
If you choose 15 minutes, it means it will remind you 15 minutes early when the email is sent.
E: Compose your Appointment body.
Note: The Appointment Subject will become the recurring email subject; and the Appointment body will become the recurring email body when the recipients received the email.
Second Part: Create a new category
Now you need to create a new category named “Send Schedule Recurring Email” as follows:
1. In the Appointment dialog, please click Categorize > All Categories in the Tags group under Appointment tab.
2. When the Color Categories dialog popping up, please click New button. In the Add New Category dialog, type “Send Schedule Recurring Email” in the Namefield; and then choose a color in the Color drop-down list. Then click OK.
3. Then you will see the “Send Schedule Recurring Email” category is listed out, please check the box, and then click OK button.
Third Part: Set the Recurrence
Now, it is time to set the recurrence for the appointment.
1. Click Recurrence in the Options group under Appointment tab. See screenshot:
2. In the Appointment Recurrence dialog, configure your Recurrence pattern. If you need an end time, please configure it under Range of recurrence. And then click OK.
3. When it returns to the Appointment dialog, please click Save & Close button. See screenshot:
Last: Use the VBA code for sending the Schedule Recurring Email
1. Please press Alt + F11 to open the Microsoft Visual Basic for Applications dialog.
2. Double click on Project1 > Microsoft Outlook Object > ThisOutlookSession in the left pane. See screenshot:
3. Copy and paste the following VBA code to the VBA editor. And then click Save button.
VBA: sending schedule recurring email
Private Sub Application_Reminder(ByVal Item As Object)
  Dim MItem As MailItem
  Set MItem = Application.CreateItem(olMailItem)   
If Item.MessageClass <> "IPM.Appointment" Then  Exit Sub
If Item.Categories <> "Send Schedule Recurring Email" Then  Exit Sub
  MItem.To = Item.Location
  MItem.Subject = Item.Subject
  MItem.Body = Item.Body
  Set MItem = Nothing
End Sub
When the Reminder popping up, the email will be automatically sent to the recipients which you have typed in the Location field in the first part. Then click Dismiss in the Reminder dialog. And the email will be sent recurring every day in this time. See screenshot:
Note: The VBA code was successfully tested in Outlook 2010.

Thursday, August 24, 2017

Bandwidth Arbitrator 9.62 on Debian Sarge 2.6.5

It is from http://www.linuxhelp.net/forums/lofiversion/index.php/t7763.html

Introduction : 

This is going to be a Badwidth Arbitrator (ver 9.62) install guide on Debian Sarge

First of all you will need to download Debian Sarge cd1 from here http://cdimage.debian.org/debian-cd/3.1_r2...86-binary-1.iso .

Note about the computer I used for my network of 145~ computers and a 512kbit/s down, and 512kbit/s up optical line :

CPU : Intel Pentium 3Ghz
RAM : 256 MB DDR 
HDD : 80GB Western Digital ( because I was unable to find a smaller drive at the time)
ETHERNET : 2x Realtek 100Mbps (RTL8193too) ( but any other will do, if you can go with intel , intel seems to be better supported by some software)


You put in the Debian Sarge cd1 into your machine and you just install it choosing the apropriate time zones , locations ... root password etc,etc.

Once you went trough the installer which is quiet simple for Debian Sarge. You will do the following,
first login as root and type the following.

apt-get build-dep kernel-source-2.6.8
apt-get install libncurses5-dev
cd /home
wget ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.5.tar.gz
wget http://www.bandwidtharbitrator.com/bridge-utils-0.9.5.tar
wget http://www.bandwidtharbitrator.com/downloads/arbitrator9.62.tar.gz

This will take a while to download, once it is done do the following :

cd /usr/src
tar zxfv /home/linux-2.6.5.tar.gz
ln -s linux-2.6.5 linux
ln -s linux-2.6.5 linux-2.6

With this the kernel is in place, so now let's go focus on the bridge utils :

mkdir /bridge
cd /bridge
tar xvf /home/bridge-utils-0.9.5.tar
cd /bridge-utils

Now it's time to move on to the kernel source (2.6.5) :

cd /usr/src/linux
make menuconfig

If you used for example realtek cards when you install rh9 it detected them and it is working, but if you look at Network Devices and 100mbps ethernet in menuconfig you'll see that they are compiled in as modules only, now this will be a problem , since rh9 will no longer see the realtek cards once you reboot to the 2.4.19 kernel, so instead of using the rtl8139 as module you must compile it in , change that M in front of it to a * .

Once done edit your /usr/src/linux/.config file and make sure the following are set to Y otherwise
you'll have problems.


Then search for EXT3 in the config file and select Y for everything that has a EXT3 in it , otherwise the new kernel won't be able to see your file system, thus wont boot.

With this the bridge utils and kernel menu config are done for now, let's continue with installing Arbitrator9.62.

mkdir /art
cd /
tar zxvf /home/arbitrator9.62.tar.gz
cd /arbitrator9.62.tar.gz

You basically select Y till the end, that will install arbitrator to the right places, so now we compile
bridge-utils again.

cd /bridge/bridge-utils

Now we'll continue compiling the new kernel :

make bzImage
make modules
make modules_install
make install

Now we need to create the /boot/initrd.img-2.6.5 so you'll need to download the right tools and do
the following :

apt-get install module-init-tools
mkinitrd -o /boot/initrd.img-2.6.5 2.6.5

So the finall step is to add the new kernel into your /boot/grub/menu.lst file , add the following few
lines right after the original Debian Sarge kernel 2.4.x entry :


title           Debian GNU/Linux, kernel 2.6.5
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.5 root=/dev/hda1 ro vga=788
initrd          /boot/initrd.img-2.6.5

You might wanna remove vga=788 if you get a blank screen , otherwise it's gona enable you to view the screen at a higher resolution.

Once this is done type , you'll need to edit the following file to make arbitrator autostart on restart :


Add the following few lines to the end of it :

/usr/local/sbin/brctl addbr my
/usr/local/sbin/brctl addif my eth0
/usr/local/sbin/brctl addif my eth1
/sbin/ifconfig eth0
/sbin/ifconfig eth1
/sbin/ifconfig my netmask up
/sbin/route add default gw
/etc/init.d/arbitrate start

Don't forget to modify the ip addresses here according to your own needs.

Now copy the brctl and brctld file to the following location /usr/local/sbin/ like this :

cd /bridge/brctl
cp brctl /usr/local/sbin
chmod 700 /usr/local/sbin/brctl
cp brctld /usr/local/sbin
chmod 700 /usr/local/sbin/brctld

Once done edit /etc/arbdefault.conf make sure the ip address there matches the ip address you used for the bridge !!! 

Reboot, and there you have it Arbitrator 9.62 on kernel 2.6.5 running .

This would be recommended for those who used the older Arbitrator on 2.4.19 kernel and encountered panics sometimes. Those should try to upgrade to this newer Arbitrator.