As of May 31, 2023, we have updated our Code of Conduct.

Hot answers tagged

50 votes
Accepted

How to install jq on RHEL6.5

As it says on the development page for jq "jq is written in C and has no runtime dependencies". So just download the file and put it in place with the following: wget -O jq https://github.com/...
Joe's user avatar
  • 1,033
40 votes
Accepted

How do I use Linux to find unused IP addresses on my network?

Any well-behaved device on an Ethernet LAN is free to ignore nearly any traffic, so PINGs, port scans, and the like are all unreliable. Devices are not, however, free to ignore ARP requests, afaik. ...
MadHatter's user avatar
  • 79.5k
26 votes

How to install jq on RHEL6.5

yum install -y epel-release yum install -y jq
danday74's user avatar
  • 851
20 votes

How do I use Linux to find unused IP addresses on my network?

Since a device cannot ignore ARP requests, I like to use a tool named arp-scan. It is available in most repositories. When you run the command with the --localnet switch it will give you an overview ...
Thorchy's user avatar
  • 1,431
19 votes

Do I need a RHEL subscription to install packages?

An alternative is to add the CentOS repository to your yum configs. CentOS is in large part a derivative of RHEL. As such, most of its packages are compatible with RHEL. Michael Cutler wrote a guide ...
Illya Moskvin's user avatar
17 votes

How to install jq on RHEL6.5

jq is in the EPEL repository, which you should already have enabled. Once you have enabled EPEL, you can just yum install jq like everything else.
Michael Hampton's user avatar
12 votes

How do I make a persistent domain with virsh?

If you don't have the xml for the running vm (eg. after transient migration), you can do virsh dumpxml vm_name > vm_name.xml virsh define vm_name.xml To check: virsh list --all --persistent The ...
samesame's user avatar
  • 121
11 votes

Home directories created with wrong Selinux context

Adding to this question for future people who may come across it. If you are putting home directories on an NFS share, you will need to set the correct SELinux context. Assuming your nfs home ...
Python Novice's user avatar
11 votes
Accepted

SSH Local Port forwarding working from localhost only

Are you aware that you type 4122 in the example? You should try -L *:4420:172.88.3.31:22 The star implies that you listen on all addresses, and not localhost, which you cannot connect to from ...
Martin's user avatar
  • 193
11 votes

How do I use Linux to find unused IP addresses on my network?

I don't know which version of nmap you are running in your Red Hat 6.5, but for recent releases, the correct (and faster) way I think it would be: nmap -sn -n 172.16.128.0/25 This will list every ...
Leo Gallego's user avatar
  • 1,863
8 votes

How to list all files of a partition on linux?

find / -mount -type f -ls will list all files like with an output similar to ls -dils. find / -mount -type f -printf "%s %h/%f\n" will just print the size and the name. The -mount (or -xdev) ...
Sven's user avatar
  • 98.4k
8 votes
Accepted

ldap_add: Protocol error (2) additional info: no attributes provided

In ldif syntax leading spaces are line wrapping markers. You are trying to add a dn of ou=People, dc=my_domain, dc=com ou: People objectclass: organizationalUnit with no attributes. dn: ou=People,dc=...
84104's user avatar
  • 12.8k
8 votes

How do I use Linux to find unused IP addresses on my network?

Part 1 -- fping This tool pings everything in the network range specified, and shows those that answer via ICMP. root@thionite:~# fping -a -g 10.28.1.0/24 10.28.1.1 10.28.1.2 10.28.1.3 10.28.1.4 10....
Criggie's user avatar
  • 2,329
8 votes
Accepted

It should be set to 65000 to avoid operational disruption

You set the hard limits, but not the soft limits, and the soft limits are what is being reported. You should also set the soft limits, in the same way. solr soft nofile 65000 solr soft ...
Michael Hampton's user avatar
7 votes

Errors using new rsyslog template syntax on RHEL6

As of September 2015 there are rsyslog7 packages available in RHEL6. The current version of rsyslog is 8.11, but this one is at least closer to current. To install, you first have to remove your ...
Dan Pritts's user avatar
  • 3,221
