Linux for Newbies

From MicroFocusInternationalWiki
Jump to: navigation, search

Roberts Quick References

  • A place to recapture your earlier gained Linux knowledge
  • or learn about a plan for starting from scratch and endup as a Linux Professional or Engineer

See: Roberts Quick References

Dumb Question: How to download files on a Linux machine

Here's an editable version of Stomfi's newest Dumb Question.

Chime in with additions, corrections, and other comments, and we'll see what the collective wisdom is on this topic.

Dumb Question: I don't know if you've received this dumb question before, but here goes. How do you download on a Linux machine? You gave a link in a previous "dumb" question to download the Berkeley Vi Editor. I went to the site and clicked on download. A window appeared and asked: "What should Firefox do with this file?" Open with gunzip(default) was already chosen, so I tried that. A blank screen appeared with "Transferring data from" in the lower left part of the screen. I got out of there after a half hour of nothing happening and tried the other option, "save to disk". The same thing happened with that.

In MS Windows, when I choose Open, the download automatically installs. When I choose "save to disk" it asks where I want to save it. How do I find out where Linux saves downloads, how do I get there and once I get there, how do I install it? I know this is more than one "dumb" question, but I'm still pretty new at Linux. Thank you.

Answer: For SUSE

Vi is included in every Linux distribution, so that you should never have to download it. Since there are hundreds of free programs already on your system, it is best to check if a program is on your system before you try to download it. You can do this by opening a console terminal and typing:

$ whereis vi

The whereis command will tell you if it is one of the PATH folders. The PATH is where Linux looks for common commands and programs. This doesn't always work because some programs, especially suites, are put into the /opt folder, where optional programs go. So another command used to find programs and files is called locate. In NLD and SLP locate is not installed by default. If you want to use it, use YaST to install the package called "findutils-locate". Once it's installed, it indexes your files every night, so it won't work until the next day. Give the command:

$ locate vi

This will find every file with the letters vi in it. If it is exactly the same name as the one you are looking for or if it the same with a ".sh" extension, it will probably be the one. You can test these by making it execute from its folder. For example:

$ /opt/mozilla/bin/

The site you visited was an FTP site and even in Windows, you would use an FTP clients to do a download. You should go to an HTTP HTML download site if you are using a browser.

Here is a copy of the download page. You can see that some of them start with ftp and others with http. If you use a browser to download (Slower but easier) go to the http sites.

VIM Distribution Sites

Vim can be found at: Holland, Amsterdam Holland, Amsterdam

Server status and planned downtime:

Mirrors (working)

This is partial list. Holland, Amsterdam USA, California USA, Hoboken, NJ USA, Michigan? USA, Chicago USA, New York USA, Fremont Canada, Burlington Holland, Amsterdam Germany, Berlin Germany, Oldenburg England, London England, Kent Ireland, Dublin France, Gif sur Yvette France, Paris

SUSE KDE has a nice ftp client if you want to try it out.

In Linux, because of built-in security, new programs are saved to disk, and then installed by the super user/ root user. Your Linux firewall will probably complain if you try to do a direct install over the net, or it may not even allow you to, depending on how securely you've got it set.

Make sure that you never go onto the Internet as the root user. (It is best never to login as the root user).

Always, as a newbie, download new programs in your package manager format and for your particular distribution.

i.e. for SUSE 9.2 in rpm format. e.g. progname-2.2.1.rpm

The site probably doesn't have rpms for your distro as it is the programming site. Either get them from your distro supplier's site or go to and look for your programs there.

Create a sub folder in your home folder for saving them. Mine is called "/home/stomfi/webstuff" You can tell all your downloads to go there by opening "Edit – Preferences" in the FireFox menu bar.

This is the preferences window:

<img src="/coolsolutions/img/dq9-1.gif" alt="" width="500" height="410" border="0">

You can see that I've chosen the folder I created to save my downloads in.

I downloaded the ftp by clicking on it in the browser window and it downloaded right into my folder. Like you, I'm using Firefox version 1.0 as supplied by SUSE 9.2.

<img src="/coolsolutions/img/dq9-2.gif" alt="" width="404" height="356" border="0">

One thing that may make a difference is that I allow ftp files to come through my firewall.

To install the downloaded rpm file, open the file manager, double click on the file.

Here it is with the vim file:

<img src="/coolsolutions/img/dq9-3.gif" alt="" width="500" height="362" border="0">

Clicking the file brings up this window:

<img src="/coolsolutions/img/dq9-4.gif" alt="" width="500" height="362" border="0">

Click the Install button. This will open the super user password window:

<img src="/coolsolutions/img/dq9-5.gif" alt="" width="402" height="311" border="0">

The super user's password opens the rpm installer which will go through the install sequence and then close. Here is the install, part way through the process:

<img src="/coolsolutions/img/dq9-6.gif" alt="" width="500" height="415" border="0">

This is the same method as that is used for installing from a CD-ROM or other removable media on SUSE.

This Newbie answer has covered:

How to check whether a program is on your system.

How to find packages suitable for your distribution.

How to set up a download folder.

How to download a package using FireFox 1.0.

How to install the package.

When I was a newbie, the above answer may have seemed a bit overwhelming. The key to installing new software is, as mentioned above, check to see if it is already included! Almost always it, or a program very similiar will be.

To check and install, go to YAST. Select software> install software. and then search for the package using search keywords. If its there, install and yast will take care of the rest!

Yast is the best part of suse for newbies.