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

learn more… | top users | synonyms (2)

0
votes
1answer
501 views

How to change or create Lvm partition in Centos after install OS in shell

How to change or create Lvm partition in Centos dedicate server after install OS in shell?
2
votes
2answers
5k views

How to send the email which is sleeping in my queue list?

When i send email it sleep in my queue list. How can i send them out? (Fedora 15 distro). # mailq /var/spool/mqueue (2 requests) -----Q-ID----- --Size-- -----Q-Time----- ...
2
votes
2answers
2k views

ldconfig issue with non-standard lib directory in CentOS

I am working with a virtual machine (CentOS 5.3) that has very little storage space on the main drive (which includes /usr, /usr/local, etc). Most of the storage space is available on a separate drive ...
35
votes
9answers
55k views

Is CentOS exactly the same as RHEL?

I'm sure this question has been asked again and again elsewhere (I did not find anything specific to CentOS vs RHEL in SE), but I would still like to ask and confirm a few specific points. I am well ...
6
votes
2answers
2k 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 ...
4
votes
2answers
8k views

CentOS yum repository bad Header V4 RSA/SHA1 signature

I was coping with many problems to get stuck with this one. I have installed yum repository on server (CentOS 5.6) with: createrepo -v -s sha yumrepo/ sha is used due to solution to my earlier ...
1
vote
1answer
1k views

How do I install the nagios NRPE plugin on CentOS 5 using yum?

How do I install the nagios NRPE plugin on CentOS 5 using yum? I've tried yum install nagios-plugins but it's only downloading a fraction of a megabyte. Then if I do a search for one of the commands ...
3
votes
1answer
1k views

Limit process resource consumption in CentOS 5 (2.6.18 kernel)

I would like to limit the resource (CPU, Memory, and network bandwidth) consumption of processes on the same server. And it will be good if I can migrate processes from one server to another. I ...
1
vote
1answer
325 views

file missing from Desktop screen but can be seen using “ls” under the Desktop directory

I downloaded some files onto desktop. After typing ls under the Desktop directory, I can see these files. However, I cannot see the icons on my desktop corresponding to the files I see with ls. I use ...
-1
votes
1answer
657 views

Allowing access to single folder in centos

I have a java application in /usr/local that keeps writing to a text file on a daily basis. I need a particular user to be able to read this file. What is the best way to do that? I have recently read ...
5
votes
2answers
3k views

How to run a C program as a daemon?

I have a C program which I want to run as a daemon. How do I install it so it will run as a daemon on CentOS? Someone said to use @reboot, and some said to put it in /etc/rc.d/rc.local. Which is the ...
3
votes
3answers
11k views

How to auto type password for SCP or SFTP to automate it?

I have script where I put scp command to backup file to other server. But when it runs it asking to type password. Is there way to automate this? I am using CentOS 5.6. I have seen few guides they use ...
4
votes
1answer
8k views

Setting up X server on Centos6 minimal

I'm trying to install Centos6, but as it turned out, DVD I downloaded was just couple Mb too large (CentOS-6.0-i386-bin-DVD.iso) for DVD to carry. So, to save time and don't download DVD again, I ...
1
vote
1answer
376 views

Broken PATH in CentOS 5.x

