Installing Java on Debian

This one is just for me … =)

Thanks to weiqigao:

Here’s the steps I took to get Sun JDK 6 to my Debian GNU/Linux 4.0 system (the right way):

  1. Add a line to /etc/apt/sources.list:
    # deb cdrom:[Debian GNU/Linux 4.0 r0 _Etch_ - Official amd64 DVD Binary-1 200704
    07-12:15]/ etch contrib main
    deb cdrom:[Debian GNU/Linux 4.0 r0 _Etch_ - Official amd64 DVD Binary-1 20070407
    -12:15]/ etch contrib main
    deb etch main non-free
    deb-src etch main non-free
    deb etch/updates main contrib non-free
    deb-src etch/updates main contrib non-free
    deb etch main
    deb etch main
    ### unstable #######
    deb unstable main non-free
  2. Add a line to /etc/apt/apt.conf.d/70debconf:
    // Pre-configure all packages with debconf before they are installed.
    // If you don't like it, comment it out.
    DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-preconfigure --apt || true";};
    APT::Cache-Limit "100000000";
  3. Created /etc/apt/preferences:
    Package: *
    Pin: release a=stable
    Pin-Priority: 700
    Package: *
    Pin: release a=unstable
    Pin-Priority: 600
  4. Run apt-get update
  5. Install the eight sun-java6-* packages
    • sun-java6-bin
    • sun-java6-demo
    • sun-java6-doc
    • sun-java6-fonts
    • sun-java6-javadb
    • sun-java6-jdk
    • sun-java6-jre
    • sun-java6-source


[[email protected]]# feta install <package-name>s

We want you … Try KDE 4 …

If you ever wanted to check out what KDE 4 is all about. Then you have to try the following.

Get the VMWare Server and create a new VM with 512 MB of Ram and approx. 10 Gb of HDD space.

You also need to get the Ubuntu JeOS (JeOS = Just enough Operating System and was designed to build VM Ware appliances) image from:

Insert the iso Image into your fresh VM and go through the standard JeOS setup which is fairly simple.

After one reboot you should be able to login in and add the following line into “/etc/apt/sources.list”

  • /deb hardy main/

Now run

  • apt-get update
  • apt-get install kde-nightly autoconf automake binutils make cpp gcc linux-headers-$(uname -r) xorg xserver-xorg-input-vmmouse kdm-kde4 kde-nightly-kdegraphics kde-nightly-kdepimlibs kde-nightly-kdenetwork kde-nightly-kdemultimedia amarok-nightly

That’s all…. type “reboot” and wait for the login dialog…. Now you only have to choose neonkde as session and enter your username and password.