# App/Category/Building

From XOWA: the free, open-source, offline wiki application

## Application setup (GUI)

- Navigate to Dashboard/Import/Offline
- Under "Category system", choose "Upgrade to version 2"

## Command-line setup

- Download and extract categorylinks.sql. For example, for Simple Wikipedia, do the following:
  - Navigate to http://dumps.wikimedia.org/simplewiki/latest/
  - Download the file marked simplewiki-latest-categorylinks.sql.gz
  - Unzip simplewiki-latest-categorylinks.sql.gz. When you are done, you will have a file called /xowa/wiki/simple.wikipedia.org/simplewiki-latest-categorylinks.sql
- Download and extract page_props.sql. For example, for Simple Wikipedia, do the following:
  - Navigate to http://dumps.wikimedia.org/simplewiki/latest/
  - Download the file marked simplewiki-latest-page_props.sql.gz
  - Unzip simplewiki-latest-page_props.sql.gz. When you are done, you will have a file called /xowa/wiki/simple.wikipedia.org/simplewiki-latest-page_props.sql
- Open up /xowa/xowa_build.gfs and replace the file with the following:

    app.bldr.pause_at_end_('n');
    app.bldr.cmds {
      add     ('simple.wikipedia.org' , 'text.cat.core');
      add     ('simple.wikipedia.org' , 'text.cat.link');
      add     ('simple.wikipedia.org' , 'text.cat.hidden');
    }
    app.bldr.run;

- Run `java -Xmx512m -jar xowa_linux_64.jar --cmd_file xowa_build.gfs --app_mode cmd`

For Simple Wikipedia, the entire process should take less than 5 minutes. For English Wikipedia, the process will take about 1 hour.

### XOWA

- Main page
- Screenshots
- Video
- Download XOWA
- Download wikis

### Getting started

- Requirements
- Installation
- Simple Wikipedia
- English Wikipedia
- Other Wikipedias

### Android

- Setup
- Video

### Help

- About
- Contents
- Media
- Feedback

### Blog

- Current

### Links

- Wikimedia dumps
- XOWA @ archive.org
- English Wikipedia

### Donate

- archive.org
- Wikipedia