Posts

Showing posts from July, 2011

Disable ssh root login

There is a potential Crackers can get in to your server via ssh by figuring out the password of the root using brute force attack. So that it is better to control root access of the server via ssh. For that use different user to log into the server and use sudo after logged in. follow the steps to deny root access via ssh : Create user with preferable username #useradd chamara give a strong password for the user #passwd chamara edit the following file with your favourite editor (vi is my favourite ;) ) #vim /etc/ssh/sshd_config find the #PermitRootLogin yes and uncomment it and do "yes" to "no" like as below PermitRootLogin no save it and close the file After that restart the sshd #/etc/init.d/sshd restart Thats all, have fun

Install oracle on SUSE 10 , 11

Install oracle 10g on SUSE 10,11 Pre-requirements At least 1GB RAM Swap space = 2 x physical RAM (until 3 GB) after 3GB swap should equal to physical RAM size 500MB on /tmp directory 5 GB on /home/oracle Install following packages binutils gcc gcc-c++ glibc gnome-libs libstdc++ compat- libstdc++ libstdc++-devel libaio libaio-devel make pdksh sysstat openmotif (if you are not using gnome , gnome-libs is optional ) After all install orarun package which compatible to architecture of the PC Edit following files 1. /etc/SuSE-release Insert following details on it SUSE Linux Enterprise Server 9 (i586) VERSION = 9 2. /etc/hosts Insert the ip address of the PC and comment the 127.0.0.2 line Ex: # 127.0.0.2 demo.chaamaa.com demo 192.168.1.5 demo.chaamaa.com demo Run one of followings as root to set kernel parameters “ /etc/init.d/oracle start ” or “ rcoracle start ”. If none of them works edit /...