Questions specific to the CentOS Linux distribution. Use this tag if your question relates to how the CentOS distribution affects your problem; do not use it if you just happen to be using CentOS and your question is about a specific configuration detail or syntax.

learn more… | top users | synonyms (2)

0
votes
1answer
78 views

Access fron outside browser to shellinabox site

Server : 192.168.40.23 `# vi /etc/sysconfig/shellinaboxd` # TCP port that shellinboxd's webserver listens on PORT=6175 # specify the IP address of a destination SSH server ...
1
vote
1answer
2k views

Why is apache giving DNS lookup failures?

A CentOS 7 web server has tomcat serving up war files behind an apache httpd reverse proxy. This works perfectly when the WAR files are all server-side code. But when client side code (AngularJS in ...
0
votes
1answer
130 views

How do I directly expose apps running on a CentOS 7 web server?

How can I open a port and directly access a webapp running on tomcat on CentOS 7? Tomcat is running behind an apache httpd reverse proxy, but I want to directly access the apps running in tomcat by ...
0
votes
1answer
151 views

PostgreSQL Remote Connection debugging

I'm having issues connecting to my PostgreSQL database from an online source. PostgreSQL seems to be setup up fine it is running on it's default port 5432 and the postgresql.conf has the following ...
0
votes
0answers
86 views

Unable to zoom-in Munin graphs on CentOS

I have installed munin on my CentOS 6 system. The installation procedure is as follows: rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm yum --enablerepo=epel ...
0
votes
1answer
173 views

Shell script to process service restart procedure

We're running a 3rd party TTY service on our servers, to support some thin clients manufactured by the 3rd party. From time to time, connection to a thin client can get locked up. Procedure is to ...
0
votes
1answer
140 views

how to increase cache memory in centos

I have been facing a insuffient space in "/var/cache/yum" directory. due to this my gui of centos crashes.i want to increase the size of cache directory. also want to know the actual size of cache ...
0
votes
2answers
206 views

Cannot install php-ldap on CentOS 5 server

I tried to install the php-ldap package on my machine but was not able to do so. It shows missing dependencies error for php-common, but the said package is already installed and updated. See the ...
0
votes
1answer
21 views

virtualbox install somehow corrupted

I have a HP Zbook laptop running CentOS7.1. I use it to run an Ubuntu 14.04 VM, which has been working fine for quite a while. This morning I saw some weird problems (can't remember exactly what), ...
1
vote
1answer
53 views

Grab the load average with top

The command below is grabing only the first load average, I would like to grab all the 3 load average. How can I change this code? top -b -n 3 -d 1 | grep "load average" | tail -n 1 | awk '/load ...
2
votes
0answers
45 views

Unable to insert records on sqlite on a Linux environment

I tested a simple Php program using Sqlite3 instead of mySQL on my own computer and it works fine. What the program does is simple insert of record into a certain table. Now, when I try to do that on ...
1
vote
0answers
90 views

httpd and mysqld used out of memory

I choose 512mb ram for my Centos VPS with very low traffic new website .but after 2,3 hours after rebooting, i have only 24mb free memory. when i use top command: 2981 root 20 0 37176 10m ...
1
vote
1answer
2k views

How to set the fully qualified hostname on CentOS 7.0?

How do I set the fully qualified hostname on CentOS 7.0? I have seen a few posts online for example using: $ sudo hostnamectl set-hostname nodename.domainname However, running domainname returns ...
1
vote
0answers
139 views

CentOS server can't be reached from local net after no active request to outer net for some time

I'm setting Wake-On-Lan of my CentOS server so that it can be wake up through Internet. I set a static ip address on my server, preserve the ip address on the router and create a static ARP entry of ...
0
votes
1answer
86 views

How to compile Python with (Active)Tcl 8.6?

I'm trying to compile Python 3.5.0 on CentOS 6 with Tcl 8.6. I did ./configure --with-tcltk-includes=I/opt/ActiveTcl-8.6/include --with-tcltk-libs=L/opt/ActiveTcl-8.6/libs ...
1
vote
2answers
55 views

Running bash inside cronjob

I have this cronjob to run everyminute */1 * * * * root sh /test.sh My /test.sh logs the result of "top" and "free" command. It works fine when I run it manually on terminal with "sh /teste.sh" and ...
1
vote
2answers
57 views

Log free and top

I want to create a bash on my server to log a part of the output of "free" and "top" every 60 seconds. I know how to setup the cron job but have no idea how to get the output of "free" and "top" and ...
2
votes
0answers
97 views

Unable to start ZNC as a service

Firstly, this is the exact same question as found here, but the given solutions did not work in my situation. Background I am running a CentOS 6 VPS and I want to run a ZNC bouncer on it. I ...
1
vote
0answers
149 views

How to configure pam.d config files in CentOS

I am hardening a CentOS 6.7 VM to CIS standards. https://benchmarks.cisecurity.org/tools2/linux/CIS_CentOS_Linux_6_Benchmark_v1.1.0.pdf The above is the document I am using to harden the image. I am ...
0
votes
3answers
212 views

ping output statistics to file

[root@localhost ~]# while true; do timeout -s 2 1h ping 96.120.16.121 | ts '%Y-%m-%d %H:%M:%S |' | tee -a ping.log; done easier to read format: #!/bin/bash while true; do timeout -s 2 1h ...
0
votes
1answer
33 views

Remote SSH connection advice [closed]

I've recently set up port-forwarding for ssh on my server (CentOS 7). I'm also using a custom port for ssh (2211) sudo firewall-cmd --zone=public --add-port=2211/tcp --permanent This works fine I ...
0
votes
2answers
602 views

How to install Python on CentOS without root privileges?

For some reasons, I need to install Python on CentOS without root privileges. Since without root, one cannot use yum to install packages, so I tried ./configure --prefix=$HOME/tools/python make make ...
0
votes
2answers
82 views

CentOS 7 ssh to LAN using internet

In the LAN we all access the server (Centos 7) using ssh but I was wondering how to enable ssh connections from outside the LAN, if a user wanted to use the Internet from their own Network to ssh into ...
0
votes
0answers
56 views

linux to linux IP MASQUERADING failed (can't ping ip server)

I'm new in linux, i'm trying to IP MASQ. So the diagram is like linux A is connected to HUB and Internet, and linux B is connected only to HUB. In linux A i have eth1 (10.10.10.5) and eth0 ...
0
votes
1answer
88 views

Creating arbitrary directory in kickstart before %post

One of the non-OS packages that I need to install via kickstart config requires a pre-existing (non-standard) directory, is there a way to create arbitrary directory before %post in kickstart? ...
1
vote
0answers
34 views

cups: connection timed out

Per title I'm showing connection timed out in the /var/log/cups/error_log. D [29/Oct/2015:17:43:32 -0400] cupsdSetBusyState: Printing jobs D [29/Oct/2015:17:44:04 -0400] [Job 11441] Connection ...
0
votes
0answers
43 views

xalan-c on CentOS 7 32 bit

I downloaded a 32bit version of CentOS from https://wiki.centos.org/SpecialInterestGroup/AltArch/i386 For a script, I need xalan-c. When I search for xalan with yum search all xalan, I get this ...
0
votes
0answers
22 views

Apache PostreSQL database server only

I was wondering if it's possible to use apache to make a postgresql database available for connections from the web without using a website to interface with the database. Instead of having a webpage ...
0
votes
0answers
43 views

PostgreSQL ssh connection from outside network

I have a PostgreSQL Server (CentOS 7) running on the network, it is set up to allow remote connections which works from inside the network. Any computer on the network can connect to it using ssh -L ...
1
vote
1answer
59 views

PostgreSQL Accessible to Web Application

I have a server with PostgreSQL installed and there are scripts that are constantly modifying data in the database. PostgreSQL is running on it's default port 5432. I would like to be able to connect ...
0
votes
1answer
386 views

How to enable Realtek 8188ee driver on CentOS 6.7?

Unfortunately I installed CentOS 6.7 on a basic HP laptop without checking the wifi capability... which is a Realtek rtl8188EE. I've done some research on that particular driver which seems to have ...
2
votes
0answers
232 views

How to install man pages in CentOS 6.x minimal for all previously installed packages?

I ran into an issue to where man pages were missing from a CentOS 6.x minimal system (this is normal). I installed the man subsystem and then noticed the man pages were still missing for select ...
1
vote
3answers
115 views

yum ignoring exclude directive in yum.conf

I need to hold back mysql from being updated in yum update. I added exclude=mysql* to /etc/yum.conf as below: [main] cachedir=/var/cache/yum/$basearch/$releasever keepcache=0 debuglevel=2 ...
0
votes
0answers
58 views

Reset time / date to current time-zone using timedatectl preferably, or date

As the title says, I'm looking to reset the current system time to the selected time-zone using the timedatectl preferably, or date command. This is on the CentOS 7 OS, hence the timedatectl ...
0
votes
1answer
119 views

Enable sssd caching and linux to honor that cache on CentOS 5

I wanted to enable sssd caching on CentOs and not to use nscd caching, because sssd itself is giving that option. However, authconfig is not giving the option for --enablecachecreds even on the ...
0
votes
3answers
118 views

How to stop Procmail?

I had an instance that procmail has been running and taking up RAM. I am not using this. Is it possible to stop / uninstall this? I am running CentOS 6.4. Thank you!
1
vote
0answers
48 views

Linux/CentOS - can't su after changing ownership

I mistakenly changed ownership of all files on a CentOS system from root to my login account. I can login but if I su I get: su: cannot set groups: Operation not permitted I don't need the system ...
0
votes
0answers
46 views

How can I improve this script to install pptpd & csf on a Centos 6.5 openvz box?

I'm working on a script to ease the deployment of pptpd and csf on openvz boxes. Here's what I've got so far: echo "Installing epel repository, wget, and bind-utils..." yum -y install epel* yum -y ...
1
vote
1answer
70 views

What does Requires: Python(package) do for RHEL spec files?

I'm packaging some Python packages currently without RPMs, and some of those depend on others that I'm packaging. While packaging I noticed a format where people do: Require: python(pkg-name), but ...
0
votes
0answers
91 views

No sound output in Phonon on KDE

I'm running CentOS 7 on an Intel i7. No sound output in headphones in front jack or headphone jack on monitor while using HDMI cable. I do get sound output in audio hardware setup but not in device ...
-1
votes
1answer
51 views

CentOS is asking for ubuntu login

I've just installed CentOS 7 and booted for the first time. I'm greeted with the prompt: CentOS Linux 7 (Core) Kernel 3.10.0-229.el7._x86-64 on an x86_64 ubuntu login: The login password for ...
1
vote
1answer
46 views

CentOS - using PXE to install it on my host ( kickstart configuration )

I am trying to install an OS from our server through PXE ( Preboot Execution Environment ). However, on my host, I have two disks say A ( /dev/sda ) and B ( /dev/sdb ) The default installation path ...
0
votes
0answers
40 views

Grub2 displaying 4 entries after CentOS7 update

I'm new to CentOS, but I'm familiar with general Linux command line. After installing CentOS, I ran "yum update" as root and now my grub displays 2 more entries: CentOS Linux ...
0
votes
1answer
74 views

Custom Linux Hosting Control Panel in PHP - running commands as root

I want to work on a custom linux hosting control panel based on my experience in managing LEMP/LAMP stack. This is just a pet project. I believe I have ran into some hurdle. The CP is being written ...
0
votes
1answer
21 views

Update CentOS but not owncloud

On my 6.6 CentOS install I have a stable and working owncloud system, with HTTPD configured with ssl, and a couple of other domains and sub domains. I would like to update my OS cause it has been a ...
2
votes
1answer
65 views

I have installed CentOS 7 on Virtual Box, but network settings are missing

I have installed CentOS on Virtual Box. I had CentOS-7-x86_64-DVD-1503-01 downloaded it from a torrent. I ran the following command; nmcli d Which tells that only loopback is there. I enabled ...
2
votes
3answers
106 views

can not upgrade kernel

I use centos-7 x86_64 ,current kernel version is 2.6.32-042stab108.5 I try to upgrade kernel by these command: rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm yum install ...
1
vote
1answer
76 views

How to take snapshot of website through shell script? [closed]

I have a website with login page. Now I want to generate a script to login into website and take snapshot of the screen through shell script. I'm using centos 7.1 . Is there any tool or utility to do ...
0
votes
0answers
102 views

CentOS 6.7 x64- Desktop Edition— Restore Gnome Panel Default Config Settings

CentOS 6.7 x64 Desktop Edition I accidently deleted gnome panel which present in the bottom, which has network icon, volume, terminal, desktop,kick off application launcher etc. The below link for ...
1
vote
1answer
52 views

Script to determine if a TAP interface created by a service is up

My system has a SoftEther VPN service that creates it's own TAP interface when it starts and removes it when it's stops. But even with DHCP running on the VPN, the TAP doesn't configure it's own IP ...