Archive for the ‘CentOS’ Category
-
SVN plugin inside Eclipse and Microsoft visual Studio
Friday, August 27th, 2010
SVN plugin inside a IDE ( Eclipse or Visual Studio ) is a great help for the developer. Installation of SVN plugin inside Eclipse , I will use subversive plugin here . 1. Go to Help->Software Updates. 2. Click on the “Available Software” tab. 3. Unfold the Ganymede->Collaboration Tools node, and , you will see [...]
-
Tomcat 6 installation on CentOS 5/RHEL
Wednesday, August 25th, 2010
We can add repository under /etc/yum.repos.d/ wget ‘http://www.jpackage.org/jpackage50.repo’ #rpm -Uvh ‘http://plone.lucidsolutions.co.nz/linux/centos/images/jpackage-utils-compat-el5-0.0.1-1.noarch.rpm #yum update # yum install tomcat6 tomcat6-webapps tomcat6-admin-webapps # service tomcat6 start
-
Oracle 10g R2 installtion on CentOS 5.5/RHEL
Wednesday, August 25th, 2010
The main required packages for installing oracle are (installing on 32 bit architecture) binutils.i386 compat-gcc-7.3-2.96.128.i386 compat-gcc-c++-7.3-2.96.128.i386 compat-libstdc++-7.3-2.96.128.i386 compat-libstdc++-devel-7.3-2.96.128.i386 cpp.i386 gcc.i386 gcc-c++.i386 glibc.i386 glibc-common.i386 glibc-devel.i386 glibc-headers.i386 glibc-kernheaders.i386 libstdc++.i386 libstdc++-devel.i386 libaio libai-devel.i386 pdksh.i386 setarch.i386 sysstat.i386 Download the Oracle 10gR2 from , http://www.oracle.com/technology/software/products/database/oracle10g/index.html Preinstallation Steps: 1. Edit /etc/hosts file 2. Edit /etc/sysctl.conf #kernel.shmall = 2097152 #kernel.shmmax = 2147483648 [...]
-
Can’t read /sys/hypervisor/uuid which leads to high load average.
Saturday, August 14th, 2010
Description of problem: When the daemon of xend stops ,the cron task who is /etc/cron.hourly/mcelog.cron can’t read /sys/hypervisor/uuid.It leads to D status of “cat /sys/hypervisor/uuid ” which results in high load average Version-Release number of selected component (if applicable): In RHEL5.4 for 64 bits x86_64 xen kernel. How reproducible: In xen kernel,make the daemon of [...]
-
Upgrading MySQL from 4 to 5
Saturday, August 14th, 2010
MySQL upgradation is a simple process of removing old binaries and installing the new one. Following is a process of how to upgrade MySQL 4.1 to MySQL 5 on RHAS 4 Note: Before going to upgrade your database take a backup of your database and /etc/my.cnf file. Now find out the current packages Installed on [...]
-
How to Delete a Big Number of Files in a Folder
Friday, August 13th, 2010
If you’re using temporary files you should notice that after some time it is hard to delete them as their number is growing. If you have many files and try to delete them with a usual command rm -f you should receive something like this: [root@server html]# rm -f * -bash: /bin/rm: Argument list too [...]
-
SVN installation with Apache
Friday, August 13th, 2010
1. First of all, install apache/httpd * yum install httpd 2. Make sure you apache is running. You can also type ‘http://localhost’ at your browser and apache test page should appear if your apache is running * /etc/init.d/httpd status 3. Make it start by default on startup * chkconfig httpd on 4. Edit the apache [...]
-
SSH login expect shell script to supply username and password
Thursday, August 12th, 2010
#!/usr/bin/expect -f # Expect script to supply root/admin password for remote ssh server # and execute command. # This script needs three argument to(s) connect to remote server: # password = Password of remote UNIX server, for root user. # ipaddr = IP Addreess of remote UNIX server, no hostname # scriptname = Path to [...]
-
Backup an entire hard disk using dd command
Tuesday, August 10th, 2010
The ‘ dd ‘ command is one of the original Unix utilities and should be in everyone’s tool box. It can strip headers, extract parts of binary files and write into the middle of floppy disks; it is used by the Linux kernel Makefiles to make boot images. It can be used to copy and [...]
-
Using ReiserFS and Linux
Tuesday, July 20th, 2010
Introduction In this article, I’ll show you how to get ReiserFS running under a typical Linux distribution. I’ll also share lots of technical information on a variety of topics, such as performance considerations and more. Since I’ll be covering installation first, I recommend that you read this article in its entirety before following the installation [...]
-
How to find per-process I/O statistics on Linux
Tuesday, July 13th, 2010
How to find per-process I/O statistics on Linux: Need to monitor Linux server performance? Try these built-in command and a few add-on tools. Most Linux distributions are equipped with tons of monitoring. These tools provide metrics which can be used to get information about system activities. You can use these tools to find the possible [...]
-
PHP 5.3 ,MySql 5.1 on RHEL 4
Tuesday, July 6th, 2010
For those who are still using RHEL 4.x and in need of deploying PHP 5.3 & MySQL 5.1 , you can get the required rpm packages from http://rpms.famillecollet.com/enterprise/4/ You can add the repo and update php and MySQL packages via yum, or download and install manually. I think the bare minimum will require these packages [...]
-
migrating/moving /usr and /var
Tuesday, July 6th, 2010
Space problem with /var and /usr , The server is running mysql . My Plan is to move my /usr and /var to “root” (/). To do that I have to make sure that all security settings and symlink are preserved. Prepare the new partitions In my case, this is simply my “/” partitions, so [...]
-
Optimize and Tweak High-Traffic Servers
Wednesday, June 30th, 2010
Summary If you are reaching the limits of your server running Apache serving a lot of dynamic content, you can either spend thousands on new equipment or reduce bloat to increase your server capacity by anywhere from 2 to 10 times. This article concentrates on important and poorly-documented ways of increasing capacity without additional hardware. [...]
-
Http monitoring using httptop
Tuesday, June 29th, 2010
One of the tools most Linux/Unix admins are used to is called “top”. “top” by itself is a very powerful tool. Installation Perl modules in cpan install Term::ReadKey install File::Tail install Time::HiRes Create a executable script #touch /usr/bin/httptop #chmod a+x /usr/bin/httptop Copy & paste the following contents in the script #!/usr/bin/perl -w use Time::HiRes qw( [...]




