Questions specific to the CentOS Linux distribution. Use this tag if your question relates to how the CentOS distribution affects your problem; do not use it if you just happen to be using CentOS and your question is about a specific configuration detail or syntax.

learn more… | top users | synonyms (2)

3
votes
2answers
5k views

yum - list configure flags/options used to compile package

How can I see a list of flags/options used to configure and compile a certain package in yum, without having to install it first? Say apache, for example. $ yum list available httpd Available ...
9
votes
2answers
17k views

apache won't restart after adding VirtualHost conf file, why not?

In a CentOS 7 server, I get the following error when I type sudo apachectl restart after I add an include file at the bottom of httpd.conf: Job for httpd.service failed. See 'systemctl status httpd....
7
votes
2answers
6k views

Is it possible to add an item to the Nautilus right click menu?

I want to add an item to my right click menu, and run a command when a user clicks on it. I'm using Centos 6.2, is it possible? If yes please tell me how I can do this.
6
votes
3answers
12k 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 ...
5
votes
2answers
9k views

yum Error:rpmdb open failed

I'm trying to run yum update and I'm running this error: rpmdb: PANIC: fatal region error detected; run recovery error: db3 error(-30974) from dbenv->open: DB_RUNRECOVERY: Fatal error, run ...
4
votes
1answer
2k views

Start network service at boot time on CentOS

I've recently reinstalled CentOS onto a computer of mine. I have OpenSSH Server on it now, as did I before I reinstalled the operating system. Here's the difference: Before, SSH started without even ...
4
votes
2answers
29k views

“Last” command: How to show latest user login?

As I know, the last command shows recent logins by all users. But my PC (CentOS) has been used for roughly a year, and there are many users logged. I tried to used the last command, but it just showed ...
4
votes
2answers
6k views

bridged networking with kvm

I'm trying to get a guest virtual machine connected to my network using bridging. I've come across a couple of resources online, but they seem to be out of date, deal with xen or Ubuntu or don't seem ...
3
votes
3answers
9k 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: proxy=http://myproxy.domaine.com:...
3
votes
1answer
3k views

chkconfig bootup script failing, script runs good manually

I recently purchased a vps and I attempted to create a startup/restart script to start up my java program. I am running CentOS 6. The script works if I execute it manually with this command: ...
2
votes
8answers
2k views

Linux server monitoring software

The dedicated server I'm looking after started to crash occasionally, I suspect because of overload, so I need some performance/resource based monitoring software, preferably with web interface, ...
2
votes
0answers
168 views

How do I ssh into a new virtual machine?

note by derobert: problem was resolved in chat, starting around http://chat.stackexchange.com/transcript/message/24666451#24666451 if someone wants to write up an answer. Turns out the bridge wasn't ...
1
vote
2answers
455 views

why nginx holds file descriptions of logs?

on Red Hat Enterprise Linux Server release 6.6 (Santiago) nginx version: nginx/1.0.15 I use common nginx logrotate config, logrotate works fine and nginx creates new log file like access.log or error....
1
vote
1answer
16k 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
9k views

How can I extend VMware Partition on Centos 7 using GParted?

I've a problem with increasing a partition from 20GB to 120GB, VMDK file. Here is what I've done: using vmware-diskmanager to increase vmdk file from 20 GB - 120 GB. It's ok. download and boot from ...
12
votes
4answers
55k 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 ...
8
votes
3answers
3k views

Download ALL rpms for a product

I have two CentOS machines, one 6.3 box (A), and another CentOS 6.1. (B) 6.3 box is with internet connection, 6.1 box is without internet connection. I want to download ALL dependencies of a product ...
7
votes
2answers
10k 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 ...
7
votes
1answer
15k 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
2answers
31k views

What is the default idle timeout for OpenSSH?

I can't seem to find an answer to this simple question, which I need for some compliance documentation. On a default install of CentOS 6.5 (OpenSSH 5.3p1-94.el6), after how long of being idle will ...
6
votes
2answers
3k 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 ...
5
votes
2answers
10k views

xsetroot, xterm and twm are not found when starting XRDP/Xvnc (on Cent OS)

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 ...
4
votes
1answer
3k 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 ...
4
votes
3answers
3k views

Centos rpm -qa vs yum list installed

I want to have server b to have exactly the same setup as server a. My plan is to have a list of all installed things on server a and install it by using the list on server b something like : yum -...
4
votes
1answer
14k views

/proc/sys/kernel/hung_task_timeout_secs error

I am building a CentOS 6.2 webserver on a Hyper-V Cluster and have hit a major issue. The current setup is this: Operating System: CentOS 6.2. Minimal Server Install Installed software includes: ...
4
votes
0answers
137 views

