Open a terminal and follow the instructions. Commands that use sudo will ask you for your password. (Running Etch? Also see the additional instructions specific to Etch).
Dependencies
First you need to install the dependencies:
sudo apt-get install mercurial python-werkzeug
Optionally install Pygments for syntax highlighting:
sudo apt-get install python-pygments
If your version of python is 2.4, you will also need wsgiref:
sudo apt-get install python-wsgiref
Download the script
This will download the most recent version of the script to the current directory and make it executable:
wget http://devel.sheep.art.pl/hatta/raw-file/tip/hatta.py chmod a+x hatta.py
Run locally
Just execute the script:
./hatta.py
This will create two subdirectories: docs and cache, and also start a new Mercurial repository in the docs directory. Then it will start a web server on port 8080. You can now open your web browser and type http://localhost:8080/ into the address bar to use the wiki.
Note: When Hatta starts, you will see a warning message, it's harmless, seems to be a glitch in the Debian's install of Mercurial, see Running on Debian stable (etch) for more details.
Run locally in existing repository
If you start Hatta in an existing Mercurial repository, it will also create the directories as above, but won't start a new repository in the docs directory – instead all the changes will be commited to your existing repository.
You might want to add the cache directory to .hgignore, so that you are not bothered about the files in it.
Change directories and port
See Script settings.
![[Home]](/+download/logo.png)