Archive for December, 2008
How to resolve WordPress error – Warning: preg_match(): Compilation failed: nothing to repeat at offset 1
Dec 8th
Sometimes the following warning from PHP continually repeats for about 20 times and appears on top of each page.
Warning: preg_match(): Compilation failed: nothing to repeat at offset 1 in /var/www/wp-includes/classes.php on line 104
Warning: preg_match(): Compilation failed: nothing to repeat at offset 1 in /var/www/wp-includes/classes.php on line 105
These warning messages consume all the visible space in the browser making the real content not to appear. At first sight, it appears as if only errors are shown in the browser.
This can be resolved by moving back and forth from two different Permalinks structures. First login to your WordPress as administrator and go More >
How to mount NTFS/VFAT file systems under Linux
Dec 7th
First of all find which partition is having NTFS on it using “fdisk” command as shown below.
[root@techpulp ~]# fdisk -l | grep NTFS /dev/hda1 1 2125 4283968+ 07 NTFS/HPFS [root@techpulp ~]#
So I have NTFS file system present in the very first partition “/dev/sda1“. Now check if you have
[root@techpulp ~]# rpm -aq | grep ntfs ntfsprogs-2.0.0-9.fc10.i386 ntfs-3g-1.5012-4.fc10.i386 [root@techpulp ~]#
So I already have NTFS related software installed. If don’t have them installed, use “yum” command to get them installed.
[root@techpulp ~]# yum -y install ntfsprogs ntfs-3g
Now just try quickly whether you can mount the NTFS partition More >
Why my system shows lower CPU frequency in Fedora Linux
Dec 7th
The recent Linux distributions run a service called “cpuspeed”. This program monitors the system’s idle percentage and alters (reduces or raises) the CPUs’ clock speeds and voltages to minimize power consumption. When system needs more performance, it raises the CPU speed automatically.
You can disable the “cpuspeed” service if you don’t want this feature. Once the service is stopped, you will see correct cpu speed/frequency using the battery icon present in the system tray of KDE/GNOME desktops. You can temporarily stop the service (applies only for that boot) as shown below.
[root@techpulp]# /etc/init.d/cpuspeed stop
However it is advised to keep this service More >
How to resolve VMWare server installation issues on Fedora Linux 10
Dec 7th
The VMWare server 1.0.7 and higher do not install on Fedora 10 smoothly. This is because of the changes in the latest Linux kernel 2.6.27.5 that is shipped along with it. But the VMWare server kernel module sources are not up to date.
You download a patch from insecure.ws site and run “runme.pl” script to apply it. The following shows exactly how to do it. Please note that you should run the script with super user privileges.
[neo@techpulp ~]$ wget -c http://www.insecure.ws/warehouse/vmware-update-2.6.27-5.5.7-2.tar.gz [neo@techpulp ~]$ tar -zxvf vmware-update-2.6.27-5.5.7-2.tar.gz vmware-update-2.6.27-5.5.7-2/ vmware-update-2.6.27-5.5.7-2/services.sh vmware-update-2.6.27-5.5.7-2/runme.pl vmware-update-2.6.27-5.5.7-2/update.c vmware-update-2.6.27-5.5.7-2/vmblock.tar vmware-update-2.6.27-5.5.7-2/update vmware-update-2.6.27-5.5.7-2/vmmon.tar vmware-update-2.6.27-5.5.7-2/vmnet.tar [neo@techpulp ~]$ cd vmware-update-2.6.27-5.5.7-2/ [neo@techpulp vmware-update-2.6.27-5.5.7-2]$ su Password: [root@techpulp vmware-update-2.6.27-5.5.7-2]$ ./runme.pl
More >
How to get a list of disk partitions and their file system types in Linux
Dec 6th
The “fdisk” command can be used to see disk geometry, partitions, size of each partition and their file system ID etc. The following shows the usage. This command requires super user privileges to run.
[root@neo neo]# fdisk -l Disk /dev/sda: 120.0 GB, 120034123776 bytes 255 heads, 63 sectors/track, 14593 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x282d282d Device Boot Start End Blocks Id System /dev/sda1 1 1657 13309821 83 Linux /dev/sda2 * 1658 5913 34186320 7 HPFS/NTFS /dev/sda3 5914 8159 18040995 83 Linux /dev/sda4 8160 14593 51681105 5 Extended /dev/sda5 8160 13145 40050013+ 83 Linux More >
How to schedule a command to run for each minute using cron
Dec 6th
The cron system daemon wakes up for every minute and executes all the scheduled commands. It looks at user specific jobs along with system specific jobs defined in /etc/cron.d directory. The “crontab” command can be used add a user specific cron job.
Run “crontab -e” which opens an editor with a list of user specific jobs defined one per each line. If it is the first time you are running, you would probably see it blank. Just add the following aentry and replace the command with whatever you would like to run each minute.
Use the following command to edit user specific More >
How to find amount of free disk space in Linux
Dec 6th
The “df” command can be used to get the details of disk usage and free space on all mounted partitions in Linux system. “df” stands for “disk free”. The following shows how to get the details in human readable format.
[neo@techpulp ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda3 16G 12G 4G 67% / /dev/sda1 80M 16M 64M 20% /boot /dev/sda5 8G 1.2G 6.8G 15% /home /dev/sda6 20G 10G 10G 50% /disk1 [neo@techpulp ~]#
How to install Fedora without using CD/DVD drive or any other boot disk
Dec 6th
This method of installing Fedora doesn’t require CD/DVD drive or USB Flash disks. But it requires the system to have a working Linux installed with GRUB as boot loader. You need to store the downloaded DVD .iso file in a partition which will not be overwritten during installation process.
- Move DVD image to a separate partition
- Mount DVD image and copy Linux bootable files to /boot and Create a GRUB entry for installation.
- Reboot the system and select the new GRUB boot entry to start installation
The following is the list of usable partitions in my Linux system. There is a separate EXT3 partition More >


Recent Comments