47

You have to enable the EPEL repo, use: yum --enablerepo=extras install epel-release This command will install the correct EPEL repository for the CentOS version you are running. After this you will be able to install python-pip.


37

More detail: Click on the power icon in the upper left. Click on settings(wrench/screwdriver picture/icon). Click on the power icon. Under power saving is the selection for blank screen, mine was set to a default of 5 min. I changed it to never.


33

Finally figured out a fix. I ran these 2 functions to recursively file the folder and file permissions of www and within. find /var/www -type d -exec chmod 755 {} \; find /var/www -type f -exec chmod 644 {} \; I read this page here: https://wiki.apache.org/httpd/13PermissionDenied and it basically explained and reminded me that permissions are inherited, "...


23

You should be able to restart both of them with one systemctl, just put a space between the services. E.g. systemctl restart thingd@01 thingd@02 I usually stop all major services before cloning an instance after it has been removed from a load balanced pool. I use the following: # stop php-fpm, MariaDB, nginx and postfix systemctl stop php-fpm nginx ...


22

Usually the execute permission for one path is not set, like it was in this question. The easiest way to solve this is the following command: chmod a+rX -R /var/www But on using CentOS7 or RHEL7 you might encounter problems with SELinux. If file permission are right and you still get the error, look at the following log: tail -f /var/log/audit/audit.log ...


22

Based on the errors, you need to update the files to look like this: /etc/sysconfig/network-scripts/ifcfg-enp0s3: TYPE="Ethernet" BOOTPROTO="static" IPADDR=10.0.0.10 NETMASK=255.255.255.0 NM_CONTROLLED=no DEFROUTE="yes" PEERDNS="yes" PEERROUTES="yes" IPV4_FAILURE_FATAL="no" IPV6INIT="yes" IPV6_AUTOCONF="yes" IPV6_DEFROUTE="yes" IPV6_PEERDNS="yes" ...


20

For Ubuntu, try: How to install libOpenCL.so on Ubuntu sudo apt update sudo apt install ocl-icd-opencl-dev


19

You can create swap file: fallocate -l 512M /swapfile chmod 600 /swapfile mkswap /swapfile swapon /swapfile This will create swap file and you will be able to install applications. To remove swap file: swapoff -a rm -f /swapfile see Arch wiki for details.


18

Using this in the Dockerfile allowed me to install pip: RUN yum -y install epel-release && yum clean all RUN yum -y install python-pip && yum clean all That seems much cleaner than using an rpm or curl. If that still fails, try: RUN yum -y install --enablerepo="epel" python-pip && yum clean all


16

I had this issue on Dedicated CentOS 7 server, and came across the fix described in this bug report: bugs.centos.org/view.php?id=7395 That was a fine solution on the Dedicated to add gid=5 to devpts in fstab. screen now works as expected for all users. However, I ran across this thread as I was trying to solve the issue on an OpenVZ container of CentOS 7. ...


16

Edit the file from the below location. /etc/sysconfig/network-scripts/ifcfg-enp<number> Change the ONBOOT option to YES and restart network service. service network restart This will enable the network whenever VM is brought up. To know the network status use the nmcli d command STATE column output.


15

Solution is to set the Linux version in VirtualBox to be 64 bit!


14

Use of GNOME3 is assumed. Using a preexisting shortcut Reference: How to add desktop shortcut icons in RHEL7 ? (2015) (registration required) Click on Home directory on desktop. The nautilus (file browser) window will open. Click the Computer tab in the left navigation panel, go to /usr/share/applications. All the applications icons will appear in the ...


14

There is a known problem with VMs on Hyper-V unable to set the screen to a high resolution, with no way of changing it either from KDE System Settings or Hyper-V virtual machine properties. The problem is with the frame buffer driver of Hyper-V. CentOS provides a tool called grubby for managing grub.cfg which is much easier to work with than editing /etc/...


12

This issue is the server seem to only have 490MB of RAM on the machine and you have 421MB used. Leaving only 68MB free; that is not a lot of memory for any system to work with. Looking at the output from top shows that MySQL (aka: mysqld) is the culprit. The best thing you can do if this is a temporary situation is to simply stop MySQL like this: sudo ...


12

Hallelujah! This all turned out to be an SELinux policy issue specifically pertaining to nginx. After hours of digging, I discovered such denials by running: sudo grep nginx /var/log/audit/audit.log The messages looked like so: type=AVC msg=audit(1415283617.227:1386): avc: denied { write } for pid=1683 comm="nginx" name="my_app.sock" dev="tmpfs" ino=...


