Skip to content

ghostdance/lantern

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lantern Build Status

Lantern allows you to give or get access to the internet through other users around the world connected by a peer-to-peer network.

Lantern is written primarily in Java and runs on modern Mac, Windows, and Ubuntu Linux desktop systems.

screenshot

Setting up a development environment

  1. Ensure you have the requirements installed:
  • git (brew install git, port install git-core, etc.)
  • Java 1.6+
    • On Windows, make sure to use a 32-bit Java, even if you're running 64-bit Windows.
  • You can install Maven manually or one of: brew install maven, port install maven3, etc.
  1. Clone the repository:

    git clone --recursive git://github.com/getlantern/lantern.git

    or

    git clone --recursive git@github.com:getlantern/lantern.git (if you have commit privileges ONLY)

  2. Change to the lantern directory:

    cd lantern

  3. Run the build-and-run script:

    ./run.bash

That script will fetch the required libraries, build, and run Lantern. There's also a quickRun.bash script that will run Lantern when already built.

If you have already checked out Lantern, but did not do so with the '--recursive' flag, you can still grab any submodules, particularly lantern-ui with:

git submodule init
git submodule update

Lantern binds its HTTP API to a random port for security. You can pass --api-port=xyz to override this. This is helpful for pointing external browsers at Lantern for development.

If you want to run Lantern in headless mode, pass --disable-ui. This is useful for running Lantern on a server without an X environment.

If you're running Linux, note that Lantern's UI currently targets the Ubuntu 12.04 desktop environment (i.e. Unity). Other environments may work as well but are currently untested and unmaintained.

If you want to load the Lantern source code in Eclipse, you can do the following:

  1. Build the Eclipse project and classpath files:

    mvn eclipse:eclipse

  2. Load them into Eclipse using File->Import->General->Existing Projects into Workspace Select the directory where you ran mvn eclipse:eclipse, and you should see the "lantern" project loaded into Eclipse.

  3. Define the "M2_REPO" classpath variable. The steps to do this on OSX are as follows, with other OSes being very similar:

    • Open Eclipse->Preferences->Java->Build Path->Classpath Variables
    • Hit the "New..." button.
    • Enter M2_REPO as the name and /Users/YOUR_USER_NAME_HERE/.m2 as the path

That should get Lantern building successfully in Eclipse.

Further Reading

You can also access JavaDocs and automatically generated reports on the Lantern codebase at the following:

About

P2P censorship circumvention tool and network that allows users to give or get access to the internet through trusted contacts in other places.

Resources

License

Stars

Watchers

Forks

Packages

No packages published