Thursday, November 25, 2010

Removing GDM and installing KDM

Due to Hardware issues in our Environment, GDM tends to crash after every restart, so uninstall GDM.

Test for GDM stability before Uninstalling, if GDM is working fine, you can skip installing KDM.

Go to Command mode by pressing Alt+Ctrl+F1 for first terminal

Kill GDM, using command #/etc/init.d/gdm stop, then

Note1: Precede 'sudo' where ever necessary.

Removing GDM
#apt-get remove gdm
#apt-get autoclean
#apt-get autoremove



Installing KDM
#apt-get update
#apt-get install KDM

Restart the System after installing KDM and also test for stability of KDM.

Using your Windows Key fast action

Your Windows key can be used to for many short cuts. 
If you want to open your Windows Explorer quickly just press your Windows key and E. 
If you want to open the Run dialog box, just press the Windows key and R. 
If you want to open your search dialog box, press your Windows key and F.

Reach Run quickly in XP

Here's a quicker way to reach the Run dialog box, if you don't want to go through the Start menu. Just hit the Windows key + R.

VSS integration with Visual Studio is very useful


Visual SourceSafe (VSS) is a client/server application which acts as a storage system for files. A file stored in a VSS server is not available via the standard file system, instead, it must be accessed through the VSS client tools - the VSS windows client, the VSS command-line tool, or else some application which integrates with or emulates these client tools.
VSS Database
A VSS Database is a single instance of a VSS server - it's the big black box into which files get placed. All commands to VSS are directed towards a particular VSS Database, and wach database maintains a SRCSAFE.INI file which contains configuration information
VSS Project
A VSS Database is organised as a tree structure, with each of the nodes of the tree being a VSS Project. Each database contains a single root project, which can branch (to a depth of 15 nodes) into sub-projects.
VSS Projects are misleadingly named; instead they should be thought of as directly analagous to filesystem directories, being unordered collections of up to 8000 files of any type. To illustrate this, note that where an application's source-code is organised into files that live in subdirectories off the main directory, these subdirectories have to be mapped onto subprojects of the application's main project directory.

Note: Don't confuse Visual Studio 'projects' with Visual Sourcesafe 'projects'. T1he latter are more like directories, or folders. In fact, if you just think Visual Sourcesafe 'folder' where the documentation says Visual Sourcesafe 'project', it will be easier to follow.
Working Folder
Because the files stored in VSS are not directly exposed as files, development work on these files takes place on local copies, which are first checked out of VSS, changed, then checked in again. While a file is checked out of VSS, it is can be locked to other developers, preventing file overwriting. VSS also retains historical information about a file's changes, so it is possible to extract and use old versions of a file, or roll back unsuccessful changes.
The folder in which a user manipulates his local copy of VSS project files is known as his 'working folder'. Each user will often have a distinct, local working folder for each VSS project, the details of which are held by the VSS client in its SS.INI file.
Each working folder also gets populated with a VSSVER.SCC file, which contains version information about the files in that folder. This allows VSS quickly to determine whether or not local files are synchronised with those stored in the VSS database.

Note:  If it is possible that the source-code for your application may contain hard-coded file paths, it is important that developers' working folders are at the same location. One way of doing this is to require each application's working folder to be at the root of a particular drive

Building and Deployment
Let's consider the situation in which two developers, UserA and UserB have to cooperatively develop application are coming completely fresh to VSS, and neither uses an IDE to create the application.
In this scenario we shall assume that each developer has a development machine, and that there is a development server which both of them can access. This gives us the following three computers: DevelopmentUserA; DevelopmentUserB; DevelopmentServer
The first thing that needs to be done is for a VSS database to be installed on DevelopmentServer, and the VSS client tools to be installed on the two development machines. It's useful to know that the installation of VSS on DevelopmentServer sets up a network share to the installation directory, and the VSS client tools are available for users to install from there (this has the additional benefit that the client tools are set up with the DevelopmentServer database as the default).
Next, the VSS database has to be set up with appropriate users. VSS handles its own authentication, rather than integrating with Windows authentication (though file access is still subject to NTFS permissions, of course), so it is necessary to set up individual accounts in VSS for the two users.

