rhel7

Run privileged podman without sudo (and without usernamespace)

让人想犯罪 __ 提交于 2020-02-27 12:00:27
问题 I installed podman on RHEL 7.6 and can run normal docker command with sudo sudo podman run hello-world Is there a way to run it without sudo, without using usernamespace (similar to adding your user to the docker group when using regular docker command)? I understand that when run as a non-root user, podman uses usernamespace. But I am not able to enable/ setup suid on the machine (LDAP etc.) Currently, when run as a non-root user, I get this user namespaces are not enabled in /proc/sys/user

PHP is_writable() function always returns false for a writable directory

◇◆丶佛笑我妖孽 提交于 2020-01-01 04:21:05
问题 I'm trying to install a PHP-based software package in a Red Hat 7 Amazon EC2 instance (ami-8cff51fb) that has had Apache 2.4.6 and PHP 5.4.16 installed on it using yum. The installation fails because it says a particular directory needs to be writable by the webserver with 0755 or 0775 permissions. The directory in question has 0775 permissions with root:apache ownership. I have verified that the httpd process is being run by the apache user and that the apache user is a member of the apache

Why do we need Redis for running CKAN?

与世无争的帅哥 提交于 2019-12-23 17:53:08
问题 I was wondering why do we need Redis server for running CKAN. If needed, why? And How do I configure it with CKAN? p.s I am running my ckan instance in RHEL7. 回答1: Update: Redis has been a requirement since CKAN 2.7, when a new system for asynchronous background jobs was introduced which relies on Redis. You can configure the Redis connection using the ckan.redis.url option. Redis is not required for the current version of CKAN (2.6.2 at the time of this writing), it's not even mentioned in

How to Compile 32-bit Apps on 64-bit RHEL?

假如想象 提交于 2019-12-18 14:54:14
问题 I'm trying to compile a 32-bit C application on RHEL 7 64-bit using gcc 4.8. I'm getting a compiler error /usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory . What do I need to do to get 32 bit apps compiled and linked? 回答1: To get RHEL 7 64-bit to compile gcc 4.8 32-bit programs, you'll need to do two things. Make sure all the 32-bit gcc 4.8 development tools are completely installed: sudo yum install glibc-devel.i686 libgcc.i686 libstdc++-devel.i686 ncurses

gitlab 500 errors in the admin area

[亡魂溺海] 提交于 2019-12-13 23:33:59
问题 How to reproduce: login as admin go into the admin menu click on overview - runners or click save in the settings Result: 500 Error: Whoops, something went wrong on our end. Which system is running? RHEL 7, outbound gitlab with Nginx and passengers Errors: OpenSSL::Cipher::CipherError (): lib/gitlab/crypto_helper.rb:27:in `aes256_gcm_decrypt' app/models/concerns/token_authenticatable_strategies/encrypted.rb:55:in `get_token' app/models/concerns/token_authenticatable_strategies/base.rb:27:in

ldap_bind() fails with “Can't contact LDAP server”

一个人想着一个人 提交于 2019-12-11 12:56:23
问题 Working on an EL7 system with PHP 5.6 and openldap 2.4.40. I'm able to query the remote ldaps server using ldapsearch: ldapsearch -H ldaps://ldap.example.com -D "CN=serviceaccount,OU=Services,DC=example,DC=com" -x -w "sapass" -LLL -b "DC=example,DC=com" cn="acoder" This returns expected data on user acoder. Moving to PHP, I'm attempting to bind to the same server using the same credentials and pass (sapass) above. // server settings $srvc_id = 'serviceaccount'; $srvc_pass = "somepass"; $ldap

Installing up-to-date version of Erlang on RHEL7

狂风中的少年 提交于 2019-12-11 02:37:50
问题 I'm trying to install an up to date (version 20.3 at the moment of the writing) Erlang distribution into RHEL7 (release 7.5 to be exact). Google tells me the up-to-date Erlang distribution is maintained by Erlang Solutions at https://packages.erlang-solutions.com/ (thanks!) There you also find instructions how to add the repository so that the Erlang can be installed with a package manager: Installation using repository Adding repository entry To add Erlang Solutions repository (including our

_GLIBCXX_USE_CXX11_ABI disabled on RHEL6 and RHEL7?

风格不统一 提交于 2019-12-10 15:56:58
问题 I have gcc 5.2.1 on RHEL6 and RHEL7, and it looks like _GLIBCXX_USE_CXX11_ABI gets disabled. It's not working even if I manually run -D_GLIBCXX_USE_CXX11_ABI=1 -std=c++14 . This means I won't get small string optimization feature. For example, the output of following code always have 8 and 'micro not set'. For SSO, size of std::string should be at least 16 if we look at code bits/basic_string.h. Any workaround? #include <string> #include <iostream> int main() { std::cout << sizeof(std::string

AWS Lambda cannot connect to Oracle Instant Client

↘锁芯ラ 提交于 2019-12-10 10:57:51
问题 I have a basic requirement of connecting an on premise Oracle database to Redshift. I need to use AWS Lambda to connect to both the databases using python. While I achieved connection to Redshift by exporting Linux libraries of psycopg2 , I am facing issues with the Oracle database. Below are the steps followed to try to connect to Oracle on premise DB : Installed cx_Oracle which came up with cx_Oracle.cpython-36m-x86_64-linux-gnu.so and psycopg2-2.7.4.dist-info Installed basic oracle client

The command '/bin/sh -c returned a non-zero code: 127

强颜欢笑 提交于 2019-12-09 07:33:11
问题 I'm new to docker so I might be doing this wrong, but I'm trying to install Tomcat6 through a Dockerfile which like this: FROM rhel7:latest RUN cd /tmp RUN "wget", "http://www.us.apache.org/dist/tomcat/tomcat-6/v6.0.44/bin/apache-tomcat-6.0.44.tar.gz" RUN tar xzf apache-tomcat-6.0.44.tar.gz RUN mv apache-tomcat-6.0.44 /usr/local/tomcat6 RUN cd /usr/local/tomcat6 Run ./bin/start.sh Its failing on the 3rd line with the: RUN "wget", "http://www.us.apache.org/dist/tomcat/tomcat-6/v6.0.44/bin