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
14
votes
1 answer

How to install vim on RedHat via commmandline

I am running a RHEL 7.2 (Maipo) on an AWS instance with commandline access. To my greatest surprise, vim needs to be installed and as I am fairly new to RedHat, I was at a loss initially as to the easiest way to install it, so I am adding it below…
Lefty G Balogh
  • 1,771
  • 3
  • 26
  • 40
14
votes
1 answer

What is the difference between ~/ and ~ in Linux?

I am novice to Linux, using it a little more than a year. Can anybody help me resolve my question? When I use ~/ only it shows user home directory. Why does it not work in the case of using ~ alone to specify path to a file or directory?
14
votes
5 answers

Yum repositories don't work unless there are exceptions in the AWS firewall. How do I make the exceptions based on a DNS name?

When I try to install something via yum (e.g., yum install java), I get the following: Could not contact CDS load balancer rhui2-cds01.us-west-2.aws.ce.redhat.com, trying others. Could not contact any CDS load balancers:…
Propulsion
  • 503
  • 2
  • 4
  • 14
14
votes
1 answer

RedHat daemon function usage

I'm working on an init script for Jetty on RHEL. Trying to use the daemon function provided by the init library (/etc/rc.d/init.d/functions). I found this terse documentation, and an online example (I've also been looking at other init scripts on…
quickshiftin
  • 66,362
  • 10
  • 68
  • 89
14
votes
2 answers

How to install Xvfb (X virtual framebuffer) on Redhat 6.5?

I have tried to install the Xvfb on red-hat 6.5 using yum -y install xorg-x11-server-Xvfb but it is not installed and it is giving msg that No package xorg-x11-server-Xvfb available. Error: Nothing to do Plese help me to install Xvfb on Redhat…
Rahul
  • 3,479
  • 3
  • 16
  • 28
13
votes
9 answers

Elasticsearch process memory locking failed

I have set boostrap.memory_lock=true Updated /etc/security/limits.conf added memlock unlimited for elastic search user My elastic search was running fine for many months. Suddenly it failed 1 day back. In logs I can see below error and process never…
Shades88
  • 7,934
  • 22
  • 88
  • 130
13
votes
5 answers

What exact command is to install pm2 on offline RHEL

First of all it's not a duplicate question of below:- How to install npm -g on offline server https://stackoverflow.com/questions/40976100/how-to-installl-pm2-on-offline-server I install npmbox (https://github.com/arei/npmbox) on my offline REHL…
Jitendra Pancholi
  • 7,897
  • 12
  • 51
  • 84
13
votes
10 answers

Will Java compiled in windows work in Linux?

My Java program is in working order when i use it under Windows(Eclipse and Bluej). I compress it to a Jar and send it to my red hat and bang. nothing works. It breaks on the weirdest things, such as text field set text will not show, JPasswordfield…
JavaLu
  • 133
  • 1
  • 1
  • 5
13
votes
2 answers

Where is javac after installing new openjdk?

An additional jdk was installed and configured on RHEL5. yum install java-1.7.0-openjdk.x86_64 update-alternatives It appeared to work: java -version points to desired 1.7. However, javac -version still points to old 1.6. sudo update-alternatives…
Jacob
  • 349
  • 1
  • 2
  • 12
13
votes
3 answers

top 'xterm': unknown terminal type

I have an error when run TOP command: >top 'xterm': unknown terminal type. > echo $TERM xterm > echo $DISPLAY DYSPLAY: Undefined variable. > cat /etc/redhat-release Red Hat Enterprise Linux Server release 6.3 (Santiago) > ls…
Marco Rocci
  • 355
  • 1
  • 2
  • 10
13
votes
2 answers

puppet log file in redhat and centos

I am running puppet agent in CentOS and Redhat. I would like to see its log file but cannot find it. In these operating systems, I clearly specify logdir = /var/log/puppet in the puppet.conf, but upon checking this directory, it is empty. Note that…
Henry Vu
  • 151
  • 1
  • 1
  • 5
13
votes
2 answers

Java OracleDB connection taking too long the first time

I'm having a problem when connecting to an Oracle database, it takes a long time (about ~5 minutes) and it sends the below shown exception. Most of the time, after the first error, the next connections for the same process work correctly. It is a…
iamedu
  • 295
  • 4
  • 15
12
votes
4 answers

RedHat 6/Oracle Linux 6 is not allowing key authentication via ssh

Keys are properly deployed in ~/.ssh/authorized_keys Yet ssh keeps on prompting for a password.
Olivier Refalo
  • 50,287
  • 22
  • 91
  • 122
12
votes
5 answers

Ruby on Rails: no such file to load -- openssl on RedHat Linux Enterprise

I am trying to do 'rake db:migrate' and getting the error message 'no such file to load -- openssl'. Both 'openssl' and 'openssl-devel' packages are installed. Others on Debian or Ubuntu seem to be able to get rid of this by installing…
unknown (yahoo)
12
votes
1 answer

Why does service stop after RPM is updated

I have a software package for which I created an RPM. I can't paste the entire RPM here for IP reasons, but here is the gist of the problem: %pre /sbin/pidof program if [ "$?" -eq "0" ] then /sbin/service program stop fi %post /sbin/chkconfig…
Sagar
  • 9,456
  • 6
  • 54
  • 96