Adding and Configuring a Database

As the database administrator, you must configure the server and the database(s) for your team after installation of Visual SourceSafe. The first step is to add one or more databases to the environment.
Once you have set up the database(s), you will need to configure the server for the types of access needed by the database users. For example, access via the SourceSafe Internet plug-in for Visual Studio requires the Internet service to be running on the server machine.
When you have provided all the services necessary for the database users, it is time to secure the database(s) and limit user access. This will protect the databases from unauthorized use and help to ensure data integrity.

How to: Add New Database

Visual SourceSafe allows you to add a database to your team environment by either creating a new empty database or using an existing database. You can add a database using the Add SourceSafe Database wizard in either Visual SourceSafe Explorer or Visual SourceSafe Administrator. You may also add an existing database to the list of available databases with the Add SourceSafe Database wizard.

To add a database using the Add SourceSafe Database wizard


1.    If using Visual SourceSafe Administrator, on the File menu, click New Database. If you prefer to use Visual SourceSafe Explorer, on the File menu, click Open SourceSafe Database and then click Add. Either method opens the Add SourceSafe Database wizard.
2.    The first step of the wizard is just a welcome page. Click Next when you are ready.
3.    The next step of the wizard allows you to enter a location, or browse for one. Click Next when finished.
4.    Now the wizard allows you to specify a friendly name to help you remember the database connection. Click Next to proceed.
5.    Visual SourceSafe offers two work styles, Lock-Modify-Unlock and Copy-Modify-Merge. Select the work style for your team environment and click Next.
6.    The last step of the wizard summarizes the file share settings for your database. Check these settings and click Back if you need to make changes.
7.    When you are finished with your database settings, return to the final step of the wizard and click Finish. The wizard creates the database as you have requested.
8.     Go to the database path that you have specified to make sure that the database is available as expected. It will have a Srcsafe.ini file in the installed Data directory for Visual SourceSafe.

How to:  give Privileges to Users
Next, the VSS database has to be set up with appropriate users. VSS handles its own authentication, rather than integrating with Windows authentication (though file access is still subject to NTFS permissions, of course), so it is necessary to set up individual accounts in VSS for the two users.

To give database access privileges to users using Visual SourceSafe Administrator 


1.    If using Visual SourceSafe Administrator, on the User menu, click add User.
2.    Then add user window will appear, enter user name and sourcesafe password, then click OK.
3.    Now we can configured and give access to server source safe database for added user to use visual source safe from his machine.

How to: Configure Database in the client machine

To connect an exciting database using the SourceSafe Database wizard


1.    If using Visual SourceSafe Administrator, on the File menu, click Open SourceSafe Database. If you prefer to use Visual SourceSafe Explorer, on the File menu, click Open SourceSafe Database and then click Add. Either method opens the Add SourceSafe Database wizard.
2.    The first step of the wizard is just a welcome page. Click Next when you are ready.
3.    In next step of the wizard need to select connect to an exciting database. Click on Next.
4.    Here select connect to an exciting database a location or browse (Go to the server database path that you have specified  select Srcsafe.ini file). Click Next when finished.
5.    Now the wizard allows you to specify a friendly name to help you remember the database connection. Click Next to proceed.
6.    The final step of the wizard will appear and click Finish. The wizard creates the database as you have requested.

