LAMP How To – Open Source At Work

Only Passion Matters

Entries for the ‘Think Linux’ Category

init: Id “co” respawning too fast: disabled for 5 minutes

If you are getting this message, it means that you are in run level 3 and most likely you dont have the GUI installed. inittab is trying to create too many terminals at a go. Have a look at the /etc/inittab file, and commented off the extra gettys lines.
# Run gettys in standard runlevels
co:2345:respawn:/sbin/agetty xvc0 [...]

system-config-securitylevel – Love or hatred?

system-config-securitylevel provides the user an easy interface to edit firewall rules. If you only need to open up certain tcp and udp ports, this tool may prove handy. For more complex routing rules, you are tempted to edit /etc/sysconfig/iptables directly.
If you have used system-config-securitylevel before, check out the iptables file and you will see this [...]

Highly available load Balancer + web server in centos

This tutorial is about creating a highly available HTTP load balancer using HAProxy. The setup can be slightly complicated but you will appreciate the result – you will get a load-balanced + highly available web service in your network. Basic linux skill is assumed.
Scenario:
Imagine we have 2 physical machines. In each machine, I have 2 [...]

syncing date and time in command line

having the wrong date and time in the system can be disastrous as many applications will be using the system date and time. It is therefore very important to have the right date and time.
In linux,

yum install ntp
chkconfig ntp on
ntpdate pool.ntp.org
service ntpd start

You can add the ntpdate command to cron to automate the syncing process. [...]

Installing SVN on a samba shared drive in mac

1. Configure the samba share in linux. It needs to have the “delete readonly = yes” line, if not, you will permission errors in .svn/entries when checking out projects in mac. so we need something like this:

[homes]
comment = LAM IT Home Directories
[...]