file
How to Install VMWare Server on Fedora 8
Desktop virtualization has been continuously capturing users and web services. More and more companies are creating virtual machines and appliances that can be of productive service to many web users around the globe. From recent post, here’s a quick howto install VMWare Server on Fedora 8. VMWare Server Pre-Requirements VMWare Server package needs to compile its [...]
How to Back Up and Restore a MySQL Database
If you’re storing anything in MySQL databases that you do not want to lose, it is very important to make regular backups of your data to protect it from loss. This tutorial will show you two easy ways to backup and restore the data in your MySQL database. You can also use this process to move [...]
How to Export Mysql Database Schema as XML
Sometimes it can be useful to have a dump of the current database schema. The script below reads the schema from a MySQL database and outputs XML that describes the schema. At first we connect to a MySQL database and use the SHOW TABLES command to return all the tables in the database. Next, we iterate over each table and [...]
How to Check and Mark Bad Block Of Hard Disk
Now, here’s a quick blog entry on how to check your harddisk for possible bad blocks and mark them those badblocks along the way. What is e2fsck? e2fsck is used to check a Linux second extended file system (ext2fs). E2fsck also supports ext2 filesystems containing a journal, which are also sometimes known as ext3 filesystems, [...]
How to Create Vanishing Virtual Drive
You can work with your hard drives, network drives and other external or USB storage devices accomplishing critical linux hacks. Yes, technology nowadays have enabled us to make use of larger and more stable storage capacity drives and devices. Most firms and company services enjoy the benefits of having them as part of their IT [...]
How to Convert JPG Image Files to MPG Video Files
What is Kipi? Kipi (KDE Image Plugin Interface) is an effort to develop a common plugin structure for Digikam, KimDaBa, Showimg and Gwenview. Its aim is to share image plugins among graphic applications. Kipi is based on the old digiKam plugins implementation and is maintened by digiKam team. One binary that is part of installing [...]
How to Highlight Matching Grep Results in Linux
Here’s a quick entry on how to have a highlighted and colored text from grep resulting strings and characters. Assuming we have /var/log/maillog and we wish to grep it with multiple search strings. Well this would be faily simply # cat /var/log/secure | grep ‘Accept\|refuse’ What if we want to make resulting matching grep strings [...]
How to Strip Out First Word of Line from Text Files
This is a quick post on how to remove the first word of a line. There are lot of ways on how to remove and strip out the first word of a line from a text file. Here’s one way to achieve that. # cat testfile.txt ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ my blog name is sysad linux blog ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [...]
How to Display Lines That Starts With A Given String
Matching strings can be counted using grep, cat, sed. Matching strings can be sorted and even omitted for matching repetitions using sort and uniq. They can also be highlighted during the string parsing operation via grep. More can be done using awk. But have you ever tried to display the first occurrence of matching line [...]
How to Extract Lines That Started With Matching String Using Grep
From recent post of displaying the first occurrence of line that starts with a specified matching string, now instead of the first occurrence, here’s a way of stripping out all matching lines that start with the given matching string. Reproducable Approach Say for example, we have a text file with the below contents and we [...]
Converting from Windows to Linux: Hard drives NTFS to Ext3
Introduction Recently I undertaken the task to convert over to the Linux Operating System. After searching the Internet and reading through many tutorials it became clear that the NTFS File-System is not compatible with Linux other than being Read from. At least not with Ubuntu 6.10 Edgy Release. There in created another task for me, [...]
