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

5
votes
2answers
252 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 ...
0
votes
1answer
121 views

How to know which package yum is going to download or install now?

Now I am installing a couple of packages using yum on centos, what make me confused is that the system seems to be block at some point, in fact I know yum is downloading some packages from repo, but I ...
0
votes
1answer
232 views

What tool does yum use to download rpm packages from remote server?

My system is centos, and now I am installing packages using yum command. Updating for dependencies: apr-util i386 1.3.9-1.el5 lxcenter-updates 203 k gcc-gfortran ...
3
votes
1answer
275 views

ls -l shows file size 0 of files in /proc, but cat produces content

# cat /proc/version Linux version 2.6.18-308.8.2.el5.028stab101.1 (root@rhel5-build-x64) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-46)) #1 SMP Sun Jun 24 20:25:35 MSD 2012 # ls -l /proc/version ...
0
votes
1answer
109 views

How do I automate removing a symlink and adding a new one

Basically I want to create a quick set of commands so that I can type into the terminal and have it do this: cd /path/to/folder/of/symlink sudo rm -f symlink sudo ln -s /new/path/of/symlink cd ...
0
votes
1answer
362 views

How to add CP-1252 to CentOS

We are processing files that our clients generated on their local Windows machines which use the CP-1252 character set. Occasionally, while processing one of these files in our backend (running on ...
5
votes
4answers
16k 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 ...
1
vote
1answer
3k views

How to install, mysql-workbench in CentOS6?

well. How to install mysql-workbench in CentOS6 i686? first, su -c 'yum install mysql-workbench-gpl-5.2.42-1fc15.i686.rpm' but --> Finished Dependency Resolution Error: Package: ...
2
votes
1answer
440 views

How to convert ,doc file to .pdf in CentOS?

I have a set of files in .doc format, that need to be converted to .pdf format. I am using CentOS 5.6. I have referred this link in which same thing is done for Ubutu but i am using CnetOS and i ...
2
votes
2answers
2k views

Running .sh file CentOS6

I have a script for installing a program. https://github.com/mkonecny/airtime_centos/blob/master/centos.sh When I try to run it I get: 64-bit installer only LANG=en_US.UTF-8 install/uninstall ...
2
votes
1answer
100 views

Limit a user to VI and Tail

I'm running a server on centos 6.0 and I'm looking for a way to limit ssh access of one user to only tail and vi and only in their home folder. I found some guidelines to the home folder part but ...
0
votes
1answer
318 views

Why maldet shortcut command doesn't work but full path does?

As you can see in the screenshot, shortcut doesn't work but full path does. Any ideas how to fix it? I am logged-in as normal user then su to root, since direct root is disabled btw.
1
vote
0answers
357 views

How to disable Opportunity locking on Red Hat 5/CentOS 5?

Syslog returns the error "kernel: CIFS VFS: Write2 ret -13, wrote 0" when I'm using the software under cifs fylesystem, managed by NAS server. CIFS Version is 1.60RH. I saw that the options ...
0
votes
2answers
2k views

Two OS in same computer, how to set boot priority for windows 7?

I have Centos and Win 7 installed in same PC. How Can I change setting in CentOS to show Windows 7 in top of the list in boot menu ?
0
votes
1answer
151 views

Centos: php-devel trashed mysql

Good morning. I'm on a CentOS machine, did a yum install php-devel Flat out saying this MySQL Daemon failed to start. Starting mysqld: [FAILED] which ...
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. ...
1
vote
1answer
112 views

Hosts not recognized?

Basically, nobody can establish a connection to anything I host. The website, teamspeak, and game servers. I think it may have something to do with the hosts file or network configuration, but I have ...
1
vote
2answers
981 views

iredmail httpd default redirecting to domain.com/mail - how to stop

I have iRedmail installed on my server, it installed apache with it, when pointing to my domain name, it redirects to mydomain.com/mail - which I would like to prevent. The default index.html file had ...
0
votes
0answers
2k views

How to start VncServer on Startup

I'm trying to get vncserver to start when I reboot my VPS. I've done everything that http://it.megocollector.com/?p=1300 tells you to do, and I don't get any error messages. But when I reboot my ...
1
vote
3answers
159 views

Does rm -rf continue on reboot?

I just did a big mistake — I did rm -rf /home/. I can't afford to lose this data so I quickly did a reboot. Then I was trying to roll back some of the damage it had done. But now I am struggling to ...
1
vote
1answer
659 views

Find a file with certain filename and size in linux?

Is it possible to search for files with a certain filename and size in linux?
1
vote
1answer
2k views

MySQL ERROR 2002 (HY000) on CentOS 5

I have problem with starting up mysql. When I type service mysql start All I got is ERROR 2002 (HY000): Can't connect to local MySQL server through socket /var/lib/mysql/mysql.sock' (2)** ...
2
votes
1answer
75 views

Why does group permission hide other permission?

I just noticed that on Centos 4, a file's group permissions hide the other permissions if you are a member of the group. I would think they would be OR(ed) together? For example: drwx---r-x 1 ...
2
votes
2answers
358 views

How to remove three consecutive line feeds in a Makefile rule?

I need to search for and replace three consecutive newline characters in an input file and filter them out of an output file for a makefile rule on Centos 4. I am using GNU sed v4.1.2 and GNU make ...
0
votes
1answer
4k views

CentOS Text Only - Add Network Adapter

Added another network adapter to my CentOS (minimal) VM in VMWare Workstation 8. I've rebooted and obviously the OS doesn't recognise the new adapter. How do I add / configure it to recognise the ...
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.
2
votes
2answers
408 views

PuTTY stuck when using du command

I'm a command line noob but I think this one's stuck. I never get passed etc. Any ideas?
0
votes
1answer
148 views

Can I make surfing safer through VM + CentOS 6.0 on a Windows 7 machine?

My Windows 7 machine was recently infected with some trojans via Firefox or Internet Explorer. Is it safer to browse using the VMware Player + CentOS 6.0 and use Firefox inside CentOS?
3
votes
2answers
585 views

How do I use Virtualbox to create a dev environment accessible outside of my home office?

I have created a dev environment of my website... using VirtualBox... and now I need to make it accessible outside of my home office network. I am using Virtualbox 4.1.18 installed on a Win7 desktop ...
1
vote
0answers
154 views

Samba Share: smb doesn't set group id bit

I have some problems with a smb share. Every subfolder should get the group id bit. If I create a directory local on the machine with: $ mkdir local the bit is set, but if i create it via the smb ...
0
votes
2answers
2k views

how to install privoxy on centos 6

okay I have googled, but...I am unable to find anything on the net on how to install privoxy on my centos machine. I have tried yum install privoxy, I get: No package privoxy available. I dont know ...
2
votes
2answers
2k 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
1answer
210 views

Get rid of directory of unknown user

I'm constantly failing to do something usefull to a directory. ls gives this output: drwxrwxr-x 2 root 1000 0 19. Jul 14:03 backup Here I'm trying to remove, move or chown this directory ...
1
vote
1answer
178 views

sudo configuration & log for contractor

Next week, I will have a contractor install a web application on one of our servers. I created an account so that they can access our server through SSH. The system is CentOS. Basically, beside basic ...
2
votes
1answer
6k views

How to install/enable compiz on CentOS 6?

How do I install and/or enable compiz-fusion on CentOS 6? The packages don't appear to be in the repositories?
1
vote
1answer
894 views

resizing/moving LVM volumes

I have a server machine running CentOS 6.2. It is configured using LVM mapping as it is the default and I didn't see any problem with going that way. I have a 500Gb drive in there right now, and 54Gb ...
3
votes
2answers
852 views

Installing CentOS 6 - Device may need to be reinitialized

I'm trying to install linux centOS 6 on my pc (on sun virtual mashine - virtualbox) I'm installing on a empty partition of my hard drive. and my primery OS is windows 7 ultimate 64bit. What should i ...
0
votes
2answers
2k views

CentOS 6 timezone is BST, but it's an hour behind BST?

Running a (fairly) fresh install of CentOS 6. [jammy@peach]$ date Fri Jul 13 15:41:30 BST 2012 The actual BST time is exactly one hour ahead of this, 16:41. Unless I'm missing something about ...
0
votes
1answer
236 views

Infinite history in centos gnome terminal

I'm using Centos 5.x gnome terminal. I would like to know how to set the terminal to hold infinite history. It is possible in KDE terminal. Don't know how to do it in gnome. Please help
0
votes
3answers
2k views

Share wifi internet (wlan0) over ethernet (eth0)

On my CentOS system, Wifi Interface (wlan0) is connected to the internet through an access point. The IPV4 for it is assigned dynamically by the ISP. The eth0 for this machine is manually configured ...
0
votes
1answer
175 views

General administrator/deploy user permissions on centos

I'd like a user who is capable of managing the files of other users, but still must run sudo to access those files and functions outside of a /home/directory. Is such a user/group already defined in ...
0
votes
1answer
436 views

How do I configure Multi-Seat on CentOS 6.2?

I am trying to set up a CentOS 6.2 installation to allow running it optionally in a multi-seat configuration. It normally runs as dual-head, but I would like to have the option to use the second ...
3
votes
1answer
3k views

How to find process that's using 100% of CPU

As i'm looking at htop and top i see that my processor usage is 100% allways. But i can not see any process that is using that much CPU. Htop shows me only 1-2 processes that use around 5% cpu time. ...
0
votes
1answer
2k views

How do I give a group 'service httpd graceful' permission in sudoers without passwd prompt?

I'm currently trying to lock down my users a bit. I've created some users: www.foo www.bar and a group: apacheadmins Both www.foo, and www.bar are members of the apacheadmins group. They do ...
0
votes
0answers
365 views

CPanel bandwidth folder too big, can be deleted?

My folder which contains bandwidth usage data is getting too large. My question is if i will break something when i delete the contents of this folder. I don't realy care about the data in there ...
0
votes
1answer
2k views

Enable simple password for root user on CentOS

I have a machine with CentOS and I want to enable a simple password for the root user. Something like 7 characters with 2 numbers or so... But I'm getting this error: BAD PASSWORD: it is based on a ...
0
votes
1answer
881 views

Moving files between home directories

Good morning, I am attempting to setup a cron job on my CentOS machine that will transfer a file from one users home directory to a directory in anothers. btiseis@mymachine [~]# mv ./myfile.csv ...
1
vote
1answer
4k views

How to upgrade libxml on CentOS

I have a following version of CentOS: $ cat /etc/issue CentOS release 5.5 (Final) Kernel \r on an \m and following version of libxml: $ php -i | grep libxml libxml Version => 2.6.26 libxml ...
2
votes
2answers
2k views

Install PhantomJS 1.6 on Centos 5.8

I'm trying to get PhantomJS v1.6 installed on my Centos 5.8 server. I'm running into the following error when trying to run phantomjs: phantomjs: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.11' ...
0
votes
0answers
325 views

CentOS VM is slow on Windows 7 64-bit

Setup/version numbers Guest OS: CentOS 6.0 64-bit (installed from LiveCD) RAM: 1 GB Processors: 1 Hard Disk: 20 GB Host System: Lenovo T410 OS: Windows 7 Professional, 64-bit (Build 7600) ...