pppd issue over serial cable

I'm trying to set up a ppp connection between 2 computers via serial cable, to enable TCP/IP over serial. Computer1 -> USB-Serial Converter -> Serial Cable -> Serial port of Computer 2 On computer ...
4
votes
1answer
13k views

How can I install latest VLC player in CentOS 6.4?

I have installed CentOS 6.4 in my laptop, I want to know the method of installing VLC in CentOS 6.4, Is it necessary to download the vlc package and compile or can I use yum install vlc to install the ...
4
votes
2answers
5k 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 ...
4
votes
3answers
8k views

What commands are available in the %pre section of a Kickstart file on CentOS?

Environment: CentOS 5.5 and 6.4 I have a request to analyze the hardware before installation to make sure our customers don't install our software on sub-standard server hardware. For example, ...
4
votes
1answer
155 views

how to eject/unmount usb dongle logically?

We've bought a commercial application who just work only if their dongle usb is connected to the server. However sometimes the application can not recognize the dongle, so it doesn't work, but if ...
4
votes
1answer
140 views

Pulling all of a process's swapped memory out of swap

How would one go about quickly pulling all of a process's swapped memory out of swap without writing to disk? The context on this issue is trivial, as the systemic issue necessitating the question ...
4
votes
2answers
9k 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, style....
4
votes
3answers
2k 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
10k 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 ...
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 up....
3
votes
2answers
289 views

No /dev/mmcblk0 during boot

I am trying to install CentOS-6 on an eMMC drive. Since the supported 2.6.xx kernel from CentOS-6 doesn't support mmc, I compiled a newer kernel (4.2.6) which has updated mmc drivers. I tried booting ...
3
votes
1answer
3k views

No manual entry for man

I'm working in a Centos 6.6 Docker image. I thought I installed everything to get access to man pages, but apparently not... $ yum install -y man man-pages man-pages-overrides [...] Complete! $ ...
3
votes
1answer
11k 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
2answers
2k views

Xen, bridge and multiple IPs on CentOS

There's a new server that is assigned 5 IP addresses. I want to use Xen to run several VMs with various services. This is my first attempt to install Xen, I use this tutorial as a guideline. Stuck ...
3
votes
4answers
12k views

Fastest RDP client on linux

I currently use KRDC on CentOS, but mouse pointer is a little slow and I'm sure that this is not caused by my internet line speed, because the windows RDP client works and everything is fine. Which ...
3
votes
3answers
485 views

how do I build a bridge between two virtual machines?

I have used virt-install to create two CentOS 7 virtual machine guests on a CentOS 7 host computer. One virtual machine is called webvm, and hosts web sites on a private network. The other virtual ...
2
votes
1answer
171 views

How to permanently disable root-password prompt for recovery mode, RHEL6

In the rare cases that a RHEL or CentOS 6 system is prevented from booting by (for instance) an improper shutdown, or a forced fsck-check failure on boot, the console will prompt the user for a root ...
2
votes
1answer
1k views

Linux CentOS 5.5 not connecting to Network

I have installed Linux CentOS 5.5. During installation, I configured the LAN driver and gave it an IP address. After installation, I checked the network connection but it shows "not connected". I ...
2
votes
2answers
1k views

make permanent virtual interface?

I want to have two IPs sharing the same interface and it's just working fine by creating a virtual interface using the following command (eth0 is my original interface): ifconfig eth0:0 <someip>...
2
votes
2answers
15k views

Realtek r8169 not working in CentOS 6.5

We have recently purchased Gigabyte 990xe-ud3 motherboards. It came with Realtek LAN conroller. However with CentOS 6.5 it is not working, i.e. although it shows that it's connected with network, it ...
1
vote
1answer
2k views

Intel 6300 wireless card won't work on CentOS 7 - worked during install though!

I installed centos 7 on a laptop with an intel 6300 wireless card in it. During the install, the wireless card was available and I was able to connect to my lan. After the install, I don't see the ...
1
vote
0answers
530 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 web....
1
vote
0answers
25 views

Restoring VG configuration from recovered drive

Had to reinstall CentOS on a server with three RAID 1 arrays. I installed the OS on sda (300g), and left sdb and sdc alone (they were not formatted or otherwise fiddled with). The OS is up but I'...
1
vote
2answers
1k 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
304 views

Bash script (with a java command) does not exit (script 2)

I start a bash script (synchronously from java as glassfish user) which triggers another bash script: Script 1 executed from java: #!/bin/bash #Start script2 as myUser on myUser desktop echo ...