The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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
35 views

Running crontab by a nologin user [duplicate]

I want to be able to have crontab run by a system or nologin user in centos 7.6 I have setup a user with the -r option: useradd -r my_nologin and have created a crontab for them: crontab -u ...
1
vote
1answer
43 views

sed command not working on Centos in java code

I am running a java code which runs an sed command on a .txt file to remove BOM on Centos. I get the following Error: sed: -e expression #1, char 1: unknown command: `'' Java Code: String[]...
1
vote
0answers
22 views

Mailx command attachment style is different between platforms

On a virtual ubuntu box the mailx command has -a refers to the content headers and -f adds attachments. Whereas on my school's virtual machines (I think they run centOS) -a adds attachments. I tried ...
2
votes
0answers
114 views

How to use POSTROUTING / SNAT with firewalld?

I try to set up SNAT with firewalld on my CentOS-7-Router like described here, with additions from Karl Rupps explanation, but I end up like Eric. I also read some other documentation, but I am not ...
0
votes
1answer
30 views

Find if “consistent network device naming” is available

I have a piece of custom software that needs to know the name of a certain network interface on multiple systems (two of them to be more exactly) on which I cannot change anything like disabling the "...
1
vote
2answers
45 views

Creating a hardware independant image possible?

I swapped from Windows Community to Linux Community and am struggling a bit with images. You can on Windows install a system, then strip it from all saved hardware details and create an image. This ...
0
votes
0answers
60 views

BIOS boot partition on CentOS

I am in the process of standing up a new server running CentOS 7 and am running into a number of questions on the proper configuration of the "biosboot" partition(s). My system is an older Dell ...
0
votes
1answer
44 views

Yum fails to find dependencies that seem to be installed already

I'm unable to "yum install wireshark-gnome" or wireshark on a Centos 7 box. running from the SU prompt, I get this error at the end: --> Running transaction check ---> Package wireshark.x86_64 ...
0
votes
1answer
19 views

Package Installation through script

I do understand the following script is installing the packages but what I don't understand is what packages: for package in ${d[@]}; do rpm -ivh --quiet ${!package} >/dev/null 2>&1 What ...
0
votes
1answer
73 views

How to mount host directory from Centos 7 guest in KVM on Fedora 30 host?

