Sign up to Submit Content

Sign Up / Login
debiantutorials.org accepts no advertising. Quit asking me.
Guests 11
If you can walk and chew gum at the same time, you can run Linux

debian tutorials | debian support forum
I invite anyone familiar with Linux or Debian to register here at debiantutorials.org and write tutorials or related articles in order that everyone in the community can benefit. I'm talking to you. You say it better than I do. Your ideas just flow like water. There's so much more that needs to be written in ways that your cousin or an office manager can benefit from. Consider it.
debiantutorials.org is built on and runs on Debian.
Creative Commons License
Java and Flash for Debian GNU/Linux Print E-mail
Written by machiner   
Monday, 10 October 2005 07:09
This tutorial is horribly out of date. For the current schwing, see an updated one here:Set up a Debian lenny Desktop. Sure, it's a laptop tutorial, but it's all good. Java and Flash are at your fingertips in Lenny.

[out of Archive]

Installing Java and Flash on Debian

The Flash Part

You'll need to download the Flash Player installer now from Adobe here (x86)

Installing this is no sweat. Why don't you open your terminal now. Yessir, command-line. You can type, right? OK, then, hit the alt and the F2 keys concurrently. Remember this command, it's "run". In Windows you probably didn't even know that you could hit the win and the r keys to get the same run command. Bah -- don't sweat it. If I had a penny each for all the things I don't know...When your run box pops up, type "gnome-terminal" into it. No quotes, Jack. Hit enter.

Now that we're cozy in the terminal, $ cd over to the directory you downloaded the flash-installer to. Like this:

$ cd /your/download/directory

The file that you downloaded from Macromedia is tar'd then further compressed with gzip. I know you looked at it with dismay, no worries. Unpacking this directory is a snap. If you just cd'd to your download directory we can get started. In the terminal $ ls your directory. I'm lazy, we copy & paste here. The file name that I have is install_flash_player_X_linux.tar.gz. So what I do is copy the file name (use your mouse to highlight the name, right-click, copy) and then run this command to extract the directory:

$ tar -xvzf [ctrl+shift+v]

We use the -z switch because the file is gzip'd.

Now just $ cd into your newly-made install_flash_player_7_linux directory. Cake. When you're in, make sure your browsers are closed and then run the installer like this:

$ ./flashplayer-installer

Flash is installed for Debian GNU/Linux.

The Java Part

With Debian Etch the simplest way to install Java is to fire-up a terminal, become root and run the following:
#apt-get install sun-java5-bin
However, you may continue reading this out-of-date java install tutorial for Debian Sarge if you like. :)

Installing Java is just as simple. You will have to download the Java binary from Sun. I use the Linux (self-extracting file) from this page.

Next up, you need to make sure you're using the "non-free" repositories. Don't worry, you don't owe any $$. Let's do that real fast since you're already in your terminal.

Become root ( $ su ) and then open your Apt sources file like this

# nano /etc/apt/sources.list

Append the end of your .../debian main line with

contrib non-free

My entry looks like this: deb ftp://debian.uchicago.edu/debian/ stable main contrib non-free

Now you save your sources.list file and close Nano. So, ctrl+x, y, then enter. At your prompt you can now

# apt-get update

Installing Java this way will no doubt have naysayers as well - you know what? Is cool - this is Linux, man. More power to 'em, right? I like this way you don't have to. I make chocolate cake from scratch - what about you? Anyway - now that we're ready let's get Java on.

At your command prompt run the following command:

# apt-get install java-package

Yes, y, to dependencies. 'Course, this all only takes a few seconds to do...and you're getting pretty savvy with the command line by now? Right? (Get busy, here and here .)

$ cd over to the directory that you downloaded the Java binary to. Now we can make a deb package out of the binary and thus allow Apt, dpkg to manage Java on your system. Here's the command:

$ fakeroot make-jpkg jre-1_5_0_06-linux-i586.bin (Careful with the "cut&paste", which Java version did you download?)

You'll have to agree and then go through names and such. I just use defaults, root, etc. Again, you agree - now to the Sun license. Use your space bar to run through the pages. Then you must type yes to accept the license.

You'll see Java unpack and then create your .deb package. When it's finished you will even have the command to run to install the .deb file. Just copy it from about 2 lines up from your prompt, then become root, and then [ctrl+shift+v] to paste the dpkg -i install command.

