Questions tagged [centos]
Community ENTerprise Operating System; a Linux distribution based on Red Hat Enterprise Linux widely used on web servers.
3,194
questions
0
votes
1
answer
9
views
SystemD timer error on CentOS7 : Failed to parse calendar specification, ignoring: Mon..Sat *-*-* 18:00:00
My timer is rejected by the system on CentOS7 :
$ journalctl -u synchro_ADN_To_Scality.timer --no-pager | sed 's/^.*systemd.1.: //' | sort -u
-- Logs begin at Thu 2023-04-06 10:25:28 CEST, end at Thu ...
-1
votes
1
answer
28
views
Golang: On Linux (centos), the golang application cannot be installed as a service
I created a Golang program to carry out some functionality. For installation on Linux (centos), I built the application with the appropriate OS and architecture (GOOS=linux, GOARCH=amd64). The ...
0
votes
1
answer
72
views
Recovering RAID 6: drives are ok, but partitions are "lost"
I faced strange issue with my RAID 6 array (8 HDDs, mdadm). Accidentially 3 drives were disappeared from it, with corresponding result - array has been ruined, but - all 8 drives are perfectly fine, ...
0
votes
0
answers
28
views
How to automate mybb installation using ssh bash script
I have created this bash script to install mybb application automatically on Centos stream 8.
SSH Bash script
#!/bin/bash
# Define variables for MyBB installation
DB_NAME=mybb_db
DB_USER=mybb_user
...
0
votes
0
answers
24
views
Orangescrum says "Wrong database information. Please try with correct information." even though I've provided correct credentials
I'm entering correct database credentials. I've seen similar post in stackoverflow, which was left unanswered. Hoping for replies here.
0
votes
0
answers
20
views
How do I install `libcurl` on centos stream 9 (or rocky 9)?
I get the following error trying to install libcurl on a fresh CentOS stream 9 container:
$ docker run -it quay.io/centos/centos:stream9 /bin/bash
[root@72285314347a /]# yum install libcurl
CentOS ...
1
vote
0
answers
28
views
'2003 (HY000): Can't connect to MySQL server' from browser
I have created a CentOS 9 droplet on DigitalOcean and a separate MySQL 8 Database. I can connect to this database from the droplet's console as well as from the terminal on my Mac. I can also run a ...
1
vote
1
answer
19
views
fail2ban on xcp-ng (xen server on an centos) keeps dying
I can't get the fail2ban.service to run. It gets killed constantly
I tried to install fail2ban on an xcp-ng (8.3 alpha2). I installed it from source because the default REHL repos are turned off and I ...
1
vote
0
answers
35
views
why it will cost 60 seconds run every sudo command
After the last system update on my centos, it will almost cost 60s for every command when I use sudo or even login as root.
I use strace sudo ls to see what happened, here is some key log
mprotect(...
0
votes
0
answers
39
views
Is it possible to restore a backup image taken from an old Linux server to much newer hardware?
Most of the Linux production servers at work have been in use for many years and their hardware is out of date.
For example, we have some production servers running CentOS 8 or 9. While the OS has ...
0
votes
0
answers
24
views
Verifying gpg keys through script
I am installing a package that needs gpg key verification check, i am able to verify those keys interactively but when i try to install the package through bash script i have to provide yum install -...
1
vote
1
answer
57
views
Why I get refused when connect my remote host with domain name using ssh?
I added two A DNS records on my domain name whose HOSTNAME is @ and www,
I'm wondering why I get refused when use davidzhu.xyz
$ ssh root@davidzhu.xyz
ssh: connect to host davidzhu.xyz port 22: ...
1
vote
2
answers
56
views
Why does my VPS get lots of ssh logging attempt from unknown hosts [duplicate]
This log is part of /var/log/secure :
0
votes
2
answers
156
views
Can't copy paste between windows 10 to centos 7 in VMware workstation, how to fix this issue?
I've windows 10 installed as primary Operating System. Inside it, using vmware workstation 17, I've installed centos 7.
Now, for eg: I want to copy the command to download mysql workbench in centos 7.
...
0
votes
0
answers
25
views
sshfs in fstab not run in CentOS Stream 8
I added below statement in /etc/fstab.
root@IP:/SERVER_DIR /LOCAL_MOUNT_DIR fuse.sshfs nonempty,allow_other 0 0
But when I boot-up, LOCAL_MOUNT_DIR does not mounted.
Is it right sentence to mount?
OS ...
1
vote
1
answer
34
views
Stop script in init.d is not called
I am using Centos distro. I have a stop script present in etc folder appended with K** prefix
[linux_machine ~]$ ll /etc/rc0.d/
total 0
lrwxrwxrwx 1 root root 31 Apr 5 00:59 K01kill-agents -> /etc/...
0
votes
1
answer
101
views
Update GNU-Make on Centos 7
Is there a simple way to install a new version of GNU make on centos 7?
similar to the devtoolset-8.
Or is there only the manual way (download the tar)
0
votes
0
answers
32
views
Install php-mod and php-fpm (different versions) on the same server
One of our clients has a server which is running PHP 5.3.3 (in our understanding it is mod_php, apache, Centos 6).
Is it possible to install ANOTHER php version (say PHP 8.0) in say php-fpm for a ...
0
votes
0
answers
34
views
MongoDB on CentOS server enable remote access
I have installed a MongoDB on a CentOS server and would like to set up remote access for this database.
This server is a virtual machine hosted by a major cloud provider.
I have proceeded according to ...
0
votes
0
answers
100
views
PAM updates for mounting an encrypted user's home at login (GNOME 40.4.0)
I would like to decrypt my LUKS encrypted /home directory at login on Rocky Linux 9.1. I have been trying to adapt this Arch Linux guide (https://wiki.archlinux.org/title/Dm-crypt/Mounting_at_login; ...
0
votes
1
answer
58
views
How to make the incoming and outgoing interfaces the same by packet?
My server has two interfaces.
First interface is directly connected to local ISP and second interface is connected to other region that connected with GRE tunnel.
So it looks like:
┌──────────────────┐...
0
votes
0
answers
1k
views
Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile Centos 7 Error? yum update not working on new VM
I just installed new VM it is giving below error when i run yum update command
[root@localhost ~]# yum update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Could not ...
1
vote
0
answers
80
views
QEMU in Linux container connected to over SSH
I have been trying to use QEMU to get a VM (CentOS) running hosted in a container that I use a Putty SSH session to connect to. It seems I have issues with the serial input. I am using this command ...
0
votes
0
answers
22
views
Noticed very large space utilisation in linux LVs, how to find which file or what is responsible here?
I have two disks in my server with a LVs created and issue is on the one mounted on /.
I am aware of using find and sort to output the largest for some given number of lines.
like:
find / -type f -...
1
vote
0
answers
77
views
Is there any way to pg_upgrade PostgreSQL 12 to 15 over network?
My situation is a little bit complicated.
I have an older version of PostgreSQL 12.9 installed on an older Centos Stream 8 machine. There are about five custom databases created under the roof, say ...
1
vote
1
answer
102
views
Waiting until a string appears in a log file
I have a log file that text is appended to during the program run.
I want to know when a specific string was appended to the end of the file.
All the solutions given here:
Monitoring a file until a ...
5
votes
0
answers
220
views
Files being created with the wrong owner
I'm using AWS sagemaker and today I went to commit some files and got this error:
Bad owner or permissions on /home/sagemaker-user/.ssh/config
fatal: Could not read from remote repository.
Please ...
0
votes
0
answers
16
views
Can authconfig/authselect only be used with PAM modules known by authconfig/authselect?
I have a machine running CentOS 7 with a PAM setup which has been modified without using authconfig and am looking at reproducing a similar setup on a machine running AlmaLinux 8.
My understanding of ...
0
votes
1
answer
97
views
Apache doesn't download files stored outside of default web folder
I've got a webserver from Vultr running on CentOS Stream 9. The files I want people to be able to download are stored on a separate hard drive mounted to /mnt/box/public/. I've set Apache to host it ...
1
vote
1
answer
1k
views
Am I able to hide the GNOME title bar for applications?
I've forgotten if this is even possible. I have been using another OS and it's gotten me use to not seeing the OS's title bar on applications. Is it possible to hide it when using GNOME? I am on ...
0
votes
1
answer
286
views
Enable ssh in emergency mode for centos 9
I'm trying make a backup system for my Centos Stream 9 headless server by installing a cloned system disk on a newer machine.
No surprise, the newer machine booted into emergency mode (hardware ...
0
votes
1
answer
521
views
Sign virtual box modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) Centos 8
I started using Centos 8 recently, and I installed VirtualBox to manage my virtual machines, the problem that I encountered with is that my VirtualBox couldn't boot any VMs and it told me to execute ...
2
votes
2
answers
35
views
CentOS | Bash process is using a lot of ram in idle state (more than 3GB)
Not an experienced user here.
I'm using a virtual server with 2GB of ram and 1GB of swap. The distribution is CentOS Linux release 7.9.2009 (Core). When I ssh the server I got the error below and the ...
0
votes
0
answers
129
views
Install zabbix agent on outdated hosts behind firewall with no Internet access
We have some like 100 VMs, most of them can not access the Internet. These VMs are of different OSes (Centos 6, 7, 8; AlmaLinux 7, 8; Ubuntu 20.04, 22.04), and I need to install modern Zabbix agent, ...
0
votes
0
answers
7
views
Unable to ssh on a centos machine but able to do from another machine
I have a machine hosted in the aws for which i am unable to ping or ssh into from my system but works well and good when i try to ssh from another machine. when restarted the ping works fine but once ...
0
votes
0
answers
55
views
Openstack Storage unresponsive
This question is unrelated to the question I just asked about OpenStack metadata server. This is another setup, on other machines and they both are clearly not connected to one-another.
I setup ...
0
votes
0
answers
11
views
Openstack Nova metadata server randomely fails to provide data to new hosts
This is a repost of a question I asked on launchpad and for which I have been out of luck so far. Maybe one of you has an idea on how I can tackle it.
The metadata server of OpenStack (Zed) Nova fails ...
1
vote
1
answer
88
views
REDHAT machine + rsyslogd eating up 10+ GB
we notice about this problem recently
we found that rsyslog service is eating memory and some times its up to 10G
we have different kind of redhat machines as version 7.6 and 7.9
is it possible to ...
0
votes
0
answers
27
views
how to move windows xampp website to Centos Apache?
I have configured website using php script on my local machine using xampp, Now I have to move it to centos apache web server.
I did: moved folder from HTDOCS to cento> var > www > html
But ...
0
votes
0
answers
62
views
After yum --enablerepo=elrepo-kernel install kernel-lt on guest CentOS on VirtualBox in Windows 10 the clipboard no longer works
What actually can break the work of bidirectional clipboard exchange from guest CentOS 7 to Windows 10 on VirtualBox 5.1 after I execute in guest machine
sudo yum install https://www.elrepo.org/elrepo-...
0
votes
0
answers
26
views
Centos 7 Not Responding Except Port 80
I'm facing an issue and I want to ask for any solution ideas. I have a CentOS 7 virtual server on the cloud. On this server, I installed Virtualmin. Last week, everything was working fine, but just ...
0
votes
1
answer
129
views
yum update breaks CentOS
There is a CentOS 7 VPS. I just tried to follow guide to install php 7.4, and ran
sudo yum update
It did stuff, outputted a list of "install" lines, and then a list of "clean" ...
1
vote
1
answer
30
views
Linux, centos, resetting password
While resetting password after commands:
rd.break
mount -o remount,rw /sysroot
chroot /sysroot
I entered new password all done correctly at the end created file reliably using
touch /.autorelable ...
13
votes
4
answers
4k
views
Is it worth to defragment XFS on SSD (many files)?
I have quite old mail server (CentOS 6) of 4+ Tb mail in maildirs (so you may imagine numbe of files). It is VM (VMware 7) on SSD storage.
I wonder if I should care for FS fragmentation at all? I can ...
0
votes
1
answer
58
views
I can't get access back to my SSH server
Short story, I changed my sshd_config file to only key authentication but I didn't create a key for root (I have created however a key for user1 but it doesn't connect too). Is there anything I can do ...
0
votes
1
answer
673
views
How to install MySQL 5.7 on CentOS 9?
I have an use case where I need to install MySQL 5.7 on CentOS 9. I found a guide which describes how to do this on CentOS 8, and it works perfectly. However, when I try the same steps on CentOS 9, it ...
0
votes
1
answer
473
views
How to use wifi on CentOS 9?
I installed CentOS 9 Stream on my laptop.
During the installation (while I still was in the installation interface), I was able to connect to internet via Wifi. The wifi interface was up and was ...
0
votes
1
answer
228
views
Change the yum repo of the installed package
I have an rpm package installed with yum from a community repository server and need to switch to another repository server.
yum does not allow having shared names of packages between different ...
0
votes
0
answers
42
views
Running Androidx86 on Centos 7
I'm trying to run Android OS on a centos VPS following this tutorial:
https://dev.to/gauthamp10/easiest-way-to-install-android-os-via-linux-no-grub-fiddling-3gao
I've done all this via ssh with no ...
0
votes
0
answers
51
views
Find out the source of an installed CentOS Linux package, assuming chef and dnf install packages (system managed by chef)
The TL;DR here is if I have a command "checker" installed in a bash shell on a CentOS Linux server, is there anyway to easily find what package/source installed it to check what that package ...