Since Dyn stop offering free dynamic DNS, I have choose to use Duck DNS and I would like to share the following script I use to update Duck DNS free dynamic DNS hosted on Amazon EC2 on my OpenWrt Attitude Adjustment 12.09 running on TP-Link TL-WR1043ND v1. Please note that I am using wget in OpenWrt and the free dynamic DNS link have to change to HTTP from HTTPS.

#!/bin/sh

echo "# --------------------------------------------------------------------------"
echo "# Welcome to Duck DNS Update Script"
echo "# --------------------------------------------------------------------------"

# Change to your domain and token generated
domain="your-domain"
token="your-token"

log="/tmp/duckdns.log"
file="/tmp/ipaddress.duckdns"
DuckDNS="http://www.duckdns.org/update?domains="$domain"&token="$token"&ip="

if [ ! -e "$file" ]; then
echo "0.0.0.0" > $file
fi

CHECKIP=`wget -qO- http://icanhazip.com`
CURRENTIP=`cat $file`

if [ $CHECKIP != $CURRENTIP ]; then

echo "New IP $CHECKIP detected and updating current IP..."

wget -q $DuckDNS -O $log
sleep 10

status=`cat $log`
if [ "$status" == "KO" ]; then
echo "Failed to update Duck DNS..."
exit 1
fi

OLDIP=`head -1 $file`
echo $CHECKIP > $file
echo "Current IP $CHECKIP updated and old IP was $OLDIP..."

else

echo "No updated needed for $CHECKIP IP..."

fi

After the above script is save as /root/duckdns.sh you can proceed to add the following line at Scheduled Tasks in OpenWrt. You need to restart cron service.

*/5 * * * * /root/duckdns.sh &> /dev/null

Thank you.

This blog post describes how to install and configure Cntlm in CentOS 6.5 64-bit connecting to Microsoft ISA server to enable web browsing capability. Decide to write this simple blog post to my previous blog post Install and Configure NTLMAPS to Access ISA Server.

Download Cntlm
Run the command below to download cntlm-0.92.3-1.x86_64.rpm RPM file: –

# wget -c -O cntlm-0.92.3-1.x86_64.rpm http://sourceforge.net/projects/cntlm/files/cntlm/cntlm%200.92.3/cntlm-0.92.3-1.x86_64.rpm/download

Install Cntlm
Run the command below to install Cntlm: –

# rpm -ivh cntlm-0.92.3-1.x86_64.rpm

Configure Cntlm
Run the command below to edit the Cntlm configuration file after Cntlm installed: –

# vi /etc/cntlm.conf

Now modify the below and save the configuration file after modifying it (below is an example only): –

Username your.nt.username
Domain your.domain
Proxy your.isa.server.name:your.isa.server.port
Listen 3128

Next run the command below to generate the password hash: –

# cntlm -H -c /etc/cntlm.conf

Once the password has is created, copy the PassNTLMv2 line and paste it after “Domain” line like below: –

Username your.nt.username
Domain your.domain
PassNTLMv2 your.password.hash
Proxy your.isa.server.name:your.isa.server.port
Listen 3128

Start Cntlm
Run the command below to start NTLMAPS: –

# service cntlmd start

System Wide Configuration
You can setup the proxy environment in /etc/profile as global variable as below (tested with curl, elinks, lynx, wget & yum): –

export http_proxy=http://127.0.0.1:3128

GUI Web Browser Configuration
You can use the following information to configure in your GUI web browser: –

Proxy IP address: 127.0.0.1
Proxy IP address: 3128

Here is how I assign an UUID to a swap in Raspbian. I have 2 swap partition at /dev/sda1 and /dev/sda2 each having 2GB of size. Below is the output of blkid command: –

# blkid
/dev/mmcblk0p1: UUID="8DFA-0D4E" TYPE="vfat"
/dev/mmcblk0p2: UUID="1b920f7d-119f-4ecf-8b95-e5cc6a67b8f1" TYPE="ext4"
/dev/sda1: TYPE="swap"
/dev/sda2: TYPE="swap"
/dev/sda3: UUID="e1fb5d19-ff43-cf01-a0b3-5119ff43cf01" TYPE="ext4"

There are two options you can assign an UUID to a swap. Below is first option: –

# mkswap /dev/sda1
Setting up swapspace version 1, size = 2096124 KiB
no label, UUID=676025b5-3710-44f9-b122-e4d60e622f2f
# blkid
/dev/mmcblk0p1: UUID="8DFA-0D4E" TYPE="vfat"
/dev/mmcblk0p2: UUID="1b920f7d-119f-4ecf-8b95-e5cc6a67b8f1" TYPE="ext4"
/dev/sda1: TYPE="swap" UUID="676025b5-3710-44f9-b122-e4d60e622f2f"
/dev/sda2: TYPE="swap"
/dev/sda3: UUID="e1fb5d19-ff43-cf01-a0b3-5119ff43cf01" TYPE="ext4"

Here you can have second option assigning an UUID to a swap: –

# uuidgen -r
7e0375b9-c858-4c68-8ce2-2e25eeddb313
# swaplabel -U 7e0375b9-c858-4c68-8ce2-2e25eeddb313 /dev/sda2
# blkid
/dev/mmcblk0p1: UUID="8DFA-0D4E" TYPE="vfat"
/dev/mmcblk0p2: UUID="1b920f7d-119f-4ecf-8b95-e5cc6a67b8f1" TYPE="ext4"
/dev/sda1: TYPE="swap" UUID="676025b5-3710-44f9-b122-e4d60e622f2f"
/dev/sda2: TYPE="swap" UUID="7e0375b9-c858-4c68-8ce2-2e25eeddb313"
/dev/sda3: UUID="e1fb5d19-ff43-cf01-a0b3-5119ff43cf01" TYPE="ext4"

Next, you can add the following line at /etc/fstab file: –

UUID=676025b5-3710-44f9-b122-e4d60e622f2f       none    swap    sw      0       0
UUID=7e0375b9-c858-4c68-8ce2-2e25eeddb313       none    swap    sw      0       0

Reboot the Raspbian and run command below to verify swap: –

# free -mh

Thank you.

Source: Debian Part-UUID Ubuntu SwapFaq

Today I would like to share with you how to install VMware Tools on a freshly installed Fedora 20 running on a free version of ESXi host. I choose basic (minimal) istallation for this Fedora 20 running on ESXi host.

First, install the required package below: –

# yum -y install net-tools perl tar

Then, we must ensure everything are up to date by running the following commands: –

# yum -y update

Next, reboot Fedora 20 to have it running on new kernel: –

# reboot

Now, at the Fedora 20 VM console, click Install/Upgrade VMware Tools as per screenshot below: –

Next, click Ok to continue as per screenshot below: –

Now, run the following command to mount the ISO: –

# mount /dev/cdrom /media

Next, run the following command to extract the VMware Tools files to /tmp target directory: –

# tar xvfz /media/VMwareTools-8.6.11-1180212.tar.gz -C /tmp

Now, run the following command to automatically accept default settings and install VMware Tools: –

# /tmp/vmware-tools-distrib/vmware-install.pl --default

Finally, with all the steps above I hope you are able to use VMware Tools. Thank you.