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

130
votes
9answers
14k views

I accidentally typed password into bash command line

I accidentally typed my password into bash command line, mistaking the Last login: ... line for Wrong password (I was in a hurry). What do I do to cover my trace? What I did was editing .bash_history ...
70
votes
3answers
7k views

My PC is not a phone - how do I remove the swipey pre-log in screen from Gnome 3?

I'm currently running centos 7 (the server with gui config) on a VM. I'd like to keep the log in screen, but the 'phone' style pre-login lock screen that requires a swipe to access the main login ...
36
votes
8answers
47k views

How to Install gcc 4.7.x/4.8.x on CentOS

What would be the easiest way to install gcc 4.7.x/4.8.x on a system with CentOS 6.2+? The default RPM package contains an older version of gcc.
35
votes
5answers
120k views

Checking what PHP version I'm running on Linux?

I'm running Centos 5 and I need to know what version of PHP I'm running, is there a command for this which I can run?
34
votes
7answers
136k views

How do you automatically detect a new network card in CentOS 6 / RedHat?

I'm using CentOS 6 in a virtual environment. When cloning a virtual version of CentOS, the old eth adapters are "removed" and replaced with new ones and net MAC addresses. However, the ifcfg-ethn ...
15
votes
3answers
987 views

Moving 2TB (10 mil files + dirs), what's my bottleneck?

Background I ran out of space on /home/data and need to transfer /home/data/repo to /home/data2. /home/data/repo contains 1M dirs, each of which contain 11 dirs and 10 files. It totals 2TB. ...
14
votes
3answers
17k views

yum hangs and won't respond

I am running yum check-update and it freezes after a 2 lines of output: Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile I'm not sure what is happening. The last things I ...
13
votes
3answers
35k views

How to upgrade CentOS 5.6 to 6.0?

I am using CentOS 5.6 on my desktop and would like to upgrade to CentOS 6.0. I tried changing the yum repos to point to CentOS 6 but no luck. How can I do the upgrade?
12
votes
3answers
14k views

How to view history of Yum commands (update, install, remove)?

I'm seeing some errors in my apache logs and they may (or may not) be related to some packages that I recently installed/removed using Yum. Is there a way to view the history of Yum packages that ...
10
votes
2answers
23k views

yum install gcc-g++ doesn't work anymore in CentOs 6.4

Today installed CentOs 6.4 fresh new on my workstation. I wanted to install g++. With my surprise I didn't succeed by using yum install gcc-g++ The thing is that even by doing a search I don't ...
10
votes
4answers
20k views

How to stop kernel messages from flooding my console?

I'm using Centos 6, rsyslog logging. Console is flooded with kernel messages. Klogd is not running (I'm using rsyslog) Rsyslog config does not direct anything to the console Even tried stopping ...
9
votes
5answers
43k views

How to install pip and easy_install on CentOS

I tried to install pip and easy_install on my CentOS but could not find them. How can I install them? Also, I have two versions of Python, 2.4 and 2.7. How will pip make sure to link newly installed ...
9
votes
1answer
12k views

Using colour schemes with vim and putty

I am trying to use the desert color scheme with VIM 7.0 on CentOS 5.6 x64 located here: http://hans.fugal.net/vim/colors/desert.vim I've downloaded the file and saved it in my ~/.vim/colors ...
9
votes
5answers
12k views

sudo access for desktop actions in Gnome/KDE?

I feel kinda silly asking this question. I'm using CentOS 5.4 and KDE. I downloaded an archive and I want to drag/drop the contents into a folder that I need root access to write to. I can obviously ...
9
votes
2answers
16k views

Virtualbox: How to access web server on guest OS from the host OS?

After a lot of RTFM'ing and reading forums, I am still having problems and need some advice. I use Virtualbox on Ubuntu and installed a Centos server as a guest. My problem is that I cannot access the ...
8
votes
9answers
35k views

