CentOS is an Enterprise-class Linux Distribution derived from Redhat Enterprise Linux sources freely provided to the public.

learn more… | top users | synonyms

6
votes
3answers
7k views

What prevents a machine from responding to pings?

I have a CentOS release 5.4 linux box on Amazon EC2 that I'm trying to set up to be monitored via Nagios. The machine is in the same security group as the nagios server, but it seems to be ...
6
votes
2answers
1k views

Giving some users only SSH and shell access with limited resource usage

I'm trying to make a user that can access my server through SSH and allow it to have a shell, limited to using only, say screen and irssi. And it shouldn't it be able to see other directories except ...
6
votes
2answers
6k views

How can I know which IRQ is responsible of high CPU usage

I've moved a server from one mainboard to another due a disk controller failure. Since then I've noticed that constantly a 25% of one of the cores goes always to IRQ however I haven't managed myself ...
5
votes
2answers
665 views

Is it possible to create a directory and file inside /proc/sys?

I am running CentOS 6.2 and I need to create a subdirectory named "crypto" inside /proc/sys. Inside /proc/sys/crypto, I need to create a file named test which contains the value "1". I have tried ...
4
votes
2answers
2k views

Installing XRDP on Cent OS 6.5

I am trying to install xrdp service on one my VPS server, and though all installed successfully I get following error after connecting via Windows MSTSC service. Following are the resources I have ...
3
votes
2answers
431 views

Two ways to lock a password but only one to unlock

CentOS 6 Linux has two ways to lock a password: passwd -l usermod -L Today I found out, that they do something different. passwd writes two exclamation marks into the shadow file. # passwd -d ...
3
votes
1answer
773 views

Does segfaults mean bad memory

This is a brand new server with a new install and fresh compile of Apache/PHP with nothing crazy. Just a WordPress site hosted and I get the following. Could this just mean bad RAM? If so how can I ...
3
votes
1answer
8k views

gparted live CD can't resize a partition?

I recently ran out of space on a VirtualBox VM (CentOS guest) managed by Vagrant. It was using a .vmdk image, so I couldn't dynamically resize it. Following these instructions, I cloned the old image ...
3
votes
3answers
1k views

Trying to update php on CentOS 5.7

Apologies in advance - I'm not a good Linux user by any stretch of the imagination. I have a CentOS 5.7 dedicated server on which I host a few websites. I currently have php 5.2.10 installed, but ...
3
votes
3answers
1k views

Avoid pause during dm-raid initialization

On my CentOS 5 workstation I get a few seconds wait after dm-raid45 has been loaded ("Initializing Driver" or something like that). This seems to be part of the initrd. After that the system boots ...
2
votes
3answers
1k views

CentOS - install using yum Apache 2.4

I need Apache 2.4 in CentOS because with Apache 2.2 mod_proxy_wstunnel is not possible. I have tried https://fedorahosted.org/SoftwareCollections/ but unfortunately its for RHEL after installing i ...
2
votes
2answers
4k views

How to add an item to the Applications menu?

How can I add an application to Applications > Internet in Gnome Desktop running on CentOS 6.4? Per this old Docs link, it suggests to edit /etc/xdg/menus/applications.menu. How can I add ...
2
votes
1answer
4k views

Installing vpnc on CentOS

I'm currently attempting to establish a vpn connection, but I am unable to install a vpn client. I assumed installation would be as simple as sudo yum install vpnc, but CentOS is unable to find the ...
1
vote
3answers
2k views

CentOS use .pac file as proxy

I have to use a proxy with authentication to connect to the Internet. But I can't find any solution for this. I have modify my yum.conf, with a lot of possibilities: ...
1
vote
0answers
287 views

How to add my own created certificate authority to system trusted repositories

I was told that I can add my created CA to trusted repositories/authorities in my system instead of adding it from browser and configuring in in ssl.conf. Yet I can't find anything similar on the ...
1
vote
1answer
2k views

Guide to installing Xen on CentOS 5.9 (That is still valid)

I need an idiots guide to installing Xen Hypervisor on CentOS 5.9 We attempted to install it on 6.3 before, but completely failed, so we reverted to 5.9 to see if we had more luck. We had issues ...
1
vote
1answer
761 views

httpd-devel requires outdated version of glibc-common on CentOS 6.3

