Questions tagged [centos]

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.

1
vote
1answer
32 views

How to See Bound Folders and Release Them

This morning I noticed someone had stuck a USB Drive in the back of the server. (I'll have to end that practice later). For some reason CentOS 7 mounted that disk /dev/sdc1 under /run/media//. I also ...
0
votes
0answers
6 views

VM CentOS7.2 can not change the interface name

I have a CentOS 7.2 virtual machine. when I execute the below commands to change the default interface name, seems have no effect: 1) I change the /etc/sysconfig/network-script/ifcfg-ens33 filename ...
0
votes
1answer
1k views

How to mount a xfs volume to centOS 7 ec2 instance /home directory

I created t2.medium instance and attached ebs volume to the instance Here are some useful information. sudo pvs PV VG Fmt Attr PSize PFree /dev/xvdb1 vg_home lvm2 a-- <200....
0
votes
0answers
16 views

CentOS 7 Network Issue

Apologies if this has been answered before but I've scoured the internet all day in search of a solution and can't seem to find one. I have a CentOS 7 server running on VirtualBox which, despite all ...
0
votes
1answer
14 views

I was trying to install gitit but during compile phase got this error

Building library for gitit-0.12.3.1.. /usr/bin/ld.gold: error: cannot find -ltinfo collect2: error: ld returned 1 exit status `gcc' failed in phase `Linker'. (Exit code: 1) -- While building package ...
1
vote
1answer
4k views

Resize an LVM partition on a GPT drive

We have a Centos server as a virtual machine where the / path is getting full. So we want to resize the partition from 50GB to 70GB. I followed this guide https://www.thomas-krenn.com/de/wiki/...
0
votes
1answer
211 views

Cron jobs have stopped working due to PAM

My cron jobs have stopped working on my CentOS 7 server. The server is running WHM/cPanel. It seems like it is an issue with PAM service because in /var/log/secure I can see the following errors when ...
2
votes
3answers
31k views

Enable ssh root login

I have access to a CentOS server with a user that its not root but belongs to the sudoers list. I do not have the password of root, nor I can't find out what it is (policies of the people who gave me ...
3
votes
2answers
3k views

Enabling Hugepages at boot time on centos 7

I am trying to enable hugepages for use with ovs and DPDK on centos 7. I have tried to edit the GRUB_CMDLINE_LINUX in /etc/default/grub see code below. GRUB_CMDLINE_LINUX="crashkernel=auto rd.lvm.lv=...
9
votes
3answers
23k views

CentOs 7 YUM update not working

I am trying to do a yum update and all of the mirrors fail with a 404. I put the url into my browser and the error is correct, the url does not exist. YUM is looking for a package that does not ...
3
votes
3answers
10k views

How to install RabbitVCS on CentOS 7 & nautlius 3?