Getting vs Checking Out
If you 'Get' a file / project (which you do using the client tools by right-clicking on the item and selecting 'Get Latest Version'), a read-only copy is placed into your working folder. Changes you make to this file cannot be subsequently uploaded to the VSS database.
On the other hand, when you 'Check out' a file / project (which you do analagously to 'getting' it), a writable copy is placed into your working folder. By default, this locks the file to other users, so that while they may 'Get' a copy of the file they cannot themselves check it out. Notice that when you check out (and check in), you have the option to add a comment. This is to help developers keep track of the file changes.
When either of these options is being applied to a project, the procedure can be applied recursively, so that it is applied to subprojects of the chosen project.
Checking In
When you've finished making changes to a checked-out file / project, then you can check it in again, which writes the file changes to the VSS database. This procedure is also effected in the client tools using a right-click menu.
By checking project files out and in using VSS, developers can avoid the situation in which one overwrites the changes made by another.
Multiple Checkouts
By default, if you check out a file then no other user can check it out until you've checked it back in: the file becomes locked to changes by anyone other than you. But the VSS administrator may enable 'multiple checkouts', which (fairly obviously) allows multiple users simultaneously to check out files.
So, what happens when UserA and UserB each checks out a file to his local working folder, each updates it independently, and then each tries in turn to check it back in? What needs to be avoided here, obviously, is UserA's changes being overwritten by UserB's check-in. What VSS tries to do is to merge each user's changes into the master copy. This is easiest if users have made small changes to different parts of the file. However, if users have each changed the same part of the file then merging is not possible, so VSS rejects UserB's check-in attempt, with appropriate information about the problem, and requires him to resolve the conflict.

NTLDR is Missing.(NTLDR is Missing Press any key to restart)

NTLDR is Missing.
Related errors:

Below are the full error messages that may be seen when the computer is booting.
NTLDR is Missing
Press any key to restart
Boot: Couldn't find NTLDR
Please insert another disk
NTLDR is missing
Press Ctrl Alt Del to Restart


Causes:
1.    Computer is booting from a non-bootable source.
2.    Computer hard disk drive is not properly setup in BIOS.
3.    Corrupt NTLDR and/or NTDETECT.COM file.
4.    Misconfiguration with the boot.ini file.
5.    Attempting to upgrade from a Windows 95, 98, or ME computer that is using FAT32.
6.    New hard disk drive being added.
7.    Corrupt boot sector / master boot record.
8.    Seriously corrupted version of Windows 2000 or Windows XP.
9.    Loose or Faulty IDE/EIDE hard disk drive cable.
10.    Failing to enable USB keyboard support in the BIOS.
Solutions:
Using the Windows Recovery Console
The Windows 2000 and Windows XP CDs supplied by Microsoft has a tool called the Recovery Console which can be used to repair errors that prevent Windows XP from starting using the command line. OEM versions of Windows XP, including computers that were supplied with Windows XP preinstalled, may not have this utility.
•    Insert the Windows CD and start the computer.
•    When the Welcome to Setup screen appears, press R.
•    Type a number corresponding to the Windows installation you wish to repair (usually 1) and press Enter.
•    When prompted, type the administrator password and press Enter.
•    From the command prompt, copy NTLDR and NTDETECT.COM from the i386 folder of the CD to the root folder of the hard drive. In the example commands given below, C: is the hard drive and D: is the CD-ROM drive. You will need to change the drive letters if appropriate:
COPY D:\I386\NTLDR C:\
COPY D:\I386\NTDETECT.COM C:\
•    Remove the Windows XP CD from the drive and restart the computer.
OR
Windows XP users

1.    Insert the Windows XP bootable CD into the computer.
2.    When prompted to press any key to boot from the CD, press any key.
3.    Once in the Windows XP setup menu press the "R" key to repair Windows.
4.    Log into your Windows installation by pressing the "1" key and pressing enter.
5.    You will then be prompted for your administrator password, enter that password.
6.    Copy the below two files to the root directory of the primary hard disk. In the below example we are copying these files from the CD-ROM drive letter, which in this case is "e." This letter may be different on your computer.

copy e:\i386\ntldr c:\
copy e:\i386\ntdetect.com c:\
7.    Once both of these files have been successfully copied, remove the CD from the computer and reboot

Wednesday, November 24, 2010

How to remove temporary program files

see how to deleting .tmp files. Information about clearing your Internet history or cache


Windows 98, XP, Vista, 7, and later

If you're running any of these versions of Windows we suggest running the Windows Disk Cleanup utility to quickly delete temporary files and cleanup other portions of your computer. See our Disk Cleanup definition for additional information and help.

