Category Archives: Redhat / CentOS

Setting up an encrypted volume on an external hard drive on CentOS

Make sure the version of your kernel is 2.6.16 or later with support for device mappers. Please replace XXXXX with the device Linux allocates the driver to (i.e.: /dev/sdc1). Use the dmesg command to find that out. Preparing the volume … Continue reading

Posted in Redhat / CentOS, System Administration | Leave a comment

how to install flash in Firefox for CentOS

* Go to youtube.com and try to play a video. You should not be able to play it * Instead of the video, there should be a link like ‘Install Flash’ * You should be redirected to the Adobe website … Continue reading

Posted in Redhat / CentOS | Leave a comment

Rolling Back yum Packages – CentOS Roll Back After Installation

Rolling back yum packages: http://dailypackage.fedorabook.com/index.php?/archives/17-Wednesday-Why-Repackaging-and-Rollbacks.html http://www.vincentverhagen.nl/2007/12/10/how-to-roll-back-packages-on-centos-5-rhel-5/ When you’ve installed/updates packages with yum or rpm, you can quite easily roll back the updates/installations using rpm. For this, yum and rpm need to save roll back information, which they do not do … Continue reading

Posted in Redhat / CentOS, System Maintenance | Leave a comment

CentOS – Setting the Network / Internet Interface

http://www.cyberciti.biz/faq/rhel-centos-fedoracore-linux-network-card-configuration/

Posted in Redhat / CentOS | Leave a comment

Installing an SVN System On CentOS

yum install httpd subversion mod_dav_svn You need also SSH To run the server: svn serve –daemon –root /home/mike/svn-repos It will be bound to the port 3690 Networking with svn+ssh If you specify a svn+ssh schema to access the repo, every … Continue reading

Posted in Redhat / CentOS, Web Development | Leave a comment

CentOS – Useful Programs (also for SVN)

Admin List of installed packages and available packages (to check whether an update is available): php list ‘php*’ Upgrade a package yum upgrade php Install a package yum install php RapidSVN Install RapidSVN (find an rpm) yum install meld [this … Continue reading

Posted in Redhat / CentOS | Tagged | Leave a comment

Redhat – Change Your Hostname Without Rebooting

The first two steps to make the change permanent vim /etc/sysconfig/network Change to: HOSTNAME=pippo Second step: vi /etc/hosts Replace your old hostname with the new one. This step to change the hostname immediately: hostname pippo

Posted in Redhat / CentOS | Leave a comment

SELinux

A good resource is: http://www.crypt.gen.nz/selinux/faq.html There, the most important thing is this. It is important that server daemons are started within the correct context, if they are not then they will probably not run properly. For Fedora and RedHat Enterprise … Continue reading

Posted in LAMP Server Setup, Redhat / CentOS, Security | Leave a comment

CentOS: Problems & Solutions

Trying to connect to Apache but ‘Connection Refused’. Either iptables is blocking the connection or the Apache server is not running ///////////////////////////////////////////////////////////////////// ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ The MySQL server is not running

Posted in Linux, Redhat / CentOS, Troubleshooting | Leave a comment

CentOS: Knowledge Base

Finding out which version you installed: cat /etc/redhat-release Installing a package: yum install packet_name Updating all the packages: yum check-update [just for checking] yum update Check whether the package pp is installed: rpm -qa | grep pp

Posted in Redhat / CentOS | Leave a comment