Pages

Wednesday, August 08, 2012

Increasing the swap size of the machine

Increasing the swap size of the machine

dd if=/dev/zero of=/.swapfile bs=1M count=1024
mkswap -v1 /.swapfile
swapon /.swapfile

Monday, August 06, 2012

Kannadavendare love

ಅರಿವಿನ ಅಲೆಗಳಲ್ಲಿ ಪ್ರಕಟವಾದ ನನ್ನ ಲೇಖನದ ಜೊತೆಗಿರುವ ಕಿರುಪರಿಚಯವನ್ನು ಗೂಗಲ್ ಟ್ರಾನ್ಸ್‍ಲೇಟ್ ಇಂಗ್ಲಿಷಿಗೆ ಅನುವಾದಿಸಿದ್ದು ಹೀಗೆ

Maisurinavanu. Read Industrial and Production Engineering, chat with the curious and learned a computer can now give bengaluralli rice. Often Poetry, writing gicuttene. It does not mean kaviyalla. Tociddella ಮಾಡುತ್ತಿರುತ್ತೇನೆ mind. They havyasagalalla. Kannadavendare love. To stay on the computer in Kannada, English is all the work of various government projects, including information nirvahaneyu, I believe that the thing maduvantagabekemba.

ಮೂಲ ಕೆಳಕಂಡಂತಿದೆ
 

ಮೈಸೂರಿನವನು. ಓದಿದ್ದು ಇಂಡಸ್ಟ್ರಿಯಲ್ ಮತ್ತು ಪ್ರೊಡಕ್ಷನ್ ಇಂಜಿನಿಯರಿಂಗ್, ಚಾಟ್ ಮಾಡುವ ಕುತೂಹಲದಿಂದ ಕಲಿತ ಕಂಪ್ಯೂಟರ್ ಈಗ ಬೆಂಗಳೂರಲ್ಲಿ ಅನ್ನ ಕೊಡುತ್ತಿದೆ. ಆಗಾಗ ಕವನ, ಬರಹ ಗೀಚುತ್ತೇನೆ. ಹಾಗಂತ ಕವಿಯಲ್ಲ. ಮನಸ್ಸಿಗೆ ತೋಚಿದ್ದೆಲ್ಲಾ ಮಾಡುತ್ತಿರುತ್ತೇನೆ. ಅವೆಲ್ಲಾ ಹವ್ಯಾಸಗಳಲ್ಲ. ಕನ್ನಡವೆಂದರೆ ಪ್ರೀತಿ. ಕನ್ನಡ ಉಳಿಯಲು ಕಂಪ್ಯೂಟರಿನಲ್ಲಿ, ಇಂಗ್ಲಿಷಿನಲ್ಲಿ ಮಾಡುವ ಎಲ್ಲಾ ಕೆಲಸಗಳನ್ನೂ, ಸರ್ಕಾರದ ವಿವಿಧ ಯೋಜನೆಗಳ ಮಾಹಿತಿ ನಿರ್ವಹಣೆಯೂ ಸೇರಿದಂತೆ, ಕನ್ನಡದಲ್ಲಿ ಮಾಡುವಂತಾಗಬೇಕೆಂಬ ನಂಬಿಕೆ ನನ್ನದು.

ಒಮ್ಮೆ ಚೆನ್ನಾಗಿ ನಕ್ಕು, ಇದನ್ನೆಲ್ಲಾ ಹೇಗೆ ಸರಿಪಡಿಸಬಹುದೆಂದು ಯೋಚಿಸಿ.!! :)

Monday, July 30, 2012

ನಲವತ್ತು - ಚಾಲೀಸ್

ನಲವತ್ತು ವಯಸ್ಸಿಗೆ ಕಣ್ಣಿಗೆ ಕನ್ನಡಕ ಬರುತ್ತಂತೆ. ಅದಕ್ಕೇ ಕನ್ನಡಕಕ್ಕೇ ಚಾಲೀಸು ಅಂತ್ಲೂ ಹೇಳ್ತಾರೆ. ನನಗೆ ಈ ತಿಂಗಳಲ್ಲಿ ನಲವತ್ತು ಅಫ಼ಿಷಿಯಲ್ ಆಗಿ ತುಂಬುತ್ತೆ.  ಅನ್-ಅಫ಼ಿಷಿಯಲ್ ಆಗಿ ತುಂಬಕ್ಕೆ ಇನ್ನಾರು ತಿಂಗಳಿದೆ.

