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.

Filter by
Sorted by
Tagged with
0
votes
0answers
2 views

mariadb systemctl stop waits for long time and mysql process running after command exit

I have Mariadb 10.3 running on CentOS Linux release 8.2.2004 (Core) OS. During boot time mariadb starts fine. but when I do the systemctl stop mariadb it hangs systemd file # systemctl cat mariadb|...
0
votes
1answer
171 views

How to run reposync with a different releaseversion value

I want to make a CentOS mirror with different versions of CentOS? How do I do that with reposync. I can't use rsync.
74
votes
2answers
343k 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 ...
3
votes
2answers
6k views

What exactly is a file offset in lsof output?

I was using lsof to track down deleted files that were still taking up space and I realized that I wasn't quite sure what an offset is with respect to a file. lsof's man page was less than helpful in ...
0
votes
0answers
22 views

How to check if the set variable has a file assigned to it with the help of if condition

#!/bin/csh -fx set my_path = "/cd/home/dir" cd $my_path set path1 = `ls -1 | grep "abc" | head -1` set path2 = `ls -1 | grep "def" | head -1` 1)#how to check if path1 ...
0
votes
2answers
1k 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 ...
1
vote
1answer
4k views

Black Screen after booting CentOS 7 on VirtualBox

We have experienced a "black screen of death" after booting a CentOS virtual machine running on an Oracle VirtualBox. The screen is completely black, there is no mouse pointer. This seems to be ...
1
vote
3answers
1k views

Yum install php v5.4 packages while I have installed php 7

I have installed PHP version 7 on my centOs. Now I got an error says: undefined function mb_internal_encoding() So I decided to install php-mbstring (using yum install php-mbstring) but I face the ...
0
votes
1answer
12 views

mdadm - root raid1 partition wont boot ( device not found )

I had some soft raid issues, so i booted with SystemRescueCD and recreated / raid mirror ( md2 ) with "--create" option ( maybe that was a failure moment ). So on RescueCD boot all raid ...
0
votes
0answers
17 views

Problems dual booting - W2019 Server, CentOS, rufus, Dell Studio 1557

I have an oldish Dell Studio 1557 laptop (decent enough - 1TB Samsung SSD, 8GB RAM) on which I've installed Windows Server 2019 Standard from an .iso. I only used about 350GB for the Windows install. ...
0
votes
1answer
5 views

CentOS, what repos can we use, and why would we use them?

When I install CentOS, it is setup to point to the CentOS repo. Many things require the EPEL repo so I connect to that too. However, what repos are out there that I do not know about that might host ...
1
vote
2answers
340 views

KVM/QEMU hosts best-practice distro selection (and package)

If I want to run a modern production virtualizer I would expect to turn to RHEL/CentOS as RHEL is the main maintainer for most of the virtualizer "components". But the newest stable version ...
0
votes
0answers
16 views

CentOS 7 touchpad gestures for Two Finger Scrolling and etc

I have CentOS 7 and GNOME 3 laptop environment for the development. I want my touchpad have touchpad gestures like Two Finger Scrolling(vertical and horizontal) or edge scrolling and double tap. How ...
2
votes
1answer
647 views

Salt-master install CentOS 7 — can't find packages

I am trying to install salt-master on a new CentOS 7 server. When I run the yum install for salt-master, I get the below errors and the installation doesn't work. I seem to get the same errors if I ...
0
votes
0answers
7 views

Getting the following error “Error populating transaction after 10 anaconda retries…” in CentOS 7

I have downloaded CentOS 7 and trying to install it on my desktop and getting this error while installation. The following error occurred while installing. This is fatal error and installation will ...
0
votes
0answers
111 views

HTTP request sent, awaiting response… 400 Bad Request on using wget for downloading dropbox files in CentOS

The file is around 447MB. I cannot download it using the following command in CentOS. How can I download https://www.dropbox.com/sh/6yd1ygtyc3yd981/AABVeEqzC08YQv4UZk7lNHvya?dl=0&preview=CIFAR-FS....
0
votes
0answers
20 views

Directory permission issue on linux

I have a directory on my linux server. ls: cannot access file: Permission denied ls: cannot access res: Permission denied total 20 d????????? ? ? ? ? ? file drwx------ 2 ...
0
votes
1answer
19 views

