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)

1
vote
1answer
216 views

IPs that I bound keep stop responding to ping

So Internic sent over a few cs, and it seems fine on some of them. However, on some I have to run arping -U on to get them up and they only seem to stay up for a short time. They are a /24 properly ...
1
vote
1answer
202 views

Point IP to an application instance

I was just wondering how I go about pointing a static IP address which I have purchased to an application instance on my server, using a different IP from the one I currently have pointing to my main ...
1
vote
2answers
135 views

Can't figure out which Cent OS to download

I'm not sure if this belongs here, but I really need help on which Cent OS version to download. There's some linux distros that I want to try, but none of the websites are as user friendly as Ubuntu =(...
1
vote
3answers
3k views

Minor upgrades and version numbers on CentOS

I installed CentOS 6.0. Later I ran yum update to apply software updates. After that my operating system version changed to 6.3. Why did the version change? How far up will it go? How can I choose ...
1
vote
2answers
942 views

Getting error 2006 MySQL server has gone away on CentOS

I need to import a database into a freshly created CentOS 5 virtual machine. However, whenever I run the import command on the console, it stops working in about a minute and I get the error message: ...
1
vote
1answer
5k views

How to change SMTP outgoing port on Centos 6.3

I have a dedicated server running Centos 6.3. My customer wants to use Microsoft Outlook to send and receive e-mails. He can connect and receive his mails but when he tries to send e-mail he can't ...
1
vote
2answers
170 views

SSNiper SSN Scanner support

I work for a major university and we have a policy that requires annual scanning of all computers for social security numbers (SSNs). I started using a utility called SSNiper that was created at UIUC. ...
1
vote
1answer
2k views

Why can't I run mysql?

I'm trying to import a database from Wamp to Xampp. I run Lampp first, then go to /opt/lampp/bin and run: mysql (or mysqladmin ?) -u root -h localhost but I get: mysql: command line not found ...
1
vote
1answer
503 views

I cannot install “unifdef” on CentOS 6

After I ran yum install unifdef I got "No package unifdef available" I already added all sources. (Base, contrib, Debuginfo, Extras, Plus and Updates)
1
vote
1answer
2k views

How do I install the nagios NRPE plugin on CentOS 5 using yum?

How do I install the nagios NRPE plugin on CentOS 5 using yum? I've tried yum install nagios-plugins but it's only downloading a fraction of a megabyte. Then if I do a search for one of the commands ...
1
vote
2answers
6k views

Encountering this error /usr/bin/ld: final link failed: No space left on device

/usr/bin/ld: final link failed: No space left on device is the error coming when I'm trying to complie Open Source code project I have about 7GB free space over the Disk so I think that cannot be the ...
1
vote
1answer
2k views

How to access shared locations on a windows machine from a linux machine via terminal?

I’ve setup a Virtual CentOS machine and set up a bridged network and static IP so that it can communicate with other Windows machines in the network. Currently, to access any shared directory, I ...
1
vote
3answers
6k views

How to kill a printing job on centOS

How does one kill a printing job on centOS?
1
vote
1answer
1k views

Clone OS to a smaller drive

I would like to copy/clone/move my CentOS (which is on a 20GB hard drive) to a smaller hard drive (5GB)... Can someone tell me how to do this?
1
vote
1answer
17 views

App Repo vs Package Repo?

What is the difference between an "app repository" like EPEL / RPMForge / etc and a "package repo" like PkgDB? Can I point yum / df to pkgDB so it can figure out where to download stuff from without ...
1
vote
1answer
26 views

How to fix install openvpn on CentOS 7?

All image about my problem is here Why I can't install openvpn with yum even I try to fix it like this website said . What is wrong in here? Help me, please people. By the way, the problem I see,is ...
1
vote
1answer
103 views

Centos 7 not loading latest kernel at boot

By default, centos 7 comes with kernel version 3.10.x. After installation of centos 7, I have upgraded kernel to 4.6.x that is latest stable version. My system is remote. First, it is very expensive ...
1
vote
1answer
39 views

renaming files in a folder

In one directory I have many files which look like this: Galaxy100-[0025-CL3.single.bed].bed and I would like to change it to: 0025-CL3.single.bed I tried this rename 's/Galaxy[0-9] - \[//' *, ...
1
vote
1answer
53 views

Shell Font Over SSH

I have a Linux machine (CentOS 7) in which I frequently SSH into from multiple devices. I have installed ZSH and Oh-my-zsh on the remote machine. I would like to install the following theme: https://...
1
vote
1answer
26 views

Difference between users listed under home directory and those not

I see some of the users I can find under /home directory in centos but not rest of the users. Users that are listed under /home directory, I can login as those users with command su username To ...
1
vote
1answer
39 views

CentOS 6 in VMWare fusion: Unexpected MAC address change

I installed CentOS 6.X with VMWare Fusion. It looks like the mac address and nic names changes randomly. eth8 and eth9, totally weird. Anyone know why? P.S VMWare pops a dialog asks me if I ...
1
vote
2answers
80 views

CentOS 7: Strange directories appearing in /

On my CentOS 7 (64 bit) machine some strange directories are appearing in the root directory / I can't work out what's causing it, if I delete them they slowly start to reappear. Here is a sample: ...
1
vote
2answers
45 views

What would 'passwd root --stdin' have set my password to?

I ran: sshpass -p 'OldPassword' ssh -o StrictHostKeyChecking=no root@1.1.1.1 'echo "Te3EQeF2U!-Em_C3eBU6A&a=u2$e28*c" | passwd root --stdin' Without realizing that echo "Te3EQeF2U!-Em_C3eBU6A&...
1
vote
1answer
35 views

code to display the text TRUE

I'm a complete newbie and I'm starting to learn the basic for shell scripts. So I apologize if this question is very simple for most users. I'm trying to display the text TRUE to the screen if a file ...
1
vote
1answer
37 views

Getting password prompt after editing sudoers file in cent OS 7?

Part of my sudoers file lines begingin with mukesh are edited: ## Allow root to run any commands anywhere root ALL=(ALL) ALL mukesh ALL=(ALL) SOFTWARE,DRIVERS mukesh ALL=(root) ...
1
vote
2answers
42 views

Run an executable as a service on a port

I have a C program (say a simple Queue system) which I compile and get an executable file. I want to run this executable as a service on a specific TCP port on a CentOS system which I can connect to ...
1
vote
3answers
95 views

preventing DoS attack in Apache webserver

This is the version of apache we're using - httpd-2.2.15-39.el6.centos.x86_64 We recently had our website down due to DoS attack and hence started exploring iptables, and how to use it to prevent DoS ...
1
vote
1answer
101 views

iptables rule explanation

I was looking to update iptables in our webserver which would prevent DoS attack to an extent. 1) Related to web traffic, below are the iptables rules i found. iptables -I INPUT -p tcp --dport 80 -...
1
vote
2answers
50 views

