Saturday, April 27, 2013

Can anyone help me with installing programs on Linux?

Q. I dont have internet on the computer i have linux on, am i screwed or is there still a way?

A. Some software is distributed in "Source form". This means you download a file containing all the source code for the application you want to install, unpack it, and compile it on your system. Compiling is the process of turning the source code into an executable binary. It is a fairly straight forward process.

Typically applications you must compile from source will come as a ".tar.gz", ".tar.bz2", or ".zip" file.

You'll probably want to operate from inside your home directory. If your user is (for example) username, your home directory will be /home/username/. Downloaded your zip file containing install files to /home/username/src. If you do not have a src directory, you can create it with the following "mkdir" (make directory) command:


Code:
mkdir /home/username/src/
So, we have our source package in /home/username/src/.

Change to the /home/username/src/ directory with the "cd" (change directory) command like so:


Code:
cd /home/username/src/
Use the "ls" (list directory contents) command, to see the file is present:


Code:
ls

We now need to unzip the zipped file, this is done differently depending on the file extension.

for files ending in .tar.gz, use:

Code:
tar -zxvf <filename>
(replacing <filename> with the name of the file).

for files ending in .tar.bz2, use:

Code:
tar -jxvf <filename>
for files ending in .zip, use:

Code:
unzip <filename>
You should now have a new directory, containing all of the source files. To confirm it exists, and to get its name, use the "ls" command again.

Code:
ls
we now need to go into the new directory, so use the cd command:

Code:
cd <directory>



This is where things will differ. Some packages will have an INSTALL or README file which will contain installation instructions. use "ls" to see if the software has an install or readme file. If it does have one, you can use the "more" command to read it, like so:

Code:
more INSTALL
Generally, the final 3 stages are as follows:
- Configure the installation
- Compile the software
- Install the binaries

The pre-installation configuration is done by executing ./configure:

Code:
./configure
This will perform some requirements testing on your system, and create a "Makefile" which will explain to the "make" utility how the software should be compiled.

The next stage is to compile the software, this is done using "make". When you run "make" it will read the instructions in the Makefile and build the application binaries.

Code:
make

The final stage is to install these binaries, ie, copy them to a more permanent location. Typically only the "root" user can do this, so you will need to swich to the root user with the "su" command:

Code:
su
Once you are root, install the binaries using the "make" command, followed by "install", like so:

Code:
make install

How can I open a zip file on a Linux OS?
Q. I reaceently installed the LInux Fedora OS in my PC and now the sound is not working, does anybody know what can I used and or do to open a zip file?
Thanks in advance

A. There is a program called zip or unzip. Do a yum install zip or yum search zip from the command line (as root) then unzip the file using that.

http://www.cyberciti.biz/tips/how-can-i-zipping-and-unzipping-files-under-linux.html

Why wont my downloaded version of wordpress work?
Q. I downloaded wordpress from wordpress.org and it downloaded it as a zipped folder, I unzipped it but it is still just alot of documents and folders and files and I have no idea how to set it up. I know other people have had this problem, any advice?

A. you need a running server (apache/php/mysql). [apache is reccommended, but not required)
It might be easier to sign up for a free hosting plan, so you don't have to think about the server-part

However if you'd prefer to have wordpress on your own computer:
http://php.net/manual/en/install.php
http://httpd.apache.org/docs/1.3/windows.html
http://dev.mysql.com/doc/refman/5.1/en/windows-installation.html

I took it that you're a windows user, if you have a linux distribution on you computer, you should be able to find these software packages in the repositories



Nec Projector Review

Plastic Shed Reviews

Ati Graphic Reviews

Nurse Uniforms Reviews

Cabochons Reviews

Inflatable Water Slides Reviews

Barcode Scanner Reviews

No comments:

Post a Comment