Keep server time in sync with ntp
Fri, 12/07/2007 - 15:45 — sandipNTP is a protocol designed to synchronize the clocks of computers over a network, easy to setup and probably comes packaged with the OS.
Here's what was needed on a Fedora-6:
-
Install the ntp rpm if not already installed.
# yum install ntp
Find a reliable close ntp pool server or you could just use the hub, "pool.ntp.org" and add it to the server list in "/etc/ntp.conf" file.
Make sure your computer's clock is set to something sensible (within a few minutes of the 'true' time) - you could use `ntpdate pool.ntp.org`, or you could just use the date command and set it to your wristwatch, and also synchronize the hardware clock.
Make sure ntp starts up at boot and then start the service:
# /sbin/chkconfig ntpd on
# /sbin/service ntpd start
# ntpq -pn localhost
- sandip's blog
- Login or register to post comments
- Read more
Howto Setup a Remote Calendar using WebDAV with Mozilla Sunbird
Thu, 12/06/2007 - 05:53 — david23Mozilla Sunbird® is a cross-platform calendar application, built upon Mozilla Toolkit. Our goal is to bring Mozilla-style ease-of-use to your calendar, without tying you to a particular storage solution.
- david23's blog
- Login or register to post comments
How to Install the Eternity Screensaver in Ubuntu
Tue, 11/27/2007 - 05:00 — david23The Eternity Screensaver plays animations of ray-traced scenes which took days or even weeks to generate. The reasoning is that these clips should look more impressive than anything which can be generated on-the-fly.
- david23's blog
- Login or register to post comments
Anatomy of Linux Kernel
Sun, 11/18/2007 - 10:53 — sandipImmensely useful article for learning about Linux kernel at IBM DeveloperWorks.
- sandip's blog
- Login or register to post comments
Mirroring sites with lftp
Sat, 11/17/2007 - 19:45 — sandipThe "mirror" command is all you need to copy/mirror a site with lftp:
$ lftp
lftp :~> connect ftp.domain.tld
lftp ftp.domain.tld:~> login <username>
lftp ftp.domain.tld:~> mirror
Here's a one liner:
$ lftp -e mirror -u <username>,<password& gt; <host>
Playing VCD with mplayer
Sat, 11/17/2007 - 19:37 — sandipI tried:
$ mplayer vcd://
It would come up with:
Playing vcd://.
track 01: adr=1 ctrl=4 format=2 00:02:00 mode: 1
track 02: adr=1 ctrl=4 format=2 00:08:72 mode: 1
...
but exit without playing the tracks.
Track 1 also failed to play, however track 2 did playback the video.
$ mplayer vcd://2
- sandip's blog
- Login or register to post comments
Auto restart apache on segmentation fault error
Fri, 11/16/2007 - 16:36 — sandipRecently a particular folder in a site started coming up with blank php pages and the root cause being Segmentation fault after memory exhaustion. The subfolder contents would only come up after doing a restart of apache.
So something tried to access a region of memory that it did not have rights to. May be due to either bad RAM, or a code problem.
My first instinct was eAccelerator as I had done a recent php update and had not re-compiled it.
I still had the same issue the next day and bumped up the memory_limit from 16M to 32M in php.ini and from 32M to 64M in eaccelerator.ini .
How to view CHM (Microsoft Compiled HTML Help) files in Ubuntu
Tue, 11/13/2007 - 09:29 — david23Microsoft Compiled HTML Help is a proprietary format for online help files, developed by Microsoft and first released in 1997 as a successor to the Microsoft WinHelp format.
- david23's blog
- Login or register to post comments
How to Install Ruby on Rails (ROR) in Ubuntu
Tue, 11/06/2007 - 11:13 — david23Rails is a full-stack framework for developing database-backed web applications according to the Model-View-Control pattern. From the Ajax in the view, to the request and response in the controller, to the domain model wrapping the database, Rails gives you a pure-Ruby development environment. To go live, all you need to add is a database and a web server.
- david23's blog
- Login or register to post comments
Migrating ISPConfig CentOS server
Sat, 11/03/2007 - 22:24 — sandipRecently did a full server migration with ISPConfig installed. Luckily it was within the same distro but an updated version of CentOS-4.5, had to add centos-4.5 support to ispconfig conf file prior to the install. I also made sure that I was installing the same version of ISPConfig on the new server, and upgrading to the latest once the migration was complete and the server stable.
These are just notes I took down for later reference, just in case it happens again!!
Preparation:
In preparation for the migration, create A records to point to the new server IP, for all domains to do temporary redirection:
{newhost.domain.tld} : xx.xx.xx.xx
www1.{domain.tld}   ; : xx.xx.xx.xx
- sandip's blog
- Login or register to post comments
- Read more