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

59
votes
8answers
106k 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.
0
votes
1answer
1k views

Unable to access localhost & Internet using one adapter in CentOs

I have the below dev. environment. Hardware:- Windows 7, 32bit, HP Laptop. Software:- CentOs 6.5 running on VirtualBox 4.3.10. In a nutshell The problem is that I can't access the internet and ...
8
votes
5answers
17k views

Installing Git on CentOS [closed]

How install git on CentOS? I find this manual. Is it good?
2
votes
3answers
14k 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?
8
votes
3answers
8k views

Why can't I sudo some commands? (e.g., vim)

I have sudo access on my friends server, running centos-6.3, but when I try to run some commands like sudo vim /var/www/html/index.html I get an error sudo: vim: command not found I can, however, run ...
1
vote
3answers
19k views

tar Cannot open: No such file or directory

Fresh install of CentOS 5.4 Downloaded the following: http://prdownloads.sourceforge.net/webadmin/webmin-1.510.tar.gz MD5 sum is correct (cdcc09d71d85d81914a90413eaf21d3f). The file is located ...
4
votes
4answers
704 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 ...
1
vote
1answer
86 views

how do I set up a wired 1 to 1 network connection between two computers?

I have two computers connected by an ethernet cable. One is a Windows 8.1 devbox, and the other is a CentOS 7 development server with only a terminal interface (No GUI). The development server will ...
0
votes
3answers
7k views

Linux User Permissions?

I have two users, user1 and user2 which are both in a group matching their user name. I'd like both users to have full r/w/x permissions on all of each other's files as default without having to CHMOD ...
1
vote
0answers
636 views

Gigabyte GA-G31M-ES2L drivers for CentOS

Recently installed CentOS on Gigabyte GA-G31M-ES2L motherboard everything works well except the graphics are a bit laggy, so I'm wondering if it hasn't got the drivers in place. Where do I locate the ...
0
votes
2answers
126 views

Port based NAT-ing with iptables

On eth0 port we have public IP, and eth1 we have IP 10.31.0.1 which provides DHCP and Squid service. Ports 8080,53,67,80,443 are open. Now for an application we have to open 1521,8443 ports so that ...
39
votes
8answers
184k 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 ...
19
votes
4answers
40k 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 ...
56
votes
5answers
204k 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?
5
votes
1answer
7k views

Getting 2 IP addresses on one network card, using DHCP

Given: A computer running Linux (CentOS 5.x), one network card connected to LAN switch, a second one to cable modem via crossover cable. This computer acts as a router/firewall/traffic shaper for the ...
19
votes
3answers
28k views

What is the difference between CentOS “DVD” vs “Everything” ISOs

What is the difference between the DVD ISO and the Everything ISO? These options are presented on the CentOS download page but there is no explanation as to what the difference is.
4
votes
2answers
11k views

Install OpenCV in CentOS

I am trying to install OpenCV in CentOS 6. When I run the command [root@cosmas opt]# sudo yum install libtiff4-dev libjpeg-dev libjasper-dev it returned the follow: Loaded plugins: fastestmirror, ...
8
votes
3answers
53k 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
1answer
9k views

Attempting to install tmux on CentOS 6.4 or CentOS 6.5 fails with error: ‘EVBUFFER_EOL_LF’ undeclared

I tried compiling tmux using the following steps: yum -y install ncurses-devel libevent-devel wget http://downloads.sourceforge.net/tmux/tmux-1.9a.tar.gz tar -xvzf tmux-1.9a.tar.gz cd tmux-1.9a ...
5
votes
2answers
22k 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
2answers
9k views

Convert file to PDF using LibreOffice under user apache (i.e. when using PHP)

I installed libreoffice-headless and can convert documents when logged on into the shell as a normal user. [root@desktop ~]# yum install libreoffice-headless [root@desktop ~]# yum install ...
4
votes
3answers
6k views

How to find which package certain command belongs to on CentOS?

For example I can easily find locate command belongs to mlocate.i386 package. yum search locate mlocate.i386 : An utility for finding files by name [mirror@home /]$ rpm -qa | grep locate ...
4
votes
2answers
4k views

Redirect stdout to a file when process is run in background

How can I redirect the stdout of a program to a file when it's run in the background? I have a program that generates output every second. When I run it normally and redirect to a file, the output ...
3
votes
3answers
20k views

Unable to remove PHP packages from CentOS, but also unable to update PHP package to PHP 5.3

I have an interesting, albeit infuriating problem with CentOS. I'm trying to configure this server to run a Symfony2 website I've built. The website doesn't work, and I've pinned down the problem to ...
3
votes
3answers
12k 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. ...
6
votes
5answers
19k 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 ...
5
votes
4answers
10k views

Writing a CPU/RAM usage log over a period of time to file on CentOS

I'm looking for an application or line of code that would let me observe a process, save the info in a number of variables, then put the gathered info on a file. I've been trying with variations of ...
3
votes
2answers
909 views