Searching for .tmp files

If you are running Windows 2000, Windows 95, Windows 98, Windows NT, Windows ME, Windows XP follow the below instructions to search for and delete any .tmp file found on your computer.

   1. Click Start, Find, and click Find Files or folders
   2. In the named box type *.tmp to search for any files ending with tmp.
   3. Verify that Look in section of the search box is pointing to the C: drive and not  Document Folders.
   4. Click Find Now
   5. Delete all files that are found

Once the above section has been done it is also recommend that you ensure that the temporary folder on the hard disk is empty by following the below instructions.

   1. Double-click My Computer
   2. Double-click the C: drive
   3. Double-click the Temp folder (if present) verify that all files within this folder are deleted.
   4. Close the window and re-open My Computer
   5. Double-click the C: drive
   6. Double-click the Windows folder
   7. Double-click the Temp folder (if present) verify that all files within this folder are deleted.

If you are running MS-DOS and or Windows 3.x follow the below instructions to remove any temporary files currently on the computer.

   1. If you are currently in Windows click File and choose the option to Exit Windows
   2. Once at the prompt type:
      cd\ <press enter>
      del *.tmp <press enter>
   3. Delete all temporary files found in the root directory of the C drive.
   4. Next type:
      cd\ <press enter>
      cd temp <press enter>
   5. If present or in the C:\TEMP> directory type del *.* and delete all files in the temp directory.
   6. Once deleted or if the temp folder is not present type:
      cd\ <press enter>
      cd windows <press enter>
      cd temp <press enter>
   7. If present or in the C:\Windows\TEMP> directory type del *.* and delete all files in the C: windows temp directory.

Unable to delete .tmp file

If when deleting a .tmp file you get an error it's likely a program is running in the background that's using the file. Close out of all programs and/or reboot and try again if you wish to delete the file.

Enabling access users to connect remotely to the server

Enabling users to connect remotely to the server

To enable users to connect remotely to a terminal server, you must ensure that:

    * Remote Desktop is enabled on the server. For instructions on how to enable Remote Desktop, see Enable or disable Remote Desktop.

    * Users have the appropriate rights and permissions to log on remotely to the server.

To perform these two tasks, you must be logged on as a member of the Administrators group.
Using the Remote Desktop Users group to grant access to a terminal server

You can easily manage permissions and rights for a terminal server on a per-computer basis, by using the Remote Desktop Users group. The Remote Desktop Users group is one of the built-in users groups available when you install one of the Windows Server 2003 operating systems. Members of this group are able to log on remotely to a terminal server on which Remote Desktop is enabled.

By default, the Remote Desktop Users group is not populated. Therefore, you must decide which users and groups should have access to log on remotely to a terminal server, and then add them to this group.

It is highly recommended that you use the Remote Desktop Users group to grant individuals access to terminal servers, rather than assigning the required permissions manually

Caution

If you alter the default permissions on the Remote Desktop Users group or remove this group, members of this group might lose the ability to log on remotely to terminal servers.
Assigning Permissions Manually

In some cases, it might be necessary to manage access to a terminal server on a per-connection basis and to manually customize rights and permissions. Keep in mind that if you do not use the Remote Desktop Users group to grant users access to log on to a terminal server, you must assign those users the same rights and permissions manually. The required rights and permissions are as follows:


 Allow log on through Terminal Services
        This right determines which users or groups have permission to log on as a Terminal Services client. Configure by navigating to Computer Configuration\Windows Settings\Security Settings\Local Policies\User Rights Assignment\.
       
 User Access
   * This permission type grants the following special permissions: Query Information, Logon, and Connect. These special permissions allow a user to:

    * Log on to a session on the terminal server.

    * Query information about a session.

    * Send messages to other user sessions.

    * Connect to another session.

Configure by using Terminal Services Configuration.

You can also explicitly deny an individual user access to a terminal server by modifying that user's terminal server profile. Doing this is useful if you have granted a large group access to a terminal server, but want to make individual exceptions as needed.