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
1answer
2k views

How to set up a NAT and and a Host Only adapter using Vagrant?

I am trying to make a NAT connection (for yum downloads) and a Host-Only connection (for talking with host) at the same time on my CentOS box when using Vagrant. I CAN do it by SSHing and checking ...
6
votes
2answers
55k views

SSH Permission denied on Correct Password Authentication

I could successfully SSH into my machine yesterday with the exact same credentials I am using today. The machine is running Centos 6.3. But now for some reason it is giving me permission denied. Here ...
3
votes
3answers
6k views

SSH public keys not working

I've spent a few hours trying to solve this, but have gotten nowhere. The server is running CentOS 6 and using OpenSSH. The client is running OpenSSH too. I created a public key on the client (my ...
2
votes
2answers
3k views

CentOS 5 Python - How To Force Specific Version?

I have a python program that I'm trying to run, my fresh install of CentOS came with 2.4.3 of Python, but I just manually installed 2.7. My install is located at /usr/local/bin/python2.7, so its all ...
0
votes
0answers
104 views

Zip File Doesn't Appear in Apache Directory (Centos)

I'm testing Centos 6.3 on my laptop. It's kind of a confounded thing that when I place example.zip in /var/www/html/folder, I can't see it at http://www.mysite.com/folder. The command that I run to ...
0
votes
1answer
36 views

Route network through server

Sorry if this has been answered. I truly searched thoroughly before asking. I've got two routers, and a server with two nic's I want my network to function as follows: MODEM -> Router 1 (DHCP HERE) ...
1
vote
1answer
769 views

Monitor network traffic of my virtual machine through my CentOS Computer

In my CentOS 6.3 computer, I installed a MS Server 2008 through a VirtualBox. Is it possible to monitor the network traffic/activities of my MS Server 2008 in my CentOS? How can I do that?
1
vote
1answer
666 views

How to auto-run an application at boot on CentOS?

I've got an app installed on my CentOS server. In order to run it I have to run these two commands. [myserver local]# cd /usr/local [myserver local]# #ppbed start Can anyone explain to me how I can ...
-2
votes
1answer
131 views

install rpm packages with rpm

I tried to install java 1.7 with rpm but got this error: #rpm -i jdk-7-linux-x64.rpm. package jdk-2000:1.7.0-fcs.x86_64 is already installed If the package really was installed, then how come ...
0
votes
1answer
337 views

rpm jdk-7-linux-x64.rpm

I tried to install java 1.7 with rpm but got this error: #rpm -i jdk-7-linux-x64.rpm. package jdk-2000:1.7.0-fcs.x86_64 is already installed If the package really was installed, then how come ...
1
vote
1answer
647 views

dependency resolution (CentOs - Yum)

I'm trying to install a package that depends on Java 1.7 with yum. I do I have Java 7 on my machine: #echo $JAVA_HOME $JAVA_HOME /usr/lib/jvm/jre-1.7.0-openjdk.x86_64 # java -version java version ...
1
vote
1answer
80 views

How configure email the at/batch results is sent to?

From the man page for at/batch, it says The user will be mailed standard error and standard output from his commands, if any. Mail will be sent using the command /usr/sbin/sendmail. If at is ...
2
votes
1answer
9k views

set PATH permanently

How do I edit my .profile file to set a permanent value for my PATH variable? Is there any other file that needs editing? (This is on CentOs 6.2)
2
votes
2answers
82 views

How to find rpm binary of a given process?

Here is the problem: I'm trying to find what cron software is running on my machine, however question applies to any generic process. One way to do it is: Find the process ps aux |grep cron Find ...
1
vote
4answers
3k views

“Wrapper” ssh script freezes when executing remote command

I am running OSX Mountain Lion and the remote server is CentOS 6. I have several scripts on my local machine that I want to run on the remote server and to that end, I thought to write one script that ...
6
votes
5answers
10k views

Can't kill a sleeping process

I don't seem to be able to kill -9 a process which is in an interruptible sleep (S) state: [root@jupiter ~]# ps -elf | grep yum 4 S root 16790 1 0 75 0 - 73779 - Jan15 ? ...
0
votes
1answer
111 views