ಕಾಗದ-ಪತ್ರ ದಾಖಲಾತಿಗಳಿಲ್ಲದೇ ಹೋದರೆ ಅದಕ್ಕೇನು ಬೆಲೆ ಇಲ್ಲ ತಾನೇ..? ಅದಕ್ಕೆ ನಾನೂ ಇವತ್ತಿಗೇ ನಲವತ್ತು ತುಂಬಿತು ಅಂದುಕೊಂಡುಬಿಡ್ತೀನಿ ಅಷ್ಟೆ.

ನನಗದರಿಂದೇನು ಬೇಜಾರಿಲ್ಲ.  ಲೈಫ಼್ ಬಿಗಿನ್ಸ್ ಅಟ್ ಫ಼ಾರ್ಟಿ ಅಂಥ ಇಂಗ್ಲಿಷ್ ಮಾತಿದೆಯಲ್ಲ.  ಹಾಗೇ ಇದು ನನಗೆ ಹೊಸ ಜೀವನ ಪ್ರಾರಂಭಿಸುವ ಸಂಭ್ರಮ.

ವಿಷ್ಣು-ರಜನಿ ಹೇಳಿದ ಹಾಗೇ ಐದು ಎಂಟುಗಳು ಕಳೆದಾಯಿತು, ಆಟ, ಪಾಠ, ಮದುವೆ, ಮಕ್ಕಳು, ಧನ ಅಂತೆ ನಲವತ್ತರವರೆಗೆ.   ಮುಂದೆ, ಲೋಕ ಸುತ್ತಿ, ಶಾಂತಿ ಗಳಿಸಿ ಎನ್ನುತ್ತಾರೆ.

ಇಷ್ಟು ದಿನಗಳಲ್ಲಿ ನಾನು ಮಾಡಿದ್ದು ಏನೆಂದು ಹಿಂತಿರುಗಿ ನೋಡಿದರೆ, ಕಣ್ಣಿಗೆ ಕಾಣುವಂತಹುದು ಏನೂ ಇಲ್ಲ. ಮಣ್ಣಿಗೆ ಸೇರುವಂತಹುದು ಸಾವಿರ. ಮುಂದಾದರೂ ಏನಾದರೂ ಮಾಡಬೇಕೆನ್ನುವ ತುಡಿತ ಕಜ್ಜಿಯ ಕಡಿತದಂತೆ ಹಾಗೇ ಇದೆ. ಈ ನಾಲ್ಕು ಸಾಲು ಬರೆಯಲು ಹತ್ತು ದಿನಗಳೇ ಆಗಿ ಹೋಗಿರುವಾಗ, ಇನ್ನು...  ಇರಲಿ ನಾನು ಸದಾ ಆಶಾವಾದಿ..

Monday, July 09, 2012

ಘಲ್ಲುಗಲ್ಲೆನುತಾ | ಗೆಜ್ಜೆ | ಘಲ್ಲು ಗಾರೆನುತಾ

ಘಲ್ಲುಗಲ್ಲೆನುತಾ | ಗೆಜ್ಜೆ | ಘಲ್ಲು ಗಾರೆನುತಾ |ಗೆಜ್ಜೆ | ಘಲ್ಲು ಗಾರೆನುತಾ
ಬಲ್ಲಿದ ರಂಗನ್ | ವಲ್ಲಿಯ ಮ್ಯಾಲೆ ಚೆಲ್ಲಿದರೋಕುಳಿಯೋ..!
ನಮ್ಮ್ | ಬಲ್ಲಿದ ರಂಗನ್ |ವಲ್ಲಿಯ ಮ್ಯಾಲೆ ಚೆಲ್ಲಿದರೋಕುಳಿಯೋ..!  ||೨||


ಅರೆದರು ಅರಿಸಿನವಾ | ಅದಕೆ ಬೆರೆಸರು ಸುಣ್ಣಾವಾ
ಅದಕೆ ಬೆರೆಸರು ಸುಣ್ಣಾವಾ
ಅಂದವುಳ್ಳ ರಂಗನ್ ಮ್ಯಾಲೆ | ಚೆಲ್ಲಿದರೋಕುಳಿಯೋ      
ನಮ್ಮ್ ಅಂದವುಳ್ಳ ರಂಗನ್ ಮ್ಯಾಲೆ | ಚೆಲ್ಲಿದರೋಕುಳಿಯೋ  ||೨||

ಹಾಲಿನೋಕುಳಿಯೋ |ಒಳ್ಳೆ ನೀಲದೋಕುಳಿಯೋ
ಒಳ್ಳೆ ನೀಲದೋಕುಳಿಯೋ
ಲೋಲನಾದ ರಂಗನ್ ಮ್ಯಾಲೆ | ಹಾಲಿನೋಕುಳಿಯೋ       
ನಮ್ಮ್ | ಲೋಲನಾದ ರಂಗನ್ ಮ್ಯಾಲೆ | ಹಾಲಿನೋಕುಳಿಯೋ        ||೨||

