Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
i have SuSe 10 and i want to add some programs to my OS that i have downloaded from the internet but i don't know how to. could anyone help me, please.
i'm not connected to the internet so i have to go to the library and download, then go home and do it. i know i have to use YaST control center to install the program. i first tell YaST the location of the file, which is on my USB, and i then try to install it through the software manager of YaST but it doesn't work. it just tells me that the file i'm trying to install isn't recognized as a linux program, or something like that, i'm going by memory here since i'm not at home.
yuor Program it's package (name_of_package.rpm)
if your package like this u can use first
must be root from command line with su and put root password
and this change to where u package and use rpm -Uvh Name_of_package
and the package install in very quick after that
u can use which Name_of_Program
and when know where the program install use rpm -ql link_for_file
I haven't used YaST, but if it allows you to install packages that way (specify their location), ok. The other way is to simply use rpm, the basic package manager, like Eniac already posted - just 'rpm -Uvh package.rpm' in the directory where the package is (or provide full path), as root, and things should get started. Either it installs the package or tells you why it cannot be done (for example if there are depending packages that are not installed at the moment, it tells you what packages you need to have installed prior to installing that package).
If it's an rpm package it might work just by double-clicking on the file icon in your file manager; at least that's how it works on Fedora, using the same system.
Note that the package needs to be in rpm format, and specifically packaged to SuSE, preferrably the exact version you're using. It won't install with rpm unless it's an rpm package, and if it's meant for some other rpm-based operating system than SuSE (or for different version), problems could easily rise even though the package might seem to install fine.
If it's some other package, like a .deb for example, there are some tools that can convert it to an rpm package (but I don't recommend them - rather try to find a SuSE .rpm). If it's an (compressed) archive, like .tar/.tar.gz/.tgz/.tar.bz2/.Z, then it's probably source code - in that case extract the package first using tar, then read the README and/or INSTALL files inside to learn how to compile it and what you need in order to do it.
if the files dont have an .rpm extension but .tar.gz you have to extract them first by
tar xvzf downloaded.tar.gz
If it is a source code package you will need a compiler like gcc and maybe some smaller helper tools like bison and flex.
Usually you find an INSTALL text file inside the extracted directory that you should read.
thankyou all for answering my new thread. unfortunately i'm still none the wiser. i either didn't understand what was written or i think i'm a novice compared to you guys, i'm self taught you see.
Eniac: we speak different types of english, i didn't understand what you were trying to indicate.
Bouncer: i'm familiar with rpm but i either don't have it with SuSe 10 or i can't find it and i believe i have searched everywhere. converting it seems like a hassel so i wont go there, but i don't think i have to anyway. it is a .tar/.tar.gz/.tgz/.tar.bz2/.Z, file and i extracted it to a local directory before trying to install it. i found only one file that looked like informing me on how to install it but it gave me no help whatsoever.
i think i'm just going to try another download site, maybe thats the problem, because i think i'm doing everything else right.
a compiler "translates" a program written in C, C++, Fortran,... to binary format that can be executed on your computer. Some programs are shipped in binary format anyway others come as source code and for these you need a compiler to create the binaries for your box.
as SuSe is an rpm based distro you certainly have it installed on your box. But you must be logged in as root to install packages. So if you are logged in with your user name type
into bash, then enter root password, then run rpm commands...
I might be stating the obvious but to install any 'package' it has to be in your 'home' space first, i.e., transfer it from the usb device first then install it using Yast or an rpm command avoid source code unless you have plenty of time and patience.
j-ray: for me to access YaST i have to be logged in as root, so i have that covered! as for su into bash, you have completly lost me. i don't know what bash is and i don't know where bash is. if you can help me there i should be ok because i can do the password and commands bit.
Fred Caro: thanks for your imput, i needed to know that.
it is a .tar/.tar.gz/.tgz/.tar.bz2/.Z, file and i extracted it to a local directory before trying to install it. i found only one file that looked like informing me on how to install it but it gave me no help whatsoever.
You need to tell us specifically what you don't understand (and it's probably a good idea to tell us exactly what you're trying to install), because without basic information it's really difficult to help you.
The core problem is that programs (and I use that term loosely) usually have 'dependencies' eg libraries (MS => .dll files), hence pkg managers like Yast were invented so that you ask it for the application (not a specific prog) and it installs it for you, automatically retrieving any dependencies as well.
For example, RH Fedora actually calls it's GUI installer 'Add/Remove Programs' (the install is YUM). It also uses .rpm files.
(you might want to read this short article about MS/Linux differences: http://linux.oneandoneis2.org/LNW.htm)
Anyway, the way you are going about it is likely to be hard work because of these dependencies.
You should try and get the CDs or DVD copy of a distro and use that, because it'll (Yast) be able to install stuff from there.
Ideally, of course, you should get your base system connected to the net (either at home or take round to a mate's house), life will be so much easier.
When you are at the cmd line (equiv to cmd.exe) the program intepreting your cmds is known as a 'shell' of which there are several different ones.
The default one in Linux is called bash (bourne again shell; it's pun).
You'll also hear the cmd line environment called a terminal or xterm (X-windows terminal).
To switch to the root user properly, the cmd is
don't forget the 'space then hyphen' bit, or you'll end up as the root user, but with your original user's personal settings (which are different to root's).