How can I add additional search domains to the resolv.conf created by dhclient in CentOS

When my CentOS virtual machine boots it uses DHCP to get an IP address. It also overwrites resolv.conf with the DNS settings provided by the DHCP server. The DHCP server doesn't supply any search ...
8
votes
5answers
17k views

Installing Git on CentOS [closed]

How install git on CentOS? I find this manual. Is it good?
8
votes
4answers
37k views

Where Linux places the messages of boot?

I want to find place to where Linux writes all boot messages. You know: facility one [STARTED] facility two [STARTED] facility three [FAILED] I searched with find . -print0 | xargs -0 grep ...
8
votes
4answers
2k views

How can I have two files with the same name in a directory when mounted with NFS?

I have a C++ application test that creates 10,000 files in an NFS mounted directory, but my test recently failed once due to one file appearing twice with the same name in that directory with all the ...
8
votes
1answer
10k views

what is run-parts in /etc/crontab, and how do I use it

I have been digging through my Linux system. To try and understand how it all works In the /etc/crontab file. I see the following # run-parts 01 * * * * root run-parts /etc/cron.hourly 02 4 * * * ...
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 ...
8
votes
3answers
4k views

I can't open phpMyAdmin, get error 301 or 500

I've installed phpMyAdmin, but I can't open it on any browser: I get a 301 redirect(*) if I browse to http://localhost:8080/phpmyadmin. If I add a / to the end of the addres, I get a 500 error status ...
7
votes
2answers
6k views

Proper way to start xvfb on startup on centos?

I'm following this tutorial, and I want to know the equivalent centos-version of this ubuntu-specific step: You may receive a few warnings regarding fonts and such, but it’ll still work despite ...
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 ...
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 ? ...
6
votes
3answers
11k views

how to stop cp: overwrite './xxx' ? prompt

How can I stop the cp command from prompting to overwrite. I want to overwrite all the files with out having to keep going back to the terminal. As these are large files and take some time to ...
6
votes
5answers
15k views

How do I remotely view a Linux desktop from Windows XP?

I'm using Windows XP and need to remotely connect to a CentOS-5.X server. I'm looking to visually, securely and with as small a footprint as possible manage a remote Linux system via an GUI. It's not ...
6
votes
3answers
4k views

Should I disable hyperthreading?

I will be maxing out a few boxes running some heavy CPU intensive processing. Each process only uses 1 thread, so I will run them in parallel. I'm using machines with 4 cores, so that's 8 with ...
6
votes
2answers
1k views

Install emacs without sudo?

I have been using vim for years, and I don't really like it. I'd like to try emacs for a while, but it's not installed on any of the linux servers I use regularly. I don't have root so apt-get ...
6
votes
2answers
8k views

CentOS Live CD vs Live DVD download

In this download page, I am presented with some options: http://mirrors.arpnetworks.com/CentOS/6/isos/i386/ What's the difference between Live CD vs Live DVD? CentOS-6.3-i386-LiveCD.iso 690M ...
6
votes
4answers
2k views

Linux software for periodical work break

I am using Cent OS 5. I am looking for an app which will alert me after some time to take break. So I can use computer as healthy computer usages ?
6
votes
2answers
3k views

Plex installed on CentOS : 404 when navigating to URL

I installed Plex Media Server on CentOS by downloading the RPM file from Plex's website. When I navigate to Plex URL, I get a 404 not found: When I go the base URL I get an XML file: Linux ...
6
votes
1answer
14k views

Tiger VNC on Centos 6.3 fails, font catalog not properly configured

I'm trying to set up Tiger VNC server on CentOS 6.3 but I'm getting the following error message when I run the command vncserver: WARNING: The first attempt to start Xvnc failed, possibly because ...
6
votes
7answers
11k views

Are we suppose to manually delete contents of /tmp?

I was under the impression that /tmp will regularly delete "old" files. Seems to me that /tmp will just grow as long as it wants to and won't delete anything. Some people say it's betetr to just leave ...
6
votes
4answers
19k views

How to transfer files from Host OS to guest OS running on VirtualBox?

I am trying to transfer files from my Host OS (Windows 7) to Guest OS (CentOS) running on VirtualBox. I tried using pscp but it gives the error: More than one remote source not supported I tried ...
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 ...
6
votes
2answers
3k views

node.js on CentOS box is at v0.6.18, yum doesn't update or upgrade it. Why?

I'm currently working with a CentOS box that has a version of node installed, when I do: nodejs -v I get v0.6.18 But I noticed on nodejs.org website, that the latest release is 0.8.12, so do: ...
6
votes
1answer
1k views

How can I get Putty to support 256 colors in Emacs on CentOS?

As far as I can tell from browsing around, I should be getting 256 colors in my Emacs, but I'm not. I'm running CentOS 5.4 on an ec2 instance. I'm running Putty 0.60 on Windows 7. Putty is set to ...
6
votes
1answer
2k views

How can I resize a partition managed by LVM?

I have a fresh CentOS install on my machine and I would like to make space on the drive available in order to install Arch Linux. Unfortunately, LVM is new to me and doesn't appear to work well ...
5
votes
3answers
35k views

how can i install CentOS 6 without the gui?

i just downloaded the centos 6 live cd and i tried installing it on virtually and i am never prompted to install centos with/without gui and its all automated. what happends is after i am booted into ...
5
votes
2answers
16k views

Linux: How to automatically run commands on SSH login?

Whenever I login to my Linux server I'd like to have several commands run automatically (set some variables, change location, etc.) This needs to be done on user login, not on system start. How can ...
5
votes
3answers
31k views

CentOS - difference between ssh -X and startx, and starting a gui

I'm trying to get my gui on my CentOS machine up, but I frankly don't know the linux commands and google hasn't had a clear answer. I'm assuming ssh -X and startx are the same, but maybe not; ssh -X ...
5
votes
2answers
11k views

“bad interpreter: Permission denied” How can I prevent this error?

I want to run program directly such as ./program without define the interpreter in shell first. so, how can i want to prevent this error? bad interpreter: Permission denied My operating system ...
5
votes
2answers
425 views

How many drives do I have?

This is the first time I ordered a dedicated server with 3 HDDs and I am quite confused. My limited knowledge tells me that /dev/sda /dev/sdb /dev/sdc are the 3 drives that I actually have. But, ...
5
votes
1answer
11k views

How to completely uninstall a package (including all extra files that came with it) using yum (or rpm)?

When I do yum remove, it sometimes keeps a package's configuration files. Is there anyway to remove a package completely, without keeping any file that belonged to the package? I am running CentOS.
5
votes
2answers
12k views

CentOS 6 - iptables preventing web access via port 80

I'm setting up a new web server with CentOS 6.2 and am not able to connect via the web. Everything looks set up correctly in httpd.conf and Apache is running, so I'm assuming it's an iptables issue. ...
5
votes
2answers
281 views

How to delete group of folders based on name and date

I have a folder structure like this. folders test1 test2.1 test49.85 test4.95.89 sample support util These are all folders. I need to delete all folders that begin with ...
5
votes
2answers
4k views

Upgrading GCC on CentOS

I need to upgrade GCC. When I type yum install GCC it tells me Package gcc-4.1.2-51.el5.x86_64 already installed and latest version. Unfortunately I'm trying to install some software which requires ...
5
votes
1answer
5k views

How to use yum to reinstall all dependencies of a given package?

So I have a package that I am pretty sure that I removed part of one of its dependencies when removing something(as in rm). Long story. Basically what I want to do is have yum re-install the package ...
5
votes
2answers
2k views

how to find which process had created any file in Linux

Is there any way to know which process had created any file in Linux Red Hat/CentOS 5?