ತುಪ್ಪದೋಕುಳಿಯೋ | ಒಳ್ಳೆ ಒಪ್ಪದೋಕುಳಿಯೋ
ಒಳ್ಳೆ ಒಪ್ಪದೋಕುಳಿಯೋ
ಒಪ್ಪವುಳ್ಳ ರಂಗನ್ ಮ್ಯಾಲೆ ತುಪ್ಪದೋಕುಳಿಯೋ
ನಮ್ಮ್ |ಒಪ್ಪವುಳ್ಳ ರಂಗನ್ ಮ್ಯಾಲೆ ತುಪ್ಪದೋಕುಳಿಯೋ    ||೨||

ಗಂಧದೋಕುಳಿಯೋ |ಒಳ್ಳೆ ಚಂದದೋಕುಳಿಯೋ
ಒಳ್ಳೆ ಚಂದದೋಕುಳಿಯೋ
ಅಂದವುಳ್ಳ ರಂಗನ್ ಮ್ಯಾಲೆ ರಂಗಿನೋಕುಳಿಯೋ
ನಮ್ಮ್ |ಅಂದವುಳ್ಳ ರಂಗನ್ ಮ್ಯಾಲೆ ರಂಗಿನೋಕುಳಿಯೋ    ||೨||

ಘಲ್ಲುಗಲ್ಲೆನುತಾ | ಗೆಜ್ಜೆ | ಘಲ್ಲು ಗಾರೆನುತಾ |ಗೆಜ್ಜೆ | ಘಲ್ಲು ಗಾರೆನುತಾ
ಬಲ್ಲಿದ ರಂಗನ್ | ವಲ್ಲಿಯ ಮ್ಯಾಲೆ ಚೆಲ್ಲಿದರೋಕುಳಿಯೋ..!
ನಮ್ಮ್ | ಬಲ್ಲಿದ ರಂಗನ್ |ವಲ್ಲಿಯ ಮ್ಯಾಲೆ ಚೆಲ್ಲಿದರೋಕುಳಿಯೋ..!  ||೨||

Friday, June 29, 2012

Batch migration using imap sync


The following script reads the variables id and pass, which are in passtest.txt file in single line with a whitespace to separate,

and
sync the mailboxes from google app mail server to a zimbra mail server

while IFS=" " read id pass;
do
imapsync --syncinternaldates --useheader 'Message-Id' \
--host1 imap.googlemail.com --user1 $id@zimbraserver.in \
--password1 $pass --ssl1 \
--host2 mail.zimbraserver.in \
--port2 993 --user2 $id@zimbraserver.in \
--password2 $pass --ssl2 \
--authmech1 LOGIN --authmech2 LOGIN
done < passtest.txt


Friday, June 22, 2012

ಮಲ್ಲಿಗೆಯ ಬಳ್ಳಿಯೂ, ಮುಳ್ಳು ಬೇಲಿಯೂ.


ಮಲ್ಲಿಗೆಯ ಬಳ್ಳಿಯೊಂದು ಮುಳ್ಳುಬೇಲಿಯ ಜೋಡಿ, ಬೇಕಾದಾಗ ಸೀಟು ಸಿಗದ ನಗರ ಸಾರಿಗೆಯ ಬಸ್ಸು ಹತ್ತಬೇಕಾಯಿತು.  ಎಳ್ಳು ಸಿಡಿಸಿದರೆ ನೆಲ ಕಾಣದಷ್ಟು ಜನ ತುಂಬಿದ ಬಸ್ಸಿನಲ್ಲಿ, ಹೇಗೋ ಈ ಜೋಡಿ ನಿಲ್ಲುವಷ್ಟು ಜಾಗ ಹೊಂದಿಸಿಕೊಂಡರು.

ಹೆಂಗಸರ ಸೀಟಿನ ಮಧ್ಯೆ ಮಲ್ಲಿಗೆಯ ಬಳ್ಳಿಯನ್ನು ಸೇರಿಸಿದ ಮುಳ್ಳುಬೇಲಿ, ತನ್ನೆರಡೂ ಕೈಗಳನ್ನೂ ಚಾಚಿ ಸೀಟುಗಳ ಹಿಡಿಕೆಯಿಡಿದು, ಮಲ್ಲಿಗೆಯ ಬಳ್ಳಿಯ ರಕ್ಷಣೆಗೆಂಬಂತೆ ನಿಂತ.

ಮಲ್ಲಿಗೆ ಬಳ್ಳಿ ಮಾತಾಡಿತು. "ನಾನೇನು ಓಡಿ ಹೋಗುತ್ತೀನಾ..?"