I am having troubles with typing commands within the terminal on some of our CentOS servers. For example, I have to include the complete and full path to the command (i.e. /sbin/chkconfig vs. ...
2
votes
1answer
692 views

How do you add a package (or a mirror?) if the .rpm you're looking for isn't available in your VM build of CentOS?

I have yum and rpm, and I really only know how to install packages using these commands. When I tried to yum install figlet on a new CentOS6 virtual machine it couldn't find it in the mirrors list. I ...
3
votes
1answer
911 views

Lock file from being edited or deleted

I have CentOS and cPanel installed. I want to lock certain files (e.g. .ftpquota) from being deleted through FTP. I tried to change the ownership to root:root or root:lock but it didn't work; neither ...
2
votes
4answers
3k views

Can't Install/Update packages on newly installed CentOS

I installed CentOS6 and it is the first time. I tried to install/update packages. But I coudn't. Here is the output and it doesn't stop. How can I solve this? [root@localhost suranga]# yum update ...
0
votes
1answer
550 views

Retrieve URL content and follow redirects

I want to visit an URL in CentOS and then automatically follow the redirects. So, for example: Visit http://domain.com This will redirect my by a `header()` to another webpage, so automatically ...
4
votes
1answer
5k views

CentOS doesn't know what the internet is

So I've done my share of investigating this problem... I just recently created a CentOS 6 VM on my LinuxMint box using VirtualBox. I left all the recommended values the same upon creation (8GB HDD, ...
1
vote
1answer
3k views

Install FFMPEG on RHEL/CentOS

I've been searching for hours now and trying various methods of installing FFMPEG on my CentOS server. This is what I have currently installed on my Ubuntu desktop: FFmpeg version ...
1
vote
1answer
353 views

I wiped my /etc/yum.repos.d

I think I seriously messed things up on my EC2 instance which I'm currently hacking on. I tried to install some rpmfusion repository from which to install FFMPEG, but it broke things and I wasn't able ...
7
votes
2answers
22k views

Increasing Screen Size/Resolution on a VirtualBox Instance of Centos

I have VirtualBox instance of Centos 5. The screen size is quite small (800*600) and I'd like to increase it to 1280*1080. Under the Gnome preferences for "Screen Resolution" I only get the option for ...
0
votes
1answer
7k views

centos locale utf-8

This is my linux box: CentOS Linux release 6.0 (Final) x86_64 Using a text editor (vi, or pico...) I see strange characters for accented letters (è, ì, à, ù) This is my locale: LANG=en_US.UTF-8 ...
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
1answer
351 views

change sftp to ftp

I recently installed a CentOS machine for a couple of game servers. I followed some tutorials on the web for that, because I'm a linux noob. But. I want to sftp to store data on the server but it is ...
7
votes
2answers
7k 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 ...
1
vote
1answer
5k views

CentOS 6 installs libmysqlclient.so.16 and friends without me asking

Whilst trying to resolve a dependency issue with MySQL's libmysqlclient libraries on one of my CentOS 6 MySQL servers I was surprised to discover the following libraries installed in /usr/lib/mysql: ...
3
votes
1answer
2k views

Rename All Files with a Certain Name

I'm trying to find certain files with the name "stringx" and replace the name (but not the extension) with "stringy". So basically for stringx.txt and stingx.cs, I'd want stringy.txt and stringy.cs. ...
1
vote
1answer
1k views

How to remove Apache from CentOS while keeping php 5.3

I have a problem with removing Apache from my CentOS install. First of all I installed lighty (lighttpd) and then I tried to install php53 which httpd was included with it. I've configured lighty ...
1
vote
1answer
328 views

Centos directory server / 389 directory server - any differences?

I have very broad view that Redhat Directory Server, 389 Directory Server and Centos Directory Server are all the same. It's just the support you pay for on the RedHat version. Is this true? Are ...
3
votes
3answers
2k views

Installing centos and freebsd with serial console

I am trying to install Centos 5.7 and FreeBSD 8.2 on KVM with serial console access. This is what I used: sudo virt-install -n freebsd -r 1024 --vcpus=2 --os-type unix --accelerate -v --disk ...
3
votes
1answer
4k views

Can't login as root even after resetting the password

We're running a small Centos 5 server in a virtual machine for a class assignment. For reasons unknown, starting about a week ago a number of services started failing. When we tried to investigate we ...
1
vote
1answer
769 views

What kind of installation should I choose from CentOS to have it as dom0 xen host?

I want to have CentOS 6.0 x86_64 as a dom0 xen host. During the installation of CentOS there are many options for installation: "minimal" "Basic Server"... "Virtual Host".. The question is: which one ...
2
votes
2answers
4k views

“Cannot run C compiled programs” error when installing PDO PHP module

I have a cPanel server I want to install some packages on. I connected to the server as root and ran the following commands to update and delete all the existing repositories: yum update yum clean ...
1
vote
2answers
4k views

Linux Centos 5.5 yum update command is not working

I have done lots of things to update. yum clean all yum clean metadata yum clean dbcache then yum update outputs: http://mirror.centos.org/centos/5.6/addons/i386/repodata/repomd.xml: [Errno 14] ...
1
vote
1answer
2k views

CentOS 5.5 SSH with Key for non ROOT user

I tried pretty much everything I could to make this work. I spent literally 6 hours on research and nothing helps to remove "Server refused our key" error. My username I tried to make is "Testuser" ...
5
votes
1answer
7k views

chcon: can't apply partial context to unlabeled file while installing nagios with SELinux

I'm setting up Nagios core on CentOS with SELINUX=enforcing. I try to run chcon -R -t httpd_sys_content_t /usr/local/nagios/sbin/ as suggested in the manual, but I get this error messages: chcon: ...
6
votes
3answers
9k views

Wireless networking with CentOS

I'm running CentOS 5.7 x86 on my Vostro 1700 laptop which has an Intel Pro Wireless WiFi NIC (Intel Pro Wireless 3945 [iwl3945]). I'm a bit confused about how my Wireless connection (wlan0) is being ...
1
vote
0answers
476 views

How can I tell if no_root_squash is enabled from an NFS client without mounting the share?

Obviously, I can look at /etc/exports on the NFS server-side to see if no_root_squash is enabled, but is there a way I can check this from the NFS client-side without actually mounting the share? ...
5
votes
2answers
5k views

How to install packages to a custom location in centos6

I have a shared location, let me call it /tp I want to install all my libraries and packages in this location just like the default install. Reason to do this is: I want all the users in the network ...
0
votes
1answer
772 views

Seem to be having a problem with RealVNC with centos can't input username

Hello I seem to be having a problem with RealVNC with centos. I want to connect to a another machine, but can't because it has been "grayed out". In otherwords, I can't type in the username in the ...
11
votes
7answers
43k views

How can I fix “cannot find a valid baseurl for repo” errors on CentOS?

I finished installing CentOS 6, but when I tried running yum update I got: [root@centos6test ~]# yum update Loaded plugins: fastestmirror, refresh-packagekit Determining fastest mirrors Could not ...
1
vote
3answers
581 views

How do I check if a distribution is Fedora-based?

The Python M2Crypto library requires a slightly different installation command if the Linux distribution is Fedora-core based (e.g., Fedora, RHEL, CentOS, Scientific Linux). Is there a way to check ...
4
votes
1answer
12k views

mount: wrong fs type, bad option, bad superblock on /dev/sdb on CentOS 6.0

Somehow my partition on /dev/sdb has gotten all buggered up. This hard drive contains a lot of data that I need to recover and haven't been able to backup yet. When I attempt to mount it: # mount -t ...
2
votes
1answer
1k views

Remove shutdown/reboot options from logout window

In my CentOS5 installation in KDE, users get presented the options to terminate the session, reboot, and shutdown. Since this computer should always remain on, I'd like to remove the reboot and ...
1
vote
3answers
2k views

How can I get to a terminal or virtual console when Ctrl-Alt-F2 fails?

When X and GNOME are working normally, I can just hit Ctrl-Alt-F2 to leave GNOME and use the terminal on the second virtual console. To switch back to GNOME, I can just hit Alt-F1. Today, X or GNOME ...
0
votes
1answer
658 views

Installing yum on CentOS 5

I have a CentOS vm that I'm currently working on. I tried to update yum and it broke, so I removed it. So I need to re-install it on my vm, can anybody tell me how to install yum on CentOS5?
1
vote
1answer
694 views

cURL on Linux not compiled, although installed

cURL is not compiled into PHP. I'm running: [root@vps ~]# cat /etc/issue CentOS release 5.7 (Final) Kernel \r on an \m Then I execute yum install curl and yum install php-curl. Then: [root@vps ...
2
votes
0answers
166 views

How do I install dvd-slideshow on Centos 5?

How do I install dvd-slideshow on Centos 5? http://dvd-slideshow.sourceforge.net/wiki/Main_Page I tried but only found a gui to install on Ubuntu. I'm using Centos 5, command line.
0
votes
2answers
549 views

How do I set different directories for different domains on CentOS 5.5 server?

I'm running a CentOs 5.5 server and wanted to know what commands I needed to run to be able to do the following; I have 3 domains on the server - example1.com, example2.com, example3.com I wanted ...