Skip to topic
|
Skip to bottom
"Wealth without money..."
Jump:
RepRap Home
What can it make?
One page description
Future Plans
Main Blog
Documentation
Make your own RepRap
Using your RepRap
Videos / Movies
RepStrap machines
Community
Get a RepRap Kit
User Forums
Builder's Wiki
Builder's Blog
RepRap auf Deutsch
RepRap en espaņol
RepRap in italiano
RepRap IRC Channel
RepRap Twitter
Object Library
Thingiverse
The People
World RepRap map
Related Sites
Background
Press
Philosophy
Acknowledgments
T-shirts, mugs etc.
GPL Licence
Privacy Policy
Main Web
Changes
Changes detailed
Topic list
Search
login
Edit
Attach
Printable
Main.RepRapLinuxSoftware
r1.62 - 19 Dec 2008 - 11:44 -
AdrianBowyer
topic end
Start of topic |
Skip to actions
---+ This Page Is Obsolete. See [[DriverSoftware#Installation][here for the current instructions]]. <br><br><br><br> ---+ Installing the RepRap software under Linux or Unix %TOC% RepRap uses a large number of open-source software packages for development, and quite a few when it runs. This page describes how to take a standard [[http://www.ubuntu.com][Ubuntu installation]] and prepare it for RepRap use. It then describes how to download and set up all the RepRap software. It should be easy to adapt the descriptions below for other Unix systems. To do most of the following work it is useful to have two windows open on your computer: * A terminal window, * A web browser with this page displayed. Note that for many of these installations you will need the superuser (root) password for your machine. You can copy-and-paste the commands below into the terminal window. Be careful what you run as the superuser, (or via =su= or =sudo= ) especially if you are not a Unix expert - you can damage your system with an ill-judged command... avoid typos. In what follows, =sudo= is used whenever superuser priviledges are needed. ---++ Java RepRap's controlling software is written in Java, and also the [[AoI][Art of Illusion]] design package for three dimensional objects uses it, so next we need a Java development environment. The following method of getting one should be clean, in that it is easy to separate it from any Java that you already have on your system. Note: You might as well install a full JDK not just the smaller JRE, in case you decide to help develop the RepRap software once you are familiar with it. ---+++ Java Development Kit (JDK) / Java Runtime Environment (JRE) Install and configure the <b>sun-java5-jdk</b> package. Copy/paste the following commands into your terminal window (do *not* copy the leading =$= which represents the prompt from your shell!): <verbatim> $ sudo apt-get install sun-java5-jdk $ sudo update-java-alternatives --set java-5-sun </verbatim> If =sudo= asks you for your password, type it in! Now you have a working Sun Java version, ready to rock. If you have problems, see [[https://jdk-distros.dev.java.net/ubuntu-dev.html][this useful website]]. ---+++ Java3D - 3D graphics in Java The host RepRap software uses three-dimensional graphics to allow you to interact with the RepRap machine, so you need a [[https://java3d.dev.java.net/binary-builds.html][copy of Java3D]] to permit that to work. Click on that link and download the appropriate file for your machine into your home directory; for Linux on a PC that file will be called something like java3d-1_5_1-linux-i586.bin. Then, =cd= to the [[WhereIsMyJRE][Java run-time environment (JRE)]] directory, then run the downloaded file via sudo. If you haven't already done so, to quickly download 1.5.1, then run it: <verbatim> $ cd ~ ; wget http://download.java.net/media/java3d/builds/release/1.5.1/java3d-1_5_1-linux-i586.bin $ cd /usr/lib/jvm/java-5-sun/jre # This is your JRE directory, adjust if necessary $ sudo sh ~/java3d-1_5_1-linux-i586.bin </verbatim> This will add extra files to your Java lib directory where Jave will be able to find them. If you have problems, check the README in the download folder, and see [[WhereIsMyJRE]]. ---+++ The j3d.org 3D utility library J3D is a set of libraries to make various things easier with the Java3D API. We use their STL Loader. * [[http://code.j3d.org/download.html][Download the Java3D extensions]] from j3d.org (latest version: 0.9). * Unzip the download. * Copy j3d-org-java3d-all.jar to /usr/lib/jvm/java-6-sun/jre <verbatim> $ cd ; wget ftp://ftp.j3d.org/pub/code/j3d-org-code-0.9.zip $ unzip j3d-org-code-0.9.zip $ cd /usr/lib/jvm/java-5-sun/jre # This is your JRE directory, adjust if necessary $ sudo cp ~/j3d-org-java3d-all.jar lib/ext/ </verbatim> ---+++ RXTX Serial Library - serial-port communications The host computer (that is, the computer on which you're installing all this software) talks to the RepRap machine using either an RS232 serial port (/dev/ttyS0 or /dev/ttyS1 on most machines) or via a USB-to-serial converter (/dev/ttyUSB0). Most laptops and some desktop PCs don't have a serial interface, so - if you have one of those - you will need to buy such a converter; they normally only cost a few pounds. (RepRap 2.0 "Mendel" will be driven directly via USB.) Java, therefore, needs to know how to talk to these serial interfaces. Fortunately, there is a Java API that implements this. RepRap now uses the [[http://www.rxtx.org][RXTX]] serial libraries. The current version of them being used is 2.1.7-r2; there is a package for Ubuntu users, but don't bother installing it - java won't find the files. Check the [[http://www.rxtx.org][RXTX]] site to see if there is a newer one at the time you read this, and download the appropriate Linux binary .zip file, currently [[ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7-bins-r2.zip][rxtx-2.1-7-bins-r2.zip]]. Save this file in your home directory. Now unzip the three files you need from it: <verbatim> $ cd ; wget ftp://ftp.qbang.org/pub/rxtx/rxtx-2.1-7-bins-r2.zip $ unzip -j -o rxtx-2.1-7-bins-r2.zip rxtx-2.1-7-bins-r2/RXTXcomm.jar rxtx-2.1-7-bins-r2/Linux/i686-unknown-linux-gnu/*.so </verbatim> Now (via =sudo=) copy those files underneath your JRE so Java will find them. In this example your JRE directory is =/usr/lib/jvm/java-5-sun/jre=. See [[WhereIsMyJRE]]. <verbatim> $ JREDIR=/usr/lib/jvm/java-5-sun/jre # Use your own JRE location $ sudo cp -vp ~/RXTXcomm.jar $JREDIR/lib/ext/ $ sudo cp -vp ~/librxtx*.so $JREDIR/lib/i386/ </verbatim> ---++++Granting yourself permissions on your serial ports Finally, ordinary users may not have access to the serial port(s) on your machine. So, add yourself to the =dialout= group (in Ubuntu), or (on another Linux distribution) take whatever other action you need to so you can access those devices. <verbatim> $ sudo moduser -G `groups |sed 's/ /,/g'`,dialout `whoami` </verbatim> <blockquote><b>Notes for Non-Ubuntu Linux</b>: A more manual approach is to edit your groups database by hand, perhaps by <verbatim> $ sudo vigr -s </verbatim> or similar. The =moduser= approach should work in both Debian and Ubuntu, and may also work in Red Hat based Linux distributions like Fedora and RHEL and CentOS. Serial port permissions are very distribution specific, so if you have issues with them, please read the documentation for your distribution carefully for clues. </blockquote> ---+++ RepRap Host Software Now you are ready to download and run the RepRap Host software! Simply navigate to the [[https://sourceforge.net/project/showfiles.php?group_id=159590&package_id=179179][SourceForge download page]] using your web browser, and choose the most recent version (0.9 as of 28 May 2008). Download that, and then unzip it wherever you like (your home directory is fine). The easiest way to run it, is to double click the =reprap-host.sh= file and at the prompt, either select 'run in terminal (for debug text)' or 'run'. Alternatively, you could run this command from the directory that contains the host software: <verbatim> $ cd ~/reprap-host-0.8.1 # If you unzipped it in your home dir and are using version 0.8.1 $ ./reprap-host.sh </verbatim> An alternative is using the latest code from the SVN version controlled repository: <verbatim> $ sudo apt-get install subversion # Installs it on Ubuntu, if you don't already have this $ cd $ svn co https://reprap.svn.sourceforge.net/svnroot/reprap/trunk/reprap/host/ reprap-host $ cd reprap-host/ $ ./reprap-host.sh </verbatim> After a short load period, you will see this initial screen: <center> <img src="%ATTACHURLPATH%/reprap-startup.png" alt="reprap initial window" width="516" /> </center> This is a representation of the build-base of the RepRap machine. You will load objects to be made here, move them to where you want them built, then build them. For the moment experiment with the tilt, zoom and pan controls (left, middle and right mouse buttons respectively). There is a .zip file full of STL files you can load into your Reprap host software, downloadable from [[http://sourceforge.net/project/showfiles.php?group_id=159590&package_id=230202][Sourceforge]]. Some of the larger ones there will not yet "print" in your Reprap host software, though -- try out smaller the ones first. ---++ It Didn't work! Sorry. We've found a few gnarly problems involving mismatched versions of this and that. Here are a few pointers: --- Annoyingly, if you have an Nvidia graphics card on your system, a bug in the Nvidia drivers may become aparent here, and the software will give a Java exception rather than giving you graphics. To fix that, [[NvidiaBug][see here]]. --- If you get: <verbatim> Exception in thread "main" java.lang.UnsupportedClassVersionError: org/reprap/Main (Unsupported major.minor version 49.0) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:539) at ... </verbatim> You're probably not using a recent version of Java. On Ubuntu this is often because the wrong one is selected as default, particularly if you have confirmed that Sun Java 5 is really installed (using "java -version" will tell you what's actually running). You can fix this with: <verbatim> sudo update-java-alternatives -s java-1.5.0-sun </verbatim> --- Hopefully we've found your problem. If not, we welcome details on fixes that you have found. ---++ Congratulations! You have now installed the RepRap Host software, and with the proper machinery, you are ready to get printing! This is just the surface of the software need to actually develop for the project. At this early stage, its unlikely that you will be able to get by with just the host software. Follow the instructions below to install and setup your complete development environment. ---++ [[RepRapDeveloperInstallLinux][<u>Development Software Installation</u>]] This is for the extra stuff that most people won't need. 3D modeling, circuit board layout/design, java compiling, firmware compiling, etc. Here there be dragons. As well as a lot of fun ;)
to top
End of topic
Skip to action links
|
Back to top
Edit
|
Attach image or document
|
Printable version
|
Raw text
|
More topic actions
Revisions: | r1.62 |
>
|
r1.61
|
>
|
r1.60
|
Total page history
|
Backlinks
|
Refresh
You are here:
Main
>
RepRapLinuxSoftware
to top
Copyright © 1999-2009 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding
RepRap
?
Send feedback