* Continuously check Apache error log file: $ tail -f /var/log/httpd/error_log * View first 15 lines from MySQL log: $ head -15 /var/log/mysqld.log * vi keyboard shortcuts => jump to end of line $ => start of line 0 => Delete rest of line D => Repeat the last command given: . (dot) => add [...]
Read the rest of this entry »Archive for the 'How To' Category
Feb 05
Sep 25
Virtuemart installtion is not completed
There is a simple solution for this: Untar two files that your server did not manage to do: One is frontendxxxxxx and there is located at folder components/com_virtuemart and the other is named adminxxxx and is located at administrator/components/com_virtuemart
Read the rest of this entry »May 12
May 08
Get out from Recovery Mode Loop on iPhone
Download Here the following files for Mac and Windows users (iRecovery for Windows & Mac and LibUsb-Win32). Windows users should also download this version of iRecovery from here. Follow these steps: 1. Install libusb (Windows users only). Windows Vista users follow the extra steps below to install Libusb-Win32. Right click on the file. Select Properties | [...]
Read the rest of this entry »Feb 26
Feb 17
Backup your bootsector
Messing with bootloaders, dual-booting and various other scary processes can leave you with a messed up bootsector. Why not create a backup of it while you can: dd if=/dev/hda of=bootsector.img bs=512 count=1 Obviously you should change the device to reflect your boot drive (it may be sda for SCSI). Also, be very careful not to [...]
Read the rest of this entry »Feb 17
Replacing same text in multiple files
If you have text you want to replace in multiple locations, there are several ways to do this. To replace the text Windows with Linux in all files in current directory called test[something] you can run this: perl -i -pe ‘s/Windows/Linux/;’ test* To replace the text Windows with Linux in all text files in current [...]
Read the rest of this entry »Feb 17
Feb 17
How to mount ext2fs from FreeBSD
To mount ext2fs filesystems under FreeBSD, you first have to build a new kernel with ext2fs support. Put the line options “EXT2FS” in your kernel configuration file for the new kernel and compile. Read the FreeBSD handbook to learn how to do that. or Do the following steps to enable ext2fs support in the kernel: [...]
Read the rest of this entry »