Showing posts with label CentOS. Show all posts
Showing posts with label CentOS. Show all posts

Repacking Centos Stage2 Image

Extracting

/usr/sbin/unsquashfs -dest centos-stage2 stage2.img


Repacking

# cd centos-stage2
# tar cf - * .buildstamp | (cd ../centos-stage2-new; tar xfp -)

// make change in centos-stage2-new

# cd centos-stage2-new
# mksquashfs . ../stage2.img.new -all-root -no-fragments -noappend


Configuring Postfix with SASL

See Postfix SASL Howto and www.mysql-apache-php.com/.

This is for CentOS 4 http://www.hughesjr.com/content/view/14/29/

Here is another one with TLS http://wiki.centos.org/HowTos/postfix_sasl

When using TLS for postfix, make sure master.cf has
smtps     inet  n       -       n       -       -       smtpd
-o smtpd_sasl_auth_enable=yes
-o smtpd_tls_wrappermode=yes

Dovecot Imaps Server setup

You can do this for pop/pops/imap as well, here I only wanted to configure imaps. Make the following changes to /etc/dovecot.conf:
protocols = imaps
login_process_size = 64 # for x86_64
imap_client_workarounds = delay-newmail outlook-idle netscape-eoh
.
Also remember to open the port 993 for imaps in the iptable configuration.

Configure postfix

If this is a web server, make sure you changed MX record with dns provider to point to your server (or you will not be able to receive mail). I have modified the following is /etc/postfix/mail.cf:
myhostname = mydomain.com
myorigin = $myhostname
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, localhost

Use http://pingability.com to check your DNS setup.

CentOS 5: Install i8kutils

Install i8kutils and gkrellm from fc6.

$ sudo rpm -ivh i8kutils-1.25-11.fc6.i386.rpm gkrellm-2.2.9-10.fc6.i386.rpm


$ cat ~/.i8kmon
set config(0) {{0 0} -1 68 -1 70}
set config(1) {{1 1} 55 75 55 75}
set config(2) {{2 1} 65 85 65 85}
set config(3) {{2 2} 75 128 75 128}


$ i8kctl
1.0 A08 757JG21 61 1 0 6180 0 1 0
$ i8kctl temp
62
$ i8kctl fan
1 0
$ i8kctl speed
6180 0

$ i8kmon -t 10 -d &

manual fan control
$ i8kfan 2 2

CentOS 5: Grub problem after installing

A black screen with a blinking cursor. It was working previously with Fedora 9. Late found that the boot order was changed in the BIOS, the hd1 was in front was hd0, but hd1 does not have a boot sector. It works after I changed boot order to boot from hd0 first. But I do not understand how the boot order was altered during the installation.