Posts

Showing posts from March, 2009

Vim Editor Shortcuts Keys

Linux Shortcuts Keys For vim Editor 1. Go to the first line gg or 1 shift g or :0 (zero) Enter 2. Go to the last line. Shift g or :$ Enter 3. Go to line 8 8 shift g 4. To scroll down one screen Ctrl f 5. To scroll up one screen Ctrl b 6. First position on line 0(zero) 7. Last position on line $ 8. Go to matching parenthesis % 9. Right, left, up, down respectively. l, h, k, j Or You can also use arrow keys 10. Where Am I? Ctrl g ********************** 1. Copying a whole line yy or shift y or :ny where n is the number of line if n is not specified then copy the current line 2. Copying from current position to end of line. y$ 3. Copying 3 lines after the current position 3yy 4. Copying a range of line :1,5y or :1y 5 The above example copy 5 lines, from 1 to 5 5. Deleting a whole line (Deleted line is copy to the registers) dd or :nd Where n is the number of line if n is not specifie...

Installation of Linux version of XAMPP

Image
Step 1: Download you can download Linux version of XAMPP from the give link A complete list of downloads (older versions) is available Step 2: Installation After downloading simply type in the following comm ands: Go to a Linux shell and login as the system administrator root: su Extract the downloaded archive file to /opt: tar xvfz xampp-linux-1.7.tar.gz -C /opt Note: Please use only this command to install XAMPP. DON'T use any Microsoft Windows tools to extract the archive, it won't work. Note : already installed XAMPP versions get overwritten by this command. That's all. XAMPP is now installed below the /opt/lampp directory. Step 3: Start To start XAMPP simply call this command: /opt/lampp/lampp start You should now see something like this on your screen: Starting XAMPP 1.7... LAMPP: Starting Apache... LAMPP: Starting MySQL... LAMPP started. Ready. Apache and MySQL are running. If you get any error messages please take a look at the Step 4:...

Unix/Linux Commands System Info

Date : Shows the current date and Time. Cal : Shows this month's calendar. uptime :  Show current Uptime. W : Displays who is online. whoami : Displays user's information. uname -a : Show Kernal information. cat /proc/cpuinfo : Cpu information. cat /proc/meminfo : Menory information. df : Show disk usage. du : Show directory space usage. free : Show memory and Swap usage  whereis app : Show possible locatins of app which app : show which app will be run by default

Steps for Connecting Airtel Mobile gprs in Linux pc

STEP 1: now open the file #vim /etc/wvdial.conf STEP 2: erase all the content of this file and paste following lines [Modem0] Modem = /dev/ttyACM0 Baud = 115200 SetVolume = 0 Dial Command = ATDT Init1 = ATZ Init3 = ATM0 FlowControl = CRTSCTS [Dialer airtel] Username = a Password = a Phone = *99# Stupid Mode = 1 Init1 = ATZ Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 Init3 = AT+CGDCONT=1,"IP"," airtelgprs. com " Inherits = Modem0 :wq! save and exit STEP 3: #vim /etc/resolv.conf nameserver 202.56.250.5 :wq! save and exit STEP 4: Now open another terminal and run this command #wvdial airtel and minimized it