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
2answers
49 views

Using rsync to synchronize directories

I have a script that I am using to backup a directory on a CentOS 6 machine. It's very basic but it is executing rsync -a remote:~/original ./backup This works fine: it is copying the contents of ...
1
vote
2answers
2k views

Creating Group and User for Tomcat RHEL/CentOS

I newbie I want to create an user for my Tomcat installation, but I was viewing multiple options: # groupadd tomcat # # useradd -g tomcat -d /usr/local/tomcat tomcat # useradd -g tomcat -c "Tomcat ...
1
vote
0answers
628 views

PuTTY does not connect over SSH; other clients work fine

I have a CentOS system that I can connect to using several SSH clients (FireSSH, WinSCP, MySQL Workbench over SSH). For some reason, PuTTY, which was working a few days ago, can not connect. It will ...
3
votes
2answers
10k views

Cannot start NFS in Centos 7

I can't start an NFS server in CentOS7. The packages downloaded: yum -y install nfs-utils yum -y install nfs-utils-lib Enable/start services systemctl enable/start rpcbind systemctl enable/start ...
1
vote
1answer
1k views

How do I get X to start without a monitor attached while using NVIDIA drivers?

card : Geforce GT 730 OS : Centos 6.5 I'm trying to demo HP RGS on a CentOS 6.5 machine located in a DC offsite. RGS requires X to be running with NVidia HW acceleration, but I can't get X to start ...
1
vote
1answer
325 views

CentOS 5.11: yum installs, but packages remain missing

I'm trying to figure out a very strange problem with yum on a fairly old CentOS 5.11 VPS using DirectAdmin. Executing the following command suggests the telnet package is installed: # yum install ...
1
vote
2answers
2k views

CentOS 6.6: OpenSSL version

I have a CentOS 6.6 system. When I type into command line openssl version, the system gives me OpenSSL 1.0.1e-fips 11 Feb 2013. When I type yum update openssl, then yum says No Packages marked for ...
0
votes
1answer
74 views

Terminal does not call 'then', reports a syntax error and command not found [closed]

I am a newbie for Linux. I have CentOS 7. I am running a very simple script from BASH. I executed the chmod command and then ran the script file from a terminal. I got an error saying "if command not ...
1
vote
1answer
303 views

luks volume disappears after reboot

I created a separate partition on a CentOS install (VirtualBox), and am attempting to encrypt it using cryptsetup and LUKS. I'm using the following commands to get this set up: cryptsetup luksOpen /...
1
vote
1answer
523 views

trouble with glib while installing Midnight Commander on centOS

I am trying to ./configure midnight commander downloaded from http://ftp.midnight-commander.org/mc-4.8.14.tar.bz2 and I get the following: checking for GLIB... no configure: error: glib-2.0 not found ...
-2
votes
1answer
50 views

Is this a violation? using https service in intranet?

I have CentOS 7 servers in the cloud which is offering HTTPS services. Now this Enterprise can't use our services from the cloud, so they wanted a local intranet solution, the same as I am running in ...
1
vote
1answer
153 views

How to copy a installed library to a remote Linux host

I am a newbie on Linux and trying to host my Java project on a remote linux host(CentOS). My Project depends on some native libraries that needs to be existing in the host, and since it is a shared ...
2
votes
2answers
330 views

Automate slappasswd

I want to automate slappasswd, but the following does not work: [root@controller ~]# echo -e "vagrant\nvagrant\n" | slappasswd New password: while it works to automate passwd: [root@controller ~]# ...
1
vote
0answers
166 views

How to install a CentOS image manually?

I am moving my project from CentOS 6 to CentOS 7 and need to deal with the changes in the boot requirements introduced by CentOS 7, particularly the upgrade from grub to grub2. The gist of the problem ...
0
votes
1answer
124 views

centos firewall seems block dhcpv6 reply message

It's very strange that my CentOS cannot receive dhcpv6 reply message from dhcpv6 server. I have enabled the rule dhcpv6-client. Every time I try to bring up the interface, dhcpv6 request messages are ...
0
votes
4answers
751 views

Unable to access iSCSI target since Targetcli has been updated on Centos 7

Targetcli is able to run [root@controller ~]# targetcli targetcli shell version 2.1.fb34 Copyright 2011-2013 by Datera, Inc and others. For help on commands, type 'help'. /> exit Global pref ...
1
vote
1answer
2k views

CentOS 7 - Using systemctl to start headless virtual machine hangs

