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)

-5
votes
1answer
52 views

help with a bash shell script that creates directories

I have a problem I been trying to tackle. If anyone can help, it would save me a headache! For reference,I started self learning so I'll be looking for problems around but can't find the answer for ...
1
vote
1answer
29 views

Compare and merge config file in CentOS

I was trying to setup an auto-update (for multiple servers) bash script via cron to a config file (text based) by downloading the new file everyday and replacing it directly. The script works fine, ...
1
vote
2answers
30 views

reverse slave DNS server zone file not transferred

I am using amazon free tier with RHEL 7and configuring master and slave dns server. From master everything is ok, but slave I couldn't find result. Also I would like to know how can I secure my dns ...
4
votes
3answers
364 views

What's the quickest way to find duplicated files? [duplicate]

I found this command used to find duplicated files but it was quite long and made me confused. For example, If i remove -printf "%s\n", nothing came out. Why was that? Besides, why they used xargs ...
1
vote
1answer
13 views

Error while installing Bcache on centOS

I am trying to setup Bcache on my existing system(Its risky,but we are not worried about losing any data ) . So my make and make install works proper but when I run the command make-bcache i receive ...
0
votes
0answers
24 views

Centos 7.2 Convert single LVM to RAID Mirror Reinstall BootLoader

I am trying to convert a single-drive Centos 7.2 installation with LVM into a two-disk mdadm mirror with mrrored LVM. I was able to follow the excellent instructions at: ...
0
votes
1answer
34 views

Configuring Systemd to execute extra script after httpd start/restart using ExecStartPost setting not working

I need to have a PHP file execute whenever the httpd service starts or restarts. I found that Systemd has a configuration setting called **ExecStartPost, which looks perfect for what I need to do. I ...
0
votes
0answers
49 views

Centos 7 root passwd reset

I was stupid enough to log my root password on one spot and that crashed so I lost my root password to my server. I followed the guild of ...
0
votes
0answers
30 views

Improve CentOS performance while saving

When I save larger files at about 5 minutes of save time, Linux lags completely on my new computer. I can't change workspace or move my mouse. The files are about 50 Gb in size and are used for ...
0
votes
0answers
21 views

custom ISO Bootable USB not working

I made a custom CentOS ISO using the link. My custom OS works on the Virtual machine, but I'm unable to install it using a bootable pendrive. Where could I be going wrong?
0
votes
1answer
56 views

device-mapper: reload ioctl on cache1 failed: Device or resource busy

When I run the below command while setting up dm-cache on my CentOS system, I receive the error: device-mapper: reload ioctl on cache1 failed: Device or resource busy Command failed Command is: ...
0
votes
1answer
73 views

Python psutil version conflict for Terminator on Centos 7

This issue started after latest updates installation, probably in last 2-3 days. When I try to open Terminator I get error, Traceback (most recent call last): File "/usr/bin/terminator", line 23, ...
1
vote
0answers
112 views

SMB server not working after upgrade from 3.5 to 3.6

our Windows 7/2008 clients can't access our samba server any more after the upgrade to version 3.6. This is on CentOS 6 (rpm --query centos-release reports centos-release-6-7.el6.centos.12.3.x86_64). ...
1
vote
1answer
72 views

CentOS 7 fullscreen not working in VirtualBox

I installed CentOS 7 inside VirtualBox. Additionally, I installed virtualbox guest additions in the following way: yum update kernel* yum update yum install kernel-devel kernel-headers dkms gcc ...
0
votes
0answers
40 views

Failed to start Crash recovery kernel arming

When trying to login into CentOS 7 either through the Gnome GUI or the login shell, I get this: After a second, I get booted backed to the login shell, or login screen of Gnome. I've tried booting ...
-1
votes
1answer
19 views

How do I install manually a package instead using yum [duplicate]

My issue is simple, I have to install this lib: yum install libyaml-devel As I'm working for a company which has some stupid security rules, I can't install it using yum. I would like to know ...
0
votes
2answers
75 views

CentOS: How to install libyaml-devel from source?

I'm trying to install RVM in a CentOS server which for some weird reason I do not have access to internet. One of its dependencies is the library libyaml-devel. I already installed the libyaml ...
0
votes
0answers
40 views

Enable internet connection in CentOS 7 minimal version on Vagrant

