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!
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a couple of shell script programs and I have no idea how to run/install them. I'm searching now but all I can find is how to run RPM files.
thanks
did this:
[hoffman@alltel hoffman]$ cd
[hoffman@alltel hoffman]$ mkdir bin
[hoffman@alltel hoffman]$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/hoffman/bin
[hoffman@alltel hoffman]$ cd bin
[hoffman@alltel bin]$ ./limewirelinux
bash: ./limewirelinux: No such file or directory
[hoffman@alltel bin]$ ./home/hoffman/limewirelinux
bash: ./home/hoffman/limewirelinux: No such file or directory
[hoffman@alltel hoffman]$ ls
az31_a2_eng.zip hpijs-1.5.tar.gz
bin LimeWireLinux.bin
evolution link to gtk-gnutella-0.93-1.i586.rpm
gtk-gnutella-0.93-1.i586.rpm
[hoffman@alltel hoffman]$ /evolution
bash: /evolution: No such file or directory
[hoffman@alltel hoffman]$ pwd
/home/hoffman
[hoffman@alltel hoffman]$ ls
az31_a2_eng.zip hpijs-1.5.tar.gz
bin LimeWireLinux.bin
evolution link to gtk-gnutella-0.93-1.i586.rpm
gtk-gnutella-0.93-1.i586.rpm
[hoffman@alltel hoffman]$ gtk-gnutella-0.93-1.i586.rpm
bash: gtk-gnutella-0.93-1.i586.rpm: command not found
[hoffman@alltel hoffman]$ ./gtk-gnutella-0.93-1.i586.rpm
bash: ./gtk-gnutella-0.93-1.i586.rpm: Permission denied
[hoffman@alltel hoffman]$ su-
bash: su-: command not found
[hoffman@alltel hoffman]$ su -
Password:
[root@alltel root]# /home/hoffman
-bash: /home/hoffman: is a directory
[root@alltel root]# ls
anaconda-ks.cfg install.log install.log.syslog
[root@alltel root]# $
-bash: $: command not found
I think I got there but it said "permission denied"
when I logged in as root .... well that didn't help either...
still foolin' with it.
Why is anaconda showing up???
A couple of things on this command...
1) You should type ./ev[TAB] to complete the name unless you want to type all of the escape charecters.
2) That is DOT SLASH command
3) I think you are trying to run "evolution link to gtk-gnutella-0.93-1.i586.rpm", right? That is not executable! If you are trying to install an .rpm file, the proper syntax is:
rpm -ivh file_name.rpm
type man rpm at a command prompt.
4) try this at a command prompt: su -c "rpm -ivh /path/morepath/filename.rpm"
You will be prompted for the password and it should install. You WILL need to include the quotes in that one.
Anaconda-ks.cfg showed up because you are in the /root directory and that's where it ends up after a system installation.
[root@alltel root]# /home/hoffman
That is not a command! cd /home/hoffman IS a command and would take you to the /home/hoffman directory.
What exactly is the name of the file you want to install and what directory is it in?! Find the file and type pwd to get the path and I will send you the exact command to make it work...
Thanks. I'll work on it. Any advice on a good book that has some BASIC linux info? I have the Visual Quickpro Guide to RH9 but it doesn't seem to tell me what I want to know.
I'm pretty good at learning from examples.
It's gtk-gnutella-0.93-1.i586.rpm and it's in home/hoffman
Basically any intro book to Linux which focuses on the command line will help. Anything which focuses on the graphical desktop will be out of date just about by the time it's published, but the command line stuff is venerable. It's also mostly all *NIX so even an intro to UNIX would help.
BTW, something else to know about shell scripts is that to run them as tink outlined they need to be executable. If you do an
ls -l <scriptname><ENTER>
and it looks like permission are rw-r--r-- then it isn't. You can make it so with
chmod 755 <scriptname><ENTER>
or bash scripts can be run with
bash <scriptname><ENTER>
It's gtk-gnutella-0.93-1.i586.rpm and it's in home/hoffman
OK! Now we have something to work with! Open a terminal, type:
su -c "rpm -ivh /home/hoffman/gtk-gnutella-0.93-1.i586.rpm"
You will be prompted for root password and it should install. The file does not have to be in /root to install it as root.
Thanks Other1 ! I got it running and I'm downloading some mp3's now. What does the su -c mean? I understand the rpm file but what commands did I just use?
By the way, I'm in Warner Robins, just south of Macon.
Thanks again, to everyone.
Yea, skeeters are 'bout all dead now....
Now on to making this thing play the mp3's I downloaded. I installed mpg123.2.7... but the player doesn't even start. No moving slider, nothing. I understand RH's reason for not including any mp3 code but it sure doesn't make things any easier.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.