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

3
votes
1answer
491 views

SSH: “no such identity”

I'm having a very peculiar problem getting SSH to work on my Linux box. I have a passwordless git user identified by an OpenSSH key. If I attempt to ssh into it from either the same or a different ...
1
vote
1answer
284 views

PHP Exec function reports failure on some commands that work by SSH

I'm on CentOS 6 64bit with PHP 5.4.12. This is very strange behavior by PHP. See the following script: echo 'Trying Query: whereis jbig2dec<br>'; exec('whereis jbig2dec',$output) or ...
1
vote
2answers
138 views

network to NAT in Virtual Box and strange IP

I have just installed CENT-OS in a Virtual Box inside the internal network. The network setup is set to 'attached to NAT'. When I enable the network interface in CENTOS I can see that my IP address is ...
1
vote
0answers
548 views

GRUB reported “error: file not found.” when booting CentOS 5

I installed CentOS 5.3 by using a 4GB USB disk on an old PC that I used run a Debian on it. After a series of housework on the fresh system, I reboot the system using: sudo shutdown -r now After ...
0
votes
1answer
629 views

Permanent Permission on /dev/ttyS0 CentOS 6.4

I seem to be unable to change the permissions on the /dev/ttyS0 device of a CentOS 6.4 machine. Every time I reboot, the system goes back to the defaults. I've googled that I need to edit the udev ...
1
vote
2answers
1k views

How to download all files and folders using FTP via SSH? [duplicate]

I tried mget * but it only downloads files not folders. Is there a "download all" option?
0
votes
1answer
559 views

How can I add the port to iptables rules on centos?

I want to open the port 8040 on my centos, but I keep getting connection refused. This is what I have done: iptables -I INPUT -m state --state NEW -p tcp --dport 8040 -j ACCEPT iptables -I INPUT -m ...
1
vote
2answers
292 views

CentOS 5.8 broke server by accident.. Can I fix it?

I have a problem... I was trying to rm -rf * one of my folders, but it turns out I was in the / directory... I stopped the command quickly but it still broke A LOT of things. Almost all commands are ...
0
votes
5answers
759 views

The clipboard is not shared with PuTTY under CentOS

I'm running CentOS 6 on the local machine and using PuTTY. Selection, copying and pasting text works well inside the PuTTY session. But the clipboard content on the local machine does not change. My ...
0
votes
0answers
74 views

downloading a large file stops all network activety from that disk

I have a server that freeqently downloads large files, the problem is every time it's downloading a file, it stops all network activety from that disk. in the output bellow you can see that network ...
2
votes
1answer
2k views

Linux/CentOS how to permanent inititate DHCP Client any reboot?

In my CentOS, i need to run dhclient -v command at every time i start/reboot the server. How to make this permanent please?
0
votes
1answer
244 views

CentOS how to configure autoban after failed SSH logon attempts

I'm managing a virtual machine that some predecessor has set up. If I try to logon and enter the wrong password three times in a row my current IP gets banned for a lengthy time (some 30 minutes at ...
2
votes
2answers
3k views

Cinnamon for CentOS?

I was trying to install Cinnamon from Source code in a CentOS v.6.4. Unfortunately, I was stumbling upon dependencies that were becoming weird each and every time. Some of them, I tried to build, ...
0
votes
1answer
477 views

-bash: cd: tomcat: Permission denied

How can I access the tomcat folder to stop that instance. Its always giving me error -bash: cd: tomcat: Permission denied whenver I am trying to access it via sudo -i cd /opt/tomcat I dont have ...
-1
votes
2answers
845 views

Midnight Commander not opening .zip files in centos 6.3 [closed]

I just installed mc on centOS 6.3 server specifically to edit war files, however, it won't let me browse/open any archive files (zip, war etc)?
0
votes
0answers
414 views

Disable the login screen on CentOS 6

Is it possible to disable the graphical login screen on CentOS 6, so that: It directly logs in with my user of choice It doesn't show the login screen after a period of inactivity I do understand ...
2
votes
1answer
90 views

