Questions tagged [redhat]

For issues relating to Red Hat platforms, products, and/or services.

Red Hat, Inc. is a company in the free and open source software sector, and a major Linux distribution vendor. Red Hat has become associated to a large extent with its enterprise operating system Red Hat Enterprise Linux () and with the acquisition of open-source enterprise middleware vendor . Red Hat provides operating-system platforms along with middleware, applications, and management products, as well as support, training, and consulting services.

For questions on a specific Red Hat products, consider using the tag for that product.

Community

Red Hat was acquired by IBM in July 2019.

3924 questions
408
votes
12 answers

Start ssh-agent on login

I have a site as a remote Git repo pulling from Bitbucket.com using an SSH alias. I can manually start the ssh-agent on my server but I have to do this every time I login via SSH. I manually start the ssh-agent: eval ssh-agent $SHELL Then I add the…
Pathsofdesign
  • 4,678
  • 5
  • 18
  • 26
220
votes
6 answers

How can I permanently export a variable in Linux?

I am running RHEL 6, and I have exported an environment variable like this: export DISPLAY=:0 That variable is lost when the terminal is closed. How do I permanently add this so that this variable value always exists with a particular user?
user1340582
  • 19,151
  • 35
  • 115
  • 171
188
votes
3 answers

Determining the path that a yum package installed to

I've installed ffmpeg using yum under Redhat, and I'm having difficulty figuring out where (what path) it installed the package to. Is there an easy way of determining this without resorting to finding it myself manually?
brettbuddin
  • 1,899
  • 2
  • 12
  • 4
113
votes
11 answers

How can I randomize the lines in a file using standard tools on Red Hat Linux?

How can I randomize the lines in a file using standard tools on Red Hat Linux? I don't have the shuf command, so I am looking for something like a perl or awk one-liner that accomplishes the same task.
Stuart Woodward
  • 2,138
  • 4
  • 21
  • 31
95
votes
7 answers

Yum crashed with Keyboard Interrupt error

I installed the newer version of python (3.2.3) than the one available in Fedora16 (python2.7) And now yum stops working. It shows the following error. [root@localhost yum-3.4.3]# yum File "/usr/bin/yum", line 30 except KeyboardInterrupt, e: …
SSAMEERR
  • 951
  • 1
  • 6
  • 5
88
votes
5 answers

How to get only process ID in specify process name in Linux?

How to get only the process ID for a specified process name in Linux? ps -ef|grep java test 31372 31265 0 13:41 pts/1 00:00:00 grep java Based on the process id I will write some logic. So how do I get only the process id for a specific…
openquestion
  • 933
  • 1
  • 7
  • 6
80
votes
4 answers

How to fix: fatal error: openssl/opensslv.h: No such file or directory in RedHat 7

I have RedHat Enterprise Linux Server 7, and I downloaded the linux kernel version 4.12.10 which I am trying to compile but when I execute the following command: make modules I get the following error: scripts/sign-file.c:25:30: fatal error:…
rainman
  • 2,551
  • 6
  • 29
  • 43
77
votes
11 answers

How to schedule to run first Sunday of every month

I am using Bash on RedHat. I need to schedule a cron job to run at at 9:00 AM on first Sunday of every month. How can I do this?
ring bearer
  • 20,383
  • 7
  • 59
  • 72
70
votes
15 answers

Specify the from user when sending email using the mail command

Does anyone know how to change the from user when sending email using the mail command? I have looked through the man page and can not see how to do this. We are running Redhat Linux 5.
Joel Cunningham
  • 13,620
  • 8
  • 43
  • 49
65
votes
2 answers

Click will abort further execution because Python 3 was configured to use ASCII as encoding for the environment

I downloaded Quokka Python/Flask CMS to a CentOS7 server. Everything works fine with command sudo python3 manage.py runserver --host 0.0.0.0 --port 80 Then I create a file /etc/init.d/quokkacms. The file contains following code start() { …
Dustin Sun
  • 5,292
  • 9
  • 49
  • 87
64
votes
3 answers

Linux free shows high memory usage but top does not

On RedHat Linux 6.2 I'm running free -m and it shows nearly all 8GB used total used free shared buffers cached Mem: 7989 7734 254 0 28 7128 -/+ buffers/cache: …
DarVar
  • 16,882
  • 29
  • 97
  • 146
61
votes
2 answers

CentOS through a VM - no URLs in mirrorlist

I am trying to run a CentOS 8 server through VirtualBox (6.1.30) (Vagrant), which worked just fine yesterday for me, but today I tried running a sudo yum update. I keep getting this error for some reason: [vagrant@192.168.38.4] ~ >> sudo yum…
Eylon
  • 628
  • 1
  • 3
  • 7
56
votes
3 answers

docker compose: Error while loading shared libraries: libz.so.1: failed to map segment from shared object: Operation not permitted

After installing docker and docker-compose on: NAME="Red Hat Enterprise Linux Server" VERSION="7.6 (Maipo)" When executing: sudo docker-compose -version It returns: Error while loading shared libraries: libz.so.1: failed to map segment from…
Roberto Gonçalves
  • 3,186
  • 4
  • 13
  • 27
56
votes
8 answers

PIL /JPEG Library: "decoder jpeg not available"

I tried to use PIL to do some JPEG work in my django app with PIL but I'm getting this IOError.. not sure what to do. ""decoder jpeg not available"" Am I missing the JPEG decoder from my server? If so, how do I fix it?
Brian D
  • 9,863
  • 18
  • 61
  • 96
54
votes
5 answers

How to install maven on redhat linux

Note: When originally posted I was trying to install maven2. Since the main answer is for maven3 I have updated the title. The rest of the question remains as it was originally posted. I'm trying to install maven2 on a redhat linux box using the…
OrwellHindenberg
  • 4,988
  • 8
  • 38
  • 58
1
2 3
99 100