rhel

mysqldump | mysql yields 'too many open files' error. Why?

I have a RHEL 5 system with a fresh new hard drive I just dedicated to the MySQL server. To get things started, I used "mysqldump --host otherhost -A | mysql", even though I noticed the manpage never explicitly recommends trying this (mysqldump into a file is a no-go. We're talking 500G of database). This process fails at random inter...

Where's the best source of up to date RPMs for RedHat?

Where can I find up to date RPMs for different versions of Redhat Enterprise Linux? Specifically I'm looking for an Apache RPM. Normally I would turn to: http://dag.wieers.com/rpm/packages/ but they don't seem to have any RPMS for apache. Any ideas? ...

Make and build utilities on CentOS/RHEL?

Hello, I've been unsuccessfully searching for a way to install make utility on my CentOS 5.2. I've looked through some RPM repositories and online, with no avail. Installing gcc, gcc-c++ didn't help! Package build-essential is not made for CentOS/RHEL. I have RPMFORGE repo enabled in YUM. ...

Installing GCC 3.4.6 in RHEL4

I do the following in command line: 1) wget ftp://mirrors.kernel.org/gnu/gcc/gcc-3.4.6/gcc-3.4.6.tar.bz2 2) tar -jxf gcc-3.4.6.tar.bz2 3) cd gcc-3.4.6 4) cd libstdc++-v3 5) ./configure And I get the following error: configure: error: cannot find install-sh or install.sh in ./../.. There is actually an "install-sh" file in the gcc...

changing users default login shell on RHEL?

Here is a command on free bsd sudo pw usermod ksbuild -s /usr/local/bin/bash how do I do the equivalent on RHEL? ...

Best practice to run Linux service as a different user

Services default to starting as root at boot time on my RHEL box. IIRC, the same is true for other Linux distros which use the init scripts in /etc/init.d. What do you think is the best way to instead have the processes run as a (static) user of my choosing? The only method I'd arrived at was to use something like: su my_user -c 'dae...

Meaning of Path Structure on Unix

Hello, Does anybody have a reference to what the various path names mean on different flavors of Unix? Please include Solaris, RHEL, and SLES in the list if possible. e.g. From what I have gathered /lib is standard libraries for the distribution, which never change (is this correct? or do they get new versions from time to time?), /...

Where are default LS_COLORS set in RHEL 5.x?

In a terminal in Red Hat Enterprise Linux 5.x, running: [$] Env returns (among other things): "LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33 . . ." Most of the content in LS_COLORS I find in the file: /etc/DIR_COLORS BUT the values "no=00:fi=00:di=01;34:ln=01;36:pi=40;33 etc.", I have no success finding, even after grepping t...

Tools to clone a RHEL or FreeBSD box like SuperDuper does on Mac?

I maintain a couple of boxes that run Mac OS X Server. One of the great things about it is that I can use SuperDuper! to clone volumes. For example, I can take a snapshot of the entire boot volume before I apply software updates, and if something goes horribly wrong I can roll back to the snapshot. Or I can clone to an external drive and...

Is it OK to use Ruby 1.8.5?

I'm setting up a new RedHat Enterprise Linux 5 system to host Ruby apps running under Apache with Phusion Passenger. I've updated all the local packages on the system. Here is what RedHat is giving me for Ruby: $ ruby -v ruby 1.8.5 (2006-08-25) [i386-linux] That's pretty old. Is it better to use what RedHat provides or install a newer...

PCI Compliance + Magento + PHP version

I'm trying to get PCI Compliance for my dedicated server (Red Hat Enterprise Linux), which is running Magento. When I first installed Magento on the server, I realized that RHEL comes with a PHP version which is too old for Magento (5.1.6). So, I found a separate repo with PHP version 5.2.11, which got everything running fine, but now I'...

Running external code in a restricted environment (linux)

For reasons beyond the scope of this post, I want to run external (user submitted) code similar to the computer language benchmark game. Obviously this needs to be done in a restricted environment. Here are my restriction requirements: Can only read/write to current working directory (will be large tempdir) No external access (intern...

What do ctime, atime and mtime of /dev/tty7 suppose to mean on a Linux that runs X?

What do ctime, atime and mtime of /dev/tty7 suppose to mean on a Linux that runs X? Perhaps ctime is the time X started? It seems that I got conflicting results for atime and mtime... the time a key was pressed? the time something was written to the screen? If it depends on the distribution, I'm particularly interested in the answer f...

Oracle 10G XE on RHEL 5.3

Hello, I installed Oracle 10G XE on RHEL 5.3 . I am able to login as user oracle to the database, but am unable to do so as root. If i try to login as root using 'sys as sysdba' username i get ORA-01031: insufficient privileges The root user is part of the dba group. Any way to fix this ? Thank You edit Additional info: When logge...

JVM crashes under stress on RHEL 5.2

Hello I've got (the currently latest) jdk 1.6.0.18 crashing while running a web application on (the currently latest) tomcat 6.0.24 unexpectedly after 4 to 24 hours 4 hours to 8 days of stress testing (30 threads hitting the app at 6 mil. pageviews/day). This is on RHEL 5.2 (Tikanga). The crash report is at http://pastebin.com/f639a6cf...

Linking against NPTL for pthread function pthread_condattr_setclock

I've written some pthread code that use timed waits on a condition variable but in order to ensure a relative wait I've set the condvar's clock type to CLOCK_MONOTONIC using pthread_condattr_setclock(). In order to compile and link pthread_condattr_setclock() on RHEL4, i've had to add -I/usr/include/nptl and -L/usr/lib/nptl to my gcc co...

using mysql system user

What are the possible disadvantages / pitfalls of using linux system user 'mysql' to work with mysql server instead of creating a separate use? ...

Trouble linking libboost libraries to compile sslsniff on RHEL

Trying to build sslsniff on a RHEL 5.2 system here. When compiling sslsniff on RHEL I hit the same errors when using libboost packages (from repositories like rpmforge) and compiling libboost from source (which appeared to be successful.) I tried this on a fresh system as well (no previous/failed/garbage installs of libboost etc.) # mak...

Valgrind suppression file for Qt 4.6.2 and RHEL 5

I'm trying to run Valgrind 3.5.0 on RHEL 5.5 with Qt 4.6.2. It's producing loads of spurious errors and I'm wondering if anyone can share a suppressions file they've built? When using --leak-check=full, the output reports leaks in glib, gtk, pango etc. even when I'm just running part7 of the AddressBook example. With over 25000 lines th...

RHEL 5 SCSI ADPATEC

HI I have RHEL 5 box . and adpatec scsi card connected to it . I can see the adaptor under dsmeg | grep -i scsi dmesg | grep -i scsi SCSI subsystem initialized scsi0 : SCSI emulation for USB Mass Storage devices Type: CD-ROM ANSI SCSI revision: 00 scsi 0:0:0:0: Attached scsi generic sg0 type 5 sr0: scs...