Questions tagged [centos6]

CentOS was an Linux distribution standing for "Community ENTerprise Operating System" based on "Red Hat Enterprise Linux" (RHEL). The "CentOS6" tag refers to versions 6.x of CentOS. CentOS 6 was released on November 27, 2011 and reached End Of Life on November 30, 2020.

Filter by
Sorted by
Tagged with
83 votes
3 answers
144k views

What does that mean: packages excluded due to repository priority protections

When updating with yum i recieve the following message: yum update Loaded plugins: fastestmirror, priorities Loading mirror speeds from cached hostfile * atomic: www7.atomicorp.com * base: mirror....
mate64's user avatar
  • 1,691
70 votes
9 answers
58k views

gpg --gen-key hangs at gaining enough entropy on centos 6

Trying to generate a key for a server. gpg --gen-key We need to generate a lot of random bytes. It is a good idea to perform some other action (type on the keyboard, move the mouse, utilize the ...
stormdrain's user avatar
  • 1,469
58 votes
7 answers
79k views

PECL command produces long list of errors

Currently running PHP 5.4 on CentOS 6.5. I installed the webtatic php55w package then installed PEAR+PECL without issue along with redis and mongo through PECL. Shortly after, I realized 5.5 is not ...
eComEvo's user avatar
  • 1,041
58 votes
8 answers
290k views

How can I find current SSH protocol version of the current connection?

I connect to a Linux machine (CentOS 6.4) using PuTTY. Except from fact that I can set PuTTY to only use one type of protocol, how can I find the current SSH connection's version (SSH1 or SSH2)?
codiac's user avatar
  • 699
54 votes
4 answers
104k views

EPEL Repo for CentOS 6 causing error

I've got a VM running CentOS 6 (64bit) and I'm attempting to add the EPEL repo like usual to install various packages as I do quite regularly. Today, I'm experiencing some strange errors yet I'm doing ...
Tom Wilson's user avatar
54 votes
4 answers
184k views

ipmitool - can't find /dev/ipmi0 or /dev/ipmidev/0

Based on a previous question, I installed ipmitool (yum install ipmitool). Even after a reboot, though, i get the following error when trying to run ipmitool power status: Could not open device at /...
warren's user avatar
  • 18.8k
49 votes
8 answers
130k views

ls hangs for a certain directory

There is a particular directory (/var/www), that when I run ls (with or without some options), the command hangs and never completes. There is only about 10-15 files and directories in /var/www. ...
Jake Wilson's user avatar
  • 8,934
44 votes
3 answers
22k views

How to allow ssh to root user only from the local network?

I've installed Google-Authenticator on a CentOS 6.5 machine and configured certain users to provide OTP. While editing /etc/ssh/sshd_config I saw a directive "PermitRootLogin" which is commented out ...
Itai Ganot's user avatar
  • 10.8k
43 votes
2 answers
89k views

CentOS /usr/local/lib system wide $LD_LIBRARY_PATH?

I install custom software in /usr/local/lib. How do I set the PATH and LD_LIBRARY_PATH in CentOS 6 system-wide to use /usr/local/lib. I realize there may be more than one way. What's the simplest and ...
unixman83's user avatar
  • 1,952
38 votes
5 answers
105k views

Changing the maximum mail size in Postfix

When sending large email to a new CentOS6 server running Postfix as the MTA, the following message is returned: tried to deliver your message, but it was rejected by the recipient domain. We ...
warren's user avatar
  • 18.8k
35 votes
2 answers
90k views

How do I configure LDAP on Centos 6 for user authentication in the most secure and correct way?

During the last couple of days I have been using a lot of F-words, while browsing Internet for good documentation about how to setup an LDAP-server. So far I have found none, but plenty that are less ...
Arlukin's user avatar
  • 1,233
34 votes
2 answers
4k views

Why is my bare-metal 16x 2.93GHz cores computer performing poorer than a VPS with 4x 2.5GHz cores?

I have a written a piece of multi-threaded software that does a bunch of simulations a day. This is a very CPU-intensive task, and I have been running this program on cloud services, usually on ...
Glauco Cattalini Lins's user avatar
34 votes
1 answer
36k views

What's the difference between postfix/smtp and postfix/smtpd

A bit confused when reading through the logs of my smtp/mail server, I'm turning this questions to you guys. In the maillog files I'm seeing entries for postfix/smtp as well as postfix/smtpd. I can ...
Edwin Krause's user avatar
33 votes
5 answers
75k views

How do I change timezone in centos 6.2?

Here is the output of my date command: [root@r1304 ~]# date Wed Apr 18 15:43:28 GST 2012 I want to change the default system timezone to Asia/Dubai. I've followed a tutorial and did this: ln -sf /...
Temnovit's user avatar
  • 1,127
32 votes
6 answers
13k views

How to create a symbolic link without using ln?

I deleted a critical symbolic link - libc.so.6. I have the file it should point at, but the basic commands such as ln or wget won't work anymore due to the link missing. However, echo or other Bash ...
Sebas's user avatar
  • 535
26 votes
2 answers
17k views

How to kill a process that never dies?

Problem I have java process which does not die neither with SIGTERM nor SIGKILL. logstash 2591 1 99 13:22 ? 00:01:46 /usr/bin/java -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:...
Yu Watanabe's user avatar
25 votes
2 answers
22k views

How to uninstall git installed from the source? [closed]

I installed the git using this article. Now I want to uninstall the git. How to do it?
Mikhail's user avatar
  • 559
23 votes
2 answers
45k views

How do I view the contents of a SELinux policy package

As the title says, how do I view the contents of a SELinux policy package? The resulting files end with .pp. I'm running on centos 6, but I guess it's the same way on "all" distros. For example ...
Arlukin's user avatar
  • 1,233
22 votes
3 answers
60k views

How do I upgrade to the latest PHP version in CentOS with yum?

I found some blog posts about this, but it's rather lack of descriptions on possible side effects. I could really use some detailed on these steps: How to add a repo that provides PHP 5.4 into yum ...
Vicary's user avatar
  • 333
19 votes
3 answers
7k views

Should I be worried that yum update suddenly wants to update well over 100 packages on my CentOS 6 system?

I get an email alert whenever there's something to update, and typically do them that day. This tends to happen most days. For whatever reason I've had no alerts since 20th July until today (I ...
Codemonkey's user avatar
  • 1,138
19 votes
3 answers
47k views

How do you set a DATE variable to use in a log for crontab output?

I was playing aroudn with some variations of date like DATE = $(date) but that didnt work either crontab -e CRONLOG=/tmp/log/crontab.log DATEVAR=`date +20\%y\%m\%d_\%H\%M\%S` * * * * * echo $...
qodeninja's user avatar
  • 2,783
19 votes
6 answers
77k views

Cannot access port 80 from remote location but works on local?

I have a linux server on configuration with apache. However I cannot get access to it using a remote computer. I can ssh to the server normally. my IP table: Chain INPUT (policy ACCEPT) target ...
DucDigital's user avatar
  • 1,541
19 votes
1 answer
21k views

What is fastest way to copy a sparse file? What method results in the smallest file?

BACKGROUND: I'm copying a sparse qcow2 VM image that is 200GB in size, but has 16GB of allocated blocks. I've tried various methods to copy this sparse file within the same server and have some ...
Steve Amerige's user avatar
18 votes
3 answers
34k views

CentOS 6 and upstart

The new CentOS 6 comes with Upstart, replacing init. I am trying to convert an /etc/inittab file to the new upstart format. This particular server only has 15 or so inittab entries, however, other ...
Brian's user avatar
  • 1,253
18 votes
11 answers
56k views

CentOS 6 and locale error

I just installed CentOS 6 and whenever I login to the system via SSH remotely, I get the following error: -bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8) When I type "locale" on ...
Cem's user avatar
  • 543
16 votes
5 answers
55k views

Install PHP7 from Remi repo

I installed PHP7 from Remi repo with sudo yum -y install httpd sudo yum -y install epel-release wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm sudo rpm -Uvh remi-release-6*.rpm ...
mbalparda's user avatar
  • 273
16 votes
3 answers
41k views

Unable to change vm.max_map_count for elasticsearch

Prehistory I have elasticsearch and SugarCRM7 running on CentOS 6.5. Every day I face the same problem: java outOfMemory error. That happens because of small vm.max_map_count value, 65530 only when ...
Valentina's user avatar
  • 161
15 votes
4 answers
44k views

In CentOS 6.x, how can I upgrade to Kernel 3.4?

I have a server running CentOS 6.2 with kernel version 2.6.32, but I need to increase my application Performance. The Kernel Version 3.4 has x32abi which can improve the performance so i want to ...
shiva's user avatar
  • 147
14 votes
1 answer
13k views

What is the correct way of getting crontab on CentOS 6?

I have a server running CentOS 6.2 minimal, but it doesn't appear to have crontab installed by default? crontab -e -bash: crontab: command not found In searching google, I found references to a "...
Nick's user avatar
  • 4,656
14 votes
2 answers
50k views

Upgrade CentOS 5.x to CentOS 6.x - tips and techniques

Now that CentOS 6.0 is making its way to the various mirror sites, I wanted to solicit opinions on the upgrade process. In working with the commercial RedHat 5.6 and 6.x distributions for the past few ...
14 votes
2 answers
4k views

HP DL380p Gen8 (p420i controller) I/O oddity on XFS partitions

On DL380p gen8 servers using XFS on top of LVM on top of raid 1+0 with 6 disks, an identical workload results in a ten-fold increase in disk writes on RHEL 6 compared to RHEL 5, making applications ...
Dennis Kaarsemaker's user avatar
13 votes
2 answers
22k views

What mailer does cron use to send mail?

I am trying to debug an issue with cron not sending mail on a Centos 6 box that I did not configure. How can I determine which mailer cron is using to send mail? The crontab man page has this to say, ...
cbmanica's user avatar
  • 357
13 votes
2 answers
10k views

Persist IP address alias across reboots in CentOS/RHEL 6 using "ip" command

I've always used the ifcfg-eth0:1 alias files to create additional addresses. However, in recent rhel documentation, it states that: As the ip command of the iproute package now supports assigning ...
prl77's user avatar
  • 430
13 votes
1 answer
73k views

How do I print the current hostname of a host in ansible

I wrote a role to edit the motd when user log into the machine, but I want to personalize the motd to print the hostname of the machine What variable do I use? or how do I do this? template? how? I ...
grant tailor's user avatar
13 votes
2 answers
56k views

Correcting CentOS System Clock

Using the time C function (number of seconds since the Epoch) shows that the time on my current CentOS 6 server is about 7 hours behind compared to another server with the correct time. How can I ...
user3180's user avatar
  • 347
13 votes
1 answer
59k views

How do I read /var/log/lastlog [closed]

This is a 30GB file, I tried to open it in VIM It does not show anything, How can I see contents of this file This is CentOS 6.5
DevOps_101's user avatar
13 votes
3 answers
15k views

Where is the correct place to set net.netfilter.nf_conntrack_buckets?

I'm currently trying to set net.netfilter.nf_conntrack_buckets on boot. I initially assumed that this could be done through sysctl.conf, but net.netfilter.nf_conntrack_buckets (and other net....
KelchM's user avatar
  • 155
13 votes
4 answers
13k views

How to use kdump/crash to investigate an OOM issue?

The problem A server crashed after multiple "Out of memory" messages and I am trying to pinpoint the culprit. If it is in userland - which process. If it is in the kernel - which kernel module. ...
chutz's user avatar
  • 8,000
12 votes
3 answers
33k views

How do I get openldap on Centos 6 to write anything to it's log files

I don't get any information in my log file for openldap on my Centos 6 server. This is how i configured it. SELinux is disabled at the moment. First created a folder where I'd like to store the log ...
Arlukin's user avatar
  • 1,233
12 votes
2 answers
38k views

What is the correct way to load modules for iptables on Centos 6

Where should I load iptables modules, for example ip_conntrack and ip_conntrack_ftp. Places I have found that might be candidates, but are they? The IPTABLES_MODULES variable in /etc/init.d/iptables ...
Arlukin's user avatar
  • 1,233
12 votes
2 answers
2k views

service httpd restart / (98)Address already in use

Out of the blue, I can't restart apache on my CentOS 6.8 web server: # service httpd restart Stopping httpd: [ OK ] Starting httpd: (98)Address already in ...
stevland's user avatar
  • 165
12 votes
2 answers
25k views

How to remove old kernels on CentOS 6 (to free up boot partition)? [duplicate]

How does one determine which kernels to remove in order to free up some space on /boot partition. Here is a scenario (some background info). 1. Parititon info (in case it helps) # df -h Filesystem ...
Shef's user avatar
  • 284
12 votes
1 answer
16k views

Is installing a GUI on my CentOS server a good idea?

I have a new dedicated server that I'm going to create a couple of VMs on. OS will be CentOS 6.5, for the host and the VMs. Does the GUI on the host (Gnome etc) give any real benefit when it comes ...
Codemonkey's user avatar
  • 1,138
11 votes
3 answers
15k views

Virtualbox centos no eth0

just installed a fresh centos-minimal and i can not get bridged network to work or any of the networks not even in host-only mode. when you run ifconfig there is no eth0 only a lo, also when you cat /...
Chris R's user avatar
  • 213
11 votes
1 answer
13k views

Jenkins: Trying to add a dumb slave but the option is missing, any idea how to add it?

I've installed Jenkins 2.x on a server and now I'm trying to add a "Dumb slave" but the option is missing. In this official Jenkins tutorial it says that when creating a new node the option should ...
Itai Ganot's user avatar
  • 10.8k
11 votes
3 answers
25k views

OOM killer killing things with plenty(?) of free RAM

The OOM killer seems to be killing things despite having more than enough free RAM on my system: (Full resolution) (Full resolution) 27 minutes and 408 processes later, the system started ...
Kyle Brantley's user avatar
11 votes
3 answers
2k views

IPA dynamic DNS updates only the AAAA record. Where are my A records?

I'm setting up a FreeIPA domain. In my lab are three virtual machines: the domain controller ipadc1, and two clients puppet and wordpress (creative, yes, I know). All three VMs are running freshly ...
Michael Hampton's user avatar
10 votes
3 answers
33k views

Redis installation on centos 6.5

I am trying to install Redis on centos 6.5 (x64) with following line: yum install redis But I am getting following screen: [root@NodeJs ~]# yum install redis Loaded plugins: fastestmirror Setting ...
Tolgay Toklar's user avatar
10 votes
4 answers
65k views

Which ports are required in order to authenticate against a ldap server in another domain which is behind a firewall?

I have a Linux domain running with sssd, let's call this domain NJ. I'd like machines on the NJ domain to be able to authenticate against an Active Directory ldap server which resides on a different ...
Itai Ganot's user avatar
  • 10.8k
10 votes
1 answer
41k views

Use apache as a HTTPS to HTTP Proxy

I'm trying to configure Apache on Centos 6 to proxy and reverse proxy traffic to an http server of a third party provider. The setup should work like this: https://mydomain.com/proxy/ proxies all ...
james_t's user avatar
  • 203

1
2 3 4 5
36