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

3491 questions
320
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
  • 3,768
  • 5
  • 15
  • 25
183
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,849
  • 2
  • 12
  • 4
180
votes
6 answers

How to permanently export a variable in Linux?

I am running RHEL6, 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
  • 17,299
  • 31
  • 104
  • 159
106
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
  • 1,919
  • 4
  • 18
  • 29
70
votes
6 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
  • 743
  • 1
  • 6
  • 6
64
votes
10 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
  • 18,848
  • 7
  • 53
  • 68
59
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
  • 13,748
  • 21
  • 77
  • 117
59
votes
16 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
  • 12,982
  • 8
  • 41
  • 49
58
votes
6 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
  • 581
  • 1
  • 4
  • 5
54
votes
3 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,151
  • 6
  • 25
  • 39
52
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
  • 8,553
  • 17
  • 57
  • 93
50
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,731
  • 7
  • 34
  • 54
49
votes
7 answers

install Docker CE 17.03 on RHEL7

Is it possible to install DockerCE in the specific version 17.03 on RHEL7 ? There is information here: https://docs.docker.com/engine/installation/linux/rhel/#install-using-the-repository about the installing Docker on RHEL but there is no version…
user3313834
  • 5,701
  • 4
  • 40
  • 76
42
votes
3 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
  • 4,298
  • 5
  • 41
  • 76
40
votes
8 answers

MySQL config file location - redhat linux server

What is the default location for the MySQL configuration file on a redhat linux box?
user42931
  • 991
  • 2
  • 9
  • 12
1
2 3
99 100