I'm not entirely sure if what I'm trying to do can work. I would like to run a vbox virtual machine as a service and have it enabled on startup. Here is my .service script: [Unit] Description=...
0
votes
1answer
199 views

Huge Pages on CentOS 6.6

Recently I installed CentOS 6.6, but when I tried to configure Huge Pages, I cannot see the common paths that I am already using to configure hugepages in other CentOS 6 machines, but with the 2.6 ...
0
votes
2answers
3k views

how do I do a command line only boot of CentOS 7?

Can someone please explain how to trigger a command line only boot of CentOS 7 from a USB boot stick? I want to boot the terminal only and then use the normal CentOS 7 terminal to swap out the ...
1
vote
1answer
65 views

I tried to resize an ext4 partition and now the VM is not working

I tried to resize the primary ext4 partition and I think that i forgot to set the primary partition as bootable. Now the only thing I see from the VNC is the grub. I used fdisk to resize and ...
1
vote
1answer
207 views

Improving performance of script [closed]

I have been working on a script that can be used to automatically restart my Zabbix monitoring services in the event that they stop running. I have the script working just fine, but figured it could ...
0
votes
2answers
473 views

autofs 'failed to mount autofs path' as service but not manually (selinux)

I'm on CentOS 6.6 and I'm having a strange problem with autofs. I'm trying to mount an smb share on /var/www/html/mysite/docfolder, so I created a docfolder inside the mysite folder, ran chmod 777 on ...
2
votes
4answers
300 views

Is there a CLI tool that would prettify a JSON string [closed]

On my host I enter the following, which returns a bunch of information which isn't particularly easy to read at the CLI. echo $ENV_VAR | base64 --decode Is there a way to format it? This is a ...
1
vote
2answers
10k views

CentOS 7 update using “yum update” does not work

I have a VM running CentOS 7 that I have not used for a long time. Today I launched it and tried to update the CentOS system to the latest version using yum update, but I got a lot of errors: ...
2
votes
2answers
2k views

centos 7 dual boot with windows 8.1

How do I install CentOS 7 alongside Windows 8.1 to create a dual boot machine? I did this easily enough on a Windows 7 machine using pendrivelinux. But that approach is resulting in a failure to ...
1
vote
0answers
123 views

compile ffmpeg centos

I used this Guide http://trac.ffmpeg.org/wiki/CompilationGuide/Centos To install ffmpeg in my VPS with CentOS 6 64. But it was installed in /root/bin/ and I need to install it in usr/bin/ to run ...
2
votes
1answer
319 views

Password protecting Single User Mode and GRUB on a VPS

I have a VPS CentOS 6 Linux web server. It is run on KVM. Running a Lynis audit, it notes that single user mode and GRUB are not protected by any password/authentication: [16:00:28] Warning: No ...
0
votes
0answers
129 views

How to configure yum repo in centos 7

I have Installed CentOS 7 on my VMware. How to configure yum repo? What path do I have to give? ISO file is in my main machine.
0
votes
1answer
92 views

How must (Not how can) a program be available from everywhere in CentOS/Fedora

I was reading this link from MySQL: https://dev.mysql.com/doc/refman/5.6/en/mysql-cluster-install-linux-binary.html shell> cp support-files/mysql.server /etc/rc.d/init.d/ shell> chmod +x /etc/...
1
vote
0answers
1k views

saving file to usb stick while using linux boot stick

I am using the instructions in this youtube video to install CentOS 7 on a new computer that is running Windows 8. The tutorial uses UniversalUSBInstaller from PenDriveLinux, but the installation is ...
1
vote
1answer
311 views

I can't get an interface up in CentOS. I get the interface has a different MAC address than expected

Device eth0:1 has a different MAC address than expected, ignoring." I cp ifcfg-eth0 ifcfg-eth0:1. I used the vi editor and changed the MAC address on eth0:01 My set up is a CentOS 6.6 VMware guest ...
0
votes
0answers
2k views

Recover from emergency mode on Centos 7

I have a Dell PowerEdge R420 which has installed Centos 7 and was working fine. One day I removed the disks that Centos 7 was installed (2 disks with RAID-1 layout) and I installed another clean disk ...
0
votes
1answer
90 views

Building a homeserver

I am planning to build a homeserver to store my data. First i decided to use nas4free but later decided to use CentOS as I would also like to use it as a development server. I had 4 x 500GB hdd and I ...
12
votes
2answers
2k views

Accidentally deleted /etc/redhat-release file

I accidentally deleted /etc/redhat-release file. How can I restore or create a new one? I have CentOS Linux release 7.0.1406 (Core).
1
vote
0answers
1k views

