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

2
votes
1answer
6k views

CentOS DNS malfunctioning - Cannot resolve any hostnames after reboot

I am running Linux VPS on CentOS 6.4, and I log into it remotely via putty I made a change to my /etc/sysconfig/selinux file: /etc/sysconfig/selinux # SELINUX= can take one of these three values: # ...
2
votes
2answers
501 views

Create zip files that with given size

My question is same as in Create multiple zip files that are not dependent on each other? but my idea is to add files to zip until it is of required size and continue with a new zip file for others ...
2
votes
2answers
3k views

Simplest way to check for dynamic IP change

What would be the easiest way to find, with a script, if my IP address has changed? Background info: I have a standard home cable modem connexion, and my ISP assigns me a dynamic IP. It changes ...
2
votes
1answer
469 views

How do I list all the files not owned by any package in a RPM-based system?

I want to look for files polluting an old CentOS system in my company. Is there an easy way to do that?
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
1answer
6k 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 ...
2
votes
2answers
1k views

Why did rtorrent fail to build?

I am not root, so I have to build rtorrent from source and hope to install it in my home directory, but it failed, why? [mirror@hugemeow rtorrent]$ ls AUTHORS autogen.sh ChangeLog configure.ac ...
2
votes
1answer
124 views

Limit a user to VI and Tail

I'm running a server on centos 6.0 and I'm looking for a way to limit ssh access of one user to only tail and vi and only in their home folder. I found some guidelines to the home folder part but ...
2
votes
2answers
439 views

How to remove three consecutive line feeds in a Makefile rule?

I need to search for and replace three consecutive newline characters in an input file and filter them out of an output file for a makefile rule on Centos 4. I am using GNU sed v4.1.2 and GNU make ...
2
votes
1answer
20k views

Unable to access the internet from my VirtualBox CentOS VM via wireless connection

I have a VirtualBox CentOS VM setup on my Windows 7 machine. I can ping my router, however I am unable to access the outside world. In Windows I have three network connections setup: Wireless ...
2
votes
1answer
2k views

Default to Static IP when no DHCP is found

I've setup a DHCP server on one of my centos boxes, and I have several computers that are going to connect (also centos) and hopefully make use of the DHCP. On start-up I'd like to check whether a ...
2
votes
3answers
11k views

vncviewer connection refused (61)

I have a root access to VPS (centos 6). I have installed VNCServer using this guide line http://tournasdimitrios1.wordpress.com/2011/02/02/how-to-setup-vnc-server-on-centos-5-x-fedora-11/ Everything ...
2
votes
3answers
12k views

How to join an Active Directory with a Linux machine

How can I join an Active Directory domain with a Linux machine? Will it work with Ubuntu, Redhat, CentOS? Are there any with which it will not work?
2
votes
1answer
4k views

CentOS 6 SSD TRIM support

CentOS 6 is around for quite some time and they provide kernel 2.6.32. I know the vendor versions differ from the Kernel.org ones. Since vanilla kernel 2.6.33 and onwards provide trim support, I ...
2
votes
3answers
9k views

How to make my default gateway permanent in CentOS? So that after a reboot it does not get lost

I have a CentOS running. It is important to have my CentOS available when I am remotely connected to a VPN router. I tried to add a default gateway to the VPN router, but after reboot it goes away. ...
2
votes
3answers
619 views

Control gzip compression rates while archiving files with tar?

I have a script which periodically backs up a directory using the command "tar -czvf [name] [directory]" but my problem is that the script has recently been putting a lot of stress on the server ...
2
votes
2answers
3k views

how to change the color of the terminal

I'm using CentOS 4.8. I like the grey background color and the black foreground color,by which my eyes wouldn't sore. when I set 'export PS1="\e[0;30m\e[47m\u@\h \w>"' , It only changes the bash ...
2
votes
2answers
22k views

How to install Google's chrome on CentOS 5.3?

Google released their Chrome browser for linux but I got an error when installing. I was informed that I need a higher lsb version? What is lsb? Where can I find the latest lsb package/source ? By ...
2
votes
2answers
1k views

Change the resolution from bash for Cent OS

I changed the resolution of my monitor in KDE but it doesnt fit the screen and it shows an out of range problem is there anyway to reset or change it back from bash?
2
votes
2answers
35 views

Yum doesn't list a package I'd like, now what?

I'm Linux ignorant. We're using CentOS and I have a need to install something called git-up and I understand that package managers are how you install everything onto Linux. CentOS has yum but the ...
2
votes
1answer
20 views

df -h Size - User != Avail

