# authconfig-tui
enable following option in the fist screen
[x] use LDAP
enabloe following options in the screen screen
[x] use MD5 passwords
[x] use shadow passwords
[x] use LDAP Authentication
server: LDAP://ldapserver.com/
BaseDN: dc=com,dc=somthing........
save the configuration and reboot the system or restart the service.
Tuesday, September 7, 2010
Changing hostname in Linux
Change the name in /etc/hosts file
and also edit following file and change the hostname
vi/etc/sysconfig/network
» Look for HOSTNAME=xxxxxx
Reboot the system or service xinetd restart
and also edit following file and change the hostname
vi/etc/sysconfig/network
» Look for HOSTNAME=xxxxxx
Reboot the system or service xinetd restart
Thursday, September 2, 2010
Network debugging in Linux
$ dmesg|grep eth0
$ less /etc/sysconfig/network
$ less /etc/sysconfig/network-scripts/ifcfg-eth0
$ ifconfig eth0 down/up
$ netstat -rn
$ service network restart
$ ping -c4 somewebsitetotest.com
$ traceroute somewebsitetotest.com
$ less /etc/sysconfig/network
$ less /etc/sysconfig/network-scripts/ifcfg-eth0
$ ifconfig eth0 down/up
$ netstat -rn
$ service network restart
$ ping -c4 somewebsitetotest.com
$ traceroute somewebsitetotest.com
Wednesday, July 28, 2010
Requesting VeriSign Cert on Apache
Go to APACHE/bin Home directory
cd $APACHIE_HOME\bin
$ openssl genrsa -out server.key 1024
$ OpenSSL req -new -key server.key -out server.csr -config openssl_default.cnf
Enter values (as per the requirement)
Send server.csr contens to VerSign for Signed cert.
cd $APACHIE_HOME\bin
$ openssl genrsa -out server.key 1024
$ OpenSSL req -new -key server.key -out server.csr -config openssl_default.cnf
Enter values (as per the requirement)
Send server.csr contens to VerSign for Signed cert.
Thursday, July 22, 2010
Tuesday, July 13, 2010
Setup SCP between hosts
1) Make sure id is created/available on both hosts (For following example Server names are "Ahost" and "Bhost" and the user is "test").
2) Login to Server Ahost and execute following commands with the user test if .ssh directory is not available
--> ssh-keygen -t rsa
Select default values
--> cd .ssh
scp id_rsa.pub Bhost:~test/.ssh/authorized_keys
scp id_rsa.pub Ahost:/apps/sasavr/.ssh/authorized_keys
(Note: if .ssh directory is not available on destination servers, create this directory on Ahost and Bhost)
Login to Ahost and Bhost with test user
--> chmod 700 .ssh
--> cd .ssh
--> chmod 600 authorized_keys
After executing all commands, we can scp from Ahost to Bhost without password for test user.
2) Login to Server Ahost and execute following commands with the user test if .ssh directory is not available
--> ssh-keygen -t rsa
Select default values
--> cd .ssh
scp id_rsa.pub Bhost:~test/.ssh/authorized_keys
scp id_rsa.pub Ahost:/apps/sasavr/.ssh/authorized_keys
(Note: if .ssh directory is not available on destination servers, create this directory on Ahost and Bhost)
Login to Ahost and Bhost with test user
--> chmod 700 .ssh
--> cd .ssh
--> chmod 600 authorized_keys
After executing all commands, we can scp from Ahost to Bhost without password for test user.
Friday, July 9, 2010
Remove a weblogic from windows service
Paste following contents in new file, change variables according to the domain and execute it
@echo off
SETLOCAL
set WL_HOME=C:\bea\weblogic91
set PROD_NAME=BEA Products
set BAR_WL_HOME=C_bea_weblogic91
set SERVER_NAME=SERVER_NAME
set DOMAIN_NAME=DOMAIN_NAME
rem *** Uninstall the service
"%WL_HOME%\server\bin\beasvc" -remove -svcname:"beasvc %DOMAIN_NAME%_%SERVER_NAME%"
ENDLOCAL
@echo off
SETLOCAL
set WL_HOME=C:\bea\weblogic91
set PROD_NAME=BEA Products
set BAR_WL_HOME=C_bea_weblogic91
set SERVER_NAME=SERVER_NAME
set DOMAIN_NAME=DOMAIN_NAME
rem *** Uninstall the service
"%WL_HOME%\server\bin\beasvc" -remove -svcname:"beasvc %DOMAIN_NAME%_%SERVER_NAME%"
ENDLOCAL
Subscribe to:
Posts (Atom)
Welcome to the UNIX world
