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.
hi, i am brand new linux user - i am running redhat 9. so far i am in love with this os and so glad to be rid of windows, however, installing programs is just not happening.
can someone please help me get the vlc player installed?
i followed the install directions on the site:
# rpm -U *.rpm
and nothing happens. when i try to cd into a directory nothing happens also. can someone please give me some step by step directions for a total n00b1? i have not been successful installing anything yet - but i can hdparm my harddrives!!
ps i have read lots of stuff on installing programs unzipping files etc, i just cant do it for some reason. please help - and thanks.
first of all, "just cant do it" is completly useless. We cant help you with that. Most likely, you're missing GCC and the other development tools. You will have to install it via the Add/Remove programs GUI in Redhat.
Try installing the RPM with rpm -Uvh [file].rpm
This will be verbose and output any errors too you.
the RPM may have installed fine, have you tried running "vlc" in a console.
these are all in my vlc player directory. i followed the directions from the vlc site as well as contrasutra's advice and others. i think once i get at least one program installed i should be good for all my installs. thanks
Dont run as root, it makes Linux as insecure as Windows
Dont add spaces to directories, It makes things harder, generally you want to use underscores.
Programs are generally installed like:
binaries in - /usr/bin/, /bin , /sbin, /usr/local/bin
libraries - /lib, /usr/lib, /usr/local/lib
config files - HOME directory (hidden), /etc/
Usually, you can run programs by typing the program name in a terminal.
One last thing, you dont have to create such a complex file structure (appz/media players), Generally, its fine just to store source tarballs and RPMs in one directory, like "tarballs" or "rpms" or something. Since the programs will install themselves to the appropraite directories.
thanks contrasutra, you have been so helpful. i am about to do exactly as you said for the install and file structure. but, i have a question about this:
"Generally, its fine just to store source tarballs and RPMs in one directory, like "tarballs" or "rpms" or something. Since the programs will install themselves to the appropraite directories."
are you saying that if i dl all the rpm files for the vlc player, for example, i should put these in the same directory as all the rpms for the xine player and everything thing else that i dl rpms for? and if i just type the program name in the terminal it will just run?
if i put all the rpms in the same directory, how do i keep track of what rpm is for what? and furthermore, what will happen if i type a wildcard style command like: # rpm -U *.rpm ? will it try to install every rpm in the directory even if it has already been installed?
ok, many of the rpms i installed didn't go properly. i checked out the APT4RPM and i didn't install properly either. i then came across Synaptic and tried to instal that as well. but now, when i type a -Uvh the terminal seems to hang - and it won't reset. cd'ing through the directories seems to be the only command that is working. this:
[root@localhost root]# cd ./rpms
[root@localhost rpms]# rpm -Uvh synaptic-0.42-1.fr.i386.rpm
hasn't changed for about an hour now. is it time to uninstall RPMs or reinstall rh9? i am not too discouraged yet.
ok starting to get somewhere on my DAY 3 of rh9. got apt-get and the synaptic up and running. now back to my original problem: HOW DO I INSTALL THE VLC PLAYER. here is my current problem:
[root@localhost root]# apt-get install vlc
warning: cannot get exclusive lock on /var/lib/rpm/Packages
Reading Package Lists... Done
Building Dependency Tree... Done
Package vlc has no available version, but exists in the database.
This typically means that the package was mentioned in a dependency and
never uploaded, has been obsoleted or is not available with the contents
E: Package vlc has no installation candidate
I don't know of a rh9 apt repository that has vlc (I'm sure there is one somewhere) but using the rpms should work.
Check if vlc is installed with rpm -aq | grep vlc
If it installed something like vlc-0.6.2-2 should be printed to the screen. This is unlikely to happen as you can't run vlc so it sounds like it wasn't installed.
If nothing is printed then try to install vlc-0.6.2-2.i386.rpm with rpm -ivh [package name] this will either install it (great!!) or give a list of failed dependencies. Usually you can tell what packages you're missing by looking at the failed dependency messages. e.g. if there is a message like
error: Failed dependencies:
ffmpeg is needed by vlc-0.6.2-2
then you know you're missing ffmpeg-0.4.7-0.20030701.1.fr.i386.rpm
You may not need to install all of the rpms (prob don't need libpostproc), depending on what other software you've already installed (e.g. mplayer, xine). To run vlc just type vlc.