Tuesday, October 27, 2015

Alternate Site to this is www.vksalian.com

HI ALL,

I have moved to www.vksalian.com

AMAZON OFFERS

Monday, August 26, 2013

ALTERNATE SITE FOR THIS BLOG

ALL,


YOU MAY FOLLOW THIS BLOG ON ALTERNATE SITE AT

www.vksalian.com/blog


--
THANKS,
ADMIN

Thursday, June 14, 2012

EXTRACT Contents of winmail.dat file under UBUNTU.

    Have you got any mail with an attachment file "winmail.dat" containing useful information and you could not open it ?

Then here is a simple solution to extract the contents.

1. Install tnef command-line program using command below,

sudo apt-get install tnef.

2. Create a small script "tnef.sh" and save to your "Desktop" folder.

Contents :

#!/bin/bash

LOCATION=~/Desktop/winmail

mkdir $LOCATION
/usr/bin/tnef -C $LOCATION --save-body -f $1


3. Change the permission of file "tnef.sh" as, (type in terminal and press enter)

chmod +x tnef.sh

4. Go to thunderbird and click on winmail.dat attachment and,
select open with...
-----> Browse..... tnef.sh -----> Click "OK".

5.This will create a folder "winmail" in your desktop which contains,

   a) Mail Body as .rtf format.
   b) Attachments.

Sunday, December 25, 2011

Create ISO files and mount ISO files a folder.

In Linux (Ubuntu) it is possible to convert a contents of a folder into an "iso" file just using the command given below.

mkisofs -o /home/linuxlookup/example.iso /source/directory/

Similarly, you can mount an "iso" image as a folder using the coomand below.

# mount -o loop disk1.iso /mnt/

Similarly, to mount an "iso" as a drive use the below command,

sudo mount /home/vijays/redhat_4.8.iso /mnt/ -t iso9660 -o loop

Monday, November 28, 2011

How to compile a kernel from kernel.org in Ubuntu 10.04 LTS.

This quick how-to is based on http://linuxtweaking.blogspot.com/2010/05/how-to-compile-kernel-on-ubuntu-1004.html

Open a terminal and work through the following set of commands.

Install these packages

sudo apt-get install fakeroot kernel-wedge build-essential makedumpfile kernel-package libncurses5 libncurses5-dev

Run this

sudo apt-get build-dep --no-install-recommends linux-image-$(uname -r)

Create your source directory

mkdir ~/src
cd ~/src

Download and extract your kernel


You can browse for kernels at http://www.kernel.org/pub/linux/kernel/v2.6/ This guide is using kernel 2.6.37.

wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.37.tar.gz
tar xvf linux-2.6.37.tar.gz
cd linux-2.6.37

Configure your Kernel

make menuconfig

Build your Kernel

export CONCURRENCY_LEVEL=3
make-kpkg clean
time fakeroot make-kpkg --initrd kernel-image kernel-headers

General rule, concurrency level = number of processor cores + 1


Install your kernel

cd ~/src

dir        
sudo dpkg -i linux-image-2.6.37_2.6.37-10.00.Custom_amd64.deb
sudo dpkg -i linux-headers-2.6.37_2.6.37-10.00.Custom_amd64.deb

Create the initramfs image

sudo update-initramfs -c -k 2.6.37

Update your grub.cfg

sudo update-grub

Reboot your system


Enjoy your new kernel.

Enable Blocked Wifi connecetion under Ubuntu.

There are cases where you see "Wireless Disabled" under network manager menu. You can not detect / configure the network even if you try hard.
I found a solution, on internet, to fix it.

Steps:

1. Go to terminal and type  "rfkill list all" to list the status.
2. Then type " rfkill unblock wifi" to unblock the device.
3. Reboot / Restart your system.

You will see that  Wifi gets detected.



Wednesday, November 16, 2011

Manual Installation of Perl Modules

Most of the commonly used Perl modules can be downloaded from the CPAN website. The installation steps are straightforward.
1. Browse the CPAN website, identify the module package you need and then download it using a utility such as wget.
[root@bigboy tmp]# wget http://www.cpan.org/authors/id/M/MA/MARKOV/MailTools-1.74.tar.gz
--15:07:36--  http://www.cpan.org/authors/id/M/MA/MARKOV/MailTools-1.74.tar.gz
           => `MailTools-1.74.tar.gz'
Resolving www.cpan.org... 66.39.76.93
Connecting to www.cpan.org|66.39.76.93|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 47,783 (47K) [application/x-tar]

100%[===================================>] 47,783       100.88K/s             

15:07:38 (100.51 KB/s) - `MailTools-1.74.tar.gz' saved [47783/47783]

[root@bigboy tmp]#
2. Extract the file from the package with the tar command.
[root@bigboy tmp]# tar -xzvf MailTools-1.74.tar.gz 
MailTools-1.74/
MailTools-1.74/t/
...
...
...
MailTools-1.74/ChangeLog
MailTools-1.74/MANIFEST
[root@bigboy tmp]#
3. Enter the newly created directory with the same name as the TAR file, and install the module with the following commands.
  • perl Makefile.PL
  • make
  • make test
[root@bigboy tmp]# cd MailTools-1.74
[root@bigboy MailTools-1.74]# perl Makefile.PL
Checking for Net::SMTP...ok
Checking for Net::Domain...ok
Checking for IO::Handle...ok
Checking if your kit is complete...
Looks good
Writing Makefile for Mail
[root@bigboy MailTools-1.74]# make
cp Mail/Cap.pm blib/lib/Mail/Cap.pm
cp Mail/Mailer/rfc822.pm blib/lib/Mail/Mailer/rfc822.pm
...
...
...
Manifying blib/man3/Mail::Util.3pm
Manifying blib/man3/Mail::Address.3pm
[root@bigboy MailTools-1.74]# make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/extract.....ok                                                             
...
...
...
All tests successful.
Files=7, Tests=95,  2 wallclock secs ( 1.28 cusr +  0.29 csys =  1.57 CPU)
[root@bigboy MailTools-1.74]# 
Your Perl module installation should now be complete.
Note: The output of the perl Makefile.PL command will tell you whether there are any other required modules. You can either install them all manually, running the risk of having to install more prerequisite modules for these prerequisite modules, or you can use automated updates which will be covered next.