Questions tagged [centos-7]

Version 7 of CentOS Linux distribution. The CentOS Linux distribution is a stable, predictable, manageable and reproducible platform derived from the sources of Red Hat Enterprise Linux (RHEL).

708 questions
33
votes
3 answers

How to turn off the screen saver of CentOS 7?

After a few minutes, the screen turns black and a screensaver will come out if I move the mouse, like on the screenshot below. How to turn all these off? The OS is Centos 7.
30
votes
6 answers

Cannot install python-pip with yum

I am trying to install python-pip in a centos7 docker container, but I think I may be missing some package or something. [root@aasdfasdfa /]# yum -y install python-pip Loaded plugins: fastestmirror, ovl base …
25
votes
4 answers

Centos 7 - ping 8.8.8.8 (connect: Network is unreachable)

I think I have a routing problem. I have set up a CentOS VM, it is connected to my network and I can ping other machines. I cannot however ping anything outside of my network. [root@localhost ~]# ping 8.8.8.8 connect: Network is unreachable I also…
Neilos
  • 405
25
votes
3 answers

Permission denied because search permissions are missing on a component of the path, after chmod and chgrp

[core:error] [pid 5132] (13)Permission denied: [client 123.123.123.123:50398] AH00035: access to / denied (filesystem path '/var/www/mysite.com') because search permissions are missing on a component of the path I recently changed the group owner…
User
  • 851
23
votes
4 answers

How to make a desktop icon on centos 7?

I am new to Linux and this may sound very dumb but I need to make a desktop icon on centos 7 but I don't know how to do it. I tried googling but I can't even find Launcher. Need help
Kunwar
  • 495
18
votes
3 answers

"screen is terminating" for non-root

When I try to run screen as a non-root user I get: screen [screen is terminating] immediately, though it works fine for root ls -alh /usr/bin/screen -rwxr-sr-x 1 root screen 465K Jun 9 20:30 /usr/bin/screen When googling around I noticed a…
Rob
  • 669
16
votes
4 answers

CentOS 7 cannot allocate memory during a “yum install” operation

Try to yum install php56w-mcrypt and system gave me this error libmcrypt-2.5.8-13.el7.x86_64: [Errno 5] [Errno 12] Cannot allocate memory php56w-mcrypt-5.6.5-1.w7.x86_64: [Errno 5] [Errno 12] Cannot allocate memory I ran a check on free -m …
Muhaimin
  • 271
16
votes
4 answers

Getting firewalld to allow ping requests

On CentOS 7, I have installed and setup firewalld as follows: Add ssh service to drop zone permanently (sudo firewall-cmd --zone=drop --permanent --add-service=ssh) Make drop zone the default zone so that all non ssh requests are dropped (sudo…
15
votes
5 answers

How to get the machine IP address in a “systemd” service file

I need to get the IP of the machine and use it inside my service: [Unit] Description=Redmine server After=syslog.target After=network.target [Service] Type=simple User=redmine Group=redmine ip="$(/sbin/ip -o -4 addr list eno16777736 | awk '{print…
elekgeek
  • 193
15
votes
1 answer

CentOS7: Restart multiple instances of a service with one command

Is there a way of restarting all instances of a service in systemd using only one command? Suppose we have two daemons running called thingd@01 and thingd@02. Can I restart just those without having to resort to making one call to systemctl per…
14
votes
1 answer

How to install python-pip in CentOS7 Docker Container

I am trying to build a docker container that includes pip. I am on CentOS 7. Here is the fragment from running the docker build command: Step 3 : RUN yum -y install python-pip ---> Running in 25d1ba46e6dc Loaded plugins: fastestmirror Loading…
13
votes
3 answers

error while loading shared libraries: libOpenCL.so.1: cannot open shared object file: No such file or directory

I'm trying to run DaVinci Resolve on Centos 7, but when I start the program from the terminal I get the following error: error while loading shared libraries: libOpenCL.so.1: cannot open shared object file: No such file or directory As best as I…
Raviga
  • 131
12
votes
2 answers

"Created slice user-0.slice." and "Starting Session 2025 of user root." in /var/log/messages

I am getting "Created slice user-0.slice." and "Starting Session 2025 of user root." in /var/log/messages in CentOS 7.  Can someone explain what they are? [root@bew /]# tail -f /var/log/messages May 26 21:20:01 bew systemd: Created slice…
marbew
  • 121
12
votes
2 answers

Searching for grub configuration file in CentOS 7

Im searching for grub.conf file in CentOS 7. I cant find it with locate(I called updatedb before). Where does it stores? In older versions of CentOS I could find it.
12
votes
7 answers

Open multiple firewall ports in CentOS7

I need to open multiple different ports (not in ranges) on a CentOS machine. I know how to open a port with firewall-cmd, but that gets bothersome for opening like 40 and more ports. Is there a configuration file where I can define all open ports…
1
2 3
47 48