Home > Tech > Archive by category 'Linux'

Linux: Command to list users

What is the command to list users? There are useradd/userdel, but I could not find the command to list users. cat /etc/passwd |grep 500* It will list all lines from /etc/passwd which corresponds to USERs on your box. So from there you can check out the characters before first ":" sign will be the login name for your all users. ...

Linux / Unix Command: makewhatis

NAME makewhatis – Create the whatis database SYNOPSIS makewhatis [-u] [-v] [-w] [-s sections ] [-c [catpath]] [manpath] DESCRIPTION makewhatis reads all the manual pages contained in the given sections of manpath or the preformatted pages contained in the given sections of catpath. For each page, it...

Installing Python 2.5, mod_wsgi and mod_rpaf on CentOS 5.3

CentOS 5.x comes packaged with Python 2.4, if you’re developing software with another version of Python you’re going to want to do one of two things. You can either thoroughly test your application against Python 2.4 or you can install the same version of Python that the software was written with. In my case I’ve been using

Install Python 2.5 on RedHat/Centos

Current Python version is 2.4… yum upgrade python Gives Could not find update match for python Do I have to install from source? Yes you need to install from source, you can use the following: wget http://www.python.org/ftp/python/2.5.2/Python-2.5.2.tgz tar fxz...

Fatal error: Allowed memory size of 67108864 bytes exhausted

PHP Fatal error:  Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /usr/lib/php/PEAR.php on line 868. Here’s the entire error message… Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 33532118 bytes) in /home/anxietyz/public_html/blogs/includes/database.mysql-common.inc on...

RHEL5 / CentOS5 RPMs for Python 2.5 and 2.6

I’ve created RPMs for RHEL 5.0, 5.1, 5.2 and 5.3, as well as CentOS 5.0, 5.1 and 5.2 for Python 2.5 and 2.6. The RHEL/CentOS line only supports Python 2.4, and as it’s an integral part of yum and many other packages, any installation of new Pythons will require parallel installation. (Note : Currently, the 2.5 and 2.6 RPMs cannot both be installed...

Build a RPM of Python 2.5 on CentOS 5 / Redhat Enterprise (RHEL) 5

It’s such a pain to get a newer version of Python installed on Redhat/CentOS.  RHEL 4/CentOS 4 comes with Python 2.3, and RHEL 5/CentOS 5 comes with Python 2.4.  I have noticed more and more apps requiring Python >= 2.5, so I had to find a good way to build an RPM of Python 2.5.  Based on some sites I found out there and some mods...

Installing Java and Setting JAVA_HOME

Installing the JDK Software and Setting JAVA_HOME If you do not already have the JDK software installed or if JAVA_HOME is not set, the Java CAPS installation will not be successful. The following tasks provide the information you need to install the JDK software and set JAVA_HOME on UNIX or Windows systems. The following list provides the Java CAPS...

gzip: stdin: not in gzip format

So I downloaded this *.tar.gz and typed: tar xzvf <filename>.tar.gz and it comes back with: gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error exit delayed from previous errors I downloaded this from an ftp with Opera. I tried searching sites and forums, but could get no real answers, except some site saying...