CentOS stands for Community ENTerprise Operating System, the most popular Linux distribution for web servers with almost 30% of all servers using it. Third-party software is not included in the base.

learn more… | top users | synonyms

1
vote
2answers
21 views

Centos 6.5 directory size is incorrect using du command

I 'm running the du command on one of my websites directories and I'm getting 2 different result, I'm confused which one is accurate and why there is a big difference, here both command and the ...
0
votes
3answers
50 views

how to insert a text file in hosts.allow or hosts.deny?

So I read in man page of hosts.deny that i can input files in /etc/hosts.allow or hosts.deny to input ip addresses which i want to block or deny. So i tried doing this in hosts.allow sshd: ALL ...
1
vote
2answers
37 views

how to gzip and scp at the same time

I have a file in which i wanted to zip up and at the same time transfer over to another host using scp. I tried to do the following command but failed. I do not mind zipping up and scp over later, ...
0
votes
1answer
32 views

Simulate a serial port that actually is an internet port [closed]

In CentOS, how do I make a fake USB serial port that is actually an internet port (like port 80 for http)? Edit: I'm sorry that I didn't make it clear. I'm trying to make a server-side compiler and ...
2
votes
1answer
31 views

CentOS - Trying to backup/restore a MySQL database?

My CentOS 6 server got a server issue, so customer support took a backup of my server and reinstalled it. The backup is in a folder called /home/42406. I'm trying to find my MySQL database called ...
0
votes
0answers
24 views

Execute script on failover Corosync Pacemaker

I'm searching to execute script on failover with Corosync Pacemaker. I use Centos 7 with pcs, I have 2 server master and slave. I used a copy of Dummy script and this is my code; <shortdesc ...
0
votes
0answers
18 views

CentOS - Mouse and keyboad do not work after deleting /var/cache

My mouse and keyboard do not work anymore in CentOS 6.5 after I deleted /var/cache and restarted my PC.
0
votes
0answers
23 views

Modprobe vboxdrv failed centos

I am trying get Virtual box running in Cent os7 So far the vbox kernel compiles but will not start I'm just told "modprobe vboxdrv failed, please use dmesg to find out why" I have looked at "dmesg" ...
1
vote
1answer
39 views

What's the equivalent of .bashrc for CentOS?

By configuring ~/.bashrc as desired, each time the user logs into their bash shell the configured settings (of .bashrc) will automatically be set. Now I must be missing something but despite thorough ...
0
votes
1answer
81 views

CentOS 7 - resolution on login screen

Ive set the screen resolution on my CentOS 7 VM. But although the resolution is correct once I've logged in, the login screen resolution is far too high. I cannot find a way to change it. Does anyone ...
2
votes
1answer
204 views

How can I install CentOS on the Windows Intel Compute Stick

Intel Compute Stick comes in two versions: one with Windows 8.1 and one with Ubuntu, but the Linux version has half the RAM and far less internal storage and nearly impossible to buy. So I am ...
0
votes
0answers
38 views

How do you setup SCM Manager to use SSL, and not run off of port 8080?

I am trying to use SCM Manager to host a Mercurial repository, running off of a CentOS box, and the accessing machines are Windows 7 (if it matters). I have gotten the default setup to work, however I ...
0
votes
0answers
30 views

Changing I/O scheduler for SSD

I have many CentOS systems, some of them have traditional hard disks, some SSD, and some mix of them. I would like to change scheduler for SSD to deadline. So at runtime I can simply scan check ...
0
votes
0answers
34 views

Connecting via windows remote control to Centos(Xrdp)

I'm having a problem of printing text in code editor via rdp. I think problem arise especially using shift + key and F1- F6 keys, for example: When trying to print ":", I usually get: ...
1
vote
0answers
23 views

PostgreSQL and database cluster ownership on shared storage

For my research, I am using an always on virtual machine for the primary analysis of my data. In doing this I need (or, I suppose, would like to) create and store the data in a PostgreSQL database. ...
1
vote
1answer
37 views

Removing /tmp partition, what will happen?

We have a CentOS 6.6 server running, which is using a Raid0 on SSDs for the /tmp mount point (used for fast i/o). These SSDs need to be removed from the server, so the device where /tmp is pointing ...
0
votes
1answer
106 views

Can't write to an Intel 750 series PCIe SDD in CentOS 7

