How To Install and Configure Cntlm to Access ISA Server on CentOS 6.5

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

How To Assign UUID to Swap in Raspbian

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 free -mh to verify swap. Thank you.

Source: Debian Part-UUID Ubuntu SwapFaq

How To Install VMware Tools on Fedora 20 Running on ESXi Host

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.

How To Setup Maxis Home Fiber Using TP-Link TL-WR1043ND and Thomson Gateway TG784n

Today, I want to share with you this Maxis Home Fiber setup using TP-Link TL-WR1043ND v1.10 and Thomson Gateway TG784n. You would be surprise why Thomson Gateway TG784n. Let me explain further. Since this Maxis Home Fiber is running on TM infrastructure and you want to have the phone (SIP/VoIP) feature then Thomson Gateway TG784n will be remain here (you need to disable the wireless interface yourself). Following below are the devices involved in this setup: -

1) Huawei HG850a
2) TP-Link TL-WR1043ND v1.10
3) Thomson Gateway TG784n
4) Aztech DECT Cordless Phone E310-S

Continue reading

How To Setup Maxis Home Fiber Using Mikrotik RB751U-2HnD and Thomson Gateway TG784n

I wanted to share with you this Maxis Home Fiber setup using Mikrotik RB751U-2HnD and Thomson Gateway TG784n. You would be surprise why Thomson Gateway TG784n. Let me explain further. Since this Maxis Home Fiber is running on TM infrastructure and you want to have the phone (SIP/VoIP) feature then Thomson Gateway TG784n will be remain here (you need to disable the wireless interface yourself). Following below are the devices involved in this setup: -

1) Huawei HG850a
2) Mikrotik RB751U-2HnD
3) Thomson Gateway TG784n
4) Aztech DECT Cordless Phone E310-S

Continue reading