Posts

Accepting a self-signed certificate Issue : When connecting over a secured connection, self-signed certificates may trigger an "Untrusted Connection" error. Resolution : Each browser handles security differently. In Firefox, you can create a permanent exception. In Chrome or Internet Explorer you must install the certificate in your trusted certificates store. Both Chrome and Internet Explorer use the Trusted Root Certification Authorities store when verifying certificates. If you have performed the steps to install the certificate for either Internet Explorer or Chrome, you do not have to perform the same steps again to use either browser. Note :   You must close all instances of your Internet Explorer or Chrome and completely clear your cache. To create a permanent exception for Firefox:            Open a browser to your Virtualization Manager server using https. When the error occurs, expand I U...

Reset Windows 7 admin Password

This post is for those who forget their administrator password for windows 7 OS 1.) Boot the pc to a usb live cd ( i use ubuntu) 2.) go to windows>system32> folder. Search for a file named Sethc.exe and rename it to Sethc_bkp.exe 3.) Copy the file named cmd.exe from the same directory system32 to an external folder(for example to desktop). 4.) Rename the copied file (here in desktop) from cmd.exe to Sethc.exe 5.) Copy and paste the renamed file Sethc.exe (from desktop) to the system32 folder. 6.)Restart PC and boot to windows normaly. 7.) When the login screen appears, click 5 times the "shift" key. A new cmd window will appear. 8.) type "net user username *"  without appostraphe on that command line. Here you need to replace "username" with the name administrator user account of your PC. for example if the administrator user name is "bucolic"  the command will be net user bucolic * 9.) click "enter" key and y...

Configuring Apache for a new website in a Bitnami Lamp server.

Configuring apache in a bitnami server is a bit confusing at the begining but once you get the idea, it becomes so simple. In recent versions of BitNami apps  the bitnami.conf file defines which configuration for each application should be loaded by the Apache server. This file is located in /installdir/ apache2/conf/bitnami/bitnami.conf . Note that for Virtual Machines and Cloud Images installdir is /opt/bitnami . Here we are configuring for a Virtual Machines, thus the installdir is /opt/bitnami basically the directory we use for putting the web contents is /home/bitnami/apps/ the website i going to add for example is bucolic.com . We need to follow the following steps then:- 1.) Create a folder named bucolic in the directory /home/bitnami/apps/ and give ownership as bitnami 2.) create 2 other directories conf and htdocs inside the directory bucolic 3.) Put all the web contents inside the directory htdocs including the index page just like the other serve...

Change Timezone in Debian server

# date Mon Sep 17 22:59:24 UTC 2010   # cd /etc /etc# rm localtime   /etc# ls /usr/share/zoneinfo/Europe/   Amsterdam Berlin Busingen Guernsey Kaliningrad Luxembourg  Monaco Podgorica San_Marino Stockholm Vaduz Warsaw Andorra Bratislava Chisinau Helsinki Kiev Madrid  Moscow Prague Sarajevo Tallinn Vatican Zagreb Athens Brussels Copenhagen Isle_of_Man Lisbon Malta  Nicosia Riga Simferopol Tirane Vienna Zaporozhye Belfast Bucharest Dublin Istanbul Ljubljana Mariehamn Belgrade Budapest Gibraltar Jersey London Minsk  Paris Samara Sofia Uzhgorod Volgograd Oslo  Rome Skopje Tiraspol Vilnius Zurich     Here we are changing the timezone to Rome /etc# ln -s /usr/share/zoneinfo/Europe/Rome localtime ...

Command to search a particular word in multiple files under the parent directory.

To execute this command first go the parent directory then use the following command:- find . -type f -print0 | xargs -0 grep lover /dev/null this will find all the files/lines which includes the word ''lover'' under the parent directory from which the command is executed.

linux command to find and change a value in multi files

linux command to find and change a value in multi files find . -name "*.php" -print | xargs sed -i 's/power/strong/g' here  *.php will search for all files that ends with .php ''power''  is the value to be searched and ''strong'' in the value to be replaced

Linux Command to change the permisson of multiple directories/files having the same name

Command to change directory permission of multi directories with the same name :- find -name 'power' -type d -exec chmod 0777 {} \; here will search for the directories named ‘power’ all directories inside from the parent directory and change the permission to 777. Command to change directory permission of multi directories with the same name :- find -name 'power' -type f -exec chmod 0644 {} \;     here will search for the files named ‘power’ all directories inside from the parent directory and change the permission to 644.