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 just installed firefox through the terminal in KDE. This is the first time I have installed any programs in Linux. I was unsure of what directory to install programs too. Any suggestions about that would be much appreciated.
Anyway, I installed firefox to my /root directory. Firefox opened and I used it for a bit before closing it and now that I want to reopen it I can't find where to do so!!
This is obviously a really simple question. Will someone please help me?
What procedure did you use to install it? Did you unpack a tar.gz in /root? Or did you use a slackware .tgz? In /root no other users will be able to see it.
Also it's recommended to not run things such as internet browsers as root. The easiest way to install Firefox is to use the .tgz and, as root, run:
installpkg *firefox*.tgz
The executable will be /usr/lib/firefox-1.0.6/firefox
Also, for java and flash and anything else, the plugins will need to be installed into ~/.mozilla/plugins. Example: copy /usr/lib/jre-1.5.0_03/plugin/ns7/libjavaplugin_oji.so to ~/.mozilla/plugins
There's nothing wrong with using the firefox-installer. It gives you all the installation options like a windows installer might do. The tgz is an archive of all the files that would be created using the installer. It's just easier to install and eliminates the questions.
When running the installer what path did you put as the destination? That's where the firefox files went. Oh, it doesn't create a /firefox dir of it's own. So if you put /root, the firefox binary is /root/firefox, not /root/firefox/firefox.
I always use my /opt directory for it. In the installer I put as a destination folder /opt/firefox. Any user can access it from there. /usr/local is another decent place for it.
In that folder there is a file that looks like this in the terminal: firefox*
typing this will not execute Firefox from the terminal, BUT within KDE I can click on this file and Firefox will launch.
If I make a copy of this file on my desktop it doesn't work. Also the icon for this file looks like a picture of a terminal rather than the firefox logo. I found the firefox logo in a folder in the same directory.
So I guess my question is now, how do I make shortcuts to launch Firefox from my desktop or the panel AND how do I make it have the correct icon?
I don't know about the icon questions but if you want to run it in a terminal just by typing firefox you need to add /opt/firefox to your PATH (add the line "export PATH=$PATH:/opt/firefox" to your ~/.bashrc file) or type the whole path to run it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.