CentOS stands for Community ENTerprise Operating System, the most popular Linux distribution for web servers with almost 30% of all servers using it. Third-party software is not included in the base.

learn more… | top users | synonyms

2
votes
3answers
502 views

How to show a warning message when entering a folder?

I don't know if this is possible, but, I have a folder which I would like to show some warning message when the user enters in it. In my case would say that the folder could be deleted without ...
2
votes
1answer
3k views

How to install PIL with zlip and jpg support in centos with pip python

When i install pip install PIL then i get this *** TKINTER support not available *** JPEG support not available *** ZLIB (PNG/ZIP) support not available *** FREETYPE2 support not ...
2
votes
2answers
533 views

PuTTY stuck when using du command

I'm a command line noob but I think this one's stuck. I never get passed etc. Any ideas?
2
votes
2answers
3k views

Install PhantomJS 1.6 on Centos 5.8

I'm trying to get PhantomJS v1.6 installed on my Centos 5.8 server. I'm running into the following error when trying to run phantomjs: phantomjs: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.11' ...
2
votes
3answers
422 views

Where can I download pdfconcat? [closed]

I've been looking everywhere (i.e. lots of Google searching) for pdfconcat, which supposedly is very good at merging PDF files together. Anyone know where I can get this? Thanks!
2
votes
2answers
2k views

ntpd update interval?

How often does the NTPD service update system clocktime by default?
2
votes
2answers
3k views

How do I change permissions on a directory

I'm using CentOS and I would like to know how to change permissions on a folder with multiple files in it. I have used the following commands on the folder as root (Let's say folder =A) : chmod ...
2
votes
2answers
7k views

Install OpenCV in CentOS

I am trying to install OpenCV in CentOS 6. When I run the command [root@cosmas opt]# sudo yum install libtiff4-dev libjpeg-dev libjasper-dev it returned the follow: Loaded plugins: fastestmirror, ...
2
votes
1answer
13k views

How to know the folder size in CENTOS [duplicate]

I have a website on my server and I owns it. The size of the website is around whoping 170GB . This shouldnt be this much. At max it should be around 20GB . I dont know hat makes it that big. I am ...
2
votes
3answers
2k views

Where are aliases set in CentOS?

There is a typo which causes an error message upon logon (someone typed lias instead of alias). I have checked /etc/bashrc as well as ~/.bashrc and /etc/profile as well as ~/.bash_profile for ...
2
votes
1answer
411 views

What other ports should I block to maximize server security? PS using IPTABLES

I have blocked ports 80, 9001, 9080. What other ports should be blocked to maximize security? PS: It is a asterisk server / PBX Sorry: New Systems Admin here :) Thanks!
2
votes
2answers
243 views

How can I repair a corrupted “find” binary on CentOS?

When I try using "find" on my system, here's what I get: $ find Segmentation fault (core dumped) I assume the binary got corrupted somehow. How can I repair it? I don't have any other installation ...
2
votes
3answers
12k views

How do I switch to a higher resolution in Centos 6 installed on a virtual machine (VirtualBox)?

I have installed Centos 6 on a virtual machine (virtualbox). Maximum available screen resolution is 800x600. How do I get higher resolutions?
2
votes
5answers
1k views

why do I need the “sudo” in this particular command?

sudo yum install automake libtool flex bison pkgconfig gcc-c++ boost-devel libevent-devel zlib-devel python-devel ruby-devel for installing required packages for Thrift on CentOS 5.. is it ...
2
votes
5answers
8k views

Uninstall / remove RPM

I've installed CentOS 5 on an old IBM ThinkPad. Everything went fine until I had to make the wireless network connection work. After searching Google I realise that I need to install RPM. ...
2
votes
4answers
14k views

yum install a particular version

I am currently using centOS 5.2 I want to install php 5.3.3. how do I install using yum?
2
votes
2answers
1k views

/usr/bin/realpath not found in Centos 6.5

I'm trying to type 'realpath' in CentOS 6.5. But it seems not installed. I checked it is contained in coreutils (archlinux). I double check the coreutils package which provide by CentOS, it lack the ...
2
votes
1answer
7k views

CentOS DNS malfunctioning - Cannot resolve any hostnames after reboot