USB WiFi on CentOS7

I've got a clean installation of CentOS 7 on a desktop PC and a USB WiFI Adapter (RTL8191SU 802.11n). Connecting through USB leads shows "USB Ethernet: connecting" in Gnome3's network status bar. ...
0
votes
2answers
577 views

CentOS 6.5 hostname on VPS

I'm trying to change the hostname on my fresh CentOS 6.5 image (VPS) via SSH. The sources I've found all say the hostname can be permanently changed in /etc/sysconfig/network and /etc/hosts, and that ...
1
vote
0answers
763 views

Centos 6.6 not booting on Virtualbox on Windows host

I downloaded the QuickStart VM from Cloudera that has preinstalled Spark/Hadoop etc. I have been working on that for the last 4-5 weeks and it was running absolutely fine, but recently I had to ...
7
votes
1answer
11k views

AH00534: httpd: Configuration error: No MPM loaded

I have a CentOS Linux release 7.1.1503 (Core) system and I have installed httpd and the corresponding configuration file is : # # This is the main rConfig Apache server configuration file. It ...
1
vote
2answers
84 views

Get Real BiosTime using CentOS 6.x and make permanentely SystemTime = BiosTime [closed]

My first SO is Windows 7, and it is synchronized with Bios Time... Later I installed CentOS, but... I want to have synchronized my CentOS with Windows and Time Bios! I was checking time (before ...
0
votes
0answers
141 views

installing java on cent os 6.6 64 bit system

am trying to follow this link: How to Install JAVA 7 (JDK 7u79) on CentOS/RHEL 7/6/5 and Fedora So I downloaded the jdk tar and untarred it.However when I run java -version from within bin I get the ...
1
vote
1answer
203 views

How to unlink a symbolic link CentOS?

I am still fairly new to CentOS 6.5 and linux in general. In my haste to remedy a solution, I created a link from a suggestion online without thinking much about it. However I need to remove the link, ...
5
votes
1answer
1k views

Hard link permissions behavior different between CentOS 6 and CentOS 7

I'm getting a permissions error in CentOS 7 when I try to create a hard link. With the same permissions set in CentOS 6 I do not get the error. The issue centers on group permissions. I'm not sure ...
2
votes
1answer
41 views

How is locally-stored data handled when mounting/re-mounting a directory in CentOS?

I have a CentOS 5.x server and I initially had it configured with a mount point. The netfs service is enabled on boot. /etc/fstab has an entry pointing to a cifs share: //foobox.example.com/share /...
0
votes
1answer
1k views

How to Disable Transparent Huge Pages in CentOS6.6 [duplicate]

I am trying to disable Transparent Huge Pages in my CentOS for HDP2.2 installation. I am using this link for the reference but I am still getting the issue. I tried to add this also: Adding the ...
0
votes
0answers
24 views

Can't run customlog and errorlog in custom directory for apache in centos7 [duplicate]

I can't make my customlog for apache in different than default directory. I think that it has to be something with access rights but have no idea what. httpd.conf - log config journalctl -xn ps -...
0
votes
1answer
2k views

High on %wa from top command, is there any way to constrain it?

Here's my last top info before it stucks: top - 18:26:10 up 238 days, 5:43, 3 users, load average: 1782.01, 1824.47, 1680.36 Tasks: 1938 total, 1 running, 1937 sleeping, 0 stopped, 0 zombie ...
2
votes
0answers
5k views

“xrandr: Failed to get size of gamma for output default” for Guest CENTOS 6.6, HOST OS Windows 7 enterprise

I am getting the following errors: xrandr: Failed to get size of gamma for output default Screen 0: minimum 640 x 480, current 1024 x 768, maximum 1024 x 768 default connected 1024x768+0+0 0mm ...
0
votes
1answer
198 views

Emacs dependency on librsvg2 error on Centos 6.6

I'm trying to install emacs and graphviz on my CentosBox. Its failing to resolve librsvg2: $ sudo yum install emacs graphviz Loaded plugins: fastestmirror Setting up Install Process Loading mirror ...
2
votes
3answers
132 views

How can I set up a secure LAMP stack on CentOS?

I have been using linux for years, but I need some clarification on what are probably pretty basic principles to how the OS works, but I definitely need clarification due to security concerns. I am ...
0
votes
1answer
49 views

GUI List boxes invisible

I'm having an issue with my Eclipse GUI. I'm not sure if it Linux specific or Eclipse specific. When I try to view list boxes or text areas, they don't show up. All I see is a grey box (or what I ...