I am attempting to install an Intel 750 series 400 GB PCIe SSD card into a CentOS 7 system. The SSD shows up as /dev/nvme0 and /dev/nvme0n1 Attempting to format it with fdisk /dev/nvme0n1 results ...
0
votes
0answers
26 views

Postfix install fails. MySQL conflict

I'm using CentOS 6, and trying to create a virtual mirror on a new server of an old one (which someone else setup). As much as possible, I want keep everything with the same version, but I've started ...
0
votes
1answer
25 views

CentOS filesystem mount

I have set up a CentOS server and am administering it using Webmin. (I know webmin is generally frowned upon, but it is how I was taught to work on Linux and I only know basic ssh) The root drive ...
0
votes
1answer
38 views

Accepted publickey for userx from y.y.y.y (ssh authentication)

Server A and B is setup for autoSSH I am on ServerA (y.y.y.y) and is accessing ServerB. I understand that A's public key is store in B and is use by B to encrypt the challenge to A when A connect. ...
1
vote
1answer
22 views

“yum update” failed in Cent OS 6.4

Got strange error on Cent OS 6.4. I started a new Cent OS 6.4 and here is what I got: # yum update Loaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile Error: Cannot ...
1
vote
1answer
42 views

redirection - why it doesn't work this way

I know there are 3 streams attached to a process when it is run namely the input, output and error stream. And redirection execution work from left to right. I intend to execute a command, redirect ...
0
votes
1answer
53 views

How to disable XAMPP/Apache from returning server IP address along with ServerSignature?

I am trying to configure a webserver on CentOS 6.4 using XAMPP. The only problem I am facing is that I don't seem to find a way to disable the server from returning server IP address along with ...
2
votes
2answers
48 views

bash script.sh vs ./script.sh vs #shebang

Assuming i am in a bash shell now and i execute the following [me@server]$ bash script.sh q1) Is a new child bash process created to execute the script ? If i do a [me@server]$ ./script.sh q2) ...
1
vote
1answer
52 views

Cannot SSH to localhost without password

First off, I want to say that I've tried everything in this question here, and it didn't help me: How to SSH to localhost without password? I had a file permissions issue recently because I don't ...
1
vote
0answers
135 views

OpenVZ fails on container create (Unable to get appcache tarball name)

I have OpenVZ installed on CentOS 7.1. after i execute vzctl create 101 --ostemplate debian-7.0-x86-minimal i get command /usr/sbin/vzpkg exited with error 8 Unable to get appcache tarball name ...
0
votes
1answer
44 views

application that uses xforwarding fails unless I use xhost +localhost

I'm connected to a remote system over nomachine enterprise. We use an internal application that I believe is essentially xforwarded from another machine as I run it - it runs there, and outputs the ...
1
vote
2answers
43 views

How can I put my CentOS on public IP so that I can access it WinSCP from home?

I have a centOS system at office and I want to access it from home via WinSCP. I have a static public IP at office. Please help!
0
votes
1answer
60 views

PuTTY working, Terminal SSH is not (with Private Key)

