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)

58
votes
2answers
280k views

How to install Desktop Environments on CentOS 7?

I have recently installed CentOS 7 (Minimal Install without GUI) and now I want to install a GUI environment in it. How can I install Desktop Environments on previously installed CentOS7 without ...
0
votes
3answers
3k views

Apache won't restart after configuring Virtual Hosts

I am trying to make a web server, but after adding the virtual hosts config, apache won't restart. It had several errors but I've managed to fix most of them. Now I don't know what is happening ...
0
votes
1answer
1k views

Copy& Paste Fedora and Virtualbox CentOS7

I want copy text from Fedora 21 and paste to Virtual box with CentOS 7 how can I do that?? I change in Virtual box settings Shared Clipboard and Drag'n'Drop to bidirectional Thanks for help, ...
2
votes
1answer
942 views

mdadm: /dev/md0 assembled from 3 drives - not enough to start the array

I had a drive in my raid5 fail a while back. I believe the problem was due to a power failure at the time, but originally thought it might be the hard drive controllers on the motherboard. (this is ...
1
vote
3answers
32 views

Online Linux Server [closed]

I'm wondering if there is any online Linux VM solutions available for purchase/subscription with a public IP? I'd like to pay a monthly/yearly fee for root access to an IP address of a Linux (CentOS) ...
2
votes
0answers
37 views

Redhat and Centos servers glibc errors

Please forgive if I am not wording this correctly and my current lack of information, but I am losing my mind trying to figure this out and I am not currently behind the servers in question. I have ...
-1
votes
0answers
35 views

Access tomcat server on a virtual machine

I'm having this problem, I think it's a very basic problem, many things sound similar, but still I couldn't find the answer: My laptop has windows 10, I install VM Ware and created a virtual machine, ...
0
votes
0answers
27 views

USB network card dongle on CentOS 7(.2)

I've just started using a USB-to-gigabit-nic dongle on my CentOS 7.2 machine and it's giving me a headache. To get the NIC registered I constantly have to remove and re-insert the USB after each ...
0
votes
0answers
50 views

Why my CentOS7 system can't resolve domain names any more?

Yesterday , I disabled NetworkManager on my CentOS7, to get static IP when it starts. Today , I found that I can't ping to websites any more ,because it shows unknown host www.xxxx.com to any www.xxxx....
0
votes
1answer
1k views

Installing oci8 php extension

On a CentOS 7 server, I have installed PHP from remi repository. I need to connect to Oracle 9.2 on a remote machine. Installing oci8 via yum install oci8 results OCI8 Version 2.1.0 which is not ...
0
votes
0answers
14 views

Booting CentOS 7 with classic grub

I'm trying to setup a new virtual server with a web host whose hypervisor platform doesn't support the use of Grub 2. So I need to setup classic Grub to boot my CentOS 7 VM. Is this possible? I've ...
1
vote
2answers
86 views

Script to determine if a TAP interface created by a service is up

My system has a SoftEther VPN service that creates it's own TAP interface when it starts and removes it when it's stops. But even with DHCP running on the VPN, the TAP doesn't configure it's own IP ...
-1
votes
1answer
58 views

Restarting a service on a time interval

How can I set the CentOS to restart a service on a time interval?
0
votes
0answers
15 views

package-cleanup --oldkernels won't clean out an old 3.x kernel with 4.x kernel installed

I think package-cleanup is getting confused and thinks only 1 kernel is installed. Centos 7.2 I had a single 3.x kernel installed. I then installed kernel 4.x using rpm -Uvh http://www.elrepo.org/...
0
votes
2answers
53 views

Why can't I configure a static IP on my CentOS7 system?

my /etc/sysconfig/network-scripts/ifcfg-eth0 is like this: And I have issued the command "systemctl restart network". But when I issued "ifconfig", it shows that the ip on eth0 is 192.168.1.117,but ...
-5
votes
1answer
35 views

Why Centos RPM can not be done by the root user

In CentOS wiki says that can not be done rpm-packages under the root user, because it may damage the system. Why? I do not understand what exactly it can do harm. The documentation RPM nothing found. ...
19
votes
1answer
64k views

Nslookup: command not found error on RHEL/CentOS 7

During linux installation I selected "minimal" option: When I went to run the nslookup command to look up an IP address I got the error message nslookup: command not found as shown in the example ...
2
votes
1answer
848 views

CentOS 5 - hdparm - how to set DMA mode

I'm running CentOS 5 with a PATA hard drive. I've used hdparm to tune the hard disk for better performance, but there are 2 settings that don't work: hdparm -M 254 /dev/hda gives the error ...
4
votes
1answer
2k views

Samba 4 has high CPU usage when accessing mapped drive through Windows

I have noticed that when I access my Samba share from Windows, the smbd daemon will always use aprox 10-20% CPU - no matter if the share is used or not from Windows. Even if I close the share/window, ...
6
votes
2answers
33k 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 ...
0
votes
0answers
38 views

i915 error when installing CentOS 7 on my notebook - what's wrong?

I'm trying to reinstall CentOS 7 on my notebook. The iso has been mounted on a pen drive with uNetbootin and, regardless of being the Minimal or DVD version, I get the following errors: [drm:...
0
votes
1answer
293 views

IPA server configuration: Cannot use IP network address

I am stuck with an error while configuring IdM server for my environment. I got this weird error invalid ip address 192.168.1.77 for server.example.com: cannot use ip network address The error came ...
1
vote
1answer
1k views

Installing Octave Dependencies on CentOS 6 using yum

I am trying to install Octave 4.0.0 (from source) locally in my home directory on a CentOS 6 cluster. This is a rather extensive install (see list of dependencies). I have several issues : From ...
1
vote
1answer
24 views

set expiry date for an account in the future has problem

The output of passwd -S command shows a date which is quite confusing. Please see the following commands root@cluster:~# passwd -S 9240305 9240305 LK 1970-01-01 0 99999 7 -1 (Password locked.) root@...
0
votes
1answer
42 views

CentOS web server move hdd to another computer [duplicate]

I have an web server with CentOS 6.7 installed. Now I aqquired a new computer and want to make it to run the web server but it is hard to fresh install and copy all the content (hundreds of websites). ...
6
votes
6answers
8k views

Slow start of Midnight Commander on CentOS

Is there any way to prevent mc from taking 10-30 seconds to open? Never seen this with Debian.
0
votes
1answer
82 views

Not getting a static IP for CentOS 7 [duplicate]

I'm not sure what I am missing to have my static IP?? Here are my network configuration files: /etc/hosts: 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 ...
2
votes
1answer
127 views

CentOS 7 unable to cleanly umount a bind mount using rbind and rslave

The following sequence of commands will fail on CentOS 7 (kernel version: 3.10.0-327.10.1.el7.x86_64): [hidden]$ mkdir -p A B/a C/b [hidden]$ sudo mount --bind A B/a [hidden]$ sudo mount --rbind B C/...
12
votes
3answers
25k views

Windows boot option is missing after installing CentOS 7, how can I get it back?

I recently installed CentOS 7 on a machine that has been running Windows 7. I did a dual boot installation and installed CentOS in a partition. But when I boot up my machine, it only gives me two ...
2
votes
1answer
2k views

Windows 7 boot option missing after installing CentOS 7, how can I get it back?

After installing Centos7, windows 7 is not showing at the boot time. Centos 7 is accessible. My boot folder entries: [root@localhost boot]# ls -ltr total 89176 -rw-------. 1 root root 2840084 Jun ...
1
vote
2answers
853 views

Need to install VirtualBox Guest Additions 4.3.8 in CentOS 6.3

My host system is OSX 10.9.2 and I'm running VirtualBox 4.3.8. In a Hadoop class I took recently, we were provided with a VM disk image preloaded with CentOS 6.3 and a lot of Hadoop-related ...
1
vote
2answers
46 views

Unable to completely remove installed package with yum remove [closed]

I removed a package on Centos 6 with yum remove, but if I run the command yum list installed | less it's shown as installed and my problem is that it conflicts with a newer version I'm trying ...
1
vote
1answer
825 views

Cannot use EPEL repo, get NSS error -5990 (PR_IO_TIMEOUT_ERROR)

I'm using vagrant to start up a centOS 7.0 VM. My provisioner is trying to set up EPEL 7 via yum install epel-release -y and then trying to install ansible via yum install ansible -y It installs ...
1
vote
1answer
39 views

How to use the setarch uname command in a shell script

I am trying to create a korn shell script in RHEL7 to silently install an agent at my job. However the agent requires an old version of the agent be installed before being upgraded to the new version ...
0
votes
1answer
1k views

Start SSH in CentOS rescue mode

I am booted into rescue mode after inserting the DVD. OS is CentOS 6.7 64 I've tried cd /mnt/sysimage chroot /mnt/sysimage service sshd restart which gave back service command not found. What do ...
2
votes
3answers
12k views

How to avoid “yum lock” hassle?

I often encounter the "Another app is currently holding the yum lock; waiting for it to exit..." message when trying to install an app and I have to kill yum manually. How can I avoid that? Is there ...
0
votes
0answers
25 views

3.10 kernel changed how it handles scsi / udev behavior

This is a nfs booted kernel and custom initramfs to execute code on bootup. Here is dmesg after that piece completes and pivots into the running file system. https://paste.fedoraproject.org/387110/...
0
votes
1answer
2k views

Sendmail Attachment

I was wondering if it's possible to include an attachment with sendmail. I am generating the following emailfile.eml files with the following layout From: Company Name <example@nowhere.com> To: ...
1
vote
2answers
4k views

CentOS Apache virtual hosts sites-available type structure

I just set up LAMP on a new CentOS server. Previously when I installed LAMP on Ubuntu, I always needed to create a virtual host definition for each website I create in my /var/www directory. But on ...
0
votes
1answer
111 views

How do I install ffmpeg on centos 6.8 with all dependancies? I am getting Error package

I am trying to install ffmpeg on Centos 6.8 server and I am getting some errors of required libs. I am not big on Linux I need your help. How do I install those missing libs? Where do I find them? ...
1
vote
1answer
186 views

Centos apache virtual hosts definition

Please excuse me if my logic is flawed as I am really new to Centos. I know I can define multiple virtual hosts in my httpd.conf file. But what I would like is to define virtual hosts in individual ...
0
votes
1answer
1k views

How to easily maintain the latest versions of Apache/ MySQL/ PHP on CentOS 6.2?

We have a few servers running CentOS 6.2 deploying web applications using Apache/ MySQL/ PHP. In the past we've just regularly run "yum update" to keep all the software up to date. As of right now ...
4
votes
1answer
6k views

CentOS 6.5 Login Screen GDM Issues

I have a few issues with the GDM login screen. I am using CentOS 6.5 and installed GNOME. I was able to change the background of the login screen by replacing the default.png image on the system. ...
2
votes
1answer
1k views

wrong fs type, bad option, bad superblock when attempting to mount restored volume

I restored a LVM group from a recovered config today (background #1, #2). Full images were made of the disks prior to issuing the following command. [root@ursula diskissues]# vgcfgrestore -f ...
0
votes
0answers
25 views

Linux Server Management Tool [migrated]

I recently deployed 13 servers Red Hat 7.2 and I would like to know what will be an ideal server management tool that will allow me to patch, and automate servers within a small environment such as ...
2
votes
1answer
5k views

Unable to use yum repos whether with baseurl or mirrorlist in CentOS 6.5

Since a couple of days, I'm unable to retrieve repositories data with Yum, in my CentOS 6.5 server. I did yum clean all a dozen of times, it emptied all but didn't solved the problem. I tried to ...
0
votes
1answer
2k views

Install apache,php and mysql on CentOS VPS

I try to install apache,php and mysql server by these commands. yum install httpd yum install php install mysql-server mysql service httpd start service mysqld start to start your mysql server ...
5
votes
1answer
3k views

How to publish a git repo via HTTP using nginx?

I've a CentOS 5 server at domain.fr. I am trying to set a subdomain so that I can use it with git : git.domain.fr My repositories are in /home/git (example /home/git/repos.git) I've installed git-...
0
votes
0answers
52 views

rpc.statd is not running but is required for remote locking (statd unrecognized service)

I'm attempting to mount a nfs share (fstab entry below) example.com:/sharefolder /mnt/localmount nfs defaults The following error is returned: mount.nfs: rpc.statd is not ...
0
votes
0answers
26 views

How to configure the file /etc/security/limits.d/90-nproc.conf?

Sorry for that I tried to search some help in the google for the explanation of the file 90-nproc.conf and want to figure out how to configure this file correctly. But unfortunately not found some ...