Author Topic: How to add wallet to running server?  (Read 1539 times)

g-force on: April 18, 2015, 11:23:00 AM

  • Fresh Fimker
  • *
  • Posts: 2
    • View Profile
Hi, I am new to FIM, NXT and Raspberry Pi, and I have a question related to those.

I have followed the instructions in this thread https://forum.fimk.fi/index.php?topic=24 to get my FIMK server up and running on my Raspberry Pi, and so far so good. I cannot access the web interface, however, and I'm not even sure it is properly instantiated, as I think that is separate from getting the fim.jar running.

My question is, is there some way to get my wallet "attached" to the server without using the web interface, so that I can start forging? And if not, what should I do to get the web interface running?

For clarity, what I have done is the following:
- Downloaded the FIM Linux package, and extracted it (wget https://github.com/fimkrypto/mofowallet/releases/download/v0.4.1/mofowallet.linux64-0.4.1.zip)
- Installed the NXT client using the instructions in case #1 here http://wiki.nxtcrypto.org/wiki/How-To:InstallNRSRaspberryPi, but switching out the nxt.jar with the fim.jar (renamed to nxt.jar)
- Started the whole thing, which worked fine. The block chain is fully downloaded.

I've tried allowing connections from my computer's IP as instructed, and tried the different ports mentioned, but cannot access the web interface.

Any help would be appreciated. :)

Polarpanda #1 on: April 18, 2015, 12:11:13 PM

  • Fimker
  • **
  • Posts: 70
    • View Profile
In some setups one has to edit the the following nxt-default.properties file:

the path could be something like this:
/fim/conf/nxt-default.properties

find line with
nxt.enableAPIServer=false

and change it to
nxt.enableAPIServer=true

Dirk Diggler #2 on: April 18, 2015, 12:17:01 PM

  • FIMK Staff
  • *****
  • Posts: 486
    • View Profile
    • Krypto Fin ry
Hi, I am new to FIM, NXT and Raspberry Pi, and I have a question related to those.

I have followed the instructions in this thread https://forum.fimk.fi/index.php?topic=24 to get my FIMK server up and running on my Raspberry Pi, and so far so good. I cannot access the web interface, however, and I'm not even sure it is properly instantiated, as I think that is separate from getting the fim.jar running.

My question is, is there some way to get my wallet "attached" to the server without using the web interface, so that I can start forging? And if not, what should I do to get the web interface running?

For clarity, what I have done is the following:
- Downloaded the FIM Linux package, and extracted it (wget https://github.com/fimkrypto/mofowallet/releases/download/v0.4.1/mofowallet.linux64-0.4.1.zip)
- Installed the NXT client using the instructions in case #1 here http://wiki.nxtcrypto.org/wiki/How-To:InstallNRSRaspberryPi, but switching out the nxt.jar with the fim.jar (renamed to nxt.jar)
- Started the whole thing, which worked fine. The block chain is fully downloaded.

I've tried allowing connections from my computer's IP as instructed, and tried the different ports mentioned, but cannot access the web interface.

Any help would be appreciated. :)

First you should get the server package instead of the desktop software (mofowallet is for the desktop).
Then when installed on your raspi enable the API server (which doubles as the server that serves the UI over port 7886).

To enable that API server create a file called nxt.properties in the conf folder (there should already be a file called nxt-default.properties in that folder).
In nxt.properties put.

nxt.enableAPIServer=true

Now start the server (on raspi probably with run.sh script).

sh run.sh

The UI should now be available on http://IP-OF-YOUR-RASPI:7886 which you can access from any browser on the same network.

You can now start forging by going through the UI.
FIMK Developer | GPG fingerprint: CEF2 7C39 43BE 6800 504E  71BC 7E87 A7B0 AC34 E2D5 | mofowallet.com | blog

g-force #3 on: April 18, 2015, 06:49:23 PM

  • Fresh Fimker
  • *
  • Posts: 2
    • View Profile
Wow, that was easy. Thanks! I guess I should have asked here before wasting 7-8 hours trying to get those outdated instructions working. :)

Just one thing. I can't seem to get the web interface to open, except locally. I solved that particular problem by using an SSH tunnel and SOCKS proxy, so now my wallet is set and the forging is going. Could be some odd quirk in my internal network, though.

Thanks for your kind (and fast) help. I'm in business! 8)