I'm using Vagrant to run CentOS 7 box under Windows 7 and I can't connect to internet to install some packages. It's a minimal version of CentOS 7 so a lot of commands don't work. dhcpclient, ...
0
votes
1answer
51 views

My CentOS 7 won't boot anymore

My CentOS 7 won't boot anymore. I returns by after boot: Assuming drive cache: write through I found some things to remove rhgb via the boot menu, but that didn't work. I remove it, and saved it ...
1
vote
2answers
38 views

What would 'passwd root --stdin' have set my password to?

I ran: sshpass -p 'OldPassword' ssh -o StrictHostKeyChecking=no root@1.1.1.1 'echo "Te3EQeF2U!-Em_C3eBU6A&a=u2$e28*c" | passwd root --stdin' Without realizing that echo ...
0
votes
1answer
47 views

What version of CentOS is equivalent to Red Hat 9.x?

I want to use CentOS. I was used to Red Hat 9.x but now I'd like to use CentOS. But I don't know what CentOS version is equivalent to Red Hat 9.x?
0
votes
0answers
92 views

Linux command “systemctl status” is not working inside a Docker container

The command "systemctl status" is not working. It never has. My container is on CentOS 7. When I issue "systemctl status" I get results "Failed to get D-Bus connection: operation not permitted." Path ...
2
votes
2answers
58 views

Setting interface NM_CONTROLLED to yes using nmcli in CentOS 7

I'm writing some documentation on configuring the network interfaces for a new CentOS 7 server, the specific section walks through setting the interface to a static IP address. The steps thus far ...
0
votes
0answers
53 views

no access to a shared windows 10 printer from centos 7

I have a Win 10 pro laptop on which I attached an USB printer; it works when I try to print from the laptop. I shared this printer, and I have a second laptop, from which I would like to print, it's ...
0
votes
2answers
229 views

How to install i3wm window manage on centos7

I want setup i3wm on centos. I try download rpm file i3 in rpmfind.net but two package (i3-doc <-> i3-wm) have interdependent. I try search google but no answer: How to use i3 on CentOS 7 with ...
0
votes
0answers
26 views

CentOS7 Livecd login loop after Dracut update to 033-360

I am trying to edit the official CentOS7 livecd build 1406 and after updating Dracut to 033-360 (due to being an nfs-utils dependency) from the original 033-161 I am stuck in a login loop. Further ...
0
votes
0answers
19 views

FTP Over SSL not accessible from outside network

We have setup an FTP server over SSL with configuration using vsftpd as below (/etc/vsftpd/vsftpd.conf): pam_service_name=vsftpd local_enable=YES write_enable=YES local_umask=022 anonymous_enable=NO ...
1
vote
1answer
54 views

Custom OS Version-ing

I made a custom centos by following the link given below https://github.com/joyent/mi-centos-7 Now I want to add my own version to the ISO file so that it shows when we check it using the following ...
3
votes
1answer
32 views

Update non active linux installation

We have several linux (Centos) live usb drives and I was wondering whether it was possible to just mount and update them from a linux desktop (running from a HDD) instead of booting and running yum on ...
0
votes
0answers
32 views

Squid Proxy using two nics CentOS 7.2

Objective: OS: CentOS 7.2 NIC01: eth0 - WAN - (10.1.1.0) NIC02: eth1 - LAN - (10.1.2.0) Box1: Squid/iptables server (Has the two nics) Box2: Workstation (On Lan) I am trying to filter all ...
0
votes
1answer
44 views

SSH into another VM via Perl / Sh script failing. Works manually

I want to run a Perl CGI script (a_web_page.cgi) from my dev box .1.20 that runs a bash script from the same folder (host_script.sh). This script then runs a SSH command to another server 1.10 that ...
0
votes
0answers
57 views

How do I get a yum repo to work in a Docker container?

What do I do about two Docker containers on separate VMs that have the same IP address on my network? I have two CentOS 7.x servers. Both have exactly one Docker container. When I use ifconfig, the ...
0
votes
1answer
65 views

Struggling to remove a faulted ZFS pool on Centos 7 using zpool

I have been doing lots of testing of ZFS recently on a new server. I'm ready to move this server into production now, but I'm wondering if I can get rid of my old 'faulted' diskpools before I do, ...
2
votes
1answer
55 views

Setting a disk space quota on a samba share residing on an ZFS pool

I have several samba shares, one of which is used for storing some backups. I want to set a disk space quota on said share, as the ZFS volume the share resides on is huge and multi-purpose... I don't ...
0
votes
1answer
48 views

