BeOpen

Usefull how tos and solutions…

Archive for the 'How To' Category


   Feb 05

Most useful commands for Linux

* 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 »

   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

How to remove unwanted .DS_STORE files

It is simple. Just use the following command and it will find all files under the folder you are. find . -name .DS_Store -print -delete

Read the rest of this entry »

   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

View hidden files and folders in Finder.

OSX Finder is hiding the standard Unix files and folders. You can “Go To Folder…” and type in the name of the “known” folder such as /var/log, but again you will not be able to see the “dot” files. Of course you can use terminal for viewing those files… but come one it is MacOSX!!! [...]

Read the rest of this entry »

   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

Recover root password

Step 1: For Redhat based distros: Boot from your first install CD and as the very first screen comes up hit F2 and type: rescue ( For RedHat “linux rescue” ) and the computer will boot in rescue mode. It will show a few alternatives, select : ¨mount the existing partitions¨ and go to the shell/console [...]

Read the rest of this entry »

   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 »