Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

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
1 answer
15 views

Create bootable syslinux USB on UEFI

We use a Centos 8 machine to create syslinux bootable USB installers for our product. The created USB now supports only target machines with BIOS (or with CSM mode turned on) but we need to update it ...
user avatar
  • 377
0 votes
1 answer
18 views

How to configure mdadm.conf properly

I have 2 mdadm arrays. Long time ago, when there was only one raid, i wrote mdadm.conf and it looked like this: # mdadm.conf written out by anaconda MAILADDR root AUTO +imsm +1.x -all ARRAY /dev/md/...
user avatar
  • 167
0 votes
0 answers
5 views

How to launch 3+ instances of freerdp for 3 windows VMs from single centos

I have 3 or more windows machines, those I can connect from centos individually using below command xfreerdp /u:username /p:password /v:hostname but what I want is to connect them in parallel, using ...
user avatar
  • 101
0 votes
0 answers
16 views

AlmaLinux 8.5 yum update fails due to ImageMagic conflicts

At the time of ImageMagic installation, I used the following commands. dnf --enablerepo=powertools install ImageMagick ImageMagick-devel Now I am going update my AlmaLinux 8.5 server using the command ...
user avatar
1 vote
1 answer
34 views

Using move command to move all files and subdirectories with find

I have a folder /home/storage/aggregate_data with many sub-folders which in turn contain many files and sub-folders. I want to copy all the files older than 90 days within the folder /home/storage/...
user avatar
0 votes
1 answer
15 views

Tomcat logrotate error: tomcat:1 bad rotation count '7 compress missingok size 5M }'

I have a standalone Tomcat installed on CentOS 8 and I am trying to rotate the catalina.out file. I have created a file named /etc/logrotate.d/tomcat with vim and added the following line: /opt/...
user avatar
0 votes
1 answer
41 views

OpenJDK 17 for CentOS 7

Currently there is no possibility to install java-17-openjdk through sudo yum install java-17-openjdk on a CentOS 7 system (CentOS Linux release 7.9.2009 (Core)) as it was possible some time ago. When ...
user avatar
0 votes
2 answers
241 views

I'm trying to run a Debian 11 VM on my CentOS 7 Home Server, but get hit by this issue with virt-install

See below, the issue im having when trying to run virt-install on its own. Same issue when I try with all the config I plan to use: /usr/lib/python2.7/site-packages/requests/__init__.py:104: ...
user avatar
0 votes
1 answer
33 views

rpm database lost, how to proceed?

I completely lost the rpm directory under /var/lib with no way to recover it. (I know what I should have done...) I have made a new one (rpm --initdb) but of course rpm and yum no longer know what's ...
user avatar
1 vote
1 answer
28 views

What should be the equivalent apport package for CentOS 8

In Ubuntu Linux we can use apport service to get system crash report automatically. Generally following commands are used to manage apport. sudo systemctl enable apport.service sudo systemctl start ...
user avatar
0 votes
2 answers
35 views

Tried to open external harddrive img file

I have an img file, which is packaged in a centos virtual machine. I don't know how to open it. Now I have "parted" it on another machine and found that it is an lvm structure. The question ...
user avatar
  • 11
0 votes
0 answers
36 views

CentOS7 CloudFlare DNS

I'm trying to make my server use CloudFlare public DNS (1.1.1.1, 1.0.0.1). When I edit /etc/resolv.conf I see: ; generated by /usr/sbin/dhclient-script nameserver 10.10.10.10 When I update it to this,...
user avatar
  • 101
1 vote
1 answer
26 views

Why CentOS converts ATA bus to scsi bus?

I use libvirt + qemu to boot a VM with a disk with IDE bus device in libvirt: <disk type='network' device='disk'> <driver name='qemu' type='raw' cache='none' io='native'/> <source ...
user avatar
  • 13
0 votes
2 answers
55 views

How to update, instead of flush and re-write, iptables rules

Currently I'm updating my iptables rules using a bash script, where I call the command: iptables -F then I apply the rules. The problem being that I need to update the rules to gain access to port 80,...
user avatar
0 votes
1 answer
26 views

Change prompt colour inside midnight commander?

I use mc on CentOS9. It has its own prompt on the bottom under the panels. I dont know if it is a separate bash or some sort of emulation, but it has default colour while "normal" prompt is ...
user avatar
-1 votes
0 answers
12 views

How to setup email alerts on centos when openconnect user connect

My current setup i have ocserv openconnect and postfix server running on centos 8 I wan get email alert when openconnect VPN user connected or disconnect .
user avatar
1 vote
0 answers
20 views

how make visual host in centos7 litespeed [closed]

My website show in port 8080 in server. How connect my domain name to IPSERVER:8080 Server: CentOS 7 - Litespeed I have little information in this regard
user avatar
0 votes
1 answer
18 views

