Thursday, December 1, 2011

How to prevent your PEN drive from VIRUS


How to prevent your PEN drive from VIRUS


  • Connect your Pen Drive or USB drive to your computer.
  • Now a dialogue window will popup asking you to choose among the options as Don’t choose any of them , Just simply click Cancel.
  • *Now go to Start–> Run and type cmd to open the Command Prompt window .
  • *Now go to My Computer and Check the Drive letter of your USB drive or Pen Drive. ( E.g. If it is written Kingston (I:) , then I: will be the drive letter .)
  • *In the Command Window ( cmd ) , type the drive letter: and Hit Enter .
  • *Now type dir/w/o/a/p and Hit Enter
  • *You will get a list of files . In the list , search if anyone of the following do exist
  • 1. Autorun.inf
  • 2. New Folder.exe
  • 3. Bha.vbs
  • 4. Iexplore.vbs
  • 5. Info.exe
  • 6. New_Folder.exe
  • 7. Ravmon.exe
  • 8. RVHost.exe or any other files with .exe Extension .
  • If you find any one of the files above , Run the command attrib -h -r -s -a *.* and Hit Enter.
  • Now Delete each File using the following Command del filename ( E.g del autorun.inf ) .
  • That’s it . Now just scan your USB drive with the anti virus you have to ensure that you made your Pen Drive free of Virus .

Remove Recycled Virus

To manually remove it follow the following steps (Note you should understand what you’re about to do, you try it at your own risk!)
1. Boot your system in Safemode
2. Go to command prompt, in Drive C do the following commands.
3. Type -> ATTRIB -H -R -S AUTORUN.INF then press enter
4. Type -> DEL AUTORUN.INF then press enter
5. Type -> ATTRIB -H -R -S Recycled then press enter
6. In Windows Explorer in Safemode, remove the folder Recycled in drive C use Shift-Delete to delete the folder.
7. Repeat Step 3 to 6 for all drives of your system including the USB drive.
8. Search for CTFMON.EXE in your system using the Search of Windows found in Start Menu. If you find a file that is not located in C:\WINDOWS\SYSTEM32, delete it immediately. Dont forget to empty the recycle bin afterwards (Usually the virus will copy itself in the Startup folder of the Startmenu. Check if the file is present there and delete it then.)

How to install Alfresco Application

As per my client request today I have installed Alfresco Enterprise version in my window platform.It is very good Open source CMS tools.My client using this tool only for Document Management
Here I am Posting the installtion steps
Installation Guide Alfresco Application

  1. Install Tomcat Application server in Alfresco Folder
  2. Configure Tomcat for Alfresco Application
 Create the directories required for an Alfresco installation:
  1. Create the shared/classes directory.
  2. Create the shared/lib directory.
       Open the <TOMCAT-HOME>/conf/catalina.properties file.
       Change the value of the shared.loader= property to the following: shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/lib/*.jar

        Edit the <TOMCAT_HOME>/conf/server.xml file as below
<Connector port="80" protocol="HTTP/1.1" URIEncoding="UTF-8"
               connectionTimeout="20000"
               redirectPort="8443" />
Save server.xml file
        Go C:\Alfresco\tomcat\bin folder and edit catlina bat file
Add the value as
:noJuliConfig
set JAVA_OPTS=%JAVA_OPTS% %LOGGING_CONFIG%  -Xms128m -Xmx512m -Xss96k -XX:MaxPermSize=160m

  1. Install My Sql and set path in environment variable and make sure MySQL are running by command mode also.
  1. MySQL database Configuration
Put jdbc  mysql-connector-java-5.1.7-bin jar file under the C:\Alfresco\tomcat\lib

Run database file script which is provided by Alfresco for database creation.

Make sure alfresco database is created

4. Configuration Alfresco application.
Extract the setup WAR file
alfresco.war file and share.war files from C:\alfresco-enterprise-3.4.1\web-server\webapps to the appropriate location for your application server. For example, for Tomcat, move the .war files to the <TOMCAT_HOME>/webapps directory.

Edit the /shared/classes.alfresco-global.properties.sample file from      C:\alfresco-enterprise-3.4.1\web-server\shared\classes with your configuration settings.
     Save the file without the .sample extension.
Move the alfresco-global.properties file to <classpathRoot>. For example, <TOMCAT_HOME>/shared/classes
Create the the folder structure as below mentioned
bin and licenses folder taken from as a copy from C:\alfresco-enterprise-3.4.1 setup file location

Copy alfresco folder from  C:\alfresco-enterprise-3.4.1\web-server\shared\classes to C:\Alfresco\tomcat\shared\classes
Edit the alfresco-global.properties

Put  your license file (XYZ.lic.installed) to location        C:\Alfresco\tomcat\shared\classes\alfresco\extension\license with rename the file
XYZ.lic (remove only postfix extension).

  1. Restart the Tomcat  -- Deploy your alfresco as well as share application
During deployment getting some exception or error please ignore.
Check alfresco application

By default user ID: admin
                  Password: admin
Check share application
http://localhost:8080/share   (admin/admin)