httpd-devel requires an outdated version of glibc-common on CentOS 6.3 x86_64 and Apache/2.2.15. It wants 2.12-1.80.el6 and I have 2.12-1.80.el6_3.3.x86_64 installed (via CentOS @update repo) Here is ...
1
vote
1answer
1k views

Clone OS to a smaller drive

I would like to copy/clone/move my CentOS (which is on a 20GB hard drive) to a smaller hard drive (5GB)... Can someone tell me how to do this?
0
votes
1answer
1k views

(CentOS) default FTP (SFTP) Log File?

I'm on CentOS v6.4 and using its native FTP Server, which i suppose is sftp. (Am i right?) Now i can use FTP well. But i need to log the actions taken by Users. Logs for the actions, such us, who ...
0
votes
1answer
2k views

How to install lsblk on CentOS 5

I'm more used to Debian so yum and CentOS is a little new to me. Apparently, lsblk is not available on this system. I'm trying to install it via yum with no luck. I just get "nothing to do". I ...
0
votes
2answers
2k views

installed java, but java -version not showing new java

I just installed jdk1.6.0. I have tried multiple ways to set the path variable and make java 1.6 my new running version. And nothing is working. Running centos5 virtual machine. alternatives --config ...
10
votes
1answer
833 views

How can I monitor CPU usage by user?

I need to monitor CPU usage by users of two servers' (Ubuntu and CentOS). For example: user1 5% user2 10% ... Is there a tool similar to top or htop that can do that?
6
votes
2answers
3k views

GLIBCXX 3.4.15 on Centos 6

I need to install GLIBCXX 3.4.15 on my Centos 6 version (to run a server for a game on Steam). I've googled around and had several websites where they installed programs where the error appeared where ...
6
votes
2answers
378 views

Mysterious write IO

I am just reviewing the disk IO of a XEN VM server. I stumbled across a DomU that has constant write traffic. To narrow that traffic further down I logged in to the DomU (CentOS 5, 64 Bit) and ...
5
votes
1answer
68 views

forward outgoing traffic port using iptables

I am trying to forward all outgoing traffic from port 80 to port 8080 using iptables and I tried the following rule, though it did not work: iptables -t nat -A OUTPUT -p tcp --dport 80 -j REDIRECT ...
5
votes
2answers
567 views

How can I ensure only the root user have the right to halt/reboot the system?

CentOS Linux by default allows all users to have permission to "halt" & "reboot" the system by using the commands halt and reboot. How can I configure my system so that only the root user has the ...
4
votes
1answer
7k views

How can I install latest VLC player in cent os 6.4?

I have installed cent os 6.4 in my laptop, I want to know the method of installing VLC in cent os 6.4, Is it necessary to download the vlc package and compile or can I use ''yum install vlc'' to ...
4
votes
1answer
1k views

grub error : “File not found” for separate /boot/efi partition

I've installed CentOS 6.4 on UEFI enabled machine, created /boot/efi partitions. But my grub is not automatically starting, if I start the PC, I start in Windows 8. I can only start CentOS by ...
4
votes
1answer
931 views

CentOS 4.8 and glibc 2.5

How would I go about installing glibc 2.5 on CentOS 4.8? I know CentOS 4.8 has been EOL'd, which is all good and well. However, the environment that I am working in is using this version, and will ...
3
votes
1answer
5k views

No networking for Centos under VirtualBox

Running an Ubuntu desktop server. I installed virtual box, then installed CentOS as a virtual machine. Centos is not starting the eth0 network adaptor. When I start it manually, I cannot connect ...
3
votes
2answers
917 views

No font in emacs on CentOS

When I open emacs over an SSH connection I get this error Warning: Cannot convert string "-*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*" to type FontStruct Warning: Cannot convert string ...
3
votes
1answer
2k views

User logged in by sftp does not show up in `w`

My server is Centos 5. I have a chroot environment set up with the following in my sshd_config Match group sftponly ForceCommand internal-sftp ChrootDirectory %h AllowTcpForwarding no ...
3
votes
2answers
5k views

Run getty on a serial port on startup on RHEL

I want to put a getty on ttyS2 on a RHEL 6.1 box so I can use IPMI's serial-over-ethernet functionality to log in to a machine when SSH isn't working. In the past (on Ubuntu?), I used to add a line ...
3
votes
1answer
6k views

