Questions tagged [centos]
Community ENTerprise Operating System; a Linux distribution based on Red Hat Enterprise Linux widely used on web servers.
3,215
questions
0
votes
0
answers
5
views
sudo visudo in a Dockerfile with CentOS base image
I am creating a Dockerfile using the centos:7 base image. I need to edit the file at etc/sudoers and append NOPASSWD privileges to it for a new user and some groups.
I have looked up in forums that ...
0
votes
0
answers
40
views
Changes in keyboard layout. Is that per user or globally?
We work with international teams.
So we have RHEL servers with multiple keyboard layouts.
If I change the layout of my keyboard, does this changes for other users on the same server aswell?
If so is ...
1
vote
1
answer
20
views
When I ping from client (CentOS 6) to server (CentOS 7), it is giving error destination net unreachable
I have two virtual machines on my laptop. One is CentOS 7 (server) and the other is CentOS 6 (client).
When I ping from server to client, it is working.
When I ping from client to server, it is ...
0
votes
0
answers
25
views
Why yum install is giving me this "Could not retrieve mirrorlist" error trying to install a software?
I am not a system engineer (I am more a software developer).
I am trying to install Zabbix agent on a CentOS 7 system and I am finding the following problem with yum (I have done the same process on ...
0
votes
0
answers
10
views
timedatectl set-local-rtc --adjust-system-clock don't change the 3rd line of /etc/adjtime
man page says about set-local-rtc:
This command will change the 3rd line of /etc/adjtime.
The 3rd line changed when timedatectl set-local-rtc <true/flase>.
The 3rd line not changed when ...
1
vote
0
answers
66
views
100% disk full on Centos?
Situation on machine:
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 14G 3.9G 0 100% /
devtmpfs 59G 0 59G 0% /dev
tmpfs 59G 932M 59G 2% /dev/shm
...
0
votes
1
answer
122
views
Process sssd_kcm takes a lot of CPU, is this safe to disable?
On a production server (internal network), I see the process sssd_kcm taking a lot of CPU usage (it is basically always on top in top). I understand this process handles Kerberos caching. I have not ...
0
votes
1
answer
130
views
Run Chrome using IPv6
In my Windows 11 machine and in my CentOS 9 stream I have 2 IPs assigned: one is IPv4 and another is IPv6. I can use both IPs on these computers and it works fine.
When I use Chrome, by default it ...
0
votes
0
answers
28
views
*** Can't find 22.78.224.10.in-addr.arpa.: No answer
I really need some assistance. I have set up a DNS server with Centos 6.10. When I test my server's address, I get an error.
Here are my configurations.
#named.conf
cat /etc/named.conf
//
...
2
votes
0
answers
116
views
Easiest way to set up a "proper" VPN on a CentOS server, allowing an Ubuntu or Windows client to connect to it
I am using Ubuntu at home. I have a server in the US with CentOS.
With my system administrator days long gone (about 25 years ago), the question is: what's the easiest, least painful way to make a ...
0
votes
0
answers
48
views
How to remove “mod_cloudflare” from CentOS Apache
I did install mod_cloudflare but I need to uninstall it
I have zero knowledge about command line.
I installed it by running :
yum install libtool git apr apr-devel apr-util apr-util-devel -y
cd /usr/...
0
votes
1
answer
105
views
Freshly Provisioned Cent-OS occupies a lot of space for "/dev/mapper/centos-root"
I created a fresh VM, however I started facing space issues as soon as it got created. From the du and lsblk command I see /dev/mapper/centos-root is occupying a lot of space. I tried running tree ...
0
votes
0
answers
66
views
Centos 7 yum update issue
I am getting the below error while doing the "yum update" in centos7. I tried all other ways to fix but nothing is working. Please find the below full error for your information.
Please find ...
0
votes
1
answer
188
views
CentOS Kernel panic - not syncing: Attempted to kill int during bootup
Building has a annual power shutdown for maintenance for 2 days.
As such, prior to it, I have shut down the CentOS 6 server.
After the power is back on (2 days later), when I boot back up, I ...
0
votes
1
answer
48
views
CentOS 8 Back to Windows 11
So long story short - I botched a CentOS update from 7 to 8 and now I am unable to use most functions on the server. I will have to go back to CentOS 7 to get these features to work again.
I am trying ...
1
vote
0
answers
54
views
SCP silently ignored on the remote machine
When I'm trying to copy a file using scp (in whatever direction), there's no error displayed (although the returned $? code is 1), all I can see is the message that normally the REMOTE machine prints ...
0
votes
0
answers
41
views
Host Access to VirtualBox VMs Configuration Issue
I'm trying to configure three VMs on Virtualbox so that I can access them from the host machine. I've configured two NICs, one as NAT and the other for host-only adaptor, and booting Centos 7. My host-...
1
vote
0
answers
152
views
How do you reset a Linux host to its first-boot state?
We are building a generic deployment image and I want to clean/delete all the host-specific details. (This a RHEL8/Oracle 8/Alma 8 system.)
This is what I have so far:
# rm -rf /etc/.etckeeper/* # if ...
0
votes
2
answers
450
views
How to update the usb stick with files after burned with 'dd'?
I have a test.iso file not bootable, it is just an image with some files and folders.
I write my usb stick with this test.iso file by using ''dd' command.
dd if=/root/test/test.iso of=/dev/sdd bs=4096
...
0
votes
0
answers
107
views
Centos 8 - ping 8.8.8.8 (connect: Network is unreachable)
I have set up a CentOS VM and I'm trying to bridge the network, but it's not working. I've spent more than 3 hours trying solutions I found on the internet, but I couldn't make it work because I lack ...
1
vote
1
answer
175
views
CentOS 9 Stream SSH with PuTTy - multiline commands
I've been using CentOS versions 6, 7 and 8 for a long time. Finally, I started using CentOS 9 Stream version. It doesn't matter whether GNOME desktop version or server version (black screen), I ...
0
votes
0
answers
43
views
Almalinux9 SSH port change is not accepting connections
can someone please give a hint what else may be wrong.
System Almalinux9, located at VPS.
I wanted to change a port of SSHD to 60022, but when i try to connect to it, it does not respond anyhow when i'...
0
votes
0
answers
294
views
The computer's hostname is not set correctly
So I wanted to connect my centos VM to my Windows Server VM that is currently hosting my Active Directory Server (both are on Host-Only Network). I know that the server is working, up and running, and ...
0
votes
2
answers
2k
views
how to configure centos against new dns server and port
let's say I installed on my local machine a dns server with port 5353
how to configure it as other dns on /etc/resolv.conf
my resolv.conf looks like this
nameserver 14.2.3.1
nameserver 14.2.3.2
How ...
0
votes
1
answer
255
views
yum downgrade and automatically include all dependencies?
When upgrading a package, yum resolves and updates all dependencies automatically. Is there a flag/option when downgrading packages. For instance i have php82 installed and am trying to get back to ...
-1
votes
1
answer
42
views
Application installed with root in centos needs to be run by non-root user
I have installed an Application called PowerMTA on a centos 7 server. But, That application needed to be run as non-root user named "sam". That application serves over http on port 8080. Now ...
1
vote
1
answer
422
views
Cannot access Outline VPN on CentOS
I installed Outline VPN a few times on Ubuntu servers and each time it was fast and easy. Now I'm trying to install it to CentOS and the Outline VPN shell script executes smoothly and with no errors:
...
0
votes
0
answers
15
views
How to set up git to let me and my kids manage a web server (what am I doing wrong? no files appear...)
UPDATE - see later to glimpse my whole day. See next for the TLDR; version...
TLDR; I've got 2 CentOS machines - "cork" (a web server) and "local" (one workstation for now). ssh ...
1
vote
1
answer
2k
views
Installing keytool without JDK
I am trying to install keytool in a docker image based on centos but I get an error.
Example to reproduce Dockerfile:
FROM centos:7.9.2009 ...
1
vote
0
answers
38
views
Reading tar tape with blocking factor 2048 on CentOS 7
I am trying to read a tar tape on CentOS 7 which was written on CentOS 5. I used blocking factor 2048.
I can read tapes written with blocking factor 1024, but not 2048. Attempting to read the tape ...
0
votes
1
answer
161
views
CentOS Kickstart url command: Can I make it choose a mirror for me?
Whenever I install RHEL, I use a Kickstart file. I want to take the Kickstart file that I use with RHEL, and make a version of it that works with CentOS.
My Kickstart file uses cmdline to make sure ...
1
vote
0
answers
1k
views
File permissions 0400 vs 0600
I have a question about file permissions for the owner of a file.
0400 permission means owner has read access.
0600 means, that the owner has read + write access.
But even if the file is set to 0400, ...
2
votes
1
answer
111
views
How can I enable streaming (flush/ob_flush) in CentOS 8 stream with PHP-FPM?
I have a new install of CentOS 8 Stream with Apache and PHP-FPM setup using all defaults (this defaults to PHP 7.2.24 FPM/FastCGI).
My application uses Server Sent events using JavaScripts EventSource ...
0
votes
0
answers
57
views
How to access the local files to restore in remotely accessed PgAdmin4 in centos 8
I have one Web Server with PHP and one Database Server with PostgreSQL 15. Both with Cent OS 8. I have installed pgadmin4 in the web server to access the Remote Database server through browser and it'...
1
vote
1
answer
115
views
What happened to my X fonts? The newer OS has a "weaker" font weight for "Monospace 10"
I'm upgrading from CentOS 7 to Oracle Linux 9 (Rocky, Alma, RHEL, etc) and the terminal fonts are notably different. (I'm using Mate for the WM, but I don't think it matters for fonts, or does it?).
I ...
-2
votes
1
answer
46
views
Atime don't change on mounted drive
i have CentOS Stream 9.
when i mount a usb drive and create a file using touch command the Access time in stat command don't change and stays:
"Access: 2023-06-20 03:00:00.000000000 +0300"
...
0
votes
0
answers
181
views
starting a Centos 7 VM on AMD laptop running Windows 10 host
I have an existing Centos 7 VM that I can start without problems on a Windows 10 desktop (Intel CPU). I recently bought a new (Lenovo) laptop with a Ryzen 7 CPU; also Windows 10. I copied the vdi to ...
1
vote
0
answers
62
views
Can't access Samba share on new drive from Windows
I have a Rocky Linux server, and I'm using NFS to share between two VM's and I'm also trying to get the same folder shared to my laptop using Samba. I have one folder sharing successfully with samba ...
0
votes
0
answers
23
views
Centos 4.8 not booting after replacement disk controller
I have a quite old Centos 4.8 backup. Root partition is on LVM. (/dev/mapper/centos-root).
This backup (tar.gz archive) works fine if i restore it in Vmware cluster with SCSI controller.
But now i ...
0
votes
0
answers
345
views
Docker containers unable to resolve dns on CentOS 7
it's my first post here, let's hope i'll do ok!
I'm migrating to a new vps, and it runs on CentOS Linux release 7.9.2009 (Core), and unfortunatelly the host wont allow me to change to a distro that i'...
0
votes
1
answer
336
views
How do I prevent systemd from running my timer after reboot
I have the following oneshot service+timer :
$ systemctl cat stop_syncro.service stop_syncro.timer
# /usr/local/lib/systemd/system/stop_syncro.service
[Unit]
Description=Service d_arret de la Synchro
...
0
votes
0
answers
52
views
Windows Server 2019 can't see shared disk from Linux Centos 9
Centos ip: 192.168.227.123
Win: 192.168.227.121
Device: /dev/mapper/mpatha1
mountpoint: /nfsserver
Mount:
Tried 100 different things on Windows, such as disabling hibernation etc, nfs services and ...
0
votes
1
answer
183
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
114
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
127
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
87
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
60
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
312
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
178
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
100
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 ...