I have a CentOS Based server. Each domain has its own entry in vhosts. How can I find out what domains are using up bandwidth?

I have a CentOS Based server. Each domain has its own entry in vhosts. Everything is logged in /var/log/httpd/access_log. How can I find out what domains are using up bandwidth? It is running ...
1
vote
3answers
1k views

How do I get L2TP to successfully install on Centos 5.9?

I am trying to setup a Centos 5.9 VPS as a L2TP VPN server. I am using this tutorial Tutorial but when I try to start Racoon with /etc/racoon/init.sh it gives me an error. pfkey_open: Address family ...
6
votes
1answer
14k 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 ...
1
vote
1answer
639 views

FTP, CentOS and SELinux Permissions

I am trying to use vsftpd to allow a user to ftp in and edit files in /var/www/html where most files are owned by apache. So far I have used setsebool to enable system wide ftp, and I've also used ...
1
vote
3answers
73 views

Prevent users from using the same cron schedule?

I've a lot of users in my server using exactly the same cron schedule and this is causing high server load. Can we prevent this? For example, if there's x numbers of users that use the following cron ...
1
vote
1answer
407 views

How to edit multiple cpanel user cron jobs at once?

I'm using cat /var/spool/cron/* to view all cron jobs created by all cpanel users. Is it possible to edit its output just like editing via nano and hit save?
1
vote
2answers
641 views

best way to encrypt a folder backup (tarball or zip)

I currently have a python script that creates a gzip tarball of a few folders and ships them off t Amazon S3 for archived backups. The folders contain my ever so precious code and data, so I'm ...
3
votes
1answer
472 views

Sudo <any command> throws: Command not found but works without sudo

I'm on a CentOS VPS and using RVM and Capistrano to deploy. for some deployments I need to use sudo, but when I deploy with something like: desc "Restart the application services" task :restart, ...
1
vote
1answer
991 views

Install java-1.6.0-openjdk and tomcat6 on centos 5.6

I am new to linux and I have installed java and tomcat6 on centos 5.6 using yum. link I have used to install I have also installed php, mysql and apcahe in my system. apache port 80 mysql port 3306 ...
1
vote
1answer
452 views

“gitolite setup -pk banruosheng.pub” failed when I install it on centos 5.4 32

when I installed gitolite on my centos 5.4 ,I just found errors below. How to find a way to fix them? wget http://mirror.esc7.net/pub/OpenBSD/OpenSSH/portable/openssh-5.8p1.tar.gz tar -xvzf ...
0
votes
1answer
2k views

Increasing INode Limit

Is there a way to increase the INode Limit in CentOS without adding partition ? I got some 5 million files to be stored but it may increase in future.
-1
votes
1answer
497 views

MacFusion connecting to CentOS: Authentication failed

I've got three iMacs here (one mine, two from others), which should all connect through SSHFS with a MacFusion client to a CentOS server. I've been trying to get it all working with my iMac, which ...
0
votes
1answer
91 views

Cannot access “Visual Line” in Vim in PuTTY

I am SSH'ing to a server (running CentOS release 5.4 (Final)). I opened vim, and when I hit shift+v to try to get into "Visual Line" mode, all I get is a beep noise. Why? Why can't I access visual ...
1
vote
1answer
1k views

How to setup a simple proxy server on my VPS?

I would like to setup a simple proxy server on my VPS to use it to browse the browse. I will be the only user so no concern about bandwidth. Can you give me some ideas about it?
1
vote
0answers
403 views

How to get current number of opened inotify watches?

My system is CentOS. I'm trying to get this by listing fs.inotify variables via sysctl call (sysctl fs.inotify), but didn't found anything useful, only variables to specify limits.
1
vote
2answers
2k views

CentOS freezes during startup in VirtualBox

This is an installation of CentOS 6.3 in VirtualBox 4.2. I was able to install with no problems and have booted it up about 3-4 times previously and used it without any issues. Now, when I start it, ...
4
votes
2answers
9k views

CentOS - Yum doesn't update anymore?

