Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

4
votes
6answers
98k views

Yum update error: Could not retrieve mirrorlist

I'm trying to do yum update. This is the error I'm getting. sudo yum update Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile Could not retrieve mirrorlist http://mirrorlist....
0
votes
1answer
880 views

How to Install or Upgrade to Kernel 4.19 in CentOS 6

# lsb_release -a LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch Distributor ID: CentOS ...
3
votes
1answer
2k views

DNSMasq - Different Responses for Specific MAC Addresses

Anyone know of a way for me to setup a separate host file, or send different responses, from DNSMasq to specific PCs on my network? Specifically, if I wanted to block youtube, or facebook, or etc. ...
15
votes
4answers
21k views

How to install man pages on centos?

Note: This applies to Centos 7. If you are looking for a Debian answer, see this question. Those answers will not be duplicated here. After an install of centos 7, I can't access man pages : # man ...
4
votes
4answers
14k views

Avoid overwriting of hostname by transient hostname at reboot

My server is CentOS 7.1. After reboot the hostname is overwritten by the transient hostname (mail) and I can't find a way to avoid that. Maybe AutoDNS and the MX record mail causes that? /etc/...
1
vote
0answers
32 views

What is difference between `` and $() for command-substitution in bash scripting? [duplicate]

I'm new to Linux and StackExchange. My English is pretty bad, and I'm sorry for mistakes. What is the differences between `` and $()? Does it matter what to use and when? I'll be grateful for ...
18
votes
9answers
52k views

Empty kernel directory but kernel-headers are installed

Host - Windows 7 Guest - CentOS I am trying to install kernel-headers using yum since during the installation of vmware-tools I get a message asking for the path to the kernel header files for the 3....
0
votes
2answers
2k views

Unable to delete “Wired connection 1” using ncmli

Log: NAME UUID TYPE DEVICE Wired connection 1 d1b2ff35-4d72-3bd5-a8e2-d3d9fefce205 802-3-ethernet eth2 admin 6186afb2-7253-...
1
vote
1answer
2k views

need to configure a static ip using nmcli but can't see how

I'm trying to create a static ip using nmcli in CentOS 6.9 but couldn't do so, as the man nmcli is not showing enough options like the online examples. To make you all to understand I'll paste the man ...
2
votes
1answer
1k views

How can I restore the pam file system-auth?

In my Centos 7 machine, and as an inexplicable mistake, I ran: rm /etc/pam.d/system-auth Now, my system won't boot up, the network does not work, and in a few words, the system is trashed. I ...
0
votes
1answer
934 views

