Questions tagged [centos]

Community ENTerprise Operating System; a Linux distribution based on Red Hat Enterprise Linux widely used on web servers.

Filter by
Sorted by
Tagged with
1 vote
1 answer
4k views

How can I set a static IP address in CentOS 7?

I have a CentOS 7 Minimal VirtualBox VM that I would like to set a static IP address on. I want to assign the static IP address via a Bash script within the VM (so not using the VirtualBox network ...
1 vote
2 answers
4k views

Send HTTP request from server to another server and get the IP that replies

I have to do this project, and I honestly have NO idea where to start. It will send a simple GET request to a web server, and then wait for a reply, and it will print out the IP that replied. The HTTP ...
0 votes
0 answers
21 views

ping and getent hosts give different result

I have entry in /etc/hosts 1.1.1.1 db_external When I am doing ping I get it correct ping db_external PING db_external (1.1.1.1) When I am doing getent hosts db_external for some reason I got : ::...
0 votes
1 answer
3k views

NFS v4 - `nfs4_discover_server_trunking unhandled error -512` after reboot

Just began with NFS v4. I got these settings in /etc/fstab: 1.2.3.4:/mnt/exports/content-nl /data2/objects nfs4 minorversion=1,ro,defaults,_netdev 0 0 2.2.2.4:/mnt/exports/www-nl /data/nl ...
0 votes
0 answers
29 views

CentOS Stream 9 Name or service not known frequently

I have a computer running CentOS Stream 9 as server. It is connected to my router directly by wire. It is working well except getting 'Name or service not known' frequently (like about 10 mins once) ...
3 votes
1 answer
3k views

Unable to create files in directory

There are lot of these kinds of questions on superuser, so I'll try and keep this quick by telling you what it's not: There is no application involved here. Just a user and a filesystem. I can login ...
4 votes
2 answers
9k views

How to yum install always answering yes in the y/n questions

In Linux Centos 6-64 bits, when we install a package, it asks us to press y or n sometimes plus enter such as this: "Is it ok? [y/n]". What should we add in the command "yum install something" so ...
1 vote
1 answer
931 views

How to find all virtio disks on machine?

So, lsscsi can list scsi devices, and nvme list can list nvme devices. What is the equivalent for virtio deivces?
0 votes
0 answers
55 views

sda1 on CentOS 7 on Google Cloud full id of nothing?

I am on Google Cloud Linux CentOS 7.0 Guest. I'm running out of disk! How is this possible? I don't use 25% that they say I do? It looks more like about ~10Gb. # du --max-depth=1 --human-readable / | ...
0 votes
1 answer
3k views

Not detecting network card in CentOS 7?

In VMware workstation I have installed CentOS 7 but it is not showing any network card. When type lspci I am geting: :*-2:00.0 USB controller: VMware USB1.1 UHCI Controller 02:01.0 Ethernet controller:...
0 votes
1 answer
6k views

How to set the resolution on the CentOS 7 login screen?

I’ve set the screen resolution on my CentOS 7 VM. But although the resolution is correct once I’ve logged in, the login screen resolution is far too high. I cannot find a way to change it. Does anyone ...
2 votes
1 answer
4k views

How to mount AFP share on CentOS 7?

I'm running into problems when attempting to mount an AFP share on CentOS 7. Currently using mount_afp with fuse but whenever I try to mount something mount_afp segfaults in glibc. I'm either looking ...
0 votes
1 answer
4k views

update gcc /g++ on CentOS 5.9

I would like to update gcc/g++ on my CentOS 5.9. The version I have is 4.1.2 : Would it be possible to update it to 4.4.7 like CentOS 6.4 WITHOUT updating the entire operating system? It looks to me ...
0 votes
0 answers
11 views

Install rstudio-server failed in a docker container based on centos 7

I think this is the correct place to post this question. I am using Dockerfile to build the Rstudio development environment. FROM rstudio/r-base:devel-centos7 AS base RUN wget https://download2....
-1 votes
1 answer
106 views

Samba Shares Fail - Pre-Authentication Failed

Good day, We have multiple HPCs (RHEL, CentOS, Ubuntu) running samba shares so that user can easily transfer files back and forth. About 3 months ago, the DCs/AD got a refresh, redundancy (2 servers) ...
3 votes
2 answers
4k views

Creating a USB stick for installing centos 6.x using DVD1 and DVD2 iso files

First, we create 2 partitions on the USB stick that is let's say 16GB. first partition is let's say only 1GB and the second partition is the rest of what is available. after we "w" write the changes,...
0 votes
1 answer
5k views

ossec-agentd(4105): ERROR: No valid IP found

First time using ossec, test environment, config issue I created a new server (centos 8, ossec 3.4). On the server, I installed the ossec server. The server appears to be able to properly monitor ...
0 votes
2 answers
4k views

Unable to ssh into server: No supported authentication methods available

After trying some tips from various blogs on how to secure ssh connections to a server, I’m now unable to access my server. I receive this error message: (Disconnected: No supported authentication ...
1 vote
2 answers
2k 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 ...
16 votes
7 answers
69k views

Guest additionals: Kernel headers not found for target kernel

I've been having a difficult time getting Guest Additions to install on my Oracle Linux 7. I have VirtualBox version 6.1.4. I have guest additions version 6.0.4 The machine had 4.14.35-1902.7.3.1 ...
0 votes
0 answers
16 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 ...
11 votes
4 answers
29k views

Linux apropos command always returns "nothing appropriate"

I have a minimal installation of CentOS 5.7 32-bit on a VM. The apropos command always returns "nothing appropriate" [root@localhost ~]# apropos man man: nothing appropriate Even after I run ...
0 votes
0 answers
52 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 ...
2 votes
1 answer
6k views

CentOS Virtualbox no internet access

I have the following problem: I have a VM with CentOS installed. From this machine, I can't connect to internet, so I can't upgrade nothing installed on it. The VM configuration is: Under Settings -...
1 vote
0 answers
39 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 ...
1 vote
1 answer
5k views

How to resolve authentication error when using iSCSI target configuration on CentOS 7?

I am attempting to setup an iSCSI target, with one block LUN which is a zfs zvol on a CentOS 7 machine. I've only ever used iscsitarget and the /etc/iet/ietd.conf file on ubuntu systems. I have this (...
3 votes
1 answer
5k views

Kiosk mode and auto login and single application mode in CentOS

We have a machine running CentOS 7, GDM, KDE 11 (installed from CentOS DVD) We have been struggling a few days with this issue, tried to search for a solution but unfortunately most of the material'...
0 votes
4 answers
7k views

Apache 2.4 vhost not working

We have a new Centos server installed with Apache 2.4.9. I'm trying to get the vhost working. DNS resolves to the right machine, and I can see the default Apache page, so it's not a firewall issue and ...
1 vote
4 answers
14k views

How to disable "password contains the user name" restriction in centos 7

My username is z, and my password contains z, and the system disallow me to use that password. The error is: BAD PASSWORD: The password contains the user name in some form. This is an error and I ...
1 vote
1 answer
7k views

Fully resetting MySQL

I've just spun up a CentOS 6 server. I installed mysql on it yum install mysql-server And after I started the MySQL service it spat out on STDOUT a bunch of stuff about the necessity of changing the ...
0 votes
1 answer
4k views

UEFI & legacy PXE chain to WDS

I'm making a PXE server (CentOS 7) that will be able to boot legacy and UEFI clients, so far this works fine, but i also want to be able to boot into WDS via the linux PXE, I was somehow able to make ...
0 votes
1 answer
4k views

How can I disable FTP access for users

I want to temporarily disable the FTP Access of the FTP users which are added from Cpanel I have tried chsh -s /sbin/nologin aadmi which says "chsh: user "aadmi" does not exist." Tried sudo echo ...
0 votes
3 answers
4k views

Can't telnet into mail server

I have a machine running CentOS. From that machine I can't telnet into a mail server. From my local machine I can do the following command: telnet mailserver.com 25 From there I can't send emails ...
1 vote
1 answer
4k views

Add Windows partition to grub2 boot loader in CentOS 7

I had Windows 7 installed on my laptop. Then I installed CentOS 7. Installation completed successfully, but when I reboot I can see only CentOS and CentOS recovery. I did not see the Windows partition....
0 votes
1 answer
4k views

How to fix when installing puppet client on centos 7 with dockerfile getting Error: Package: ruby-augeas-0.4.1-3.el6.x86_64

I'm trying to install puppet-client on docker centos-latest with this dockerfile # Base OS FROM centos # Install puppet ENV PUPPET_VERSION 3.7.3 RUN rpm --import https://yum.puppetlabs.com/RPM-GPG-...
0 votes
0 answers
62 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 ...
1 vote
1 answer
4k views

Setting up Apache with multiple FTP users and vsftpd

I'm trying to get my Apache setup with a single user 'ftpuser' both be able to share/access the /var/www/html directory, which contains various files/sub directories. However, when I log in via FTP ...
10 votes
4 answers
2k views

bash column command confused by ANSI color escapes

I have a bash script I got from Gary Bernhardt's dotfiles that prints a nice colorized listing of the recent git commits. It uses the column command to line the output up into columns. On my Mac, it ...
0 votes
1 answer
4k views

Install imap on PHP 5.4 CentOS

My system is: Centos 6.6, Nginx 1.8.0 with php-fpm, PHP version 5.4.43, I tried installing IMAP with yum install php5-imap but package cannot be found: [root@nv-datacenter ~]# yum install php5-imap^...
0 votes
1 answer
5k views

How can I check if firewall is blocking ping from machine belonging to a specific subnet on Linux CentOS7?

I am not a system engineer (I am a software developer) and I have the following problem. I have this Linux CentOS 7 server. A collegue told me that he can't ping this server from some specific machine ...
1 vote
1 answer
5k views

Error checking storage configuration (centos 7)

I tried to install linux centos 7 (dual boot), this is the first time i install linux so i've been following some tutorial. In the installation destination I've got an error message Error checking ...
2 votes
1 answer
1k views

How to enable printer discovery using DNS-SD?

On Centos 8, I run lpinfo --include-schemes dnssd -v to discover printers, as suggested by CUPS documentation. Suspiciously, the command returns immediately without discovering anything. tcpdump ...
1 vote
1 answer
4k views

command for checking SMTP log and POP logs for a specific email address

My domain was recently hacked and used for spamming and blacklisted by google gmail. I have done the cleanup and updates now requesting a delisting from google. My system is CentOS, and I know it ...
1 vote
1 answer
4k views

Nano displays spaces instead of some symbols

I have a feeling that I have this bug, however I've just installed new Nano 4.7 from sources When I open files, a lot of symbols (even non-unicode) as not displayed properly, but displayed as spaces. ...
1 vote
2 answers
10k views

How to disable text overwrite mode in Netbeans (CentOS)?

Everytime I type some text, it is overwriting what I have typed. I assume that the mode is set to overwriting, I want to insert the text not overwrite it, but I can't disable it because my insert ...
0 votes
1 answer
3k views

Yum does not install specific RPM version with custom repo

We use RPMS for our packaging and yum to update our environments. We have an rpm package-5.1.1-3 installed in our production server and in our yum repository we have 2 newer versions such as package-...
0 votes
2 answers
4k views

Where to retrieve MySQL Database Backup? Centos 6

Had taken a look at: Where Are Databases Located - MySQL File Location Didn't seem to help much. I used this for a single MySQLDatabase backup: http://www.tecmint.com/mysql-backup-and-restore-...
1 vote
5 answers
4k views

Centos - PhpMyAdmin showing blank screen

I have just installed PhpMyAdmin, and when i try to access it it just shows a blank screen. I suspected this is because i followed a tutorial on how to secure php and disabled multiple settings, so i ...
0 votes
1 answer
4k views

Core temperature above threshold cpu clock throttled while upgrading gcc compiler

I have a Dell laptop and i am using CentOS 6.9 in it for personal use which was working very fine till yesterday, when i tried to upgrade default gcc compiler (4.4.7) to 4.9.x version.. I've ...
2 votes
1 answer
11k 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 ...

1
2 3 4 5
65