Skip to main content

Posts

Showing posts from February, 2012

Displaying wordpress post contents in multiple columns

There are some template files for displaying post contents in excerpt or full-length form in wordpress like index.php, category.php, archive.php etc. If it is wanted to be displayed post contents in the form of multiple columns, following changes may give the desired result.

put these lines of code after <?php if ( have_posts() ) : ?> and just before <?php while ( have_posts() ) : the_post(); ?> loop:

echo "<table>";
$column = 0
;

inside the while loop, put <tr> and <td> just after <?php while ( have_posts() ) : the_post(); ?>

if ($column == 0) echo "<tr>";
echo "<td width='50%'>";


Now it comes to close <td> tag after the post content. Post content generally appears similar to <?php get_template_part( 'content', get_post_format() ); ?>

echo "</td>";
$column=$column+1;


Then if the number of columns are reached desired value, close the <tr> tag:

if ($column == 2) {
echo &qu…

Installing linux over network using kickstart

What is required?
LAN infrastructure for network communication.NFS, FTP or HTTP Service for data transfer.DHCP service for ip distribution.TFTP service for booting from network.Linux OS kernel image.Bootloader binary.Linux installation tree should be accessible from nfs,http or ftp.

Creating YUM Repository Server

When it comes to installing yum repository server there are some requirements: Instalattion tree (can be extracted from linux distribution dvd)YUM repositoryNetwork service that is hosting repository and packages. (can be http or ftp server) I use http for hosting repository. In the apache.conf