blob: 23b5d2451d28c23b4916293f55932a11ba226b22 (
plain)
1 Install Java 6 on Debian Lenny 5.0
2 ==================================
3 :author: Aaron Ball
4 :email: nullspoon@iohq.net
5
6
7 == {doctitle}
8
9 Despite its numerous problems and frequent needs for updates, Java is still
10 used for a lot of software. That sadly means it must be installed to run Java
11 applications. Due to the fact that Java is not open source, it classifies as a
12 non-free install in linux and therefore cannot be available by default due to
13 some legal jibberjabber (yeah, just made that up).
14
15 Here's how it's installed on Debian Lenny.
16
17 First off we need to modify our repository sources to search and install
18 non-free software. To do this, let's open 'er up in our favorite editor VIM.
19
20 Seriously though, you're welcome to use another editor if you want to. I will
21 only judge you a little. :)
22
23 ----
24 vim /etc/apt/sources.list
25 ----
26
27 From here we need to make a few modifications. The following sources.list is
28 from a fresh default install of Debian. *.
29
30 ----
31 #
32 #deb cdrom:[Debian GNU/Linux 5.0.6 _Lenny_ Official i386 NETINST Binary-1 20100905-11:24]/ lenny main
33 #deb cdrom:[Debian GNU/Linux 5.0.6 _Lenny_ Official i386 NETINST Binary-1 20100905-11:24]/ lenny main
34 deb http://ftp.us.debian.org/debian/ lenny main '''contrib non-free'''
35 deb-src http://ftp.us.debian.org/debian/ lenny main
36 deb http://security.debian.org/ lenny/updates main '''contrib non-free'''
37 deb-src http://security.debian.org/ lenny/updates main
38 deb http://volatile.debian.org/debian-volatile lenny/volatile main
39 deb-src http://volatile.debian.org/debian-volatile lenny/volatile main
40 ----
41
42 Basically all we just did was add "contrib non-free" to the end of two
43 repositories. Not too bad, eh?
44
45 Next we need to update our package manager. To do this...
46
47 ----
48 apt-get update
49 ----
50
51 Finally, install the Java software you need. In my case, sun-java6-jre
52
53 ----
54 apt-get install sun-java6-jre
55 ----
56
57 Annnnnnd away we go!
58
59 Category:Linux
60 Category:Debian
61 Category:Java
62
63
64 // vim: set syntax=asciidoc:
|