To install the Java plugin for Mozilla (I just do it as root for system wide) just run the following command:

# ln -s /usr/lib/j2re1.5-sun/plugin/i386/ns7/libjavaplugin_oji.so \
/usr/lib/mozilla/plugins/

You're done. No charge. Enjoy Debian

machiner - 10 Oct 2005

Comments
Add New
+/-
Write comment
Name:
Email:
 
Website:
Title:
UBBCode:
[b] [i] [u] [url] [quote] [code] [img] 
 
 
:angry::0:confused::cheer:B):evil::silly:
:dry::lol::kiss::D:pinch::(:shock:
:X:side::):P:unsure::woohoo::huh:
:whistle:;):s:!::?::idea::arrow:
 
Please input the anti-spam code that you can read in the image.
Guest  - Why not make a proper package?   |70.22.179.xxx |2005-10-12 07:25:27
See:

http://www.debian-administration.org/artic les/142

Does the firefox thing too.
Guest  - I don't know -   |70.22.179.xxx |2005-10-12 07:27:35
Why not? Looks goot to me...but this is a site luring WIndows users to debian. Following directions is one
thing, but following directions to make a package might scare some folks.

I have no problems with it though
and I hope folks check the link that you provided.

Thanks for checking out the site.

--machiner
Guest  - Plain wrong   |213.148.143.xxx |2005-10-12 23:57:24
Sorry, but I would never ever recommend to
install Java on Debian that way. Please use
java-package, which
allows to install and
uninstall JRE and/or SDK cleanly. Thanks.
Guest  - Install Java through Synaptic   |71.126.59.xxx |2005-11-23 11:51:21
Add one of the following lines to your sources.list

deb ftp://mirror.aarnet.edu.au/pub/java-linux/debian/
sarge non-free
deb http://mirrors.publicshout.org/java-linux/debian/ sarge non-free

Do an apt-get update
or Reload in Synaptic. Then in Synaptic do a search for j2re. Choose to install the j2re package. Accept the
license when prompted and there you have it.
Guest   |71.162.70.xxx |2006-03-25 11:30:01
To me he does have a point. Even though Debian is renowned for its upgradeability and repairability I
reinstall far more frequently than Sun releases Java SDKs.

However, on my system I use the make-jpkg way.
Why? Coz it's the Debian way.
'Guest'  - Newer java bin file (update 8)   |204.225.123.xxx |2006-09-02 08:54:14
Hi. Just noticed that the link you've provided leads to java bin file update 6. To get the more recent one
(update try this site:
http://java.sun.com/javase/downloads/index. jsp
From here, go down to the download
link by the header "Java Runtime Environment (JRE) 5.0 Update 8".
machiner  - Ummm   |71.162.64.xxx |2007-01-08 16:51:01
You're right. I've been meaning to archive this tutorial and write a new one for Etch.

Soon enough.
Thanks for visiting.
'Guest'  - now a package in Etch and Sid (non-free)   |70.51.148.xxx |2007-01-08 12:22:20
Hello. Java runtime environment is now a package in Etch and Sid. So, simply use the command
Code:
aptitude install sun-java5-jre
, or
Code:
apt-get install aptitude install sun-java5-jre
, and you're set.
'Guest'  - Bad Urls and x86_64 / amd64 issues   |88.96.162.xxx |2007-04-18 03:26:14
The link to adobe's page appears to have 2 "http://" in you redirector see here:

 http://www.debiantutorials.org/axs/ax.pl?http://http://www.adobe.com/shockwave/download/index.cgi?P1_Prod _Version=ShockwaveFlash&P2_Platform=Linux&P3_Brows&nbs
p;er_Version=Netscape4

Of course it might only effect Netscape4, I've not
started Firefox/IceWeasle yet.

And the adobe flash palyer doesn't support x86_64 / amd64,
running version 9's install errors :

Code:
 ERROR: Your architecture, \'x86_64\', is not supported by the
Adobe Flash
Player installer.


The older editions might but I can't find them off the adobe site. I know there's an
alturnative tho as I've had flash running in this very machine with gentoo. I'll try to remember to
update here when I've done it.

km0
'Guest'  - OK   |72.74.104.xxx |2007-04-18 19:50:53
Cool, and yes -- the flash link contained herein points to an x86 version.

--machiner

3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."

Last Updated on Friday, 27 February 2009 12:14