How to install KVM on CentOS 6

I can't install kvm on CentOS. I got these errors: [root@localhost etc]# yum groupinstall kvm -y Loaded plugins: fastestmirror, presto Loading mirror speeds from cached hostfile * base: ...
3
votes
2answers
1k views

Using YUM or installing APT on CentOS

I am having trouble with a centOS machine I am using. I need some packages, including john the ripper, but yum cannot find the packages. When I type sudo yum install john, I get back the nothing to ...
3
votes
2answers
3k views

Yum update error: “can't start new thread”

I found several posts on this, but none of them work. When I do yum update, I get the error thread.error: can't start new thread; full stacktrace follows: [root@ripper234 ~]# yum update Loaded ...
2
votes
2answers
194 views

Difficulty with EncFS on CentOS

I'm trying to figure out encfs, but am having some difficulty. This is what I have done so far: I created 2 test folders mkdir /home/oshiro/Desktop/encrypted mkdir /home/oshiro/Desktop/decrypted ...
2
votes
1answer
1k views

Installing KVM on CentOS 6.4 without GUI (yet)

I've installed CentOS 6.4 from the 'minimal' iso, so it doesn't come with a GUI. Will this question's answer allow me to install KVM, or do I need to install KDE or X-server or something first?
2
votes
2answers
3k views

CentOS - Issue with write permissions

I am running CentOS 6.4 and I have installed Wordpress on it. (along with LAMP) Now the problem is, that I cannot make any write changes to any files in the wordpress editor: eg. header.php, ...
2
votes
3answers
510 views

Colorize Bash Console Color

I need to be able to set my CentOS 6.4 bash prompt color to yellow. I've managed to find where to set this (.bashrc) and the ANSI color for yellow (\e[0;33m). I've setup my prompt as follows: ...
2
votes
1answer
381 views

Script for courier maildir folders on CentOS LAMP environment

I'm looking for resources to help me build a script to do monthly maintenance of maildir folders for a typical CentOS LAMP VPS hosting environment. I would like to run a script that runs from a ...
1
vote
0answers
607 views

mysqld dead but pid file exists

Webserver was running fine for weeks then suddenly: I can access, but I am unable to log into Webmin I can access Magento, a php-based storefront application, but I am no longer able to log in and ...
1
vote
1answer
119 views

cp /etc/DIR_COLORS ~/.dir_colors not responding

I'm using CentOS 6.5 and Putty. My problem is that directory file names are shown in dark blue color which is hard to read. I google searched and found this link; basically it's copying the DIR_COLORS ...
1
vote
3answers
103 views

Reverse a chmod command on a directory

Is there a way to undo a chmod command on a directory in CentOS ?
1
vote
2answers
488 views

ffmpeg installation on Linux REHEL/CentOs 6.X

I had a static installation of ffmpeg but was running into trouble with config files not found so I have since just deleted it. Then I tried re-installing a more current static version just to see if ...
1
vote
6answers
16k views

yum update fails: Error: Cannot retrieve repository metadata (repomd.xml) for repository …

I'm using CentOS 6.3. When I try to update my system with yum I have this message: yum update Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.ircam.fr * ...
1
vote
2answers
1k views

How to install red5 & Java on centos 6.4

There are many tutorials out there but not so many for 6.4 and it seems people are having problems with running either Java 6 or 7 and Ant. So does anyone know where to find a definitive guide? ...
1
vote
1answer
716 views

Linux empty buffer cache command permission denied

I'm using the following commands to flush cache: # sync; echo 3 > /proc/sys/vm/drop_caches # sync; echo 2 > /proc/sys/vm/drop_caches # sync; echo 1 > /proc/sys/vm/drop_caches When I use ...
1
vote
2answers
414 views

Running `sudo /sbin/service mysqld start` causes system to crash

OS: CentOS 5.10 Service: Amazon Web Services Attempted to remove MySQL 5.0 and install MySQL 5.6 I had a server set up, and was going to use MySQL, but it was was set up with MySQL 5.0. Since ...
1
vote
2answers
952 views

SSH connection establishment too slow [duplicate]

I'm having issues while connecting to my Local Centos 6.3 VM with 500 MB ram. Below is the output of ssh -vvv localhost connection: OpenSSH_6.3, OpenSSL 1.0.1e 11 Feb 2013 debug1: Reading ...