Category: Windows


This was the error message faced by one of our readers that when he boots the PC up, the CSRCS.exe error message comes up on the screen.

csrsc.exe is a process which is registered as W32.Spybot.CF Virus. DO NOT confuse it with csrss.exe which is an important file used by Windows. The attackers of this virus can access our computer and gain access to some important data remotely.

Steps to remove this virus:

1.    Scan the system with a good and updated Anti Virus.

2.    Open Task Manager, locate this exe (csrcs.exe or csrsc.exe but not csrss.exe), and kill the process.

3.    Now type msconfig in the Run box, and then go to startup tab.

4.    Locate this exe file, if any, and then remove it from there as well.

5.    Now search the file in the C: drive.

6.    Permanently delete the file (csrcs.exe or csrsc.exe only) from the computer.

7.    Reboot the PC for changes to take place.

UPDATE

After doing the above steps, you need to clean the registry as well.

  1. Navigate toHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\Winlogon\
  2. On the right side, there is a key named “Shell”, it may be having a value “explorer.exe csrcs.exe”. Just modify it to delete the csrcs.exe from it (not explorer.exe). Restartthe computer

The virus should have gone.

Backup/Restore IIS Metabase.

What is IIS Metabase

The metabase is a structure for storing Internet Information Server (IIS) configuration settings. The metabase is a plaintext XML file. The IIS Metabase is optimized for IIS and provides a hierarchal storage and fast retrieval of IIS configuration properties for Web sites, Virtual directories, FTP Sites, SMTP and NNTP sites.


Steps to Backup/Restore:

1. Click Start >> run and type ‘inetmgr’. This will open the Internet Services Manager.

2. Right click on the computer name in the left panel and select the ‘Backup/Restore Configuration’ in the Drop Down menu.

3. In the newly opened dialog box ‘Configuration Backup/Restore’, click on the button ‘Create Backup’. It will open the dialog box for specifying the name of the backup. After specifying the name, click ‘Ok’. The backup will be stored in the directory ‘C:\Windows\System32\InetSrv\Metaback’.

The backup can be restored by selecting the desired backup in the ‘Configuration Backup/Restore’  dialog box  and clicking the  ‘Restore’ button.

MMC error in IIS

If you get the following error while opening IIS,

MMC could not create the Snap-In

Then execute the steps given below to fix this issue.

1. Register the .dll files “mmcndmgr.dll” and “inetmgr.dll”

Commands:

i)  Start | Run | cd  %SystemRoot%\system32

Here, ‘SystemRoot’ refers ‘C:\Windows’.

ii) regsvr32 mmcndmgr.dll

iii) regsvr32 inetmgr.dll

Tips:   ‘regsrv32′ is a command line tool to register the .dll in the registry.

2. Uninstall and Re-install IIS
To uninstall, Start | Control Panel | Add/Remove Windows Components | Check ‘Application Server’, click ‘Details’ | Uncheck  ‘Internet Information Services’  | Click ‘OK’

To install, Start | Control Panel | Add/Remove Windows Components | Check ‘Application Server’, click ‘Details’ | check ‘Internet Information Services’ | Click ‘OK’

Now you can access IIS without any error.

E-mail
Multiple log in in yahoo Without Using any Software You can log in with multiple id’s on the same yahoo messenger without
any download or patch .

1.Go to Start —-> Run . Type regedit, then enter.
2.Navigate to HKEY_CURRENT_USER ——–> Software —>yahoo —–>pager—->Test
3.On the right pane , right-click and choose new Dword value .
4.Rename it as Plural.
5.Double click and assign a decimal value of 1.
That’s it done!!
Now close registry and restart yahoo messenger .For signing in with new id open another messenger.

Installing Apache Tomcat on Windows

Please Do the Following steps for Reseting administrator password in Win Xp

1. Place your Windows XP CD in your cd-rom and start your computer (it’s assumed here that your XP CD is bootable – as it should be – and that you have your bios set to boot from CD)

2. Keep your eye on the screen messages for booting to your cd Typically, it will be “Press any key to boot from cd”

3. Once you get in, the first screen will indicate that Setup is inspecting your system and loading files.

4. When you get to the Welcome to Setup screen, press ENTER to Setup Windows now

5. The Licensing Agreement comes next – Press F8 to accept it.

6. The next screen is the Setup screen which gives you the option to do a Repair.

It should read something like “If one of the following Windows XP installations is damaged, Setup can try to repair it”

Use the up and down arrow keys to select your XP installation (if you only have one, it should already be selected) and press R to begin the Repair process.

7. Let the Repair run. Setup will now check your disks and then start copying files which can take several minutes.

