Monday, April 12, 2010

Configuring Apache with SSL(WindowsXP)

Easy Steps to configure Apache with SSL
STEP1:
Install the following
i>jdk
ii>Apache Tomcat
STEP 2:
After installing the above softwares edit the following path,in System Variables
Go to,Mycomputer->RightClick->Prpoerties->Advanced->EnvironmentVariables->Under SystemVariables..Add the following variables
i>VariableName = classpath
VariableValue =c:\ProgramFiles\ApacheSoftwareFoundation\lib\servlet-api.jar
ii>VariableName = Path
VariableValue = c:\ProgramFiles\jdk*\bin
iii>VaribleName = JAVA_HOME
VariableValue = c:\ProgramFiles\Java\jdk*

iv>VariableName = CATALINA_HOME
VariableValue = c:\ProgramFiles\ApacheSoftwareFoundation\Tomcat*
STEP 3:

Now generate a key..
Open command prompt
c:\ProgarmFiles\Java\Jdk*\bin >keytool -genkey -alias Tomcat -keyalg RSA
It will prompt for keystore password :Enter any password and then foolow the instructions and finally enter yes and press enter.
Now a .keystore file will be generated in the user profile folder under c:\Document and settings\user
STEP 4:
Edit the server.xml file from the following location
c:\programFiles\ApacheSoftwareFoundation\Tomcat*\conf\Server.xml
Uncomment the line that starts with Connector = 8443
and also add the following
keystoreFile="Path were keystore file is generated"
keystorePass="Password that you entered while generating key"
STEP 5:
now start the apache web server and try
https://localhost:8443/

It should work

Thursday, April 8, 2010

How to add a linux machine to Windows domain

This Article shows how to add a Ubuntu machine to Windows Domain
Here we are going to use a open source Tool (Likewise).
STEP1:
Install the package
#apt-get install likewise-open5
STEP 2:
Go to Terminal
#domainjoin-cli join domainname Administrator
Example:
domainjoin-cli join antonysunny.com Administrator
In the above example domainname = antonysunny.com
It will prompt for Admin Password which has permission to join to domain
Make sure the system gets restarted
STEP 3:
Inorder to login Enter the username as domain\user
Example:ANTONYSUNNY\user
In the above example ANTONYSUNNY is the NETBIOS name for the domain name

Done
TROUBLESHOOTING:
->Inorder to make likewise-open use a default domain add the following to /etc/samba/lwiauthd.conf
winbind use default domain = yes
->Restart /etc/init.d/likewise-open restart
->Inorder to unjoin from domain Go to terminal
#domainjoin-cli leave