Missing /lib64/libstdc++.so.6: version `CXXABI_1.3.8' and CXXABI_1.3.9' on Centos 7?

I'm trying to run a certain program and I get the errors /lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by ./software1_runtime) /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not ...
5
votes
2answers
8k 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 ...
0
votes
1answer
36 views

Policy routing with 2 NICs on the same network seems to not do anything

As noted by dirkt, I'm missing information: This is the continuation of this question, but to summarize, I'm trying to receive a lot of multicast traffic, more than one interface can handle, so in ...
-2
votes
2answers
55 views

What is the job of the following shell script?

#!/bin/bash echo " Enter the name of your directory. You should enter the absolute path to the directory if it is not found in the current directory!" read location echo $location filecount=$( find $...
0
votes
1answer
1k views

LDAP server setup with GUI on CentOS7

I have, in the past, set up an LDAP server using OpenSuSE (13.2), which worked well since there was a YaST module which allowed a GUI set-up. Now I have the problem that I must set up an OpenLDAP ...
30
votes
2answers
75k views

How to change systemd service timeout value?

In the company I am working now there is a legacy service and its init script is using old SysvInit, but is running over systemd (CentOS 7). Because there's a lot of computation, this service takes ...
0
votes
2answers
68 views

Update ntp to 4.2.8p13 on CentOS

I have NTP 4.2.6p5 installed on my CentOS 7.5. Due to "Network Time Protocol Multiple Security Vulnerabilities" vulnerability I have to upgrade it to latest NTP 4.2.8p13 version. Now the problem is, ...
0
votes
1answer
20 views

Email on failed SSH login attempt?

I was wondering if it is possible to set it up in such a way that on a failed SSH login centos will send me an email? And of course if the computer is not connected to the internet when the attempt ...
1
vote
1answer
36 views

Upgraded Python, and now I can't run “yum upgrade”

I have upgraded my system (CentOS 7) to Python 3.7 and it seems that has broken a ton of things. In particular, I can't perform a yum upgrade ... [myuser@server ~]$ sudo yum upgrade Loaded plugins: ...
0
votes
1answer
12 views

Using different node versions on centos 6

I'm attempting to run different node js versions on my centos 6. When I run node -v I get v10.16.0 I then run n And I can select node/8.16.0 ο node/10.16.0 node/11.0.0 I select node/8/...
2
votes
3answers
14k views

Install libmysqlclient on CentOs 7

I am trying to build mysql-shell 1.0.11 from src. RPMs are not an option when I am installing. One of the requirements is libmysqlclient 5.7+. I have installed mysql++, mysql++-devel, mysql-...
0
votes
1answer
2k views

CentOS 7 GNOME lock screen although all settings say otherwise

My CentOS 7.5 VM pops up a blank screen after that is left unused for some time (~15 minutes). When the mouse is moved, it shows a clock in the middle of the screen and requests a password to unlock. ...
1
vote
3answers
34 views

“su doesn’t record the commands executed as root”

I am currently reading book Unix and Linux system administration - Evi Nemeth. On page 70 under the topic "su: substitute user identity" there is a statement that says "su doesn’t record the commands ...
0
votes
1answer
893 views

Testing stunnel - tcpdump?

I have the following stunnel config on the server: chroot = /var/run/stunnel setuid = nobody setgid = nobody pid = /stunnel.pid cert = /etc/stunnel/stunnel.pem key = /etc/stunnel/stunnel.pem client ...
-4
votes
0answers
34 views

Show users and group names on the same line [on hold]

A list of the other users accounts in the system (each one in separate line), at least you should display the user ID, username the groups he / she belongs to in the system getent group || awd ...
0
votes
2answers
1k views

Errno 5 Input/output error when running yum check-update

I tried to update a server over SSH, but when I ran yum check-update I got an error: [error 5] Input/output error I think this means the RPM libraries may be damaged or corrupt, but I'm not sure ...
3
votes
1answer
43 views

Resume Bash Script After Reboot

I have a bash script that changes some configuration in OS and database and it needs reboot then other commands are needed to be run. something like this: newvalue1= ip= . . some commands . ....
16
votes
3answers
33k views

CentOS - killall command (to kill all processes with names matching a given pattern)

I recently started using CentOS. I went to try to use the killall utility but found it missing, with me receiving a command not found message when trying to use it. How can I get this functionality ...
2
votes
1answer
1k views

Protected multilib versions: openssl

I'm running on Centos 6.2 x86_64 Trying to install ruby 2.1.2 ---> Package libselinux-devel.x86_64 0:2.0.94-5.2.el6 will be installed --> Processing Dependency: libsepol-devel >= 2.0.32-1 ...
3
votes
4answers
30k views

Don't work yum update (yum doesn't have enough cached data to continue)

I have installed things successful via yum on centos 7. Then I install epel repo (yum install epel-release ) and always give me followings error and after that I couldn't install anything One of ...
1
vote
3answers
1k 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
1answer
1k views

502 Bad Gateway

I ran the following iptables commands to start pptp server: iptables -A INPUT -i venet0 -p tcp --dport 1723 -j ACCEPT iptables -A INPUT -i venet0 -p gre -j ACCEPT iptables -A FORWARD -i ppp0 -o ...
1
vote
1answer
22 views

/usr/bin/node no such file or directory

I currently broke my node setup by attempting to upgrade it following a tutorial. I added a symlink and I was told to just reinstall node on here since the symlink can't be undone. I went ahead ...
0
votes
0answers
11 views

Undo a binary link for a node.js upgrade [closed]

I recently attempted to upgrade node following some tutorial and I ran this to "setup binary link". Everything worked fine up to this point: sudo ln -sf /usr/local/n/versions/node/11.8.0/bin/node /...
0
votes
0answers
46 views

CentOS7 OpenSSH won't start with machine and hangs when ran via systemctl

The SSHD service is enabled on my VM, however it does not start when the machine boots. Further, if I run systemctl start sshd it simply hangs. If I manually run /usr/sbin/sshd, it starts no problem ...
0
votes
2answers
25 views

Centos OS command to unlock domain account

I have CentoOS servers that are on my MS domain. I had another admin login to one with the wrong password 3 times. We have unlocked him on the domain but he is still locked out on that server. What ...
1
vote
1answer
48 views

What is the package release process at CentOS

What's the process if a security patch is available for a package on CentOS? I'm waiting for bind-9.9.4-74 Since 5 days, there are this commit 'import bind-9.9.4-74.el7_6.1' on https://git.centos....
0
votes
1answer
35 views

How to turn on syntax highlighting for vi/vim?

Running a minimal ISO of CentOS_7 I've tried writing a .sh script using vi but can't get syntax highlighting to work. Pressing escape and typing :syntax on as shown in articles like this one are not ...
1
vote
1answer
1k views

VPS: How to forward traffic to devices from public IP

My goal is to set up a public IP for a Android Smartphone which is running an "IP Cam" software. The interface can be accessed in local network on (example) 192.168.0.2:8080, but it has no public IP, ...
0
votes
0answers
7 views

XRDP single session per user

I would love to have a Linux CentOS 7.6 system here in the office where all users connect to and work on. But... there is a catch. Default XRDP sessions work nicely in a way that from a single machine ...
1
vote
1answer
18 views

PXE boot fails With “Could not locate boot server.”

My target machine with PXE enabled receives a lease from dnsmasq and prints a message UD: 192.168.10.123 which is the address of my dnsmasq/tftp server but then fails to get any further with "Could ...
0
votes
0answers
28 views

Empty /home/user folder for NEW users [duplicate]

I am new on Linux so I don't know if this is a normal behavior or not. I am reading a bit about how to manage users. The thing is that when I create a new user using the "adduser" command it creates ...
0
votes
2answers
2k views

Change screen resolution of Xenserver Console for a CentOS VM

I need to increase screen resolution to 1024x800 for my XEN console. I tried to place vga=791 at the end of kernel line the file /boot/grub/grub.conf but it seems that most of the boot arguments ...
1
vote
2answers
1k views

Centos 7 - Recover mysql db from data files .frm and .ibd

I have migrated my operating system from Windows to Centos 7 without getting backup of mysql through mysqldump. Now I have mysql data files .frm and .ibd . I want to migrate them How can I migrate ...
0
votes
2answers
1k views

Trying to install CentOS 7 Server with manual partitioning but GUI is very different from CentOS 6

When I installed on CentOS 6, to get a "headless" or command-line only server with the manual partioning I wanted I went through the below steps: Choose "Install with basic video driver" Choose type ...
3
votes
2answers
6k views

How to make IPv6 static routes persistent on CentOS?

Static routes are forgotten once the network service is restarted. However, IPv4 static routes can be made persistent by adding them to /etc/sysconfig/static_routes. This file is read by the network ...
0
votes
1answer
2k views

how to increase cache memory in centos

I have been facing a insuffient space in "/var/cache/yum" directory. due to this my gui of centos crashes.i want to increase the size of cache directory. also want to know the actual size of cache ...
0
votes
1answer
2k views

selinux blocking vsftpd directory listing

I am trying to get a better understanding of selinux and configuring a local ftp repository on Centos7. I installed vsftpd on my host. I created a repository on my host: /var/ftp/pub/centos7 EFI ...
2
votes
5answers
2k views

Centos 7 and Windows 10 Dual Boot Grub Not Saving Last Choice

I have a dual boot system with CentOS 7 and Win10. My install was totally vanilla (CentOS then Win10) and went fine. Everything is great except that grub does not appear to save my "last" choice ...
0
votes
0answers
6 views

centos: run a single site on startup(browser-GUI) - without Desktop environment

what i want is when i start my centos 7 server(minimal) automatically to show to user this site youtube.com and user can just browse and not to do anything else. So there will be no desktop just ...