I am attempting to share a directory on my host to a guest. Host: Fedora 30 Guest: Centos 7 Using Virt-manager I added a filesystem Type: mount Driver: Default Mode: Mapped Source Path: /KVMshare (...
0
votes
0answers
15 views

CentOS7 + GNOME on using Super + L locking also suspends system

Following is my system configuration CentOS Linux release 7.6.1810 (Core) GNOME Shell 3.28.3 Following settings are enabled Settings -> Power -> Power Saving -> Blank screen: Never Settings -> ...
1
vote
1answer
56 views

Trying to remove OpenLDAP: error trying to remove systemd which is protected

After yum remove openldap I get two errors: error trying to remove "systemd" which is protected and error trying to remove "yum" which is protected On the first, I found this: https://access....
1
vote
0answers
28 views

I would like to install pip packages on a Linux CentOS without internet access

I have a Linux CentOS without internet access and I need to install some python packages. My pc runs Windows 8.1 Can I download the .whl files and send them with WinSCP ? From where can I download ...
0
votes
1answer
50 views

Trying to mount shared Windows 10 folder on virtual machine vmware Linux Centos and it gives me: mount error(13): Permision denied

I am trying to mount a shared folder from windows 10 to a vmware virtual machine linux centos with this command : mount -t cifs //ip/folder /mnt/win -o username=xxx,password=xxx,file_mode=0644,...
1
vote
1answer
43 views

/boot running out of space when updating. What now?

I just ran into a serious problem I need to update offline CentOS boxes with fix partition sizes. When updating the process terminates with an error that /boot need 32mb more in order to update. It ...
-2
votes
2answers
39 views

Release Version of CentOS ISO

I have a CentOS.iso, how can I get its $releasever?
0
votes
2answers
57 views

Way to execute a shell script by event

Is there a way to trigger a shell script by event not by time (cron)? For example, when the disk is full it will run a shell script to remove old logs. Like in windows, task scheduler triggered on an ...
0
votes
0answers
38 views

Installing chromium on centos 6

Is there still a way to install chromium on centos 6? The repo in https://people.centos.org/hughesjr/ and http://install.linux.ncsu.edu/pub/yum/itecs/public/ to install chromium doesn't exist anymore. ...
1
vote
0answers
62 views

Access denied to /proc/mounts

We have centos 6.9 on a virtual machine, sometimes some process(db2sysc) has intermittent problems with access to /proc/mounts and we got the following error in the log of that process FUNCTION: DB2 ...
1
vote
1answer
30 views

dnsmasq as dhcp server configuration for Ethernet

I'm trying to configure dnsmasq as dhcp server on CentOS 7 minimal installation. My network consists of wi-fi AP, Ethernet, Bluetooth PAN and bridge called common-bridge which serves as master for ...
1
vote
1answer
20 views

How do I install xbindkeys on enterprise linux 6? (Centos/RHEL/OEL 6)

Is there a way to install xbindkeys on rhel 6 based distro? I want to bind keys from my mouse button to run a script.
0
votes
0answers
16 views

How to set time scheduler for keeping cache in yum config?

I'm using centos 7 and I change the value of the keep cache in /etc/yum.conf to 1 for keeping the rpm file. but now I want to set time scheduler for keeping this rpm file. for example, I want to keep ...
0
votes
0answers
19 views

What does this dracut log output mean? Why is there an infinite loop?

I'm fighting a server with Centos 7 that doesn't start. I've no idea why. I found that I can pass the rd.debug parameter to the kernel and it logs a LOT of dracut initialization messages. 1.6MB in ...
1
vote
0answers
18 views

Something is overwriting the ZONE setting in CentOS 7 network configuration files

I have multi-homed CentOS 7 servers, and I configure their NICs by editing the ifcfg-* files in /etc/sysconfig/network-scripts (automatically with Ansible). In particular, that's where I specify the ...
1
vote
1answer
15 views

iptables service is not recognized

I have a CentOS6 image deployed in Azure. This is an image available in Azure and I used this image to deploy a VM in Azure. I'm trying to allow port 5901 in iptables but for some reason, I get the ...
0
votes
0answers
11 views

CentOS7 - assign nouveau driver to graphics card

I have a CentOS7 linux which is used as compute server. It has additionally to the onboard graphics card a few NVIDIA devices. The NVIDIA cards are seemingly properly installed and working. The ...
0
votes
1answer
43 views

Running script from different user

I want to run a script from a different user without logging into it. I don't have permission to edit sudoers file nor do I have root access.
0
votes
0answers
19 views

Edit a service created on Centos

I am trying to debug a service created on a unix server that I was told should be running and will just require a restart when there is an issue by using the following command: service controller-...
1
vote
0answers
16 views

CentOS 7 : serial (COM7) sessions are maintained even after closing the terminal

On my Linux (CentOS7), I am running a serial connection to access the Bash shell. After rebooting, my system asks me a prompt to login, but once the user authenticates itself and closes the session ...
0
votes
0answers
35 views

How can I find my Git credential helper / manager?

I'm using my github account with ssh key on my CentOS 7 desktop. So, I don't need to input password for git commands such as git clone generally. But, I need to clone a private git repository of ...
0
votes
0answers
15 views

after installing kde gnome is still the default desktop

I am using centos 7.6. It installed gnome by default. I have an application that the display work better with KDE. I installed KDE rebooted and i still get the gnome desktop. How do i change it to run ...
1
vote
0answers
22 views

Set path for non shell user

I have installed Adopt OpenJDK version of Java. I set it up so all users will have JAVA_HOME set and that the bin folder for Java is in the PATH. However the software I installed afterwards that ...
0
votes
1answer
27 views

Many Send-Q have packets TCP connections, is this abnormality? what caused this?

The 125.193.242.25 is a CDN node, and when I analyze the TCP connect, there shows below information: [root@hkk10 ~]# netstat -na Active Internet connections (servers and established) Proto Recv-Q ...
1
vote
1answer
29 views

How to use rsync command on CentOS through specific port?

I'm currently learning about linux server administration and I'm using CentOS but I'm stuck. So far my command goes like this rsync -avz backup/ user@192.168.1.20:Desktop/backup/. I have established ...
1
vote
0answers
48 views

sudo root cannot find executable on path

I am on CentOS 7.5 and installing OpenJDK 11 from Adopt OpenJDK. It doesn't have an installer package so I am manually putting it in /usr/share. I then create the file /etc/profile.d/java.sh to set up ...
0
votes
0answers
30 views

Cannot create xfs filesystem on second partition created on a hard drive

I am running CentOS 7. I have a hard drive, /dev/sdc. I have created the first partition /dev/sdc1 (by using fdisk) where I mounted an ext4 filesystem. Everything is OK. Then I have created a second ...
1
vote
0answers
36 views

Set systemd timer to an odd and specific number of days

I'm using systemd.timers on CentOS 7 server and have a timer set to automatically renew Certbot-managed Let's Encrypt website certificate. autorenewal.service: [Unit] Description=certbot certificate ...
0
votes
0answers
17 views

CentOS 7 only detects certain Wifi Networks?

I recently overwrote a Ubuntu Partition on my HP Pavillion 15 Laptop and Installed CentOS 7. It detects my wireless adapter and is able to detect a certain Wifi. But it isn't able to detect my Wifi. ...
1
vote
0answers
44 views

Can I change root's domain name in emails?

I already changed my root alias to my email so that whenever a email is sent to root, i get a copy of that. Which is perfectly working fine. Now, when i receive an email, the From address is : root @ ...
2
votes
0answers
23 views

bash multiline history with lithist option broken

i used to enable lithist option, which make bash history store in multiline, but one day, the lithist option not work. enabling lithist mean you can store multiline in one history entry. if you type ...
2
votes
2answers
80 views

CentOS 6 ran out of space, need to reclaim it [closed]

Having an issue here with CentOS 6 that shows all of the space used up, but I can't tell where the space went. Seemingly I am using up 100%, according to df -h Filesystem Size ...
1
vote
2answers
92 views

yum cannot accessing repos

Most yum tasks that I try to on a CentOS 7 (release 7.6.1810) appear to stall while trying to access repos e.g. when I run yum install php the process freezes on a line that looks like this C7.0.1406-...
1
vote
0answers
31 views

Problems with remote graphics (nvidia, swrast)

I have a command my users are running - it's a bespoke python, using matplotlib. It's generating errors: libGL: screen 0 does not appear to be DRI2 capable libGL: OpenDriver: trying /usr/lib64/dri/...
1
vote
0answers
15 views

I need to install Wireshark on my CentOS VM

I used the following commands to install the tool: $ yum install gcc gcc-c++ bison flex libpcap-devel qt-devel gtk3-devel rpm-build libtool c-ares-devel qt5-qtbase-devel qt5-qtmultimedia-devel qt5-...
2
votes
2answers
122 views

Veth interface configuration persistent

How to configure the veth interface on CentOS 7 in such a way to make it state persistent after system reboot? For example: veth configuration: # create veth pair and assing IP address. ip link add ...
1
vote
0answers
81 views

R 3.6.1 Installation issue in CentOS - lib/libR.so: undefined reference [duplicate]

How to install R 3.3.1 in my own directory installed "conda install -c anaconda gxx_linux-64 "followed the above link. when i try to run make command. getting the below error. have gcc 4.8.5 and 9.1 ...
1
vote
1answer
28 views

tkdiff installation problem on centos 7

I am just trying to install tkdiff on my centos 7. For installation I am running below cmd: sudo yum install tkdiff but I am getting error message: No package tkdiff available. Error: Nothing ...
1
vote
0answers
22 views

Show list of open ports using firewalld in CentOS7

Is there an easy way to show a full list of all the ports that have been opened using firewalld? I know the command firewall-cmd --list-all, but that just shows service names, not the ports that ...
0
votes
0answers
14 views

How to check the Integiry of the each PHP files in linux server using lighthttpd server?

I have a project requirement, Where I have to check the integrity of each PHP files before executing it using md5 or some method. The hash value is stored safely within the server. What I have done: ...
2
votes
1answer
33 views

Was /etc/yum/repos.d ever a thing?

In some places I've read, users have mentioned the path /etc/yum/repos.d along side /etc/yum.repos.d. Was this a path that actually used at some point? I even loaded of CentOS 5.11 and it's still /...