8. Shortly after the Copying Files stage, you will be required to reboot. (this will happen automatically – you will see a progress bar stating “Your computer will reboot in 15 seconds”

9. During the reboot, do not make the mistake of “pressing any key” to boot from the CD again! Setup will resume automatically with the standard billboard screens and you will noticeInstalling Windows is highlighted.

10. Keep your eye on the lower left hand side of the screen and when you see the Installing Devices progress bar, press SHIFT + F10. This is the security hole! A command console will now open up giving you the potential for wide access to your system.

11. At the prompt, type NUSRMGR.CPL and press Enter. Voila! You have just gained graphical access to your User Accounts in the Control Panel.

12. Now simply pick the account you need to change and remove or change your password as you prefer. If you want to log on without having to enter your new password, you can typecontrol userpasswords2 at the prompt and choose to log on without being asked for password. After you’ve made your changes close the windows, exit the command box and continue on with the Repair (have your Product key handy).

13. Once the Repair is done, you will be able to log on with your new password (or without a password if you chose not to use one or if you chose not to be asked for a password). Your programs and personalized settings should remain intact.

Subversion:-

Subversion is an open-source version control system. Using subversion you can record the history of source files and directories. It manages file and directories over time. A tree of files is placed into a central repository. The repository is much like an ordinary file server, except that it remembers every change ever made to files and directories.

Installation Package:-

ü      Subversion

ü      Subversion-tools

ü      Apache2

ü      Libapache2-svn

ü      Ssl-cert

ü      Openssl

The following commands:

$ sudo apt-get installs subversion subversion-tools apache2 libapache2-svn ssl-cert openssl

Create a Subversion Repository:-

The following commands:

   $ sudo mkdir /home/svn
   $ cd /home/svn
   $ sudo mkdir repos 
   $ sudo addgroup subversion       
 
   $ sudo adduser sureshkumar subversion
 
  
 $ sudo chown –R www-data:subversion /home/svn/repos
 
 
 
   $ sudo chmod –R g+rws /home/svn/repos
 
 

The subversion repository can be created using the following command:

   $ sudo svnadmin create /home/svn/repos

Creating Certificates for https:-

Generating a Certificate Signing Request (CSR)

To generate the keys for the Certificate Signing Request (CSR) run the following command from a terminal prompt:

$ openssl genrsa -des3 -out server.key 1024

To create the CSR:-

            run the following command at a terminal prompt:
$ openssl req -new -key server.key -out server.csr
 
  

Creating a Self-Signed Certificate:-

To create the self-signed certificate, run the following command at a terminal prompt:

openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt

Installing the Certificate:-

You can install the key file server.key and certificate file server.crt, or the certificate file issued by your CA, by running following commands at a terminal prompt:

sudo cp server.crt /etc/ssl/certs
sudo cp server.key /etc/ssl/private
 
 
Now simply configure any applications, with the ability to use public-key cryptography, to use the certificate and key files. For example, Apache can provide HTTPS.

To configure Apache for HTTPS add the following three lines to the /etc/apache2/sites-available/subversion file

SSLEngine on
SSLCertificateFile /etc/ssl/certs/server.crt
SSLCertificateKeyFile /etc/ssl/private/server.key

Configure Apache Server (https) the Repository:-

         We need to be sure the right modules are enabled

$ a2enmod dav

$ a2enmod dav_svn

We must set up virtual host for subversion server. File that you can put in /etc/apache2/sites-available/default (original file).so we can copy the original file (default) to duplication file (subversion).

$ sudo cp /etc/apache2/sites-available/default  /etc/apache2/sites-available/subversion.

Edit file $ sudo vim /etc/apache2/sites-available/subversion

 NameVirtualHost 192.170.50.61:443
<VirtualHost 192.170.50.61:443>
      ServerAdmin webmaster@localhost
       #SSLCertificate 
         SSLEngine on
         SSLCertificateFile /etc/ssl/certs/server.crt
         SSLCertificateKeyFile /etc/ssl/private/server.key
  <Location /repos>
        DAV svn
        SVNPath /home/svn/repos
        AuthType Basic
        AuthName "Subversion Repository"
        AuthUserFile /etc/apache2/dav_svn.passwd
      #Required authentication
        Require valid-user
      # Require encryption
        SSLRequireSSL
  </Location>
      ErrorLog /var/log/apache2/error.log
      LogLevel warn
      CustomLog /var/log/apache2/access.log combined
      ServerSignature On
 
</VirtualHost>

Symbolic link:- 
 
Be sure to make a symbolic link to that file in /etc/apache2/sites-enabled:

$ ln –s  /etc/apache2/sites-available/subversion/  /etc/apache2/sites-enabled
 

Open Port Number:-
 
Add "Listen 443" to /etc/apache2/ports.conf:

$ sudo vim /etc/apache2/ports.conf
 
             Listen 443   
 
 
 
Subversion main configuration file:-

Edit /etc/apache2/mods-available/dav_svn.conf configuration file and follow the instructions:

$ sudo vim /etc/apache2/mods-available/dav_svn.conf

  <Location /repos>
        DAV svn
        SVNPath /home/svn/repos
        AuthType Basic
        AuthName "Subversion Repository"
        AuthUserFile /etc/apache2/dav_svn.passwd
        Require valid-user
        SSLRequireSSL
  </Location>

User authentication:-

To add the first user, you can run the following command:

$ sudo htpasswd -c /etc/apache2/dav_svn.passwd suresh
 
 

Note: If you have just installed SVN, the passwd file will not yet exist and needs to be created using the "-c" switch. Adding any users after that should be done without the "-c" switch to avoid overwriting the passwd file.

Direct repository you can run the following command:
 
$ sudo svn co file:///home/svn/repos
 
 

You should start apache service
$ sudo /etc/init.d/apache2 start 
 

A) Download Subversion

