Saturday, 3 January 2009

Restart a pc via Remote desktop

How to restart your computer via remote desktop? There are couple of ways you can do this

1. Alt+F4 is one of the easiest ways you can do it. Then select the Restart.
2. Ctr+Alt+End and the select the Restart
3. Start > Run > then type shutdown.exe

Friday, 2 January 2009

Change Windows XP Home to Windows XP Professional

Follow these steps

1. Copy the root directory and the i386 directory of the WindowsXP CD to your hard drive.

2. Extract the Bootsector of your Windows XP CD. You can use BBIE to do this.

3. Click START–>RUN–>REGEDIT

4. Highlight HKEY_LOCAL_MACHINE

5. Click FILE–>LOAD HIVE and select the Setupreg.hiv file
This file is located in the i386 folder. Use the one you extracted to your hard drive from your Windows XP CD.

6. Locate the following registry key:

HKEY_LOCAL_MACHINE\Homekey\ControlSet001\Services\setupdd

7. Edit the DEFAULT key and change the following values:

01 to 00
02 to 00

8. Change the name to the value HOMEKEY to anything.

9. Locate the following registry key:

HKEY_LOCAL_MACHINE\Homekey\ControlSet001\Services\setupdd

Edit the DEFAULT key and change the following values:

01 to 00
02 to 00
10. Highlight HOMEKEY and select FILE–>UNLOAD HIVE

Thursday, 1 January 2009

Multiple Yahoo Messenger or Activating Polygamy Yahoo Messenger


Here is a way by which we can activate multiple yahoo messenger on single pc  simultaneously. 
Just you have to follow some easy steps:- 
1. Go to start > Run, write regedit and Press Enter
2. Go to HKEY_CURRENT_USER/Software/Yahoo/Pager/Test

3. Right Click on folder  Test  and go to New > DWORD Value and you will get a file named New Value #1, Rename it as Plural and press enter.

4. Double Click on the file Plural and You will get a window named Edit DWORD Value

5. Type 1 inside 'Select the Value data' and press enter and Close the registry editor window. Now you can launch multiple windows and use different ID's.

Happy Chatting

Tuesday, 16 December 2008

How to Lock / UnLock (Enable / Disable) Linux User Account

Before you remove an account from a system, is a good idea lock it for one week to make sure that no one use it.

To lock, you can use the follow command:
# passwd -l username (where username is the login id).
This option is used to lock the specified account and it is available to root only. The locking is performed by rendering the encrypted password into an invalid string (by prefixing the encrypted string with an !).

After that, if someone try to loginusing this account, the system will return:
# su - username
This account is currently not available.

To Unlock the same account
Following command re-enables an account by changing the password back to its previous value i.e. to value before using -l option.
# passwd -u username
This removes the '!' in front of the encrypted password

Tuesday, 2 December 2008

Quick and Simple Samba configuration

The first step is to create a share folder on your hard drive; for instance, /disk2/data. After that, you need to edit the smb.conf file, found in /etc/samba, and make it look something like this:

# Global parameters[global]
workgroup = HOME
netbios name = SAMBA
server string = Samba Server %v
map to guest = Bad User
log file = /var/log/samba/log.%m
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
preferred master = No
local master = No
dns proxy = No
security = User

# Share[Data]
path = /disk2/data
valid users = nik
read only = No
create mask = 0777
directory mask = 0777

You can copy and paste this into your conf file or make changes to your existing one.

The workgroup name needs to be the workgroup of your Windows computers, or your domain name. The netbios name is what will appear when you access the Linux computer from Windows. I am currently running a Windows domain with this setup, so I have the preferred master and local master set to no to avoid both servers from attempting to be the master browser. This will eliminate network conflicts on your Windows computers that can cause network-related outages.

For the share details, specify the valid users, or set them up later. In that section you can allow users to create their own folder and files for all to access.

The next step is to add users by the following command:

# useradd -c “Sohail Shaikh” soh
# smbpasswd -a soh
New SMB password: secret
Reenter SMB password: secret
Added user soh

Next, run the testparm command to ensure that the conf file is valid.
If it returns no errors, restart Samba with the command /etc/rc.d/rc.samba restart

Now you’re ready to test Samba.

On a Windows computer, you can either map a drive to the Samba server or access the drive using the Start-Run command and typing \\Samba\data,
“Samba” being the server name and “data” being the shared folder.

One disclaimer: this setup serves a small network or a home network. 
Next previous home