VNC Server Centos7 VNC client Windows 10

I am trying to access my Centos 7 server's desktop so I installed ... [plankton@localhost ~]$ rpm -q --info tigervnc-server Name : tigervnc-server Version : 1.3.1 Release : 4.el7_2 ...
0
votes
0answers
35 views

Installing nginx from source error

OS is centos 7.2,installing nginx from source error: sslv2conftest.c: In function 'main': sslv2conftest.c:217:15: warning: 'currtest' may be used uninitialized in this function ...
1
vote
0answers
32 views

Is there a way to interleave two filesystems of the same structure?

I have a large networked file system whose backup routine sees some file systems as higher priority than others and are given more redundancy with backups. At present those file systems are visible as ...
0
votes
0answers
22 views

where is nginx.lock file?

I am using centos 7.2,and I installed nginx 1.9.14 form source, wget -c http://nginx.org/download/nginx-1.9.14.tar.gz tar zxf nginx-1.9.14.tar.gz wget -O nginx-ct.zip -c ...
0
votes
0answers
91 views

Yum Update error on CentOS 7 - Require: libQt5 (…)

When I try to run the command yum update, I am getting the following error messages: Error: Package: notepadqq-0.46.1-1.fc20.i386 (FedoraPeople-sea) Requires: libQt5PrintSupport.so.5 ...
-1
votes
3answers
35 views

changing permission after copy the directory? [closed]

I have two directory in two different path there are some common subdirectories and files between them I want to copy the content of first directory to the second one meanwhile I need the same ...
0
votes
1answer
62 views

Why is the rename utility on Debian/Ubuntu different than the one on other distributions, like CentOS?

On CentOS, the rename command uses two simple strings, from and to. rename from to file... while on Debian/Ubuntu it uses a perl-style regular expression. rename [ -v ] [ -n ] [ -f ] perlexpr [ ...
0
votes
0answers
15 views

Changing interface from dhcp to static using nmcli in CentOS7 [duplicate]

I have a new CentOS7 box that I'm trying to configure the interfaces on, and I know how do do it the CentOS6 way (Modifying the ifcfg-* files directly), but id like to use nmcli if possible. I know I ...
0
votes
1answer
371 views

How to update OpenSSL on centos 7.2?

I am using centos 7.2, I will intall Nginx-CT,and it needs OpenSSL 1.0.2,the current version is as follow: [root@i001 ~]# rpm -qa|grep openssl openssl-libs-1.0.1e-51.el7_2.4.x86_64 ...
0
votes
1answer
72 views

CentOS: yum update Cannot find a valid baseurl for repo

I am trying to do yum update but I'm getting the following error. I have exported http_proxy & https_proxy Have added proxy settings in /etc/yum.conf like: proxy=http://10.44.208.10:8080 ...
0
votes
2answers
143 views

Cannot figure out why epel is not showing up on yum repolist

I'm trying to add epel.repo on Centos 7. It seems like it is getting installed fine but it doesn't show up in the list and cannot use it. Here are the commands I run and their output. Am I missing ...
0
votes
0answers
20 views

top command shows dnss running at 290%

We're running software on a CentOS 6.2 virtual machine and it's been crashing quite a lot lately and keeps running slow. I checked the RAM usage, but that's only using 4GB to 5GB of the available ...
1
vote
1answer
35 views

code to display the text TRUE

I'm a complete newbie and I'm starting to learn the basic for shell scripts. So I apologize if this question is very simple for most users. I'm trying to display the text TRUE to the screen if a file ...
1
vote
0answers
46 views

How add configure to add default gateway from different subnet?

I am working in a host in LAN segment of 192.168.148.X with subnet mask 255.255.255.0. The LAN should be configured to use 192.168.128.1 as default gateway. What I normally do is to issue following ...
0
votes
1answer
39 views

Use xargs and awk to print out free/total disk

I came across one script to check server and found this. df -h | xargs | awk '{print "Free/total disk: " $11 " / " $9}' free -m | xargs | awk '{print "Free/total memory: " $17 " / " $8 " MB"}' I ...
0
votes
1answer
58 views

How to move empty disc space between partitions

I want to move an empty disc space from one partition to another. Is this possible? In the below image, I have free space under /local (/dev/sda3). I want to allocate this space to / which is on ...