Give developer access to dev site only

Okay, so I've got our web user for the live site, also the cpanel user, and a new user develop. Our site path goes: /home/user/public_html/dev I need to give user develop permissions to write ONLY ...
3
votes
2answers
2k views

Opening firefox in a centos linux terminal

I am trying to run Firefox from the terminal on a server using a centos operating system. Whenever I type in the command: ssh - X hostname firefox I can get firefox to successfully open, but I ...
-1
votes
1answer
468 views

CentOS and icewm

I'm using CentOS 6.3 32bit with 512MB memory and 8GB in a test environment. What would be the command to install icewm desktop in CentOS 6 minimal?
0
votes
1answer
351 views

Share /var/www/ on Virtual Box CentOS 6.3 VM with Windows 7

I would like the ability to share /var/www/ on Virtual Box CentOS 6.3 VM with Windows 7 so I can: Browse file tree's in my IDE. Save changes without permissions conflicts during development. I ...
0
votes
1answer
419 views

How do you set up a VirtualBox CentOS 6.3 VM . . . in order to access it via SSH from a remote host (not host to guest)?

What should I do? I installed VirtualBox 4.2.6 I installed CentOS 6.3 It's powered on # ip addr 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN link/loopback ...
0
votes
2answers
2k views

When /usr is at 100% usage, what can I clean up? [closed]

Our web server is showing 100% usage for our /usr partition. I've cleaned the logs, which cleared almost nothing. What else can I remove?
1
vote
0answers
222 views

USB disabled when installing CentOS 5.8

My USB keyboard does not response when installing CentOS 5.8 with options "linux noprobe". Given the fact that before installing from a burnt DVD, I once tried to install from a USB flash storage, it ...
1
vote
1answer
832 views

iptables routing marked packets from router to PC and routing them back to router

I'm trying to do deep packet inspection on HTTP packets. The purpose of this is to collect HTTP payload data and then create some proxy/cache-independent reports. Following this, the idea is to ...
8
votes
3answers
17k views

How to find which files and folders were deleted recently in Linux?

I am having one particular folder (/home/sam/officedocuments) which is having hundreds of folders and files. I think I deleted some files and folders by mistake but I'm not sure. How to find which ...
0
votes
1answer
3k views

domain MX record not found while installing Zimbra

I am getting this error: DNS ERROR resolving MX for localhost.localdomain It is suggested that the domain name have an MX record configured in DNS Re-Enter domain name? [Yes] named file: $ttl ...
0
votes
1answer
535 views

Restore deleted system files and repair CentOS

I just made a big mistake and deleted a directory /home/virtfs/. I did not notice it has links to almost every library in the system. I'm running this server with cPanel installed but of course it ...
1
vote
1answer
301 views

Bash Completion: Ubuntu vs CentOS

CentOS: curl -Sso ~/Des[TAB] autocompletes to: curl -Sso ~/Desktop/ Ubuntu: curl -Sso ~/Des[TAB] does NOTHING. I can "fix" this by uninstalling bash-completion, but that's not a real fix. ...
2
votes
1answer
987 views

Optimal raid array on Centos 6

I have 4x2TB disks and I want to create a well-performing RAID5 array (server is HP N40L microserver with 8GB RAM, booting from a 64GB SSHD). The OS is Centos 6.3, x86_64. I created the raid array ...
1
vote
3answers
596 views

what is diff bentween xargs with braces and without in linux

I want to know what is the difference between this ls | xargs rm ls | xargs -i{} rm {} Both are working for me
2
votes
1answer
5k views

httpd: bad user name apache

on centos when I enter service httpd start or restart server gives Starting httpd: httpd: bad user name apache [FAILED] I tried to add ...
0
votes
1answer
445 views

Add Solr script on startup

I am trying to run Solr on startup or automatically on a VPS with CentOS 6.0, and I have read the answers in Stack Overflow question How to start Solr automatically?. And I could not execute this to ...
0
votes
0answers
217 views

Bash profile shows “Unexpected End of File” error

I have a .bash_profile, and its giving me an error "Unexpected end of file" I have no clue whats wrong, here it is, # .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ...
0
votes
2answers
474 views

