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.
Originally posted by macondo you can only install apps as ROOT.
#apt-get install <name of app>
Uhhhhh....maybe I'm misreading, but it sounds like you're saying that you can only install apps as root, which is false. apt-get and other precompiled package managers are not the only way to install applications.
A person could just as easily do "configure --prefix=$HOME/appname" and install as user into his own home directory.
I'm just saying this because it sounded like you were saying "you can't do that", when Linux is all about "you can do that".
Distribution: Blag, Fedora core 1 and 2, Clarck Connect
Re: Install apps as root or user ?
Originally posted by jlassiter If I install an application while logged on as USER, can I use that application while logged on as root ?
Yes you can.
I have installed apps as user before. This includes firefox, quake3 and other games. if installed as user the files will be in your home directory. If you log in as root, you you should be able to run anything. Not sure though, never tried logging in as root and running proggies.
How you install software on Linux? That's a question that deserves a long answer.
There are several ways you can acquire software:
.RPM - Red Hat Package Manager - these are self-installing files that you can install either at the command line or by double clicking them on your desktop as icons in a GUI. When you double click the icon for an RPM file, Linux will bring up a window for you to enter the superuser password for installation as root. If you install using RPM on the command line - you will have to enter su first to install.
.BIN - These are not-yet-executable self-extractors. Usually you have to set them to executable by doing something like:
chmod +x file_name.bin
and then extract them by entering:
.RUN - Nvidia distributes their drivers in this file format. You have to run this file from a shell. So, first make sure it is executable, and then you type:
And it will kick off an installation routine. Warning: Nvidia drivers for NFORCE chipsets on motherboards can be installed from a console terminal in a GUI. The video card drivers must be installed from a raw command line. Exit out of the gui by going to superuser and typing INIT 3. Then log in as root, run the file, and then modify /etc/X11/XFREE86Config-4 replacing nv with nvidia and making sure Load="glx" is not commented out.
TAR.GZ or .TGZ - These are tarballs. Tar is used to build a single archive, and gzip is used to compress them. First step is to extract the contents:
tar xvfz file_name will extract the contents of the file to your current location. This will almost always be a directory of the same name that appears.
Or you can use the GUI to pull up File Roller or Ark, and simply drag and drop to the desktop. In KDE, you can right click on such a file and choose "extract here..."
Then enter the directory from a console and read all of the text files like README and INSTALL or INFO or whatever they are called which will give instructions on installation (hopefully).
The tarball may contain source code, in which case the first thing you do is type:
and hope it works. Fix any problems if it does not.
and hope this works
to become the superuser and
to install the software
Then, to run it, you should be able to type the file name at the command line.
After installing software, I have often found there are no icons for it in KDE to click on to start it up. So, you end up having to make your own by going into your Linux distributions GUI control panel for Linux itself (not for KDE or Gnome) and finding the place where you edit the menu. Then enter the program name in the right spot, pick an icon, and it should work.
Sometimes, when you enter the program name at the command line, nothing will happen because the idiot programmer is an unfriendly (yet generous) sort who doesn't believe in making his software usable (or doesn't give a hoot). After you install, you can find your program by searching for it (it almost always installs in /usr with this command
find /usr -name '*part_of_file_name*'
Once you find where the program itself lives, you need to make a link to it in one of the directories inside another directory that is in your PATH.
The search PATH is where Linux looks for executables to live, and it is defined as an environment variable loaded from one of those nasty configuration files on boot. You can either add the directory to your path, or put a symlink somewhere in a directory already defined in the path. I prefer a symlink, because if you delete the installed software, the link dies too. Use this command to make the link
ln -s target_file_name_and_path link_name
ln -s /usr/games/larry /usr/bin/larry
From that point forward, typing larry at the command line will launch larry. Then you can go back and make icons.
It's not all clean and neat like Windows, where developers pretty much always use install shield to package software, and it drops in files, edits all OS configurations, logs the installation path taken, creates an uninstall routine, cleans up all temporary files, and then neatly drops icons on the desktop and in your menu.
That's because with Linux, you might not have a menu. You might be running flux instead of KDE or Gnome - or Windowmaker. The developer doesn't know, and he can either try to account for everything, or leave it to you to figure the rest out. Many choose the latter path.
While windows installation is more consistent and easier (for me anyway), I find the Linux route more trustworthy in that if there were any spyware or adware being loaded with the software, I would see it in the source or in the tarball before it went in.
I prefer RPM to Windows installation because RPM's if you uninstall them, truly uninstall and go away, whereas with Windows installation, if you try to uninstall something, it will refuse to delete your saved games, anything currently in use by anything, any spyware it leaves behind, and any registry keys it created dynamically - because Windows developers do a bad job of logging the reg keys that their software will create during use and making sure uninstall gets them all. Even nvidia drivers, upon uninstallation from windows, will leave 20 keys behind in the Windows registry.
With linux, you do a find on the file name, and you blow away the directories, and the stuff is gone. If it was an RPM, uninstall using the gui or RPM, and it is *gone*.
Good luck to you. More details are available out on the web everywhere.