copy network configuration from one linux machine to another

I have a remote machine that runs Amazon Linux, with super user permissions to it. Its signed on to a certain network with maybe a certain network configuration, that allows it to directly access ...
user avatar
0 votes
0 answers
215 views

docker: Error response from daemon: failed to create shim: OCI runtime create failed

I'm running into this error while running even an official docker image such as OpenJDK or even hello-world: # docker run hello-world docker: Error response from daemon: failed to create shim: OCI ...
user avatar
  • 251
0 votes
0 answers
25 views

CentOS Linux 7 cronjob validate the expression and check if it will run

I do have a CentOS Linux 7. On /etc/crontab I added my command that I want to run: 0 0 20 * * root MySpecificCommand I do have three questions: How can I check if my expression is valid and and what ...
user avatar
2 votes
1 answer
259 views

Prevent shell script from hanging on a line

I have a written a shell script that helps me calculate the disk utilization in remote servers using df -h. I'm including the code snippet below s_arch_1_per=`sshpass -p 'password' ssh root@...
user avatar
0 votes
0 answers
13 views

Stop Dracut from asking for a password

I have a device I've encrypted with luks1 and I decrypt it with a script in init.d. (Centos 6, no keyscript in crypttab). Its a raid disk, with the encryption under the raid, but I don't think that ...
user avatar
  • 151
0 votes
1 answer
19 views

What should be the equivalent logrotate script for CentOS 8

