CentOS is an Enterprise-class Linux Distribution derived from Redhat Enterprise Linux sources freely provided to the public.

learn more… | top users | synonyms (2)

5
votes
1answer
2k views

Global /etc/profile setenv or export overwriting user settings in .profile

I need to call a modified version of a program in /home/user_name/bin rather than the (older) version in /opt/program_name/current on a CentOS 5.3 cluster. The program creates a tcsh script using ...
8
votes
2answers
2k views

How can I disable TCP/IP for an Ethernet adapter?

I have CentOS 6.3 running in a (virtual) machine with two Ethernet adapters. I have eth0 connected to a TCP/IP LAN and eth1 connected to a DSL modem. The system is intended as a dedicated ...
6
votes
2answers
11k views

How do I copy a symbolic link?

I have a symbolic link to a file in one directory. I would like to have that same link in another directory. How do I copy a symbolic link? I tried to cp the symbolic link but this copies the file ...
1
vote
0answers
382 views

Editing isolinux leads to kernel panic error in Centos Live CD

I downloaded a CentOS Live CD and tried to customize features on it. The CD boots fine if I use it "as-is". If I edit "isolinux.cfg" to edit the change the title of the CD or the automatic boot time, ...
19
votes
2answers
13k views

In CentOS, what is the difference between yum update and yum upgrade?

What is the difference between yum update and yum upgrade, and when should I use one over the other?
3
votes
4answers
8k views

CentOS 6 - nameserver entry in resolve.conf resetting after restarting network services?

In /etc/resolv.conf, I've changed the nameserver line to a new IP address. After saving and exiting, I run service network restart. I then go open /etc/resolve.conf again and see that the IP address ...
0
votes
2answers
3k views

How to add an IP to hostname file

I have a Centos 5.8 server. How can I add my server IP address 192.168.20.254 so that it reflects when I run the command hostname -i At the moment the command only shows the loopback IP 127.0.0.1 and ...
0
votes
1answer
864 views

How to setup SVN over VPN?

I'm looking on how to implement a SVN connection over a VPN on my CentOs server. I need to see up this VPN to work with the team in the office from outside. required packages ( yum ... ) ...
1
vote
1answer
493 views

mouse in gnome-terminal

how to set up mouse in terminal window? when i click on midnight commander captions i get raw data from mouse printed as characters in terminal and any running progs don't understand mouses clicks. I ...
0
votes
1answer
445 views

Can't access /transmission

I have installed Transmission service on Centos. It is running. The problem is when I type myservername/transmission in my browser address it doesn't open. It was working before.
3
votes
2answers
11k views

No network connection in CentOS 6.3 Minimal under VMWare Player

I'm trying to replicate in VMWare Player the exact same conditions I have under my Dedicated Server for testing purposes. Now, the thing is that that when I try to install something, or ping ...
2
votes
1answer
2k views

Edit a file on CentOS 6.3 Minimal

I installed CentOS 6.3 Minimal on VMWare Player, and I realized how 'minimal' the setup is... Don't have network connectivity. From what I searched on google, I need to edit the file ...
2
votes
1answer
136 views

is it secure /not dangerous to ssh with keys through public transparent proxy?

I use pub key for ssh. Is it normal practice to connect to own server through public proxy? I think with plain pass it is surely dangerous but how about RSA keys?
1
vote
2answers
470 views

Installing RPMS on Centos

Is generally installing standalone rpms considered 'dangerous'? Are these affected by any system upgrades, package upgrades etc.? How about dependencies and libraries?
1
vote
1answer
1k views

Install Shutter on Centos

I'm trying to figure out a way to install shutter on Centos. Are there any repos somewhere?
3
votes
3answers
4k views

How to know CentOS version?

How to know version of a CentOS server without access to any graphical interface? I've tried several commands: # cat /proc/version Linux version 2.6.18-128.el5 (mockbuild@hs20-bc1-7.build.redhat.com) ...
1
vote
1answer
1k views

Why did yum-builddep not provide the dependencies to install my rpm?

