Posts

ADSL configuration on Cisco router

PPPoA   with   Cisco 1700+ WIC-1ADSL I have configured following with Cisco 1700 series router which includes  WIC-1ADSL Card. Please make sure the IOS is latest than 12.2 Configure ATM interface with the PVC number, DSL Mode , encapsulation and dialer pool interface ATM0   no ip address   no atm ilmi-keepalive   dsl operating-mode auto   pvc 0/38   encapsulation aal5mux ppp dialer   dialer pool-member 1 In here please check the dsl operating mode and encapsulation with your ISP. Most probably dsl operating mode   will works with auto. But you should   have to check the encapsulation   with ISP[aal5snap/ aal5mux]. BT(United Kingdom) use aal5mux. After that you have to configure the dialler interface with ADSL username and password accordingly PPPoA with Dynamic IP interface Dialer1   ip address negotiated   ip nat outside   encapsulation ppp   dialer pool 1 ...

Map Network Drive by .bat file

open notepad and type following on the notepad net use :<\\path to the file> Example: net use Z: \\fileserver\my_file if you have spaces within the path please use double quotations around the path. ne t use : " <\\path to the file> " Example: net use Z: "\\fileserver\my file" Then save the notepad as MapDrive.bat Send the .bat file to the user who want to map the drive. But be sure that he/she has permission to the network shared folder. if you want to delete network mapped drive using cmd(command prompt) use following command net use : /delete Example: net use Z: /delete if you want to do it when system bootup put it into "startup" in MS Windows. But remember to add one more line into the .bat file to delete the .bat file after mapped the drive. please add "del MapDrive.bat " into the end of batch file without quotes. Hope this will help you.

How to install CVS on centOS / RHEL 5

Here I am trying to guide you, to install CVS within a few minutes without any hassle. here we go....... Install cvs yum install cvs Logged in as root Add group cvs # groupadd cvs Add user cvs #useradd -g cvs cvs Create repository cvs -d /path_to_repository init Change ownership of cvs repository to cvs chown cvs:cvs /Path_to_cvsroot cat /etc/services and check is there followings exist cvspserver 2401/tcp #CVS Pserver cvspserver 2401/udp #CVS PServer If not add them into /etc/services Edit /etc/xinetd.d/cvs service cvspserver { disable = no port = 2401 socket_type = stream protocol = tcp wait = no user = root passenv = PATH server = /usr/bin/cvs env = HOME=/path_to_repository server_args = -f --allow-ro...

Device or resource busy ,when trying to unmount usb device

When you trying to unmount you will get a warning as followed. umount -f /mnt/Mounted_directory/ umount2: Device or resource busy umount: /mnt/Mounted_directory: device is busy umount2: Device or resource busy umount: /mnt/Mounted_directory: device is busy use #fuser -km /mnt/Mounted_directory See the man fuser for more details

Metadata file does not match checksum with yum install

When trying to install packages using yum, sometimes you will get following error message. example: http://mirror.centos.org/centos/4/up...rimary.xml.gz: [Errno -1] Metadata file does not match checksum Trying other mirror Most probably it is because of ISPs cache try followings one by one to solve the issue. 1. yum clean all and yum clean metadata 2. yum -y remove yum-fastestmirror 3. export http_proxy=[my actual proxy server]

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 /...