Resolving unix server disk space not adding up

I'm trying to evaluate where my disk space on my unix server is distributed. In order to see disk space current status I'm running: df -h But when trying to evaluate what is taking the disk space ...
3
votes
4answers
13k views

How to know which fonts are installed on CentOS?

Question-1: Is there a way to know what all fonts are installed on the CentOS 6.2 through command-line? I have checked the fonts with the following command ls /usr/share/fonts/default/ghostscript/ ...
3
votes
1answer
84 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. ...
3
votes
1answer
2k views

Why does Dropbox use so much memory on Linux?

pmap shows that Dropbox uses nearly 200MB of memory (on Linux). When I run Dropbox on Windows, it only uses about 30MB of memory. What is the reason for that? Also, why are there so many [ anon ] ...
2
votes
2answers
354 views

LUKS encryption with non-interactive login on RHEL6

I need to have LUKS encryption on this system but during lab development I don't want to have to enter the password at the console each reboot. I'd like a way to set a simple password that can be ...
2
votes
1answer
8k views

Apache test page not displaying

I have a virtual machine running CentOS 6.4, and trying to setup an Apache server, but I cannot get to display the Apache test page. I've installed it using yum install httpd and checked that all my ...
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
7k views

CentOS Dual-screen doesn't work

I am running a CentOS 5.3 x86_64 (fully updated as of today). It has a video card I cannot identify -- I run lspci and it identifies itself as: 01:00.0 VGA compatible controller: nVidia Corporation ...
1
vote
2answers
1k views

Always have to chown when adding new file? Centos 6

Whenever I upload a new file to my server, I have to chown -R apache:apache /dir in order for it to be accessible. Is there an easier way around this?
1
vote
2answers
3k views

What's the difference between “uname -r” and “uname -v”?

I am using CentOS 6.2. In the man page of uname (i.e., man uname), it says: -r, --kernel-release print the kernel release -v, --kernel-version print the kernel version ...
1
vote
2answers
8k views

Problem installing apt-get on CentOS 5.5

Background: I'm wanting to move away from Apache and came across this article which walks through an install of nginx, PHP-FPM and APC. On trying to follow these instructions on my user account of my ...
0
votes
1answer
3k views

how to enable java in Browser on Centos 6.5

i already install Java (jdk 6u45 and jre 6u45) in a Centos 6.5 Server, but i don't know why in my browser appears to enable java plugin, these are steps to install java in my machine: rpm -ivh ...
5
votes
1answer
3k views

I believe I've deleted MySQL root user, how do I recreate it?

I'm running ISPConfig on CentOS and I don't know how, but I don't seem to have a root mysql user. I can stop mysqld with /etc/init.d/mysqld stop Start it again and skip grant tables mysqld_safe ...
4
votes
3answers
3k views

Is it safe to disable fsck on boot?

Occasionally fsck would run on it's own when I reboot my server, but most of the time it doesn't. But when it does run, it takes too long to finish. Is it safe to disable this permanently?
4
votes
3answers
5k 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 ...
4
votes
2answers
1k views

After doubling virtual disk size in VirtualBox, fdisk -l still shows old disk size in guest CentOS

I'm running CentOS 6.1 as a guest in VirtualBox 4.1.18 on a Mac OS X (Snow Leopard) host. Since 50 GB for my CentOS guest proved to be insufficient, I resolved to double its available disk space. ...
4
votes
2answers
322 views

Connecting a MIDI Controller to CentOS5

Edit: I'm trying a different tack at the problem, by using /dev/midi with C. Hello all! I recently got a Akai MPD24 MIDI controller, as part of a piece of software I'm writing. I'm looking to use the ...
2
votes
1answer
130 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 ...
2
votes
2answers
473 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 ...
1
vote
0answers
48 views

Configuring my Bridged Network on a CentOS Virtual Machine

I am having trouble configuring my Bridged Network Connection on my CentOS 6.7 Virtual Machine. I am trying to run a R Shiny-Server Web Application on this Virtual Machine. When I try to go to ...
1
vote
1answer
752 views

Google Chrome on a fresh CentOS 7.1 not starting up

I am having a bad time trying to run Chrome on my CentOS 7.1 server. I know, it does not have a screen, it's a server. But I installed GNOME anyway and using VNC I can see the screen on a remote ...
1
vote
1answer
80 views

how do I ssh from a vm to a private server through an ethernet cable?

A devbox has Windows 8.1 as the host OS running VirtualBox and a virtual machine with CentOS 7 for development. The devbox is connected to a CentOS 7 development server through an Ethernet cable. The ...
1
vote
1answer
176 views

how do I access a CentOS 7 file system from Windows 8.1

I am using an Apricorn SATA Wire to connect a hard drive removed from another PC to the USB drive of a Windows 8.1 machine. The external hard drive is from a machine that had both CentOS 7 and ...