I've been trying to use yum now, but for some reason, not even the search work anymore. I even tried putting packages I already downloaded in the search criteria and is the same. [root@AMDFX03 ...
2
votes
1answer
468 views

How can I change my gnome-terminal title?

Previously I changed my gnome-terminal title to display which server I was logged into. I don't remember how I did this and I can't change it now. I ran through my .bashrc and found nothing that ...
0
votes
1answer
13k views

vnc viewer error: unable connect to socket: Connection refused (111)

I installed tigervnc-server package in server. [root@localhost ~]# rpm -qa tigervnc-server tigervnc-server-1.1.0-5.el6.i686 Created a vnc user and created vncpasswd also for that user. ...
2
votes
1answer
376 views

Error Compiling Python 2.7.3 on CentOS5

I'm trying to install Python 2.7.3 on my CentOS 5.50 machine. Download, extract, configure (with --prefix=/usr/local) are fine. Its the make that throws this error: gcc -pthread -c ...
1
vote
1answer
239 views

Why crontab command is not available to me even I am root

I am using the CentOS release 6.3 (Final). My problem is that even I have logged in as a root to my centos server through ssh crontab command is not available to me . I got the following when ever ...
1
vote
2answers
3k views

Issue with CentOS 6.4 – NX Client/OpenNX and keyboard configuration

since CentOS 6.4 was released yesterday, I started doing testing with it and found a weird issue, so I ask here in case somebody else can help me with a solution. My setup Linux CentOS 6.3 Server + ...
0
votes
1answer
654 views

CentOS 6.3 x86_64, 3.3GB memory available, 4GB memory installed

I've searched serverfault and found this question: Linux x86_64 reports 3.2G of memory instead of 4G But my problem is slightly different from that one. I've checked my BIOS. I didn't find the Memory ...
2
votes
2answers
3k 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 ...
0
votes
2answers
430 views

Can CentOS deny SSH access to everyone but my IP?

I was wondering how I could deny all SSH logins from any IP but mine? This would be using IPTables.
8
votes
3answers
4k 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 ...
1
vote
1answer
445 views

restart tomcat server as non-root

info: Apache Tomcat/6.0.36 CentOS 2.6.32-279.14.1.el6.x86_64 Is it possible? I heard from someone that an older version of tomcat had a manager tool that allowed non-privileged users to restart the ...
4
votes
3answers
7k views

How do I setup reverse dns for my IP?

I want the results of nslookup MyIP to give my fully qualified domain name instead of the name u123123123.online-servers.com which is setup by default by my host provider, how do I do that?
0
votes
1answer
4k views

Converting from MXF to MPEG format with FFmpeg

We're trying to convert .mxf video to .mpeg on ffmpeg-0.9.2 and looks like 0.9.2 version doesn't support .mxf conversion to .mpeg. We don't want to switch on latest 0.11 version of ffmpeg as the ...
3
votes
1answer
4k views

CentOS: Yum Dependency Problems

I am trying to install fail2ban on CentOS but I can't figure out why it won't install: [root@server ~]# yum install fail2ban Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile ...
0
votes
2answers
156 views

How to SSH multiple service with a for in SHELL?

I would like to access some server via SSH, run some commands and exit. Do this for lots of servers. I know I can do this for one machine only, with this script : ssh **IP** << EOF chown -R ...
1
vote
1answer
999 views

“command not found” after editing /etc/profile

I followed this tutorial to add a JAVA variable for all users. I then opened the editor that my hosting service supplies and added the last 2 lines. Centos 5.9 server. # /etc/profile # System wide ...
2
votes
0answers
305 views

How do I install sass on centos 5.9 with ruby 1.8.7?

I have CentOS 5.9 on an x86_64. I've installed ruby 1.8.7. Whenever I try to install sass I get an Error saying sass requires Ruby version >= 1.8.7. but that's what I have installed. This is the ...
0
votes
1answer
392 views

Setup SSHd on port 522 on CentOS 6.3 (x64)

I currently run a server with SSH on a non-standard port for security reasons. That was 522 on CentOS 5, but CentOS 6 doesn't (easily) allow SSH to run on any port below 1024, other than 22 ...