Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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 recently downloaded firefox, and after untarring it in the same directory as my tar was saved to, i want to move it. where are most programs installed, and what steps would i need to take to move this program? secondly, because until now all i've installed are rpms, how do i make a shortcut to firefox? either that or what's a very short command to open the program, rather than going to the directory and clicking the script?
With firefox you download the compiled binaries, just in tar/gzip format for compression.
Most system binaries are stored in /bin, most extra programs, for example kopete, mozilla, etc. are stored in /usr/bin.
You probably want to make a symbolic link from the binary in the directory where firefox is already to one in /usr/bin, as moving the whole folder around is a hastle.
Say I installed firefox into /home/paul/downloads/firefox, i'd do the following:
su root
ln -s /home/paul/downloads/firefox/firefox /usr/bin/firefox
chown paul:somegroup /usr/bin/firefox
Which makes a symbolic link (need to be root to put things in /usr/bin), and then changes the file's ownership to paul and somegroup, save you the hastle of becoming root again if you want to delete the file etc.
Now to make a shorcut to it:
rite click on the desktop: create new > file > link to application
Call it firefox or such, change the icon (theres a firefox icon in the icon directory in the firefox folder) and put the link to the application /usr/bin/firefox
You could have not put the symbolic link in /usr/bin altogether, but this way you can also do run > firefox without having to add a new place to the path.
so far yes, that was very helpful. basically i've copied and pasted it? so now if i delete the original folder /home/cheechi/firefox will i lose it altogether?
i've done everything you told me but still not 100% sure what it is i've done
ok i tried deleting the original and the shortcut i made to the /usr/bin/firefox/firefox script would no longer work. isn't there a way to just move to a new parent directory?
i think the real issue i've stumbled into is how do i move stuff into folders that are only accessible to root? there's probably some terminal command i don't know, but every time i try to add pictures to /usr/share/wallpapers i'm told i don't have write access cause i'm not root. so what do i do? open a terminal and su root. then i try it again and same errorr happens. well now i'm sorta pissed at tux in general so i alt+F2 and su. it doesn't prompt me for a password but it also doesn't give me an error so i figure i did somethinng wrong with that too. still won't let me move stuff into the folder i want!
Sorry, I don't quite understand what you mean, when you are in a GUI environment you are logged in as your "user" with limited priveledges.
When you open a terminal and type in su / password, you become "Root" in the terminal only - the GUI environment stays as the normal user.
You probably should get familiar with the command line interface (CLI) since it makes life easier when you want to do stuff as root :), the command for moving files is
mv <source> <destination>
Please be careful - when you're root, you can easily destroy your computers data, by pulling the wrong command :)
Also, don't forget, when you are in a terminal, linux has auto name completion as standard:
Say you are in your home directory, and within that directory, you have a very long file name, e.g. "Foodirectory-1.0.4-gtk-tla"
You can type in "cd Foo<TAB>" and it'll auto complete unless there are multiple "Foodirectory-*".
Hope this helps ;), feel free to ask back for anything you're unsure of :)
If there is a directory or two that you know you'll be using mainly as a normal user (/opt, for example, or /usr/share/wallpaper), then run the chown command to make someone else the owner of the directory, and not root.
so from a terminal:
$ su
# chown -R paul:somegroup /usr/share/wallpaper
# exit
The code runs chown reccursively (it doesn't just change the ownership of everything in that directory, but every sub directory and files under it) and makes the new owner 'paul' who belongs to the group 'somegroup'.
WORD OF CAUTION: don't make your user the owner of any of the important directories (/bin, /usr/bin, /usr/share), as if you get some form of malicious program on your computer it will be able to destroy your system.
When you "su" to get root, you may execute program from root. For example:
su
ping hotmail.com
exit
Will ping hotmail as root. But ping is a program, like mv (move), cp (copy) and even nautilus or konqueror! So if you "su" to be root, and enter any command, it will be for root.
I'm using Konqueror (a Norton Commander clone) and run it as root sometimes as it is easier than the command line...
it's much easier than the command line, thanks! i've written down the mv command also, in case it's quicker than graphical copy/paste. i never knew about the tab autocmplete, usually if i have filename.extension i just type fil*.extension and get similar results. i'll have to try that tab thing sometime. is there a good list of CLI commands with decent explanations anywhere? aside from RTFM since i have the downloaded ISOs
unless something else loads by default, then i must be using bash i haen't screwed around with much on here, just installing programs posed a big enough challenge for me
Originally posted by Cheechi ...
aside from RTFM
...
I think you don't have the choice of RTFM... I suggest you buy a reference book. That way if you want to "copy files", go into the index and look for "copy files" I bought a Red Hat 9 book reference and even if RH9 is outdated and I'm using Mandrake 10, it is still really usefull for those kind of search! Those command lines are pretty the same on each linux distros... "cp" will always be copy...
Maybe a old book can do the thing. When I bought this book, I wanted the most recent and so I got the less cheap... But since I'm still using it I think I could have just bought an old one really cheaper...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.