Wednesday, June 8, 2011

To arrange IP addresses


Type this in cell B1 then arrange these values by expanding and sorting, Wola your IP addresses are sorted. 
 
 
=((VALUE(LEFT(A1, FIND(".", A1)-1)))*256^3)+((VALUE(MID(A1, FIND(".", A1)+1, FIND(".", A1, FIND(".", A1)+1)-FIND(".", A1)-1)))*256^2)+((VALUE(MID(A1, FIND(".", A1, FIND(".", A1)+1)+1, FIND(".", A1, FIND(".", A1, FIND(".", A1)+1)+1)-FIND(".", A1, FIND(".", A1)+1)-1)))*256)+(VALUE(RIGHT(A1, LEN(A1)-FIND(".", A1, FIND(".", A1, FIND(".", A1)+1)+1)))) 
 

Thursday, April 28, 2011

How to know if the name you have is masculine or Feminine?

I have often been faced with a dilemma as to how to address my clients based on their gender when it suddenly struck me.

Go to Google -> Click on Images -> Search for their name, Infer from the images getting returned :-D





Sunday, April 24, 2011

Access Windows Share from Linux Box over SMBCLIENT


1.) Ping Linux box to Windows Box
    (10.0.2.128)->(10.0.2.129)

2.) Make Windows speak LANMAN Challenge & Response
Start->Run->secpol.msc->Security Settings->Local Policies
->Security Options
 * Ntw Secu: LAN Manager Auth Level->"Send LM & NTLM Responses"
 * Ntw access: Sharing&Security modle for local acc -> Classic

3.)Group Policy may override our LANMAN C/R this can be forced by
HKLM\SYSTEM\CurrentControlSet\Control\LSA->LmCompatibilityLevel->0
Reboot

4.) Disable Simple File Sharing
XP & win2K3: Tools-> FOlder Option
-> unchk "Use Simple file sharing (Recomm)"

Vista Organize -> Folder&Search Options
-> unchk "Use Sharing Wizard (Recomm)"


[root@linux ~]# smbclient -L 10.0.2.129 -U KT -p 445
Enter KT's password:
Domain=[WORKGROUP] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

    Sharename       Type      Comment
    ---------       ----      -------
    IPC$            IPC       Remote IPC
    test            Disk     
    ADMIN$          Disk      Remote Admin
    C$              Disk      Default share
session request to 10.0.2.129 failed (Called name not present)
session request to 10 failed (Called name not present)
Domain=[WORKGROUP] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

    Server               Comment
    ---------            -------

    Workgroup            Master
    ---------            -------
[root@linux ~]# smbclient //10.0.2.129/test -U KT -p 445
Enter KT's password:
Domain=[WORKGROUP] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
smb: \> ls
  .                                   D        0  Sun Apr 24 09:54:36 2011
  ..                                  D        0  Sun Apr 24 09:54:36 2011
  sharingfile.txt                     A       48  Sun Apr 24 09:54:59 2011

        40915 blocks of size 262144. 27615 blocks available
smb: \> lcd /tmp/
smb: \> get sharingfile.txt
getting file \sharingfile.txt of size 48 as sharingfile.txt (7.8 kb/s) (average 7.8 kb/s)
smb: \> exit
[root@linux ~]# cat /tmp/sharingfile.txt
This is going to be shared across the Linux box.[root@linux ~]# clear

[root@linux ~]# mkdir /tmp/bala
[root@linux ~]# mount -t smbfs -o username=KT,port=445 //10.0.2.129/test /tmp/bala
Password:
[root@linux ~]# cd /tmp/bala/
[root@linux bala]# ls
sharingfile.txt
[root@linux bala]# cat sharingfile.txt
This is going to be shared across the Linux box.[root@linux bala]# cd ..
[root@linux tmp]# umount bala
[root@linux tmp]# cd bala/
[root@linux bala]# ls
[root@linux bala]#

http://www.youtube.com/watch?v=Wv5snUVF2qw



Saturday, February 12, 2011

RH033 Linux Basic

After lots of preparation I completed all the modules which I know for RedHat RH-033 Linux Basics in both Tamil (My mother tongue) & in English :-)

English

RH033-1: Part 1 of 3 http://www.youtube.com/watch?v=P53tGgg9TBw
RH033-1: Part 2 of 3 http://www.youtube.com/watch?v=c1s0Hr3zT6Y
RH033-1: Part 3 of 3 http://www.youtube.com/watch?v=0c8omF8ev6Y

RH033-2: http://www.youtube.com/watch?v=MY2lGPgIeuY
RH033-3: http://www.youtube.com/watch?v=iaiBhxVNKZA
RH033-4: http://www.youtube.com/watch?v=0V02Axx0jD0
RH033-5: http://www.youtube.com/watch?v=oG_GlhrBz8s
RH033-6: http://www.youtube.com/watch?v=qV4HxiYcjEM
RH033-7: http://www.youtube.com/watch?v=veLlkOv-rEs
RH033-8: http://www.youtube.com/watch?v=YxGm4lhvs08

Tamil

RH033-1 Part1of3 http://www.youtube.com/watch?v=sIqxvz-Svv0
RH033-1 Part2of3 http://www.youtube.com/watch?v=8tW59HJbqCs
RH033-1 Part3of3 http://www.youtube.com/watch?v=WvcHSZQLa7U

RH033-2: http://www.youtube.com/watch?v=b6YXfUG2Evw
RH033-3: http://www.youtube.com/watch?v=zPl3GDLRcUE
RH033-4: http://www.youtube.com/watch?v=kFJy_ZqStoI
RH033-5: http://www.youtube.com/watch?v=ql4nK01JQKk

RH033-6 PartA: http://www.youtube.com/watch?v=XNaCv3iS8vg
RH033-6 PartB: http://www.youtube.com/watch?v=WuwEx1XYPZo

RH033-7: http://www.youtube.com/watch?v=766P8nNrVq8
RH033-8: http://www.youtube.com/watch?v=mfzp2n0b5Lg

This is my youtube channel http://www.youtube.com/user/BalaTutor

NOTE: Use the knowledge gained from these videos sensibly, I am not responsible for any damage arising out of your irresponsible activities.