mvnForum Homepage


Posted by tcrawfordjakarta at Jun 6, 2010 4:19:09 AM
Re: How to have a search by word(s)
If you have a sword install on a linux box with sword utilities installed you can easily make indexed modules and put them in your Ipod Sword

If your modules are in /usr/share/sword or /usr/local/share/sword or somewhere else but not in you home directory at ./sword then you need to get to root to index your modules.

$sudo su
enter your password if you are using sudo
#

or

$su
enter your root password
#

If your modules are in your home directory
$ cd ~
$ cd .sword then don't use the root commands, see the local directory commands.


For root:


# mkfastmod <modname> -- if you are not sure of the module name just put a guess in and it will show the module names.

then

# cd /usr/share/sword
# zip -r yourmodule mods.d/yourmodule.conf modules/texts/ztext/yourmodule

you should now have a zip file called yourmodule.zip in the /usr/share/sword directory.

# mv yourmodule.zip /home/tom (your home directory)

# chown tom:tom yourmodule.zip (use your home directory name:name)

# exit (leave root)

$ chmod 665 yourmodule.zip


If your modules are in your home directory

$ mkfastmod <modname>

$ cd ~
$ cd .sword
$ zip -r yourmodule mods.d/yourmodule.conf modules/texts/ztext/yourmodule

you should now have a zip file called yourmodule.zip in the ./sword/ directory of your home directory.

$ mv yourmodule.zip ~
$ cd ..

you should now have yourmodule.zip in your home directory

Attach your Ipod to your linux computer

On your Ipod open PocketSword and choose More --> Preferences and set the Module Maintainer Mode On

Go back to More and choose Downloads and open the * symbol on the right top which will open a page.

Open your Chrome browser -- if you don't have chrome download it, because this doesn't work on Firefox.

put the IP address in your browser for example http://192.168.100.1:49604 (the last port number will change but it should be picking up your computer's ip address (the 192.168.100.1 (or whatever your ip address is). If your ipod sleeps before you get this all done, exit PocketSword and restart. If you get that it cannot find the page, keep trying, eventually the Installed Modules page comes up.

Click the Choose File button and navigate to yourmodule.zip that will show on the page.

Click Submit, if all goes well you will see your module installed. If it doesn't install you probably messed up the zip file. Check your zip file -- use Applications Archive Manager and you should see the following structure when the program opens the file:

folder mods.d
folder modules

If those are correct -- check to see where your text is, it could be in modules/texts/rawtext -- if it is you need to change the path name when you zip the file.

Hope this helps Tom Crawford