Linux & RAID - very simple how to

> November 14th, 2006 ---

Everything You Always Wanted to Know About RAID in Linux But Were Afraid to Ask

What you need:
mdadm

mdadm is a tool for managing Linux Software RAID arrays, it can create, assemble, report on, and monitor arrays.
You cant find in your distro (use your distro’s package manager to install it) or at: http://neilb.web.cse.unsw.edu.au/source/mdadm/ or http://www.kernel.org/pub/linux/utils/raid/mdadm/ or any of the kernel.org mirrors.

Read the rest of this entry »

How to convert raw to dv2 avi.

> September 5th, 2006 ---

I was looking for a solution, how to convert raw to dv2 avi, and finally man dvgrab helped me!

Solution is quite fast and simple:

cat source.dv | dvgrab –stdin –autosplit –opendml –timestamp –format dv2 dv2source.avi

Ubuntu/Kubuntu 64bit and DVDrip (dvd:rip)

> August 22nd, 2006 ---

I tried to run dvdrip on my 64bit Kubuntu machine - to rip one of my home dvd videos, unfortunatelly without success, BUT instead of dvdrip you can use acidrip - it works OK

Linux and XGL

> May 17th, 2006 ---

“Xgl is an X server architecture, started by David Reveman, layered on top of OpenGL via glitz. It takes advantage of modern graphics cards via their OpenGL drivers, supporting hardware acceleration of all X, OpenGL and XVideo applications and graphical effects by a compositing window manager such as Compiz. As of May 2006, the Xgl X Server (and related components including the Compiz compisting manager and associated graphical config tools) ships as a non-default in one major Linux distribution SuSE 10.1, and will be included in the upcoming Ubuntu 6.06 release.” [source: Wikipedia]

This is really cool - it looks great, just watch videos

next one…

and more …

Logging via ssh using keys (without typing password)

> May 13th, 2006 ---

Very simple HowTo - how to log into remote machine using keys.

Generate keys on local machine:

ssh-keygen -b 1024 -t dsa

copy ~.ssh/id_dsa.pub content into ~.ssh/authorized_keys file on the remote machine you plan to log in without typing password again and again. To do it:

Copy id_dsa.pub file using your favourite ftp software
than simply type on the remote machine:
cat id_dsa.pub >> ~.ssh/authorized_keys
now your key should be at the end authorized_keys file.

now you can log typing

ssh user@host

and you should not be asked for password.

Best cache plugin for Wordpress

> March 30th, 2006 ---

If (for some performance reason) you’re looking for some solution to speed up your Wordpress performance (or low down your CPU usage) you can try WP-Cache plugin.

WordPress trackback spam plugin.

> March 27th, 2006 ---

I was looking for some good solution to fight with trackback spam, finally I think, I’ve found good solution - WordPress Trackback Spam Solution.

Very usefull WordPress trackback tutorial

> March 27th, 2006 ---

At optiniche.com you can find very usefull WordPress trackback tutorial - article explains what is trackback, how to locate the trackback link and finally, how to send trackbacks.

How to check CPU(s) information on Linux

> March 20th, 2006 ---

Task: check CPU(s) information
Solution: using command line (for example bash) type:

cat /proc/cpuinfo

Sample output (for 4 Intel Xeon machine):

Read the rest of this entry »

Dreamhost, Wordpress, wp-cache 2.0.17, php 5.1.2 and blank pages problem [ob_end_flush() vs ob_end_clean()]

> March 17th, 2006 ---

If you have problem with your Wordpress (1.5.2, 2.0 or 2.1 with wp-cache 2.0.17) based pages after upgrading php to 5.1.2 (on Dreamhost or any other hosting company), you must fix wp-cache-phase2.php file to solve the problem.

To solve the problem:

  • Open wp-cache-phase2.php file* in your favourite text editor (I hope it’s not MS Word)
  • Find out wp_cache_ob_end function
  • then inside that function find out line with: ob_end_clean(); (it should be line 219 or about)
  • and finally replace that line with: ob_end_flush();

That’s it, it should work now, bye bye blank pages

* - you can find it in /your_blog_path/wp-content/plugins/wp-cache directory