This wiki is now locked - both user registration and edits (except by admins) are disabled. We're currently migrating all the content to our new wiki. If you have time, please register and help us out!

You can still view the source code of every page. Once a page has been copied over to the new wiki, please add a link to it to MigratedPages (the only page which is still editable), to notify the admins to go and blank it.


jSite

A Freesite uploading tool
develped by by Bombe

Note 2010/07/10: This page has been moved to the new wiki and is available here.

What is jSite


jSite is a tool that you can use to insert freesites into the Freenet distributed storage.
Creating a freesite is done in two steps, first you build a website in HTML, then you upload your creation to Freenet. That's when jSite comes into the picture: with a nice user-friendly point-and-click interface and five languages to choose from, uploading freesites couldn't be easier.
jSite is written in Java; it will run on any java-enabled operating system, no need for Windows versions, Mac versions, etc: one file fits all - and that file is jSite.jar

Getting jSite


You can the latest version from the official Freenet website:
http://downloads.freenetproject.org/alpha/jSite/jSite.jar

Using jSite


First and foremost, jSite requires Java 1.5 or better and a Freenet node installed and running.

Howto Page
Learn how to use jSite at the jSite Howto page with Screenhots

Quick Howto

Run the application by typing this at the command line:

java -jar jSite.jar


You should see a window titled Select a Project.





The next window is called Project Files.

If everything is fine, you should see the Project Insert window.

Check that you can visit your site by putting this address into a web browser.

If it works, congratulations! You've just added your freesite to Freenet.

Troubleshooting

If something goes wrong, jSite often displays a very generic error message:
"Insert failed. The insert of the project failed. Some files could not be inserted"

The best way to troubleshoot jSite is to run it with --debug option, as follows:
$ java -jar jSite.jar --debug


Debug message often describe the exact error that happened.

Command line options

jSite has a few command line options that can be seen by using --help option:
$ java -jar jSite.jar --help
--help  shows this cruft
--debug enables some debug output


The important in practice is debug option.

Some Theory

not much, I promise

A word about keys


No need to go into the details of Freenet keys here. Basically you need a key to get a file from Freenet, including html files that freesites are made of.
When you insert a freesite, jSite generates both a public and a private key for your site.

The public key is "the key to the site" that you announce on FMS which Freenet users paste into their browsers to visit your freesite.

The private key is stored on your computer. jSite uses it when you update your freesite, which means that if you lose the directory where jSite stores its data, you won't be able to update your freesite(s). Therefore, you don't want to lose the jSite data directory. Back it up and back up the back-up

So back the f* up!

As we have seen, you definitely want to back up the jSite application data folder.
Remember to update your back-up often, ideally every time you update a freesite.

Windows users
On Windows, jSite data is stored in
C:\documents and settings\<user>\application data\.jSite
where <user> is your user name.
NOTE - Windows hides 'Application Data' folders by default: you may have to change the settings in Windows Explorer.

Real OS's users
If your operating system is Unix-based (that includes Ubuntu and any other Linux distribution, plus another bunch of operating systems, including Mac OSX) the folder you want to back up is:
/home/<user>/.jSite
where <user> is your user name
NOTE: on Unix-based systems, folders with a dot at the beginning of the name are invisible by default. Enable 'show invisible files' in order to see them

Now what?


So far, we have downloaded jSite, we have learned that we can use it to upload freesites into the Freenet distributed storage, and also that it is important to back up a folder called .jSite. Now what?

Now you're ready to try and insert your first freesite:
Click HERE to go to the jSite Howto Page


Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki