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

118
votes
9answers
12k 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 ...
29
votes
7answers
105k 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 ...
20
votes
5answers
78k 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?
19
votes
6answers
19k views

Install gcc 4.7 on CentOS

What would be the easiest way to install gcc 4.7 on a system with CentOS 6.2 ? The refault rpm package contains an older version of gcc.
15
votes
3answers
592 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. ...
13
votes
3answers
31k 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?
10
votes
3answers
10k 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 ...
9
votes
5answers
28k 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
4answers
10k 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 ...
8
votes
5answers
16k views

Installing Git on CentOS [closed]

How install git on CentOS? I find this manual. Is it good?
8
votes
2answers
11k 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 ...
8
votes
4answers
678 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
2answers
13k 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
3answers
3k 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
4k 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
1answer
9k 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 ...
7
votes
4answers
209 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
8answers
23k 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 ...
6
votes
3answers
24k 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 serched with find . -print0 | xargs -0 grep ...
6
votes
1answer
7k 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 * * * ...
6
votes
1answer
10k 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
3answers
9k 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 ...
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 ...
5
votes
3answers
29k 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
3answers
3k 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 ...
5
votes
2answers
9k 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
6k 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 ...
5
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 ?
5
votes
2answers
233 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
3k 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
3k 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?
5
votes
3answers
5k views

Cannot install CentOS 6.5 using UEFI usb boot

I am trying to dual-boot CentOS 6.5 on my desktop that is currently running Windows 8.1. I have two storage devices: an SSD that has my Windows installation, and an HDD that has all of my data. Both ...
5
votes
3answers
4k views

How can I configure gdm to allow X connections to other servers/workstations?

I have an issue on all new installs of CentOS 6.2 on my network. Connecting to remote machines using X11 gui software fails for reasons associated with the xauth. I'm not sure how to diagnose but have ...
5
votes
3answers
2k views

How do you install gnu MAKE without compiler

I'm a little new in this area. I have a virtual machine centos5.1 that doesn't come with make or any compiler... basically stripped down. It doesn't come with any install packages like yum, rpm or ...
5
votes
1answer
602 views

BSOD, MBR corrupt, tried to fix using Testdisk on Linux dual boot, now nothing works

The short story is I received a BSOD from a Windows program. I then couldn't boot Windows. My system is set up with GRUB to dual boot into CentOS, so I booted into CentOS and attempted to fix the MBR ...
5
votes
1answer
1k views

How can I perform a full texlive installation (all packages) in CentOS?

Title say it all, how can I install texlive and all the packages so I can run tex2pdf on CentOS? I'm rather used to Ubuntu and all this yum business is driving me nuts.
5
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 ...
4
votes
3answers
26k 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 ...
4
votes
2answers
13k 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 ...
4
votes
5answers
13k 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 ...
4
votes
4answers
558 views

Problem with shared ssh keys

Following the process I've used in other environments, I've tried setting-up shared keys between my Mac and my CentOS 4 webserver. I've seen the same problem with my older Ubuntu 7.10 workstation ...
4
votes
5answers
5k 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 ? ...
4
votes
2answers
2k views

Which version of Fedora, RHEL, correspond to which version of CentOS?

Which version of Fedora, RHEL, correspond to which version of CentOS?
4
votes
1answer
3k views

RHEL5.5 switch to CentOS repositories?

I was given a VM for a RHEL5.5 machine but I do not have a RHN subscription. I get this warning when using yum: bash-3.2$ sudo yum update [sudo] password for streamsadmin: Loaded plugins: rhnplugin, ...
4
votes
1answer
3k views

How to make a USB bootable stick for installing Fedora or Centos using VNC?

I have a PC with no option for a keyboard. I have to install the operating systems without a keyboard or mouse. I have to make a bootable USB stick which can allow me to connect to the PC from my ...
4
votes
1answer
3k views

How can i auto-login with Fedora 15? So that it never ask it on reboot automatically logs in, as defined

In the earlier versions of Fedora there was a way to use gdmsetup for auto-login. Now in Fedora 15 I can't auto-login anymore. Anyone know how I can do this? I cannot figure out how to stop it from ...
4
votes
2answers
473 views

about Linux read/write only permissions

My question looks similar to another thread: Linux directory permissions read write but not delete Here, I want to create a directory where I can give the permissions like: A user can create/upload ...
4
votes
1answer
5k 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.