When I run df -h I get the following Filesystem Size Used Avail Use% Mounted on /dev/sda3 809G 753G 14G 99% / But Size - Used is not even close to Avail (809-753 = 56 ...
2
votes
2answers
159 views

How to create a deployment image of altered CentOS?

So, I managed to install CentOS 6.5 on a client PC, and then, continued by tweaking a lot of its stuff (such as adding samba and kerberos stuff, joining the CentOS PC with Active Directory, removing ...
2
votes
2answers
472 views

VMware ballooning state from inside guest

There's tools (e.g. extop) to check VMware ballooning state from VMware host. I'm using VMware to run CentOS 6.3 and when ballooning stars consume memory to reclaim it back to ESX host, my system ...
2
votes
1answer
2k views

lsusb: unable to initialize libusb: -99

When I try to run lsusb I get the following error: $ lsusb unable to initialize libusb: -99 System details: OS: CentOS 6.5 Kernel: 2.6.32-431.1.2.0.1.el6.x86_64 Installed: ...
2
votes
1answer
119 views

How can I reimage my virtual server to not have size caps to individual directories?

As a prenote, I am extremely new to networking in general, and my knowledge is very minimal, even for things you guys would consider basic. I will try my best to keep up with any advice you have to ...
2
votes
2answers
373 views

SSH Using Wrong ID

I am trying to establish password-less ssh to myself on a CentOS6 system. I go through the following steps: ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsa cat ~/.ssh/id_dsa.pub >> ...
2
votes
1answer
71 views

Special instructions for CentOS VBox virtual machine?

I am gearing up to create a CentOS 5.5 server virtual machine in VBox and was wondering if there are special instructions, configurations or settings that I should be aware of ahead of time. ...
2
votes
1answer
415 views

How can I change my gnome-terminal title?

Previously I changed my gnome-terminal title to display which server I was logged into. I don't remember how I did this and I can't change it now. I ran through my .bashrc and found nothing that ...
2
votes
1answer
357 views

Error Compiling Python 2.7.3 on CentOS5

I'm trying to install Python 2.7.3 on my CentOS 5.50 machine. Download, extract, configure (with --prefix=/usr/local) are fine. Its the make that throws this error: gcc -pthread -c ...
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 ...
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 ...
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 ...
2
votes
1answer
4k views

How do I get the current date according to an NTP server without setting it locally?

I want to get the current date and time according to a remote NTP server, using Linux. I don't want to change the local time as a result; I just want to get the remote date, adjusted for the local ...
2
votes
1answer
214 views

Install CentOS 6 entirely from a script?

After having to manually install CentOS 6 on a few servers, with the same configuration (Software RAID 1, partition size, etc.) is there a way to prepare this to run entirely from a script? Or a ...
2
votes
2answers
2k views

Running .sh file CentOS6

I have a script for installing a program. https://github.com/mkonecny/airtime_centos/blob/master/centos.sh When I try to run it I get: 64-bit installer only LANG=en_US.UTF-8 install/uninstall ...
2
votes
1answer
243 views

Get rid of directory of unknown user

I'm constantly failing to do something usefull to a directory. ls gives this output: drwxrwxr-x 2 root 1000 0 19. Jul 14:03 backup Here I'm trying to remove, move or chown this directory ...
2
votes
2answers
612 views

More Linux permissions questions

I've read countless articles on the topic and searched through every question and answer I could find without any luck. I'm slowly going mad so I'm turning to you guys since I know the answer to my ...
2
votes
1answer
2k views

Wrong RPMforge Installed

I am running CentOS 6.2 and I installed RPMforge EL5 by mistake and I need to uninstall it and install RPMforge for EL6. How can I do that?
2
votes
2answers
2k views

Restore default permissions to “/var” to CentOS installation

So I accidentally ran chmod -R 0777 /var and I need to revert that (let alone allow chmod the correct ssh directory so I can log back into it). I'm feeling screwed, can anyone help? The sooner the ...
2
votes
1answer
504 views

Delete old files x days and send email if its done

I have a script that works removing files x days and keep the folders. I'm trying to send an email once its done with the deletion. Any advice? Current script is below: #!/bin/bash find /testftp/* ...
2
votes
1answer
2k views

Linux apropos command always returns “nothing appropriate”

I have a minimal installation of CentOS 5.7 32-bit on a VM. The apropos command always returns "nothing appropriate" [root@localhost ~]# apropos man man: nothing appropriate Even after I run ...
2
votes
1answer
433 views

TightVNC server issues

I'm trying to get a friend's server started for them. It's running on the same hardware platform as one that I personally use, so I figured it would be easy. They're running CentOS, and I'm trying to ...
2
votes
1answer
96 views

How to have user's passwords remembered in Linux?

How to I get linux to stop prompting me for a password and remember it? For instance, when using the root user, I always get prompted, but I would rather only be prompted once per user session.
2
votes
2answers
399 views

Tracing what program is making a network connnection? (CentOS)

I was wondering if it is possible to find out which process is trying to make a specific network connection. On a server I support which hosts websites for about 200 users, the iptables firewall keeps ...
2
votes
1answer
145 views

Where download CentOS-only basic packages?

I am thinking in starting a CentOS based distribution for communication (call center) and collaboration (IM, email, calendar) tools. What I want to find is Where to get CentOS-only base packages? ...
2
votes
1answer
12 views

How to launch executables in parallel on CentOS?

I need to run several executables in parallel from terminal (ssh). They all must have same home dir (not /). How can i do that?
2
votes
1answer
4k views

How to change resolution of CentOS 6.5 Resolution on virtualbox (Host: Win7)

So I'm trying to configure the resolution of my CentOS 6.5 virtualbox. Here are the steps I have taken: Installed guest additions Changed virtualbox preferences > Display > Maximum Guest Screen Size: ...
2
votes
1answer
661 views

VMware VM with CentOS latest too slow while try to access PHP sites through browser

I have a instance of VMware Workstation 10.0.1 running in my PC. My PC has this configuration: Proccessor: Core i5 3120M Memory: 3992 MB OS: Windows 7 Ultimate, 64-bit 6.1.7601, Service Pack 1 The ...
2
votes
2answers
2k views

Server hijacked / being used as bitcoin miner - how to I stop this?

I'm in a bit of a situation, my server has been hijacked and it appears to be involved in a bitcoin mining operation. I need to know where to start at least, I'm a novice system admin and haven't ...
2
votes
1answer
1k views

SSH Tunnel for restricted user w/ PuTTY and no shell

so I have been using SSH tunnels to restrict access to internal sites or portions of public sites for a while now, and since only admins had SSH access at all I've been using standard non-root/sudo ...