Computer Science Canada Linux help! - installation |
Author: | iluvchairs112 [ Mon Jul 28, 2008 1:31 pm ] |
Post subject: | Linux help! - installation |
I just installed Ubuntu Linux on my new laptop a couple days ago. However I cannot seem to get anything to install (or any .exe files to run) I know it involves using the admin password or something like that. and I have tried using terminal (in accessories) but still can't seem to get it to work I want to install Java so I can view more websites and I just can't. Any help at all is appreciated! Thanks ![]() (p.s. I have searched google quite a bit already and haven't found much) |
Author: | TheFerret [ Mon Jul 28, 2008 1:56 pm ] |
Post subject: | RE:Linux help! - installation |
You can't run exes on linux, you would either have to download the packages and compile them yourself or use a package manager... In terminal, it would be apt-get install *name of package* or there is the GUI one in one of the menus (of which i forget the name)... Also, for apt-get you would have to run that as root or su... |
Author: | rizzix [ Mon Jul 28, 2008 1:57 pm ] |
Post subject: | RE:Linux help! - installation |
I believe ubuntu has a GUI interface to the package manager. You can look that up. |
Author: | Zeroth [ Mon Jul 28, 2008 3:49 pm ] | ||||
Post subject: | Re: Linux help! - installation | ||||
Linux(and by extension, Ubuntu) has a completely different way of handling installs. Is your computer a 64 bit chip? Take a look at this short guide: http://ubuntuland.nireblog.com/post/2007/09/22/35-cool-applications-to-install-on-ubuntu-804-hardy-heron Okay, a quick primer: Ubuntu uses the package manager, called apt. There are a couple of useful tasks to do with apt, first is installation.
Via the Terminal. sudo tells Ubuntu you want root priveliges, apt-get is a specific command to execute, and install is what apt-get should do with the package-name. Say, you want to install mplayer, then you would type sudo apt-get install mplayer Apt will take care of all needed dependencies for you. Conversely, you can replace install with remove to remove a package. What if you want to find a package? You can use
There is a gui, but I find it quite slow, even on a fairly modern pc. It is under System->Administration->Synaptic. Its pretty user-friendly, just search, and click on the checkbox beside a package. The philosophy behind all this is that almost all of your needs can be handled by a central repository of pre-made packages. Packages describe their dependencies, how to install, and have the binaries/source all ready to go. The benefits is that only one application ever needs to check for updates, and you can update huge swaths of your applications in one go. There are exceptions to the above philosophy, but it is hoped that by the time you encounter them, your google-fu is much stronger. |
Author: | Euphoracle [ Mon Jul 28, 2008 3:56 pm ] |
Post subject: | RE:Linux help! - installation |
There is another gui. Type "sudo aptitude" ![]() |
Author: | apomb [ Tue Jul 29, 2008 8:38 am ] |
Post subject: | Re: RE:Linux help! - installation |
Euphoracle @ Mon Jul 28, 2008 3:56 pm wrote: There is another gui. Type "sudo aptitude"
![]() if you value your sanity, do NOT use aptitude... synaptic is a much more powerful/useable package manager... and theres a nifty "search" function too |
Author: | iluvchairs112 [ Tue Jul 29, 2008 12:15 pm ] | ||||
Post subject: | Re: Linux help! - installation | ||||
this is what I wrote into terminal:
this is what came up:sudo apt-get install javainstallationone.exe
I have that file javainstallationone.exe on my Desktop why can't it find it? |
Author: | DemonWasp [ Tue Jul 29, 2008 12:24 pm ] |
Post subject: | RE:Linux help! - installation |
Behold, simple instructions (second result on Google when searching "install java on Ubuntu"): https://jdk-distros.dev.java.net/ubuntu.html That'll help you install Java 1.5 (which is enough to run nearly anything you'll find on the web). If you need Java 1.6, then it's slightly more involved, but not terrible. NOTE: Those are instructions for Ubuntu 6.06, but you should be able to do exactly the same thing on 8.04. If not, I can help more once I'm back on my own machines (silly Windows machines at work). Also, you should ignore steps 1-4, and just start with #5. Steps 1-4 are to install the OS, which you've already done. |
Author: | Zeroth [ Tue Jul 29, 2008 12:47 pm ] | ||
Post subject: | Re: Linux help! - installation | ||
We said, four TIMES, that .exes don't work. With sudo apt-get install, you give the name of a package you don't have yet! No downloading from random sites... apt-get takes care of it for you. Its all handled in one repository. So, the process would be, perhaps...
Linux WORKS DIFFERENTLY. That is its strength. Very rarely do you need to download an executable from Random Site A, and install it. Repositories manage it all for you. |
Author: | iluvchairs112 [ Tue Jul 29, 2008 4:19 pm ] |
Post subject: | RE:Linux help! - installation |
I understand that Linux works differently but I don't yet understand how it works! And sorry but I am still confused because ... how would I download a game or a program or anything from the Internet and run it then? |
Author: | btiffin [ Tue Jul 29, 2008 5:04 pm ] |
Post subject: | RE:Linux help! - installation |
Carefully. ![]() Kidding aside; apps off the net will come with an installer script install.sh or the like, or more commonly a source code tarball that you will need to extract, then run make on (many times with a ./configure - which builds a makefile after querying your system for what is available in terms of compilers, headers and other optional bits). Far easier is to snag pre-packaged apps as everyone has been saying. Ubuntu has thousands of DEB (apt) compatible packages. And if you really want to try a Windows app, check out the WINE system. It'll be a package under apt called wine and deets are at http://www.winehq.org It just recently went 1.0 so people are happy. Many games are listed as functional. Cheers |
Author: | Euphoracle [ Tue Jul 29, 2008 10:35 pm ] |
Post subject: | Re: RE:Linux help! - installation |
apomb @ Tue Jul 29, 2008 8:38 am wrote: Euphoracle @ Mon Jul 28, 2008 3:56 pm wrote: There is another gui. Type "sudo aptitude"
![]() if you value your sanity, do NOT use aptitude... synaptic is a much more powerful/useable package manager... and theres a nifty "search" function too Aptitude has this too iirc. It's a gui that can be used FROM the shell, which is what I like about it. |
Author: | DemonWasp [ Wed Jul 30, 2008 10:06 am ] |
Post subject: | RE:Linux help! - installation |
Actually, there are a whole variety of ways to "install" programs on Linux. The ones mentioned above (using Add/Remove Programs under the Applications menu) is by far the easiest, and will generally have the application you want. If you're going to "install" something more complex, you may have to compile it yourself (as btiffin said), or manually get the packages (using synaptic, preferably). Generally best to have some instructions when doing this, because it's non-obvious. Some "installers" are even easier - just put the folder somewhere and you can run it, with no install procedure required (Eclipse works like this - just extract the gzipped tar file and run the eclipse program). Worthy of note: Linux does NOT use a registry in the same sense that Windows does, so the install process generally isn't nearly so difficult as it is on Windows, and can often be done manually in a few seconds (for example, unzipping / untar-ing an archive is about a 2-second task with the GUI). This is (part of) why most places do NOT have packaged install or setup files (the other part is that there's a lot of variation in Linux, and any one setup isn't guaranteed to work everywhere - even RPMs and .debs aren't useful everywhere). What software are you trying to install, specifically? We can provide more specific instructions if we know that. |
Author: | Aziz [ Wed Jul 30, 2008 12:42 pm ] | ||
Post subject: | RE:Linux help! - installation | ||
And as far as I know, you want java for just running things on the internet. In terminal:
You'll to type in your password. Should do it. Read beginner linux guides. You CANNOT install windows applications on linux directly. You'll have to use Wine to run .exe files (and .msi), but I wouldn't recomend this for anything but games that don't have a port. Most open-source applications have separate linux binaries (just search the available repositories). Most windows-only apps have better linux alternatives. |
Author: | wtd [ Wed Jul 30, 2008 2:16 pm ] |
Post subject: | RE:Linux help! - installation |
One of the best things about Linux is repository-based package management. Instead of scouring the internet for a place to download the software you need, clicking through ten or eleven links for the actual download page hidden among the ads, and then worrying about the installer either not working or installing malicious software... Instead of all that, you fire up Synaptic, do a search, mark the package you want (they come with descriptions) for installation and install. If there's a dependency it will tell you that. As long as you're okay with the extras it needs, it'll automatically download and install those for you. And because packages are in a centralized repository, if word gets out that something is malicious, t'd be removed from the repository, and then no one using that repository would be exposed to it. |
Author: | Aziz [ Wed Jul 30, 2008 3:00 pm ] |
Post subject: | RE:Linux help! - installation |
On the other side, it's more difficult to install a program that isn't in the repository, and not as easy to backup your application installers locally. I keep all my Windows apps in an "Apps" folder, and when I reformat or someone needs the app, I just use that file, rather than have to rehunt, or redownload it again. Of course, it's a lot easier to find the downloads again (they're all there in the repo!), and I suppose you can make a text file with all the packages you need, and then run something like "sudo apt-get install < packages". |
Author: | wtd [ Wed Jul 30, 2008 3:46 pm ] |
Post subject: | RE:Linux help! - installation |
How about creating a Debian package with those packages as dependencies? |
Author: | btiffin [ Wed Jul 30, 2008 8:15 pm ] | ||
Post subject: | RE:Linux help! - installation | ||
And don't use "< packages", you'd need to run it with something like `cat packages`, which may overflow a 96K command line limit, so better to just use a bash for loop ... but I think I know that you know that we know what you meant. ![]() One of Ian Murdock's greatest gifts to computing ... the advanced package tool. Old guy useless ramble follows: You all know that Debian is short for Debra and Ian - right? Which is why it isn't pronounced like it reads. Deb - ian, not Deeb - ian. Cheers Edits; First I misspelled dpgk, then Murdoch, then Debrah. Sad. |
Author: | jeffgreco13 [ Thu Jul 31, 2008 10:02 am ] |
Post subject: | RE:Linux help! - installation |
Just installed Ubuntu Server on my old AMD Athalon XP... Equipped with LAMP and OpenSSH as well as PHP, CGI, JAVA and Ruby soon... it's going to make one hell of a test box for web development. |