12

Getting machine hostname with systemd. While I am not deeply familiar with systemd looking over this tutorial website as well as the official systemd man pages, what you seem to be looking for is a “specifier” value: Many settings resolve specifiers which may be used to write generic unit files referring to runtime or unit parameters that are replaced ...


11

I was going crazy about the same issue. The reason why yum couldn't find python-pip was that it is not called python-pip anymore. Starting with EPEL Version 7 it is renamed to identify the python version. On my centOS machine i can find now the following python*-pip packages. [root@asdasdasdasdsa ~]# yum info python*-pip Loaded plugins: fastestmirror ...


11

Namespaces is a kernel feature used by containers like LXC or docker. You have several kinds, PID namespaces, user namespaces,... And you're right, it's quite complicated at first. I find this old blogpost has a good explanation of why it's useful for containers: https://rhelblog.redhat.com/2015/07/07/whats-next-for-containers-user-namespaces/ So, why ...


10

I'm not sure if this is the proper solution but noticed in the SSSD FAQ this point: When should I enable enumeration in SSSD? or Why is enumeration disabled by default? "Enumeration" is SSSD's term for "reading in and displaying all the values of a particular map (users, groups, etc.)". We disable this by default in the SSSD in order to minimize ...


10

After more sleuthing, I figured it out. There was a directory hierarchy missing, and yum couldn't detect my CentOS version. Running the following commands fixed it right up: mkdir -p /etc/yum/vars echo 7.2.1511 > /etc/yum/vars/releasever Replace "7.2.1511" with your own release version if you are having this problem and nothing else has worked. UPDATE ...


10

This centos.org's post saved me. The solution is simply to allow cntlm to create its pid file: $ mkdir /var/run/cntlm $ chgrp cntlm /var/run/cntlm/ $ chmod g+w /var/run/cntlm/ $ service cntlmd restart


10

Check that ONBOOT is set to yes in /etc/sysconfig/network-scripts/ifcfg-eno1677736. And a quick fix in case it already is—although not the best one—would be to add ifdown eno1677736; ifup eno1677736 at the bottom of /etc/rc.d/rc.local. Then save the file and make it executable: chmod +x /etc/rc.d/rc.local Now you’ll be running that command on every ...


10

You cannot achieve this by blocking individual commands. There are dozens, if not hundreds, of commands that people can use to become root through sudo: sudo -s sudo -i sudo bash sudo env su sudo /bin/sh sudo env sudo sudo busybox sh sudo unshare sudo chroot / sudo systemd-run --shell sudo nvim -c ":terminal" sudo perl -e 'exec("bash")' sudo git -c protocol....


9

Try this for creating short-cut/launcher on GNOME 3 Desktop Note: I'm using CentOS 7 running Gnome 3 Desktop. Open a terminal Goto Desktop directory (/home/$yourname/Desktop/) Create a desktop file (touch appName.desktop) Open the file and add the following content to the file (vi appName.desktop) [Desktop Entry] Version=1.0 Type=Application Terminal=...


9

As answered by @strandraeber above your /boot/ is full due to old kernels One way to fix this would be deleting old kernels. You can do that by installing yum-utils and running command as shown package-cleanup --oldkernels --count=1 This will delete all old kernels except for latest one. You can play with the numbers too. Another option for you is to ...


9

Can someone please give me an overview in simple language of what are the contents inside yum.repos.d and how does it differ from the contents inside /etc/yum.conf [?] Per this RedHat Article on YUM: The configuration file for yum and related utilities is located at /etc/yum.conf. This file contains one mandatory [main] section, which allows you to set ...


8

How can I remove this latest kernel from my system? I was apparently specifying the version incorrectly. This works: $ sudo yum remove kernel-3.10.0-229.1.2.el7 How can I prevent it from being installed in the next yum update? To do so manually, use the --exclude option, like so: $ sudo yum update --exclude=kernel


8

By default CentOS 7 comes with firewalld installed. Check it is configured properly or disabled. systemctl stop firewalld systemctl disable firewalld


8

libvirt's macvlan has gained support for multicast. Unfortunately it is disabled by the default setting trustGuestRxFilters="no", and the documentation is not explicit that this breaks multicast. As you observed, breaking multicast also breaks IPv6. https://bugzilla.redhat.com/show_bug.cgi?id=1035253#c15 You may be able to work around this by manually ...


Only top voted, non community-wiki answers of a minimum length are eligible