I am running Linux VPS on CentOS 6.4, and I log into it remotely via putty I made a change to my /etc/sysconfig/selinux file: /etc/sysconfig/selinux # SELINUX= can take one of these three values: # ...
2
votes
1answer
3k views

Linux/CentOS how to permanent inititate DHCP Client any reboot?

In my CentOS, i need to run dhclient -v command at every time i start/reboot the server. How to make this permanent please?
2
votes
2answers
3k views

CentOS 5 Python - How To Force Specific Version?

I have a python program that I'm trying to run, my fresh install of CentOS came with 2.4.3 of Python, but I just manually installed 2.7. My install is located at /usr/local/bin/python2.7, so its all ...
2
votes
2answers
592 views

Too Much Swapping, even though RAM is ~75% Empty

I have a VPS with 9GB RAM, 300GB HDD, 3 GB Swap, 7 Cores. The OS is CentOS 5.7 Final. I have postgres9.0 running on my machine, with proper tuning done (at least by book/wiki of PostgreSQL). What ...
2
votes
1answer
3k views

Disc not found when installing CentOS in VirtualBox

On Windows 7, I am trying to install CentOS (CentOS-6.2-i386-netinstall.iso) using VirtualBox however it says Disc not found after language selection. Here's exactly what I'm getting: ...
2
votes
1answer
2k views

Why does Dropbox use so much memory on Linux?

pmap shows that Dropbox uses nearly 200MB of memory (on Linux). When I run Dropbox on Windows, it only uses about 30MB of memory. What is the reason for that? Also, why are there so many [ anon ] ...
2
votes
1answer
78 views

Why does group permission hide other permission?

I just noticed that on Centos 4, a file's group permissions hide the other permissions if you are a member of the group. I would think they would be OR(ed) together? For example: drwx---r-x 1 ...
2
votes
1answer
23k views

Unable to access the internet from my VirtualBox CentOS VM via wireless connection

I have a VirtualBox CentOS VM setup on my Windows 7 machine. I can ping my router, however I am unable to access the outside world. In Windows I have three network connections setup: Wireless ...
2
votes
2answers
7k views

Installing 7zip in CentOS - succeeds; but can't use it