7 votes

How to build curl for TLSv1.2 support?

You should not need to build your own curl version, support for TLS 1.1 & 1.2 (with the --tlsv1.1 resp. --tlsv1.2 commandline switches) has been backported and became available in 2014 from curl ...
HBruijn's user avatar
  • 75.1k
6 votes
Accepted

Linux VMWare Tools build for running kernel or latest installed kernel?

VMware tools, as installed via the vSphere client, will build against the currently-running kernel, not the latest kernel on the server. If using a support OS (like RHEL6), you should avoid this ...
ewwhite's user avatar
  • 197k
6 votes
Accepted

what are public yum respositories for red hat linux

Red Hat requires a subscription to make use of their repositories, meaning you need to join their developer program or pay for a subscription. If you don't actually need Red Hat specifically (or a ...
Kefka's user avatar
  • 196
6 votes
Accepted

mount.cifs: mount error(112): Host is down

I found this link here which says SMB 2 and 3 is not supported for rhel and Centos 6. It can only mount SMB1. From Centos and rhel 7 this is supported.
Arun Krishnan's user avatar
5 votes

Log/Audit everything allowed by SELinux

Contrary to the usual practice, setting SELinux to permissive mode and recording all AVC denials in order to develop a policy module can result in a wrong set of permissions being included in such ...
dawud's user avatar
  • 15.1k
5 votes
Accepted

Low CPU and Memory utilization. Does that mean server is healthy?

Numbers you have posted look just fine. But it is hard to tell what else is going under the hood. If the server is doing fine - meaning response times are in acceptable range, no spikes or so, ...
Fox's user avatar
  • 3,947
5 votes
Accepted

How can I install the latest Image Magick on RedHat Enterprise 6.6?

On Red Hat systems, ImageMagick is available in the default base package repository so you only need to run: sudo yum install ImageMagick Note that the package was built with support for X11 and Gtk+...
Anthony Geoghegan's user avatar
5 votes

Ansible + why yum not install the latest version

I don't know where you got "ansible 1.1". That's certainly not the current version available in RHEL or EPEL repositories. EPEL 6 currently has ansible 1.9.2, and you should be using EPEL. /srv/www/...
Michael Hampton's user avatar
5 votes

How to log if a user removes a file from samba share

It seems like the vfs_full_audit feature should get you the required info: Based on instructions found here I think you should get it to work like this, Add the following to smb.conf and restart ...
Bert Neef's user avatar
  • 296
5 votes
Accepted

Globbing based on current directory

This is because the result of the *mysql* globbing depends on the content of the directory you are in. Your shell interprets the * character (unless you escape it or hide it in quotes) by trying to ...
Law29's user avatar
  • 3,527
5 votes
Accepted

File Copy failing using Puppet File resource

Your module(s) don't appear to conform to the standard directory structure. With a source URL of puppet:///modules/foo/bar.txt, Puppet will be looking for ${codedir}/environments/production/modules/...
bodgit's user avatar
  • 4,741
5 votes

completely remove phpmyadmin centos

You do realise that locate looks at a database cache with filenames (created nightly/manually with the updatedb command) and not at your live file system. locate does not reflect the actual state of ...
HBruijn's user avatar
  • 75.1k
5 votes

Almost every app (rpm,curl..) is broken (Red Hat Enterprise Linux 6.8) after rpm force installation - libnssutil3.so error

The non-sarcasting and reliable answer would be this. That script downloaded all dependencies, including a bunch of system libraries. The version of Fedora you used and RHEL 6 are NOT binary ...
Florin Asăvoaie's user avatar
5 votes

How do I use Linux to find unused IP addresses on my network?

IPv6 Don't assume that IPv4 is your only option. Many modern operating systems handle IPv6 just fine, even if your ISP doesn't provide V6 connectivity. There may even be devices which are only ...
Criggie's user avatar
  • 2,329
4 votes

How to install git-daemon on red hat enterprise 6

I would be remiss if I didn't point out the spectacular lack of research in your question, but here's your answer: yum install git-daemon
BE77Y's user avatar
  • 2,667

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