Posts filed under ‘Linux’

How to install and start xampp in Linux(ubuntu/Fedora)

Download the Xampp Server.

To install XAMPP in Ubuntu/Fedora : go to ‘Applications->Accessories->Terminal’

then type pwd (or) cd ..(space is imp!)

To check the path and cd for to come out from the directory

then type dir (or) ls

To check the downloading file in the directory

For example

Desktop Document Download

then type cd Download(case senitive)

it show all the files in the Download

To install the xampp or wordpress file

chmod 777 -R /opt/lampp

sudo home /ckuser/Desktop

ckuser@ckuser-desktop:~/Download$ sudo tar -xvzf xampp-linux-1.7.2.tar.gz -C /opt

if the password is required then type it,you have to change the version what you have(Eg: 1.7.2a/ 1.7.3a)

To start the Xampp server

sudo /opt/lampp/lampp start

If some case permission problems after installing on 9.10, so ran

sudo chmod 777 -R /opt/lampp/htdocs/

and it worked fine. Ok to do on a testing server. Also created a link to htdocs and dropped files into a folder in home to reduce permission problems.

sudo ln -s /home/user/folder /opt/lampp/htdocs/$USER

same procedure for wordpress-2.8.6.tar.gz file

Thats it. Xampp is installed and running.

You can Check it by typing http://localhost on your browser.

June 14, 2010 at 10:04 am Leave a comment

Linux Fdisk Partitioning

1.How to partition a disk using fdisk?

    Partitioning with fdisk

This section shows you how to actually partition your hard drive with the fdisk utility. Linux allows only 4 primary partitions. You can have a much larger number of logical partitions by sub-dividing one of the primary partitions. Only one of the primary partitions can be sub-divided.

    1. fdisk usage

fdisk is started by typing (as root) fdisk device at the command prompt. device might be something like /dev/hda or /dev/sda (see Section 2.1.1). The basic fdisk commands you need are:

p print the partition table

n create a new partition

d delete a partition

q quit without saving changes

w write the new partition table and exit

Changes you make to the partition table do not take effect until you issue the write (w) command. Here is a sample partition table:

    Disk /dev/hdb: 64 heads, 63 sectors, 621 cylinders
    Units = cylinders of 4032 * 512 bytes
     
       Device Boot    Start       End    Blocks   Id  System
    /dev/hdb1   *         1       184    370912+  83  Linux
    /dev/hdb2           185       368    370944   83  Linux
    /dev/hdb3           369       552    370944   83  Linux
    /dev/hdb4           553       621    139104   82  Linux swap
  1. The first line shows the geometry of your hard drive. It may not be physically accurate, but you can accept it as though it were. The hard drive in this example is made of 32 double-sided platters with one head on each side (probably not true). Each platter has 621 concentric tracks. A 3-dimensional track (the same track on all disks) is called a cylinder. Each track is divided into 63 sectors. Each sector contains 512 bytes of data. Therefore the block size in the partition table is 64 heads * 63 sectors * 512 bytes er…divided by 1024.The start and end values are cylinders.

2.Command for view in a save files?

Vi filename.txt or cat filename.txt

June 11, 2010 at 5:37 am Leave a comment


Blog Stats

  • 8,739 hits

RSS Enabled.in

  • An error has occurred; the feed is probably down. Try again later.