You’ll need the latest version of..

The Subversion Windows binaries

http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=91

The “run Subversion as a windows service” wrapper

http://www.robgonda.com/blog/files/robGonda/UserFiles/File/SVNService.zip

The TortoiseSVN shell integration utility

http://tortoisesvn.net/downloads


B) Install Subversion

Execute the setup file & complete the installation.

The Subversion bin path automatically set in windows environment variables.

Default location is : C:\Program Files\Subversion\bin

You’ll also need another environment variable, SVN_EDITOR, set to the text editor of your choice. I used c:\windows\notepad.exe

subversion1

C) Create a Repository

  1. Open a command prompt and type
svnadmin create "E:\SVN_Repo"
  1. Navigate to the folder we just created. Within that folder, uncomment the following lines in the /conf/svnserve.conf file:
[general]
anon-access = read
auth-access = write
password-db = passwd

Next, uncomment these lines in the /conf/passwd file:

[users]
Siva = letmein
admin = asd123

D) Verify that everything is working

  1. Start the subversion server by issuing this command in the command window:
            svnserve --daemon --root "E:\SVN_Repo"
  1. Create a project by opening a second command window and entering this command:
            svn mkdir svn://localhost/myproject

It’s a standard Subversion convention to have three folders at the root of a project:

/trunk
/branches
/tags

  1. At this point, Notepad should launch:

subversion2

Enter any comment you want at the top of the file, then save and exit.

  1. You’ll now be prompted for credentials. In my case I was prompted for the administrator credentials as well:
            Authentication realm:  0f1a8b11-d50b-344d-9dc7-0d9ba12e22df
            Password for 'Administrator': *********
            Authentication realm:  0f1a8b11-d50b-344d-9dc7-0d9ba12e22df
            Username: Siva
           Password for 'Siva': ************
Committed revision 1.

Congratulations! You just checked a change into Subversion!

E) Start the server as a service

  1. Stop the existing command window that’s running svnserve by pressing CTRL+C.
  2. Copy the file SVNService.exe from the zip file of the same name to the subversion\bin folder.
  3. Install the service by issuing the following commands:
   svnservice -install --daemon --root "E:\SVN_Repo"
   sc config svnservice start= auto
  net start svnservice
  1. Test the new service by listing all the files in the repository:
   svn ls svn://localhost/
You should see the single project we created earlier, myproject/ 

F) Set up the shell extension (SVN Client Configuration)

  1. Run the TortoiseSVN installer. It will tell you to restart, but you don’t need to.
  2. Create a project folder somewhere on your hard drive. Right click in that folder and select “SVN Checkout…”
    subversion3
    type svn://localhost/myproject/ for the repository URL and click OK.
    subversion4
  3. Create a new file in that directory. Right click the file and select “TortoiseSVN, Add”

subversion5

The file hasn’t actually been checked in yet. Subversion batches any changes and commits them as one atomic operation. To send all your changes to the server, right click and select “SVN Commit”

subversion6

And we’re done!

You now have a networked Subversion server and client set up on your machine.

Note that the default port for svnserve is 3690.

To disable storage of network passwords.

The Network passwords by saved , if u save the password in the dialog box.. u can view the setting in the follwoing location

Click Start and open Run
In that window type: control userpasswords2
Press OK
in the next window go to the secon tab on top, named: Advanced
and from there open: Manage Passwords
There you should see if there is a password stored for the address that you have mentioned
If yes then delete it and close the windows with OK
try to connect again to that address, it should prompt for authentication. Do not check the Remember option…

For Disabling the save password option

In Windows XP go to “Control Panel > Administrative Tools” Double click “Local Security Policy” mmc snap-in Shortcut.

Now in “Local Security Policy” management console open “Local Policies > Security Options” on your left.

You will see a Policy list to your right. Browse to the Policy “Network access: Do not allow storage of credentials or .NET Passports for network authentication”. Double click it, select Enabled, click Apply and then OK.

Reboot your computer.

Please Note: Passwords will be remembered until you logoff or reboot.

Regards
-Sk-

Linux:

Finding the process ID for a process

ps aux | grep processname

pidof processname

Example :  pidof   httpd

Output :  3698

Killing a process:

#  kill 3698 or kill -9 3698

Where,

  • -9 is special Kill signal, which will kill the process.

Windows :

Finding a process , port no with ID

netstat -aon

Killing a process in windows Xp / 2003

taskkill /PID /f 827

….

Follow

Get every new post delivered to your Inbox.