I haven't found any solution working so far :( What I've tried so far was follow steps from the manual. First I installed all required packages (at least I think so, naming isn't always the same) . ...
0
votes
0answers
15 views

CentOS on HP Proliant Gen9 New Kernel hangs

Would really appreciate a little help: Installed CentOs 7 on a HP DL380 Proliant Gen9 without a problem. Did a yum update also without a problem. Installed the long term and mainline kernels to get ...
0
votes
2answers
2k views

ntpd Configured for IPv6, Not Binding IPv6 Port

I have the following /etc/ntp.conf on CentOS 7.4: # /etc/ntp.conf: Ansible managed # drift file driftfile /var/lib/ntp/drift # restrictions restrict default nomodify notrap nopeer noquery restrict ...
1
vote
1answer
23 views

Can I install a new kernel package using `yum` without updating grub.cfg?

I have 49 rpm packages that I need to install from a local directory. One of which is kernel-4.9.135 Therefore, I want to use yum so all dependencies are managed for me (instead of passing rpm a ...
0
votes
2answers
1k views

invalid magic number when booting to CentOS 7 USB

I get invalid magic number When booting to CentOS bootable USB. The way I made the USB (on Ubuntu 17) is: Download CentOS-7-x86_64-DVD-1708.iso dd if=CentOS-7-x86_64-DVD-1708.iso of=/dev/sdc ...
-5
votes
0answers
42 views

shell script to kill the process in Gnu/Linux [on hold]

I need a shell script to kill the CPU consuming process in a Gnu/Linux server. If the process goes above 90% of CPU, then it should kill the process.
1
vote
1answer
21 views

Centos 7 Oracle VM - Unable ping default gateway

Update: I have configured NAT as adapter 1 and Host Only as adapter 2. However, ping default gateway (192.168.56.1) returns "Destination Host Unreachable". Any advice thanks! I am stuck for 1 week ...
1
vote
0answers
13 views

CentOS problem with mkisofs tool

I am trying to automate CentOS VM on ESXI using a kickstart file. After injecting the KS file I build the Custom iso using mkisofs tool. below is the command I used .\mkisofs.exe -J -R -v -T -o 'D:\...
0
votes
0answers
22 views

centos 6.10 kernel update ok, grub updated but new kernel isn't loaded

Today on an internal, legacy centos 6.10 server I run yum update It downloaded and installed, without errors, these packages: kernel-headers-2.6.32-754.15.3.el6.x86_64 Tue 25 Jun 2019 09:46:...
0
votes
0answers
18 views

How to install CentOS 7 over a *software* RAID 0 and RAID 5 configuration?

I'm configuring my home server, but I can't install CentOS from CD over a software RAID 0 or RAID 5. I can only set it up over a RAID 1 environment.  Unfortunately I don't have any PCI RAID controller....
0
votes
0answers
9 views

How do I change my command line colors for Centos 7?

I just want to change the text of everything after the [user@localhost ~]$ to white. Right now all the text is blue. I want the previous part to remain as it is, blue, while the rest is white. I ...
1
vote
1answer
1k views

Persist ip route and ip rule configurations for Policy Based Routing (iproute2)

Currently running on Fedora Server 23, I've been searching for the right way to persist commands such as: ip route add default via 10.0.2.1 dev ens32 table EXAMPLE_TABLE ip rule add from 10.1.2.50 ...
0
votes
1answer
1k views

Installed PHP extensions to wrong PHP version

I just bought a VPS and it came with PHP5.3.3 and that wasn't good for our website, so I successfully (so it seemed, anyway) installed PHP5.6.7 and successfully registered it with Plesk. For the ...
0
votes
1answer
44 views

Centos 7 python update package python-2.7.5-80 rpm

I am looking for this RPM python-2.7.5-80.el7_6.x86_64.rpm to address the security issue. yum update not getting this package? Any idea how to get this version of rpm for centos 7? Thanks Update ...
1
vote
0answers
16 views

What is the equivalent of systemd-analyze in CentOS 6?

systemd-analyze is the command to investigate time taken by each service during boot in CentOS 7. Is there a similar utility in CentOS 6 for doing this? update: extending the question after Lucas' ...
2
votes
2answers
23 views

How to enable firewalld without breaking application?

I have multiple CentOS 7 machines in the same LAN. Each one is communicating with a few others and having one or more applications installed that each listen on various ports (database, webserver, ...
2
votes
2answers
6k views

How to upgrade from Centos 7.1 to 7.2?

The software I'm using is only supported by CentOS 7.2. I tried sudo yum --releasever=7.2 update and get Cannot find a valid basurl for repo: base/7.2/x86_64. With sudo yum update takes me ...
10
votes
3answers
35k views

CentOS 7 update using “yum update” does not work

I have a VM running CentOS 7 that I have not used for a long time. Today I launched it and tried to update the CentOS system to the latest version using yum update, but I got a lot of errors: Loaded ...
2
votes
1answer
29 views

Stopping brute force attempts

"postfix/smtpd[28164]: warning: unknown[45.227.253.210]: SASL PLAIN authentication failed: authentication failure" Normally I'd use fail2ban however it seems that under the openvz container fail2ban ...
0
votes
1answer
1k views

Creating arbitrary directory in kickstart before %post

One of the non-OS packages that I need to install via kickstart config requires a pre-existing (non-standard) directory, is there a way to create arbitrary directory before %post in kickstart? ...
0
votes
0answers
13 views

XRDP Crashing on login on CentOS 7

I was happily using xrdp on my CentOS 7 vps, but I touched something and I broke it. I was trying to change the system language via terminal last time I've been able to access my DE. Here are ...
1
vote
0answers
14 views

systemd service start after network online and time synced

I made a system service for a python script, I want it starts on boot after the server is online and the time is synced correctly. What do I have to add in .service file? I tried in [Unit] with ...
0
votes
0answers
3 views

I broke xrpd on centos 7 while messing around language settings

I was trying to change my system language on my centos 7 vps. I tried following this guide : link to guide I put in this command and nothing happened. localectl LANG=it_IT.UTF-8 So I logged out by ...
1
vote
1answer
1k views

Number of open file descriptors won't change when I set them in CentOS 6.3?

uname -a Linux lab.testing.com 2.6.18-164.el5 #1 SMP Thu Sep 3 03:33:56 EDT 2009 i686 i686 i386 GNU/Linux ulimit -Hn 1024 ulimit -Sn 1024 ulimit -n 1024 I opened /etc/sysctl.conf in vi and added ...
1
vote
2answers
8k views

Install Samba 4.4 on Centos 6

I am running Centos 6.8 and would like to install a higher version of Samba. I am already running Samba, but I think I need some of the newer features (like Spotlight support). Normally I try to ...
0
votes
0answers
20 views

Why is my static IP configuration not working in CentOS 7?

I installed a fresh version of Minimal CentOS 7. I can ping google.com when it is set to dhcp. When I run nmcli -p dev I receive: enp2s0f0 ethernet connected enp2s0f0 lo loopback unmanaged -- ...
41
votes
5answers
363k views

How to create a FTP user with specific /dir/ access only on a Centos / linux installation

So I'm on a VPS - CentOS Linux installation. I have vsFTPd on the server. I currently have SFTP access to the server via my root user, but am now trying to create a new user with FTP access to a ...
0
votes
0answers
19 views

How can I install postfix-pcre on CentOS 7

For Ubuntu I can install this by running sudo apt install postfix-pcre How am I able to install this for CentOS 7?
2
votes
1answer
3k views

How to remove password prompt when executing su <user> command in CentOS 7?

I have two users in my CentOS system User1 and User2. I am logged in as root user and trying to add User1 to sudoer list using visudo. I have entered the following line at the end of the file User1 ...
0
votes
0answers
19 views

Centos7 Delete .htacess file [closed]

i have created a .htacess file for my site and now im getting a 500 error on the site, how can i delete the file to start again. Thanks in advance
0
votes
0answers
16 views

Error within /var/log/messages for new SSD

'm getting this message on a new server build running CentOS 7 and am confused by it. This was a brand new 500gb Crucial SSD drive I bought and installed only a couple months ago. I get this every ...
0
votes
1answer
18 views

Centos7 libvirt permission issues qcow2 images

This is all on a clean install of Centos7. Installed from minimal image, updated and then the following guide followed. Following this guide: https://www.cyberciti.biz/faq/how-to-install-kvm-on-...
0
votes
1answer
26 views

Is it possible to give alias name to ip address with port number in CentOS 7

I have one question regarding given alias to ip address with port number. For example I am executing jenkins in my local system in port number 8080 and nexus in port number 8081. I will accessing ...
5
votes
2answers
18k views

How to install/setup mutt with Gmail on CentOS and Ubuntu?

How to setup the email client Mutt to send, receive and read email under CentOS and Ubuntu using a Gmail account as a relay
0
votes
0answers
19 views

CentOS virtual console is displaying blank with a blinking cursor

I have been working on this issue for a while now and cannot seem to get anything working. Overview: I have the latest CentOS 7 1810 build (within VMPlayer) Building an application to run on CentOS ...
1
vote
1answer
4k views

Host-only network adapter (enp0s8) not starting on boot in CentOS7

I've installed CentOS7 in virtual box. I've 2 network cards - one host-only (vboxnet0) adapter enp0s8 (which I want to be static) and the other the NAT adapter enp0s3. The host-only adapter never ...
0
votes
0answers
6 views

how to control the mousekey on gnome3 in centos7

After I recently switched to the mouse key, the cursor speed is too slow. There is no xkbset command. How do you do that?
1
vote
2answers
134 views

Install custom perl modules

I have build an RPM from a proprietary software collection in a CentOS 7 environment but the build process required executing some Perl modules (.pm files) found within the source itself. When I ...
-1
votes
0answers
5 views

Centos 7 PHPVBOX [closed]

I am getting alot of errors when I try to set up a phpvbox from my home server running centos 7. Are there any good tutorial to watch about the set up process.
1
vote
1answer
7k views

CentOS 7 - No packages marked for update

With yum update I'm not able to update packages. I have tried every possible solution which is provided like yum clean, yum repolist, etc but none of this seems to solve this problem. sudo yum update ...