Archive for December, 2007

windows vista backuppc and samba problem

December 27, 2007

Hi,

m back with one more issue.

if u have windows vista as one of your client machines and you want to back up it using Backuppc software.  U may get some problems. As  Windows Vista does not work with all versions of smbclient.

So if check ur smbclient and samba-common version installed in ur computer. if they are less that 3.0.25 , then u can get problems with acessing ur vista shared drive.

Some errors like  session setup failed: NT_STATUS_LOGON_FAILURE can be encountered.

Fiirst check if u can  access the vista share using following command.

smbclient  //ip-of-the-machine/shared-partition -U vista-user-name

if u can access the vista share , u are very lucky. if not upgrade to newer samba-common and smbclient packages as i mentioned earlier.

Second imp thing to do is:

from http://forums.windowsvistamagazine.com/forums/2111/ShowThread.aspx

To get Vista to work with Samba follow the simple instructions below:

Run secpol.msc

Go to: Local Policies > Security Options

Find “Network Security: LAN Manager authentication level”

Change Setting from “Send NTLMv2 response only”
to
“Send LM & NTLM – use NTLMv2 session security if negotiated”

Not a lot of use in my case as I have Vista Home Premium that does not have secpol.msc which is only found in Business an Ultimate. A little more looking revealed:

If you’re running a version of Vista that cannot use secpol.msc, you can edit the registry instead. Just change the value of HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\LMCompatibilityLevel from a 3 to a 1.

Then I started thinking (dangerous thing probably triggered by an aversion to registry edits) if Vista wants you to use NTLMv2, it is probably because LAN manager is inherently less secure than NTLMv2. Therefore would it not be better to enable this in Samba that is supposed to support it in version 3?

 now if u can smbclient to that vista machine without any problems then u can easily use backuppc with any vista share.

moving your filesystem to a new hard drive

December 11, 2007

Hi,

M back again after many days , i was facing a problem of moving my working partition to other HDD. Searched a lot (of course on Google) and found a very nice solution.

U just require two commands under your belt to make it possible.

Copying the / filesystem is as follows (assuming for the example the new drive is mounted at /media/temp):

find / -xdev -print0 | cpio -pa0V /media/temp

When you run this command, it will recursively copy everything on the / filesystem, without crossing over into other mounted partitions. It will properly handle any special files, and it will completely preserve permissions.

You simply would mount each of the new partition you want to copy onto and repeat this above operation for each of those. Upon execution, you will see a series of dots fly across the screen. Each dot represents a file that is being copied.

Bye For Now.

Enable GTALK from Gaim in Linux

December 2, 2007

Gaim is what you probably use if you use Linux and want to connect to Yahoo or MSN. Lately google talk has been steadily becoming popular among people. Not many know that you can use Gaim to connect to the google talk servers and chat with your gtalk friends! Here’s how you go about it -

1.Click Accounts > Add (At the main login screen)
2.From the protocol dropdown select Jabber
3.Your screen name will be your gmail address except @gmail.com Example: If your address is abc@gmail.com then your screen name will be abc
4.Change the server from jabber.org to gmail.com
5.Password will be the same password that you use for Gmail
6.Click show more options
7.“Use TLS is available” should be checked
8.The connect server should be “talk.gmail.com”