I am trying to rum my rpm package but getting this dependencies error. [root@localhost ~]# rpm -ivh /root/x86_64/asterisk-1.8.12.2-1.fc15.x86_64.rpm error: Failed dependencies: ...
2
votes
1answer
710 views

Changing service startup order

I use wpa_supplicant to configure the wireless connection. Now I have a problem in that the network service starts before wpa_supplicant so this happens: Bringing up interface wlan0: Determining IP ...
0
votes
2answers
175 views

public key authentification doesn't pass, why?

I'm trying to connect to Server with ssh and id_rsa key. That key is only key in authorized_keys (just added with ssh-copy-id) When i do connect, server ask doesnt end with keys but always ask for ...
1
vote
2answers
6k views

tar: Unexpected EOF in archive

I am trying extract .tar.gz file it but with no luck gzip: stdin: unexpected end of file tar: Unexpected EOF in archive tar: Unexpected EOF in archive tar: Error is not recoverable: exiting now the ...
1
vote
2answers
1k views

Multiple gcc and linking between them

I'm running centOS 6.3 which comes with gcc 4.4.6 and I installed gcc 4.6.3 using these instructions. But when I type gcc -v it still says gcc 4.4 is the version I'm using. The newer version is under ...
1
vote
1answer
342 views

How can I configure postfix smtp per user?

I have previously used msmtp as my MDA. msmtp has a configuration file with username and password of the outgoing smtp server (eg gmail) stored in my home directory. I've recently changed ...
0
votes
2answers
3k views

How can I reinstall Network Manager after uninstalling it?

I am running a version of RHCE6 on my laptop, and lately I've been trying various stuff about network configuration through command line. Last night, I tried removing the NetworkManager using yum ...
1
vote
1answer
709 views

Unable to install CentOS in VirtualBox

I am trying to install CentOS 5.6 in My VirtualBox but I got this error on boot screen. Your CPU Does not support long mode : use a 32 bit Distribution My CPU is 64 bit I checked that using uname -a ...
1
vote
2answers
959 views

ffmpeg and libvpx: error while loading shared libraries

When I run ffmpeg I get the following error: /usr/local/bin/ffmpeg: error while loading shared libraries: libvpx.so.1: cannot open shared object file: No such file or directory Output of ls -l ...
1
vote
0answers
250 views

Set default Soundcard Centos

How do I set my default soundcard on Centos/Linux? I have two soundcards installed on my system and it always detects the wrong one, upon boot.
1
vote
0answers
116 views

Naming process in init scripts

I'm trying to write an init script that will start a service that needs to have started postgresql server before. Bellow is the postgresql's init header: #!/bin/sh # # postgresql This is the init ...
0
votes
3answers
2k views

CentOS Live CD won't install server

Sorry if this is a very nooby question, but it's my first time trying CentOS and I'm installing from Live-CD. I want to get a server up and running in VirtualBox but during installation no option for ...
6
votes
5answers
19k views

CentOS 6.3 Device eth0 does not seem to be present (Minimal non-cloned setup)

I installed CentOS 6.3 on my hardrive partition (new install...minimal install). After successful installation, I see that eth0 was down looked for 70-persistent-net.rules file under /etc/udev .. ...
2
votes
2answers
273 views

Missing dependency during rpm install

When I install CodeAnalsyt, i get a failed dependency on libbfd-2.20.51 on Centos 6.3. Binutils is installed on my system and the failed dependency does exists at ...
3
votes
2answers
4k views

CentOS 6 VSFTP 553 Could not create file

I installed vsftpd yesterday on CentOS 6, however didn't get a chance to test it today. When I went to upload a test file it's coming back and giving me this error: 553 Could not create file After ...
1
vote
0answers
391 views

RHN Satellite scout won't push

My RHN Satellite (Spacewalk) server is having issues with monitoring. The Spacewalk Monitor Scout will not push out successfully. It always stops with a Request Expired status. I can't seem to find ...
1
vote
1answer
2k views

Network Interface Names output from ifconfig

So this has been driving me nuts for a good couple of hours, so I thought I'd ask about it here (let me know if there's a better forum for this question). I have a CentOS Virtual Machine on ESXi. I ...
1
vote
1answer
181 views