ಮುಳ್ಳುಬೇಲಿ ರಕ್ಷಣೆಯ ಕೈ ತೆಗೆದುಬಿಟ್ಟಿತು.

ಪಯಣ ಮುಗಿದು ಬಸ್ಸು ಇಳಿಯುವವರೆಗೂ ಮಲ್ಲಿಗೆಯ ಬಳ್ಳಿ ಮುಳ್ಳುಬೇಲಿ ಜೊತೆಯಾಗೇ ಇದ್ದುವು.

Tuesday, May 29, 2012

VMWare guest OS :- memory access violation error

Vmware guest gives an error while booting when the RAM allocated for guest is more and shared between guest and host.

Also while increasing the RAM VMware workstation gives a warning that the ram will be shared and performance may vary.

If you ignore this and still boot the guest machine,  once booted it will throw an error as access right violation and powersdown the virtual machine.

To avoid this, I added the following two lines into .VMX file.

MemTrimRate=0
sched.mem.pshare.enable = "FALSE"


Now the guest is booted and working fine.

Backdating VMWare guest system

with vmware workstation, the guest Machine always takes the time from host.

In cases where you want to backdate the guest, and host should have the correct time and date settings,

one can try the following settings in .VMX file.

tools.syncTime = 0
time.synchronize.continue = 0
time.synchronize.restore = 0
time.synchronize.resume.disk = 0
time.synchronize.shrink = 0
time.synchronize.tools.startup = 0

and if the guest is rebooted then also the backdated settings will remain.

Monday, April 23, 2012

Setting up a Relay host with debian6 and exim

The need of the day was to set up a kind of store and forward server, which receives mails from different applications and devices on the network, and sends out using a smart host. 
smart host is microsoft exchange, which requires authentication, and will send out if and only if the sender and authenticated users are same.

This task was achieved by setting up a exim4 SMTP server and rewriting the address.  as follows:

First install package exim4
apt-get install exim4

You have to configure it
dpkg-reconfigure exim4-config

Our need is to receive mail from many clients and sent it using smart host.
screen 1 : Mail sent by smarthost/received via SMTP or fetchmail

I did not understand this but still writing domain part has worked fr me.
screen 2 : Give a mail name (domain part)

This is to notify the server on which interfaces it should be listening for incoming mails.
screen 3 : Write down the interfaces on which the system has to listen separated by semicolons (;)

This is mail receiving destination domains,  and we donot need this
screen 4 : Leave blank

These are the networks on which the server accepts the incoming mails.  Provide all your networks,  also care has to be taken that outsiders should not be able to use these networks.
screen 5 : Add the networks to listen for separated by semicolons

Enter your smart host, which is used for sending out the mail
screen 6 : Put the outgoing mail server address with port ( ip.address.of.server:port )
This option is enabled as the smarthost sends out if and only if authenticated user and sender address are same.
screen 7 : Yes

So put your domain, from where the mail has to go out.
screen 8 : Put your domain name

If you are on a low bandwidth you can minimise DNS querries, otherwise
screen 9 : No

Remaining screens just choose default.  This will include configuration in single file as "yes"

This will complete the setup of the mail server.

Now we have to give the password to authenticate againist the smart host.  This taks is acheived by editing the file /etc/exim4/passwd.client to look as follows
target.mail.server.example:login:password

now edit /etc/exim4/exim4.conf.template
go to line

begin rewrite

and below you can add your configuration

example

*  "someone@someaddress.com Ffs

will change
envelop From, from, sender fields

The flages are important as they do specific functions  as below.

E       rewrite all envelope fields
F       rewrite the envelope From field
T       rewrite the envelope To field
b       rewrite the Bcc: header
c       rewrite the Cc: header
f       rewrite the From: header
h       rewrite all headers
r       rewrite the Reply-To: header
s       rewrite the Sender: header
t       rewrite the To: header

You should be particularly careful about rewriting Sender: headers, and restrict this to special known cases in your own domains.

Also it is possible to write scripts, which do more complex jobs, and use the list from a file.
you can find them from exim documentation at http://www.exim.org/exim-html-3.30/doc/html/spec_34.html

Now restart exim
/etc/init.d/exim4 restart

It is all set to go,

You can verify how redirecting is working by  issuing

/etc/exim4# exim -brw dingo
 sender: someone@someaddress.com
 from: someone@someaddress.com
 to: dingo@someaddress.com
 cc: dingo@someaddress.com
 bcc: dingo@someaddress.com
 reply-to: dingo@someaddress.com
 env-from: someone@someaddress.com
 env-to: dingo@someaddress.com
 
 Now you see which fields are actually rewritten.

Thats all,  Bingo,  your store and forward server is working now .