Facebook Twitter Gplus RSS
 
 
formats

CentOS: Configure network

Published on July 14th, 2011

CentOS Logo You have installed CentOS and now you’d like to either change the IP address or add additional LAN cards (NIC). There are a couple of ways to configure the network card using the command line but only some commands will take immediate effect on kernel.

Configure network with immediate effect

Using a single command line to configure the network

# ifconfig eth0 192.168.0.10 netmask 255.255.255.0

[or]

# ip addr add 192.168.0.10 dev eth0

(more…)

 
formats

CentOS 6 Released

Published on July 10th, 2011

CentOS Logo CentOS 6 has been released. This is, some might say, the most anticipated release to date with CentOS pushing out the date numerous times. Finally CentOS 6, an Enterprise-class Linux Distribution, is available for download to the public.

NB CentOS 6 Downloads are no longer available
Download CentOS 6.2 instead

CentOS 6 Downloads

You can download CentOS Linux 6 via the web/ftp server or via BitTorrent (recommended) client.

CentOS 6 DVD ISO downloads

  • Download CentOS 6 32 bit i386 DVD ISO image 1 (4.4 GB)
  • Download CentOS 6 64 bit x86_64 DVD ISO image 1 (3.9 GB) and image 2 (1.1GB)

CentOS 6 DVD ISO Torrents

Torrent files for the DVD’s are available at the following location:

  • Download 32 bit i386 torrent file
  • Download 64 bit x86_64 torrent file
 
formats

Adding CentOS 5.6 to a local YUM Repository

Published on June 22nd, 2011

centos

NB! Please read creating a Local CentOS YUM repository on CentOS 5.x before implementing.

Adding CentOS 5.6 to the YUM repository script

Create the following additional directories for CentOS 5.6:

# mkdir -pv /var/www/html/centos/5.6/{os,updates}/{i386,x86_64}

Add the CentOS 5.6 repository to the bash script which will rsync your local YUM repository server with a CentOS 5.6 YUM mirror.

CentOS Mirror list – http://www.centos.org/modules/tinycontent/index.php?id=30

# vi yum-repo-update.sh

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh
# This script will create a local CentOS mirror via Rsync
# Note: This script will download CentOS 5.6
#
 
rsync="rsync -avrt --bwlimit=256"
 
mirror=ftp.is.co.za::IS-Mirror/centos
 
verlist="5.6"
archlist="i386 x86_64"
baselist="os updates"
local=/var/www/html/centos/
 
for ver in $verlist
do
 for arch in $archlist
 do
  for base in $baselist
  do
    remote=$mirror/$ver/$base/$arch/
    $rsync $remote $local/$ver/$base/$arch/
  done
 done
done

Upgrading from CentOS 5.5

If you are already running CentOS 5.5 or an older CentOS 5 distro, all you need to do is update your machine via yum by running :

# yum update

 
formats

Installing SSMTP on CentOS 5.6

Published on June 6th, 2011

CentOS Logo This tutorial will guide you through installing SSMTP on CentOS 5.6

SSMTP is an extremely simple MTA to get mail off the system to a mail hub. It contains no suid-binaries or other dangerous things – no mail spool to poke around in, and no daemons running in the background. Mail is simply forwarded to the configured mailhost. Extremely easy configuration. WARNING: the above is all it does; it does not receive mail, expand aliases or manage a queue.

Firstly lets install the EPEL repository as SSMTP is not native to CentOS 5.6 base installations.

Install the EPEL i386 Repo

# rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm

Remove Sendmail as the binaries can conflict.

# yum remove sendmail

Now install SSMTP

# yum install ssmtp

(more…)

 
 
© [How2CentOS]
credit