Stuck In su in CentOS 6

I accidentally did su with no arguments while logged into the root account. It then put me into su and at the beginning of the command line, it now shows -bash-4.1# How do I "get out of" su ...
1
vote
1answer
84 views

How can I decrease the time it takes CentOS to discover new USB devices?

I have two systems sharing a KVM. The first system is Ubuntu 12.04 and the second system is CentOS 5.8. When I switch to the the Ubuntu system, the mouse is available right away, but when I switch ...
0
votes
0answers
632 views

Problems with using ftp connection in Windows 8 - Server Vsftpd Centos

I have a problem with FTP connection in Windows 8 to my own server (Centos 6 with Vsftpd). All programs that i use (PSPad, Aptana3, File Zilla etc.) are connecting well but i can't edit files, or ...
1
vote
3answers
361 views

cannot access crontab with sudo after being added to /etc/sudoers list

My user "craig" is in the /etc/sudoers file on my CentOS 5.6 VM, however when I try to access the crontab using the command below I am presented with an error message: sudo crontab -e -u ...
3
votes
1answer
617 views

How to install git on CentOS5 without root access?

I'm trying to add git functionality to a production CentOS 5.5 system that has no development tools (since it is a production system). So I don't have access to make/gcc/etc. I basically want to ...
7
votes
4answers
352 views

How to empty the contents of continuosly streaming file in linux

i have the program running using this command command 2> sample.txt now that file is growing continuously and command will exit in 5-6 days and i beleive that file size won't go in GB I tried ...
0
votes
0answers
931 views

“service mysqld start” is not working

I got this error message when I start mysql. ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) I just installed installed apache2 and mysql. ...
1
vote
2answers
108 views

How to ouput the continuous stream to a txt file in linux

I have the command which continuosly outputs something on the screen of putty like we have when we install something. Now that process is very long and its going to take many hours. I have few ...
3
votes
2answers
84 views

New partition still showing old files?

I have a relatively new installation of Centos 6 installed as a virtual machine on VMWare Workstation. The original issue I was getting was that one of the partitions was created too small in the ...
1
vote
1answer
188 views

Keyboard shortсut invoke Console in broken centos

Which is combination of keys to open console. I need repair a broken gnome Centos. There should be something like alt+f1 in Fedora?
1
vote
1answer
3k views

How to install PIL with zlip and jpg support in centos with pip python

When i install pip install PIL then i get this *** TKINTER support not available *** JPEG support not available *** ZLIB (PNG/ZIP) support not available *** FREETYPE2 support not ...
0
votes
1answer
377 views

Unable to install ssh2 lib for php on centos

I'm trying to install the ssh2 lib on my centos os server as per this tutorial : http://blog.dynamichosting.biz/2011/01/10/installing-ssh2-extension-for-php-on-centos-5/ Everything seems to go fine ...
2
votes
3answers
368 views

Windows 2008 server and Redhat with only 1 ip address, can windows route the traffic?

I have a two home server VMs set up. Windows 2008 server on port 80 and Centos/Redhat on port 8080. Both have separate godaddy domain name A name records pointing to them. But I cant point both domain ...
1
vote
1answer
2k views

CentOS 6 - Inodes full - can't delete folder containing files

I have a CentOS 6 server at rackspace with 40GB of space. My server kept crashing with 'no space left on device' errors but there is over 50% free. When I run df-i this is the output: /dev/xvda1 ...
1
vote
1answer
242 views

install latest gcc as a non-privileged user

I want to compile a program on a cluster (as a non-privileged user), which requires gcc-4.6, but the cluster has only gcc-4.1.2. I don't want to tell the administrator to update gcc, because 1) he is ...
0
votes
2answers
2k views

How can I list all IPs in the connected network, through Terminal on CentOS 6?

I was working on Centos and getting familiar with yum and I would like to know how to know which devices are connected to my network and see their respective IP and Mac address... Any ideas? Thanks! ...
2
votes
1answer
4k views

starting up apache tomcat on boot in Linux

I want to know whether is there any way to make our Apache tomcat to run automatically in the boot time?I want to simplify our works as we do not want to execute the start up script(provided in the ...