CentOS5, RHEL5, Java dependent Packages, Alternate JVM/JDK

Specifically regarding Java dependent packages, such as ant. Is it possible to install them via rpm, when using an alternate JVM/JDK? For example, If I install the Oracle JDK, can I use an ant ...
7
votes
2answers
8k views

how do I install the stock centos repositories?

I have a situation where the stock repo files that should exist in /etc/yum.repos.d/ (like centos-base.repo) are not present. I need to get them installed. I am sure this is simple, but after hours of ...
6
votes
2answers
196 views

du command show a slash after directories?

How to use du command show a slash after directories? For example: du -ab /root/test/php-5.4.8/ Result: 1781 /root/test/php-5.4.8/main/internal_functions.c.in 973596 ...
4
votes
1answer
1k views

Can I refresh my shell within a shell script?

Very new to Bash scripting... I am trying to setup a script that starts with a minimal CentOS 6 install and provisions it for Ruby development. #!/bin/bash # Add PostgreSQL Repo rpm -i ...
2
votes
2answers
2k views

Hyperthreading not detected by Linux [closed]

I have a Dell server with two Intel Xeon E5645 cpus, each cpu has 6 cores, and each core is hyperthreaded (i.e. should be equivalent to two virtual cores). I installed CentOS 6.2 on this server and it ...
1
vote
1answer
3k views

64bit rpm can not resolve 32bit dependencies

Problem I'm having a RPM that contains mixed 64bit and 32bit binaries. One of the binaries depends on 32bit i686 packages. When I try to install the package yum gives me an error, noting that the ...
0
votes
3answers
5k views

Updating PHP 5.3 to 5.4 in CentOS

I followed this tutorial to update PHP from 5.3 version to 5.4. My distro is CentOS 5.5. After running the following command: yum --enablerepo=remi,remi-test install httpd php php-common I get ...
7
votes
3answers
1k views

Download ALL rpms for a product

I have two CentOS machines, one 6.3 box (A), and another CentOS 6.1. (B) 6.3 box is with internet connection, 6.1 box is without internet connection. I want to download ALL dependencies of a product ...
1
vote
3answers
7k views

Centos GUI not working

I installed centos 6.3 Final . But after rebooting it stuck and doesn't show GUI
1
vote
0answers
2k views

After install Centos 6.3 from USB, it doesn't boot

I installed CentOS on my machine from my USB. I did a minimal CentOS USB drive with UNetbootin. After I install the CentOS, when i try to reboot, it does not starts. I have only the cursor blinking on ...
1
vote
2answers
3k views

Disk space management

How will I be able to view my entire hard disk space in CentOS? I have tried fdisk -l but it will show me the entire space available but I am not able to judge that where all the space have been ...
3
votes
2answers
1k views

Xen, bridge and multiple IPs on CentOS

There's a new server that is assigned 5 IP addresses. I want to use Xen to run several VMs with various services. This is my first attempt to install Xen, I use this tutorial as a guideline. Stuck ...
2
votes
1answer
450 views

Script for courier maildir folders on CentOS LAMP environment

I'm looking for resources to help me build a script to do monthly maintenance of maildir folders for a typical CentOS LAMP VPS hosting environment. I would like to run a script that runs from a ...
3
votes
1answer
6k views

httpd cant write to folder/file because of selinux

Does anyone know which sebool it is to allow httpd write access to /home/user/html? When I disable selinux echo 0 > /selinux/enforce I can write, so definitely selinux. Just don't know which one is ...
3
votes
3answers
534 views

How can I automate the process of copying files from one folder to another in Centos

I have a statistical application which runs every minute and creates charts accordingly. In order to make these charts available to other users, I need to copy the whole folder containing the charts ...
2
votes
1answer
2k views

Extracting the contents of a zip file with overwrite all mode in centos 5

How can I Unzip a Zip file which contains different directories and sub directories with the overwrite mode ? I mean i want the zipped contents to overwrites any existing files (be it old be it new). ...
3
votes
2answers
577 views

Piped input to nano

Why does ls | nano - open the editor in Ubuntu but close the editor and save a file to -.save in CentOS? How can I get nano in CentOS to remain open when reading stdin?