Setup a new server (on Rackspace), got it working in PuTTY/KiTTY. When I run from terminal (Cmder), it asks me to enter a passphrase (which PuTTY doesn't), I hit "enter" (there is no passphrase), ...
1
vote
1answer
64 views

Unable to view contents of directory on Linux server via FTP, or using “dir” via shell, able to find files within directory nonetheless

I have a directory on my Linux (CentOS) server which serves as a repository for uploaded files from a webpage. I noticed I was not able to open the file using Filezilla via FTP (was formerly able ...
0
votes
0answers
13 views

How do you get CentOS 6 to auto detect changes to NICs?

So, here's my issue. I'm managing many CentOS 6 based virtual machines, many of which are expected to be shared between different developers and some even are to be cloned and launched on central VM ...
1
vote
1answer
40 views

Error with command cut: the delimiter must be a single character

I am trying to run this command from console: # HTTPDUSER=`ps aux | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\ -f1` But got this error: Try `cut ...
2
votes
3answers
90 views

difference between ${} and $() in shell script

$ echo $(date) Thu Jul 2 16:33:11 SGT 2015 $ echo ${date} $ name=foo $ echo $(name) ksh: name: not found $ echo ${name} foo Seems like ${variable} is the same as $variable. while $() is to ...
0
votes
0answers
30 views

Linux Redhat account claims locked even after unlocking

The local linux account won't allow the user to login even after unlocking it. The following command provides the following output: [userBar@host]$ sudo usermod -U userFoo [sudo] password for ...
0
votes
0answers
8 views

Application icon in Gnome 2 panel

I am using a closed source application on CentOS 6.6. The application comes with a wrapper bash script, that sets some environment variables and then executes the actual binary. I have created a Gnome ...
3
votes
4answers
65 views

fdisk - do i need it or can i make a filesystem directly?

i read about fdisk being able to creation partition / which is to break down a physical disk into several logical partitions. If i intend to utilize the whole disk as a whole, is it still necessary ...
0
votes
1answer
66 views

In CentOS 6.6 yum update show some dependency error

When I update centos package it (sudo yum update). It shows following error like. Error: Package: 1:control-center-2.28.1-39.el6.x86_64 (@server1) Requires: libgnome-desktop-2.so.11()(64bit) ...
0
votes
1answer
37 views

Understanding fdisk -l output and calculating storage

I have basic understanding of disk. (Please correct me if i am wrong) I understand on 1 platter, there are 2 heads, 1 on top, and 1 on bottom. Both side of the platter is able to provide storage ? On ...
0
votes
0answers
25 views

CentOS / RedHat DHCP working, static is not

I have installed CentOS 7 minimal install without GUI when I setup network configuration with Webmin web interface or manually editing files with VI it does not work. When I use e.g. "yum search ...
0
votes
1answer
73 views

devices inside /dev - are their naming persistent by default?

Can i check if devices like sda , sdb naming in /dev/ are persistent by default or there are some udev rules in place to create persistent naming for them ? Does udev itself create device naming ...
2
votes
1answer
82 views

udev symbolic links - where is /dev/sda pointing to

It is said that udev create symbolic links identifying the actual device and /dev/disk/by-uuid is an example. [root@centos1 by-uuid]# pwd /dev/disk/by-uuid [root@centos1 by-uuid]# ls ...
1
vote
2answers
49 views

Allow SSH direct Root user login to particular IP addresses

I have configured ssh login disable direct root user, configuration are, /etc/ssh/sshd_config Port 1845 PermitRootLogin no AllowUsers SKBFSXDWA I would like to direct root login to specific ...
0
votes
0answers
19 views

Eclipse on new VM cannot download stuff, why not?

I copied eclipse into a new VirtualBox CentOS 7 virtual machine from another computer, but how do I get it to allow eclipse to download stuff from the internet? Here is the problem: Eclipse works, ...
0
votes
2answers
33 views

udev - am i using it, where do i see it?

It is mentioned that udev present devices in /dev for devices that are presented to the kernel and it is use to create persistent naming. I have having 2 harddisk /dev/sda /dev/sdb. How does ...
-1
votes
1answer
130 views

Correct kmod-megasr driver to install CentOS 7 on Intel Embedded RAID Technology II?

I am trying to install CentOS 7 on a server using RAID 5 on Intel Embedded RAID Technology II. I did need to install a special hardware key to unlock the RAID 5 feature. I have succcessfully ...
0
votes
0answers
35 views

Unable to connect to the proxy server

I have a vps with centos 6.6 x64 and I installed Squid using this tutorial When I using the proxy in chrome with "Proxy SwitchyOmega" extension I got this error Unable to connect to the proxy server ...
0
votes
0answers
90 views

Failed to start nginx on CentOS

I installed nginx on Centos7, I'm unable to start the service: #service nginx start Starting nginx (via systemctl): Job for nginx.service failed. See 'systemctl status nginx.service' and ...
0
votes
2answers
42 views

DHCP server used reserved IP

I am using DHCP server on centOS 6.5, I reserved an IP for specific MAC address my config file /etc/dhcp/dhcpd.conf option domain-name-servers 192.168.1.5, 8.8.8.8; ...
1
vote
2answers
18 views

How to delete all files and directory except one named directory from a specific folder in centos [duplicate]

I want to delete all files and directories from a specific directory except for one directory. For the same operation I had run this command # rm -R -df !(dir_name_not_to_delete) It works in Ubuntu ...
1
vote
1answer
40 views

how do I copy large datasets between two VirtualBox virtual machines?

I have two separate CentOS 7 virtual machines running in VirtualBox that is installed in a Windows 8.1 host. How do I transfer large amounts of data from one of the CentOS 7 virtual machines to the ...