Efficient way to deploy a custom kernel onto multiple hosts

I recently had to do a custom build of the Linux kernel from its source. That custom kernel is now installed on the machine I used to build it and works fine. Now there are other similar systems (i.e....
1
vote
1answer
143 views

How does one remove a tar-installed Node.js from CentOS 7?

A CentOS 7 server has v0.12.7 of Node.js installed, and the installation was done using a tar. This is leading to conflicts when I try to install a more modern version of Node.js using yum. What ...
1
vote
1answer
101 views

How to remove password prompt when executing su <user> command in CentOS 7?

I have two users in my CentOS system User1 and User2. I am logged in as root user and trying to add User1 to sudoer list using visudo. I have entered the following line at the end of the file User1 ...
1
vote
1answer
79 views

SELinux is not logging anywhere

I have SELinux in permissive mode enabled on CentOS7 system. But it doesn't seem to produce any logs. No new files in /var/log/audit, grep -i selinux /var/log/messages* finds nothing. sestatus ...
1
vote
2answers
602 views

Installing (html) tidy conflicts with filesystem package

I'm on CentOS 7 trying to install tidy. Since there is no package provided by the usual suspects, I've downloaded the tidy-5.1.25-64bit.rpm RPM from http://binaries.html-tidy.org/. When I install this ...
1
vote
1answer
177 views

Centos 6.7 broken Sudo

After installing devtoolset 2, it appears my sudo command is broken. readlink -f $(type -P sudo) /opt/rh/devtoolset-2/root/usr/bin/sudo I believe the commands I ran to install devtoolset2 ...
1
vote
3answers
143 views

Error: install exited abnormally [1/1] while installing CentOS-5.4

In my system, I have installed ubuntu. I Follow this article : How to Set Up a USB Key to Install CentOS to create bootable USB for CentOS-5.4. Steps i have done after booting successfully: Choose ...
1
vote
1answer
156 views

Installed OS on EFI system crashes on grub shell

I have installed an el6 based custom OS on an e-mmc drive. This machine doesn't have legacy boot mode, only EFI. The installed OS has grub-0.97-77.el6.x86_64.rpm. Using a rescue disk I can see that ...
1
vote
1answer
177 views

How do I get a service on a remote CentOS 7 server to persist after I log out?

I am experimenting with running Spring Boot apps on a remote CentOS 7 web server which has been successfully serving up apps on Apache and a stand-alone tomcat instance since day one. However, when I ...
1
vote
1answer
245 views

CentOS 7 Encrypt a PDF

I've recently upgraded our server from CentOS 6 to CentOS 7 and I am having issues getting pdf encryption working on it. On CentOS 6 I installed libgcj and then the pdftk package. I could then ...
1
vote
3answers
173 views

Stripping down a Linux (CentOS7) system

How do I strip down a Linux system (especially CentOS 7) to only the parts that I need? I'm not asking for a specific command, but more for a hint to where I can find more about the packages that I ...
1
vote
1answer
75 views

After my system crashed and I run crash, but I get the following error: not a supported file format

My system crashed and even though I haven't been able to know what caused the crash after going through the usual logs: messages, dmesg, secure, etc. There's nothing valuable I have seen on them so I ...
1
vote
1answer
166 views

save output of a python script to a text file

how can i save output of this python script to a text file? this is a KMS server which clients connect to it and activates their windows or office. i wanted to save the log in a text file. I should ...
1
vote
1answer
58 views

CentOS 7 setting default port

I've been doing some maintenance on a CentOS 7 server and I noticed that it wasn't using the default ssh port (22). I changed it back to it's Port 22 in the sshd_config which works but when I try to ...
1
vote
3answers
126 views

yum remove is not idempotent

On some Centos VMs, I have a few MySQL packages to remove (via yum) and then install MariaDB (via rpm), all in a shell script. I use yum for removal : yum remove -y mysql-community-client yum ...
1
vote
1answer
56 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 ...
1
vote
1answer
87 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 I'...
1
vote
1answer
51 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 ...
1
vote
1answer
91 views

Finding file name/location of bash script running on server using PID

As a training exercise for the new company I work for, a buddy put a script on my webserver that displays ( ͡° ͜ʖ ͡°) on the top right hand corner of my CLI screen then shelled into the server. Using ...
1
vote
3answers
267 views

How to run bash script with dialog at startup Centos 7

I have a bash script using dialog which basically just checks the status of certain services and displays it as either up or down. It works fine when I run it while logged in. I can't seem to figure ...
1
vote
1answer
2k views

Where's rpmfusion? - CentOS7 as desktop/multimedia system

I am currently looking at Centos, because I am really getting fed up with having stuff changed or having to reinstall my system every 6 + 9 months or so, or running a system without any updates. Now ...
1
vote
1answer
2k views

How do I install iwconfig without yum?

I am using this tutorial to try to set up wireless on a new CentOS 7 installation that is not connected to the internet. However, when I type iwconfig into the terminal, it replies with -bash: ...