How to debootstrap Centos?

Is there a way to create a Centos system inside a chroot using something similar to debootstrap for Debian/Ubuntu? I’d need it for a container project where Docker is NOT a solution(I’d use systemd ...
0
votes
0answers
11 views

Why can't my VirtualBox CentOS communicate with Network/Internet

I've set up CentOS-8.2.2004-x86_64-minimal.iso in VirtualBox 6.0.22. When creating the VM I chose: Network-->Adapter 1-->Attached to: Bridged Adapter It's my understanding that with this setting ...
1
vote
0answers
34 views

Linux source routing with nexthop pointing toward Docker

I have a similar question linked over to ServerFault, but after further working on the problem, I believe I've refined the problem to a Linux route table question. Background: AWS released their ...
1
vote
1answer
51 views

Apache environment variable

Im trying to add some environment variables to apache centos 8. Usually those are simply added to /etc/sysconfig/httpd on previous centos versions (mainly centos 7); but this directory is not present ...
1
vote
1answer
2k views

CentOS 7 i386 Netinstall error: 'Error setting up base repository"

I downloaded the 32-bit CentOS 7 Netinstall version from http://mirror.centos.org/altarch/7/isos/i386/, and used the http://mirror.centos.org/altarch/7/os/i386/ as the repository during installation ...
0
votes
1answer
16 views

Example of customisations with rpmrc?

Can someone please share examples of when and/or where the rpmrc files under the path (/etc/rpmrc and ~/.rpmrc) are used by a system administrator ? Evident from the question but stating it for ...
0
votes
1answer
17 views

dnf refuse to install buildsys-build-rpmfusion-kerneldevpkgs-current

dnf complain that kernel-devel version does not match requirement: # dnf install buildsys-build-rpmfusion-kerneldevpkgs-current Error: Problem: conflicting requests - nothing provides kernel-devel-...
10
votes
9answers
68k views

No IP address on VMware running centos 7

I just now installed Cent OS 7 on my VMware 8 and I am not able to connect it to a network. I checked the VM network and its mapped to the physical NIC. The same setting work like charm on my CentOS ...
0
votes
2answers
23 views

How do I add enable eth0 on CentOS8?

I'm trying to learn Linux and DevOps. I've been going through the following tutorial: https://www.youtube.com/watch?v=Wvf0mBNGjXY I'm currently stuck at the 1:10:00 of the video. I'm trying to run the ...
1
vote
1answer
31 views

using CentOS7 yum command not working in root

I get this when I use yum: $ yum -y update -bash: /usr/bin/yum: /usr/bin/python: bad interpreter: No such file or directory So I followed an online answer from here: $ sudo rm -rf /usr/bin/python $ ...
0
votes
0answers
4 views

In search of the Activities Overview & Quick Search

I'm using RDP to log into Linux from a Win10 box. I would like to display the Gnome Activities Window so I can use the quick search. However, when using RDP, I can't figure out how to get the ...
2
votes
2answers
6k views

realm command doesn't work correctly when used in script (CentOS 7)

I try to automate the authentication on CentOS 7 Hosts over my AD with the realm commands. It totally works when I execute the following commands by myself. $ yum -y install realmd oddjob oddjob-...
1
vote
1answer
3k views

How to change FTP home directory in Centos 6

I have created one Linux CentOS 6 instance in Amazon EC2 and installed cPanel on it and started running my websites there. The issue I face was when I try to FTP to the instance with the following ...
0
votes
1answer
1k views

sysctl: setting key “net.ipv4.ip_forward”: Invalid argument

This is a vanilla install. I just did a yum update to Centos 7.3 and install KvM and rebooted. When following a guide and setting up IP Forwarding like I always have done I get the following: sysctl: ...
0
votes
2answers
1k views

No space on the boot disk to update kernel

I have installed centos 7 on vmware and seem to have ran out of space on the boot drive. Is there a way to add more space without formatting the disk? [root@centos7 /]# df -h /dev/sda1 Filesystem ...
10
votes
5answers
71k views

How to set JAVA_HOME correctly on CentOS?

I am trying to set JAVA_HOME so that I can install Apache Solr with the help of this tutorial. I am connected to my server using ssh with root user To allow the running sh script to install Apache ...
2
votes
2answers
2k views

What regulates user privileges for the `mount` command?

My installation of CentOS 6.5 has stopped auto-mounting DVDs in KDE (default) X Window desktop environment (e.g. with all the KDE helper functions). Trying to troubleshoot this unexpected change in DE ...
1
vote
1answer
1k views

How to set default system font in CentOS?

I want to change system font used by applications globally (or per user) in CentOS. How to do that? Perhaps I should modify ~/.config/fontconfig/fonts.conf file? I would like to set Tahoma font for ...
17
votes
5answers
26k views

authentication is required to create a color profile

I am running a fresh install of centos 7 gnome so I could rdp from windows I followed the following instructions but when I connect I get an additional login that says authentication is required to ...
0
votes
1answer
1k views

PostgreSQL Remote Connection debugging

I'm having issues connecting to my PostgreSQL database from an online source. PostgreSQL seems to be setup up fine it is running on it's default port 5432 and the postgresql.conf has the following ...
0
votes
1answer
65 views

sudo nano /etc/network/interfaces opening a blank file

I'm trying to open a file in a CENTOS VM using sudo nano /etc/network/interfaces but all I get is a blank file. What am I missing? I'm running libselinux-2.5-15.el7.x86_64. I tried other files as well ...
16
votes
4answers
19k views

Bash completion is very incomplete on centos 7

I have installed bash completion using yum install --enablerepo=epel bash-completion. While it works for some basic commands (git & yum), I am missing a large part of the completers. My /etc/...
0
votes
1answer
40 views

Centos 8 update repo question

Sorry if this is a very basic question, but I have never really needed to delve into yum/dnf very deeply. History: I re-built a server which was running Centos 7 when the updates for that stopped. I ...
0
votes
1answer
85 views

systemd service won't start because of unconfined_u context?

So I'm trying to start a service (let's call it the "kite agent" and it's a binary executable that runs as part of a tracing service) with systemd via ansible deployment on CentOS Linux ...
0
votes
2answers
1k views

Enable Scriptlet Does Not Exist

I'm trying to run the below but it keeps coming back with this error warning: /opt/rh/devtoolset-4//enable scriptlet does not exist!. yum install epel-release yum install centos-release-scl cmake3 ...
0
votes
2answers
2k 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 ...
1
vote
1answer
2k views

NFS server not exporting host present in /etc/exports

I have a NFS server running on CentOS 7.2 and I have a problem with one (path/client host) declared in my /etc/exports that should be exported and that is not... My /etc/exports file : /mnt/data/ ...
0
votes
0answers
15 views

Cannot ping/ssh single linux host on another subnet (via vpn)

New to all of this, please go easy on me. Setup a new pfsense on bare hardware, running openvpn. At the moment, only have the main subnet, and the one for vpn users (automatically configured with ...
0
votes
1answer
22 views

Displaying umask in symbolic and octal form, at the same time?

I'm trying to display the umask in both octal and symbolic at the same time. The command I'm using is umask -S -O, but it doesn't work. I would appreciate any help.
2
votes
1answer
1k views

devtoolset-4 was removed from centos-release-scl?

I need to install gcc 4.9 on CentOS 6. And I usually do the following: yum install -y centos-release-scl yum install -y devtoolset-3-gcc-c++ make cmake re2c libuuid-devel libxml2-devel zlib-devel ...
0
votes
2answers
2k views

How can I restrict ssh user to particular directory with write permission?

I use the following configuration and it worked successfully for restricting the ssh user to a particular folder but when I change the permission of the group to read+write, the user can't login to ...
-1
votes
0answers
46 views

How do I write a shell script to delete the lines containing a word if it appears between specific position (character)?

I want to delete lines, with specific condition using bash script.. tried : sed '/(string)/d' (Filename) but it is not enough, I need to search if a string is in specific range (first n character) ...
-4
votes
0answers
29 views

How can I search into first n characters of every single line of a file Centos7? [closed]

Thanks to you all for your helpful information I really need help.. Q1: Write a shell script to delete the lines - in a given file - containing a word “le” if it appears between the 3th and 10th ...

1
2 3 4 5
149