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

49
votes
8answers
78k 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
816 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?
5
votes
3answers
6k 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 ...
4
votes
4answers
663 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
2answers
16k 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 ...
0
votes
3answers
6k 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
608 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
105 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 ...
38
votes
8answers
164k 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 ...
4
votes
1answer
5k 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 ...
48
votes
5answers
163k 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
2answers
19k 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
1answer
7k 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 ...
2
votes
2answers
7k 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, ...
12
votes
2answers
12k 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.
8
votes
3answers
44k 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
4k 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 ...
3
votes
3answers
17k 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 ...
6
votes
5answers
17k 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
8k 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
788 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
2answers
6k 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 ...
3
votes
4answers
10k 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
2answers
3k 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 ...
2
votes
2answers
226 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
76 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
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
3answers
10k 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
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
6k 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
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
2k 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 ...
4
votes
3answers
2k 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
2answers
307 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 ...
3
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. ...
2
votes
2answers
444 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
1answer
61 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 ...
1
vote
0answers
126 views

Does a VirtualBox/CentOs need two adapters to work properly ?

I have a Windows 7, 32bit, HP Laptop. I have CentOs 6.5 running on VirtualBox 4.3.10. Here is my eth0 config. Code: #vi /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 ...
1
vote
1answer
194 views

“Not a bootable partition” from Haiku's boot manager for new Linux partitions

I just did this: made an Intel Extended partition covering the whole HD using Haiku Alpha 4.1's DriveSetup made several BeOS partitions deleted the first one installed Haiku onto one of the other ...
1
vote
3answers
3k views

Creating a bootable USB drive from a distro split over two DVD ISOs

I am searching and not finding the right way to do this. Please note, I don't think I'm trying for anything strange here. I just want to make a bootable USB stick of a single OS that happens to be ...
1
vote
1answer
273 views

Node.js fails to start with v8 symbol error

I installed the nodejs package on CentOS release 6.3 (Final) But it crashed on startup when run with no arguments: [root@lcnolw1073 ~]# nodejs nodejs: ../src/handle_wrap.cc:65: static ...
1
vote
2answers
3k views

How to install CentOS 5.5?

This seems like a silly question, and I apologize if I'm overlooking something obvious. I can't figure out how to install CentOS 5.5 My experience in Linux thus far is mostly Debian-based distros ...
1
vote
2answers
3k views

Can't activate wlan0 in CentOS5.5

When I try to activate wlan0 in CentOS5.5, I get this: Error for wireless request "Set Mode" (8B06) : SET failed on device wlan0 ; Invalid argument. Determining IP information for ...
1
vote
1answer
1k views

Xserver doesn't work unless DISPLAY=0.0

Using CentOS. I cannot connect remotely and I believe it is related to fact I can only connect locally if DISPLAY is set to :0.0. Something is misconfigured but I can't figure out what. >xhost + ...
0
votes
2answers
42 views

NTP System time different from hardware time

on a centos 6.5 server I've just executed ntp with: service ntpd start It has fixed system time, but hardware time is still wrong. Is this normal? How can i fix it? ntpstat reports: ...
0
votes
1answer
22 views

LUKS encrypted volume lost upon reboot

Using this guide I encrypted a volume and am able to open and mount it manually. The problem comes after rebooting. On startup the system does not open the encrypted volume, nor is the decrypted ...
0
votes
3answers
45 views

Why can't the guest of VirtualBox connect to network?

I have installed CentOS 7 on virtualbox, and network setting is NAT. The guest can't connect to network: systemctl -l status network output likes this: ip addr output likes this: Could anyone ...