I am trying to install 7zip to CentOS yum install p7zip installed it. And now running this returns Package p7zip-9.20.1-2.el5.x86_64 already installed and latest version But [root@root ...
2
votes
5answers
16k views

How to run a script on CentOS Linux startup

I put one script in /etc/init.d/abc.sh. Now I want it to run at startup. How can I do that with chkconfig? chkconfig --add abc.sh But I am not sure how it works.
2
votes
4answers
4k views

How can I install mySQL on CentOS without being root/su?

I want to install mySQL on CentOS. I do not have a root account on that machine. How can I install mySQL on CentOS as a user, ie. without being root?
2
votes
2answers
6k views

CentOS Dual-screen doesn't work

I am running a CentOS 5.3 x86_64 (fully updated as of today). It has a video card I cannot identify -- I run lspci and it identifies itself as: 01:00.0 VGA compatible controller: nVidia Corporation ...
2
votes
1answer
48 views

udev symbolic links - where is /dev/sda pointing to

It is said that udev create symbolic links identifying the actual device and /dev/disk/by-uuid is an example. [root@centos1 by-uuid]# pwd /dev/disk/by-uuid [root@centos1 by-uuid]# ls ...
2
votes
1answer
2k views

How to resolve rpm dependencies

I am trying to install libtirpc on RHEL 6.5 but it fails and asks for dependencies. Why here it is showing three GLIBC versions 2.14, 2.15 and 2.16. ?? Does it mean that any of these three versions ...
2
votes
1answer
5k views

How do I start Postgres on CentOS 6.5?

Whenever I try to start Postgres, it gives me an error. Even if I remove the directory it complains about, it still fails. [root@ip-172-31-15-65 init.d]# service postgresql start /var/lib/pgsql/data ...
2
votes
1answer
1k views

Why isn't java8 in yum?

I have multiple dedicated boxes that execute java applications. I used to install java 7 from yum. I decided to upgrade to java 8. I have installed java 8 manually on a lot of boxes. I am curious to ...
2
votes
1answer
203 views

Simple find and copy script for linux [closed]

I'm quite a newbie to scripts in Linux. What im trying to get is a simple script that finds a file by its exact name, then copy that file to a different folder. So Essentially it should work like ...
2
votes
1answer
2k views

Upstart: unrecognized service (CentOS 6.4)

I have created an upstart service from this gist. I put it into: [andrey@vm01 ~]$ ll /etc/init/play.conf -rw-r--r--. 1 root root 1255 Dec 1 20:50 /etc/init/play.conf I also installed upstart, as ...
2
votes
2answers
2k views

Unable to write files on CentOS

I have a VPS running on CentOS 6 and apache2 as webserver. I have several PHP scripts running in my server, and everything goes smooth, except to file writing. For some reason, my PHP scripts are ...
2
votes
2answers
466 views

SSH Using Wrong ID

I am trying to establish password-less ssh to myself on a CentOS6 system. I go through the following steps: ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsa cat ~/.ssh/id_dsa.pub >> ...
2
votes
2answers
2k views

How to install a 32 bit version of perl on 64 bit Cent OS server?

I want to install 32 bit version of perl on my Cent OS server which is of course of 64 bit..Output of perl -v is [root@M-229 ~]# perl --version This is perl, v5.10.1 (*) built for ...
2
votes
2answers
579 views

Create zip files that with given size

My question is same as in Create multiple zip files that are not dependent on each other? but my idea is to add files to zip until it is of required size and continue with a new zip file for others ...
2
votes
2answers
3k views

Simplest way to check for dynamic IP change

What would be the easiest way to find, with a script, if my IP address has changed? Background info: I have a standard home cable modem connexion, and my ISP assigns me a dynamic IP. It changes ...
2
votes
1answer
11k views

set PATH permanently

How do I edit my .profile file to set a permanent value for my PATH variable? Is there any other file that needs editing? (This is on CentOs 6.2)
2
votes
2answers
3k views

CentOS 6 - Inodes full - can't delete folder containing files

I have a CentOS 6 server at rackspace with 40GB of space. My server kept crashing with 'no space left on device' errors but there is over 50% free. When I run df-i this is the output: /dev/xvda1 ...
2
votes
1answer
7k views

httpd: bad user name apache

on centos when I enter service httpd start or restart server gives Starting httpd: httpd: bad user name apache [FAILED] I tried to add ...
2
votes
1answer
130 views

Limit a user to VI and Tail

I'm running a server on centos 6.0 and I'm looking for a way to limit ssh access of one user to only tail and vi and only in their home folder. I found some guidelines to the home folder part but ...
2
votes
2answers
494 views

How to remove three consecutive line feeds in a Makefile rule?

I need to search for and replace three consecutive newline characters in an input file and filter them out of an output file for a makefile rule on Centos 4. I am using GNU sed v4.1.2 and GNU make ...
2
votes
1answer
2k views

Default to Static IP when no DHCP is found

I've setup a DHCP server on one of my centos boxes, and I have several computers that are going to connect (also centos) and hopefully make use of the DHCP. On start-up I'd like to check whether a ...
2
votes
3answers
14k views

vncviewer connection refused (61)

I have a root access to VPS (centos 6). I have installed VNCServer using this guide line http://tournasdimitrios1.wordpress.com/2011/02/02/how-to-setup-vnc-server-on-centos-5-x-fedora-11/ Everything ...
2
votes
3answers
13k views

How to join an Active Directory with a Linux machine

How can I join an Active Directory domain with a Linux machine? Will it work with Ubuntu, Redhat, CentOS? Are there any with which it will not work?
2
votes
1answer
4k views

CentOS 6 SSD TRIM support

CentOS 6 is around for quite some time and they provide kernel 2.6.32. I know the vendor versions differ from the Kernel.org ones. Since vanilla kernel 2.6.33 and onwards provide trim support, I ...
2
votes
3answers
10k views

How to make my default gateway permanent in CentOS? So that after a reboot it does not get lost

I have a CentOS running. It is important to have my CentOS available when I am remotely connected to a VPN router. I tried to add a default gateway to the VPN router, but after reboot it goes away. ...