I have a logrotate script for some of my log files at our Ubuntu server. The script is give below. /home/*/logs/*log { su root root notifempty daily rotate 7 ...
user avatar
0 votes
1 answer
31 views

/var keeps filling due to yum cache

the /var/cache directory keeps filling frequently due to yum metadata in centos 7.5 server. most of the space utilized by the below files. i have set keep cache to 0 in /etc/yum.conf as well. but ...
user avatar
0 votes
1 answer
39 views

Wireguard transfer of external ip address

There is an external server (host) with wireguard, ip address 98.XX.XX.XX and internal server (client) with wireguard 192.168.0.2. On client installed web server (nginx, phpfpm). On host all ports ...
user avatar
  • 1
0 votes
0 answers
8 views

Alt+F2 maps to volume down instead of run command

I have a Dell laptop and "Alt+F2" invokes a volume-down operation instead of "run command". The correct mapping for Alt+F2 does appear in my keyboard shortcut settings, so I think ...
user avatar
  • 101
0 votes
1 answer
46 views

blocking commands as non-root

This is a very specific request, I am afraid. I am a non-root user at a CentOS Linux 7 machine. The admin team is normally very helpful but there is zero response for that case, unfortunately. So I ...
user avatar
1 vote
1 answer
53 views

Why 7z not using enough CPU?

CentOS 9. 3 vCPU VM with 4Gb RAM. I run a cron job with 7z compressing 35Gb data in 150 files 7za a -mx=9 -mmt=3 ... RAM usage - 18%, disk queue is very small, CPU is 61% on average. Why not 100% ? ...
user avatar
0 votes
3 answers
46 views

Can I run a script on reboot once?

CentOS9 Keeping in mind this question: https://serverfault.com/questions/1099284/centos-how-to-keep-previous-service-state-on-reboot It seems that it is not possible to achieve what I need. Is that ...
user avatar
0 votes
2 answers
69 views

How to use wildcard for files without extension

I am completely stupefied by this. I am running a weekly script to move log files into a directory. mkdir 2022-04-30 mv *.* 2022-04-30/ when I do so - only files with extension are moved but not ...
user avatar
0 votes
0 answers
9 views

Overlapping desktop icons of Nemo and Nautilus in CentOS

I have installed Nemo (file manager) and run the following commands 1. xdg-mime default nemo.desktop inode/directory application/x-gnome-saved-search 2. gsettings set org.gnome.desktop.background show-...
user avatar
0 votes
0 answers
13 views

Read what processes are printing in another /dev/pts/

Im operating a CentOS which has three processes of interest running. Via ps -aux I can see that all of them have been initialized by the same user. ps -o ppid= -p PID_Number reveals that Process1 ...
user avatar
0 votes
1 answer
28 views

CentOS - Find out which user spawned process after sudo su

Im logged in a Linux CentOS via ssh. There is a process that has been running for some time and i can find its PID via htop plus fn+f4 and typing the name of the file that spawned the process or ps ...
user avatar
1 vote
1 answer
66 views

How to simulate +%100 CPU Usage for 1 process?

OS: CentOS 7.9 I want to simulate/create 1 process for test purposes, such that top reports it consuming more than %100 CPU. Something looks like below in ps output; USER PID %CPU ...
user avatar
  • 33
3 votes
1 answer
81 views

How to troubleshoot a LDAP error 53 (WILL_NOT_PERFORM)?

I am trying to make a CentOS 7 server join an AD, but it results in an error: AD LDAP ERROR: 53 (Server is unwilling to perform): 0000216D: SvcErr: DSID-031A1241, problem 5003 (WILL_NOT_PERFORM), ...
user avatar
  • 25.4k
0 votes
1 answer
22 views

Is there a tool on Centos to send command output over udp?

I want to send output of watch cat file.txt to a udp port. Is there something already for it?
user avatar
1 vote
0 answers
22 views

No package phpmyadmin available. Error nothing to do

Im using system Centos 7 Now in my VPS I have configure correct LAMP and directadmin. Php, apache web server etc working correct. I have issue with phpmyadmin. I see phpmyadmin is not available in ...
user avatar
0 votes
0 answers
17 views

Systemd, rc-local and shutting down

I am using CentOS 7 and I needed to start some applications on boot automatically After a lot of problems with systemd and permissions I managed to start it right using rc-local service and its ...
user avatar
0 votes
0 answers
15 views

./libcogconfig_jni.so: error while loading shared libraries: ./libz.so.1: file too short

I am working on a CentOS 7 workstation. I installed Cognos. However, the following error is reported: [root@ecs-30 bin64]# ldd libcogconfig_jni.so ./libcogconfig_jni.so: error while loading shared ...
user avatar
1 vote
0 answers
48 views

move command unable to remove file

I'm trying to move a set of 60GB files from one folder to another using mv -v /home/mnt1/Daily_IMSI_Report/* /mnt2/Archive_1/Daily_IMSI_Report/ But the command is not executing after copying only one ...
user avatar
-2 votes
1 answer
27 views

Centos 8 vs Almalinux, is it okay to upgrade? A help to understand how to change OS

I'm stuck on whether to move my VPS with cPanel from Centos 8 to Almalinux In several blog sites I have read that almalinux is a 1: 1 system with centos 8, so it should keep all the features without ...
user avatar
  • 99
0 votes
1 answer
20 views

How to find the required dependency software on CentOS?

I am trying to install scientific computation software on CentOS. According to the manual, I need to install amdfftw-3.1 but when I try to search amdfftw with yum, it returns nothing: [beta@login03 0]$...
user avatar
  • 101
0 votes
1 answer
18 views

Installing node 14 on centos 7, how does it work?

The code for installing node 14 on centos7 is: RUN curl -sL https://rpm.nodesource.com/setup_14.x | bash - RUN yum -y install nodejs How does it work? The first command downloads the package. Where ...
user avatar
  • 101
1 vote
0 answers
8 views

softlinks on a shared mount mean different things

Two centos servers having a drive mount shared between them. If there is a softlink inside of that shared mount, pointing to any other location outside the mount, the mount is normally resolved ...
user avatar
0 votes
0 answers
38 views

How to install XMonad on CentOS 8

How can I install XMonad on CentOS 8? I can't seem to find the package, including in EPEL. I'm stymied by the build-tool requirements (stack or cabal-install) on the XMonad install install from ...
user avatar
  • 101
1 vote
0 answers
85 views

"no matching key exchange method found. Their offer: diffie-hellman-group1-sha1". How to fix the client not the server

So we recently updated our server and found an old linux client was failing to login and generating a "no matching key exchange method found. Their offer: diffie-hellman-group1-sha1", on our ...
user avatar
1 vote
0 answers
37 views

socks 5 proxy in centos 7

I want to run socks5 proxy server on centos7 Dante is for Debian squid can not handle socks proxy ss5 is too slow(almost do not work) any good opensource socks5 proxy for centos7? can anyone help me ...
user avatar
0 votes
1 answer
33 views

Can I change system files from custom kickstart .iso?

I have set up a Kickstart .iso installation of CentOS 7 and it installs nicely (.iso is compiled with ks.cfg file inside). What I haven't figured out yet is if I could edit system files from within ...
user avatar
2 votes
1 answer
54 views

FIFO and simple bash parallelization on CentOS

I am having problems adapting a bash script to handle a simple parallel execution from Ubuntu 20.04 to CentOS Linux 8. In the script I spawn multiple "readers" that read a string from a FIFO ...
user avatar
  • 21
0 votes
2 answers
35 views

rpm can not decide if package is installed or not

Running rpm -i jdk-6u45-linux-amd64.rpm on CentOS 7.0.1406 gives me: package jdk-2000:1.6.0_45-fcs.x86_64 is already installed However running rpm -ql jdk-6u45-linux-amd64.rpm gives: package jdk-6u45-...
user avatar

1
2 3 4 5
161