Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running MultiBit from a USB version 0.5.9 #119

Closed
soslug opened this issue May 1, 2013 · 14 comments
Closed

Running MultiBit from a USB version 0.5.9 #119

soslug opened this issue May 1, 2013 · 14 comments
Labels
Milestone

Comments

@soslug
Copy link

soslug commented May 1, 2013

Bug report
Operating System: Ubuntu 12.04 LTS 64bit
MultiBit Version: 0.5.9 however this problem was seen on other versions
Java Version used openjdk-7-jre
Steps to replicate the problem:

  1. Insert USB drive after PC is turn on and in desktop this causes the filemanager to launch
  2. open a console and navigate to usb drive
  3. download installer into usb drive
  4. change directory via console to usb drive
  5. run command java -jar multibit-0.5.9-linux.jar
  6. change install path to that of the usb my case /media/MULTIBIT/MultiBit-0.5.9
  7. switch off setup shortcuts do not need them
  8. finish installation
  9. change flag permissions to allow executable
  10. create a file called multibit.properties thus
  11. touch MultiBit-0.5.9/multibit.properties
  12. via the console and still within usb directory launch executable
    java -jar MultiBit-0.5.9/multibit-exe.jar

After every instance the only place MultiBit directory is made is in the /home/user directory I do not seem able to change this. My MultiBit directory is on the same USB as the executable directory thus:-

MultiBit
MultiBit-0.5.9

Following these instructions below it should have been possible to run MultiBit from a USB key where the data is also stored.

Linux

Installing MultiBit to run on a USB drive for Linux.

Insert your USB drive into your Linux machine.
Run the MultiBit Linux installer. On the screen with the question "Select the installation path:" click on the "Browse" button and select a directory on your USB drive.
Run the rest of the installation as normal.
Once the installation is done, navigate to your USB drive's MultiBit installation directory. It is the directory with the "multibit-exe.jar" file.
Create a new text file called (exactly) "multibit.properties". Leave the file empty. This is the MultiBit configuration file. Having a copy in the installation directory (rather than the user's application data) tells MultiBit to run locally.
To run MultiBit locally, double click on the multibit-exe.jar. If this does not start up the jar file, open a command line to your installation directory and run "java -jar multibit-exe.jar".

Try as I might the ONLY place MultiBit directory installs to is the linux /home/user directory and nowhere else despite the addition of an empty file as specified above.

@jim618
Copy link
Contributor

jim618 commented May 1, 2013

In your step 12 try:

  1. cd to the MultiBit-0.5.9 directory. Via the console and still
    within usb directory launch executable

    java -jar multibit-exe.jar

From memory I think it looks in the launch directory for the
multibit.properties

On Wed, May 1, 2013, at 04:43 PM, soslug wrote:

Bug report
Operating System: Ubuntu 12.04 LTS 64bit
MultiBit Version: 0.5.9 however this problem was seen on other versions
Java Version used openjdk-7-jre
Steps to replicate the problem:

  1. Insert USB drive after PC is turn on and in desktop this causes the
    filemanager to launch
  2. open a console and navigate to usb drive
  3. download installer into usb drive
  4. change directory via console to usb drive
  5. run command java -jar multibit-0.5.9-linux.jar
  6. change install path to that of the usb my case
    /media/MULTIBIT/MultiBit-0.5.9
  7. switch off setup shortcuts do not need them
  8. finish installation
  9. change flag permissions to allow executable
  10. create a file called multibit.properties thus
  11. touch MultiBit-0.5.9/multibit.properties
  12. via the console and still within usb directory launch executable
    java -jar MultiBit-0.5.9/multibit-exe.jar

After every instance the only place MultiBit directory is made is in the
/home/user directory I do not seem able to change this. My MultiBit
directory is on the same USB as the executable directory thus:-

MultiBit
MultiBit-0.5.9

Following these instructions below it should have been possible to run
MultiBit from a USB key where the data is also stored.

Linux

Installing MultiBit to run on a USB drive for Linux.

Insert your USB drive into your Linux machine.
Run the MultiBit Linux installer. On the screen with the question "Select
the installation path:" click on the "Browse" button and select a
directory on your USB drive.
Run the rest of the installation as normal.
Once the installation is done, navigate to your USB drive's MultiBit
installation directory. It is the directory with the "multibit-exe.jar"
file.
Create a new text file called (exactly) "multibit.properties". Leave the
file empty. This is the MultiBit configuration file. Having a copy in the
installation directory (rather than the user's application data) tells
MultiBit to run locally.
To run MultiBit locally, double click on the multibit-exe.jar. If this
does not start up the jar file, open a command line to your installation
directory and run "java -jar multibit-exe.jar".

Try as I might the ONLY place MultiBit directory installs to is the linux
/home/user directory and nowhere else despite the addition of an empty
file as specified above.


Reply to this email directly or view it on GitHub:
#119

https://multibit.org Money, reinvented

@soslug
Copy link
Author

soslug commented May 1, 2013

Hello jim yes thanks i tried this but result is that a new empty
wallet is installed in the directory
/media/MULTIBIT/MultiBit-0.5.9/multibit.wallet

this log and the debug log are attached as attachments

Previous log

15:42:30.433 [main] INFO o.m.ApplicationDataDirectoryLocator -
Application data directory.1 = '/home/delboy/MultiBit'
15:43:22.222 [main] INFO o.m.ApplicationDataDirectoryLocator -
Application data directory.1 = '/home/delboy/MultiBit'
16:06:41.246 [main] INFO o.m.ApplicationDataDirectoryLocator -
Application data directory.1 = '/home/delboy/MultiBit'
16:08:45.396 [main] INFO o.m.ApplicationDataDirectoryLocator -
Application data directory.1 = '/home/delboy/MultiBit'

Quoting Jim Burton notifications@github.com:

In your step 12 try:

  1. cd to the MultiBit-0.5.9 directory. Via the console and still
    within usb directory launch executable

    java -jar multibit-exe.jar

From memory I think it looks in the launch directory for the
multibit.properties

On Wed, May 1, 2013, at 04:43 PM, soslug wrote:

Bug report
Operating System: Ubuntu 12.04 LTS 64bit
MultiBit Version: 0.5.9 however this problem was seen on other versions
Java Version used openjdk-7-jre
Steps to replicate the problem:

  1. Insert USB drive after PC is turn on and in desktop this causes the
    filemanager to launch
  2. open a console and navigate to usb drive
  3. download installer into usb drive
  4. change directory via console to usb drive
  5. run command java -jar multibit-0.5.9-linux.jar
  6. change install path to that of the usb my case
    /media/MULTIBIT/MultiBit-0.5.9
  7. switch off setup shortcuts do not need them
  8. finish installation
  9. change flag permissions to allow executable
  10. create a file called multibit.properties thus
  11. touch MultiBit-0.5.9/multibit.properties
  12. via the console and still within usb directory launch executable
    java -jar MultiBit-0.5.9/multibit-exe.jar

After every instance the only place MultiBit directory is made is in the
/home/user directory I do not seem able to change this. My MultiBit
directory is on the same USB as the executable directory thus:-

MultiBit
MultiBit-0.5.9

Following these instructions below it should have been possible to run
MultiBit from a USB key where the data is also stored.

Linux

Installing MultiBit to run on a USB drive for Linux.

Insert your USB drive into your Linux machine.
Run the MultiBit Linux installer. On the screen with the question "Select
the installation path:" click on the "Browse" button and select a
directory on your USB drive.
Run the rest of the installation as normal.
Once the installation is done, navigate to your USB drive's MultiBit
installation directory. It is the directory with the "multibit-exe.jar"
file.
Create a new text file called (exactly) "multibit.properties". Leave the
file empty. This is the MultiBit configuration file. Having a copy in the
installation directory (rather than the user's application data) tells
MultiBit to run locally.
To run MultiBit locally, double click on the multibit-exe.jar. If this
does not start up the jar file, open a command line to your installation
directory and run "java -jar multibit-exe.jar".

Try as I might the ONLY place MultiBit directory installs to is the linux
/home/user directory and nowhere else despite the addition of an empty
file as specified above.


Reply to this email directly or view it on GitHub:
#119

https://multibit.org Money, reinvented


Reply to this email directly or view it on GitHub:
#119 (comment)

@jim618
Copy link
Contributor

jim618 commented May 1, 2013

That is expected behaviour. You are running MultiBit locally from the
MultiBit-0.5.9 directory. It sees there is no wallet in there and
creates a default one.

You can now open your other wallets using File | Open Wallet and it will
remember them in the MultiBit 0.5.9 multibit.properties. Ie on your USB
drive.

The default wallet you can just do a File | Close Wallet on. (or delete
it if you really want - look at the configuration.txt to show the File |
Delete Wallet).

On Wed, May 1, 2013, at 05:07 PM, soslug wrote:

Hello jim yes thanks i tried this but result is that a new empty
wallet is installed in the directory
/media/MULTIBIT/MultiBit-0.5.9/multibit.wallet

this log and the debug log are attached as attachments

Previous log

15:42:30.433 [main] INFO o.m.ApplicationDataDirectoryLocator -
Application data directory.1 = '/home/delboy/MultiBit'
15:43:22.222 [main] INFO o.m.ApplicationDataDirectoryLocator -
Application data directory.1 = '/home/delboy/MultiBit'
16:06:41.246 [main] INFO o.m.ApplicationDataDirectoryLocator -
Application data directory.1 = '/home/delboy/MultiBit'
16:08:45.396 [main] INFO o.m.ApplicationDataDirectoryLocator -
Application data directory.1 = '/home/delboy/MultiBit'

Quoting Jim Burton notifications@github.com:

In your step 12 try:

  1. cd to the MultiBit-0.5.9 directory. Via the console and still
    within usb directory launch executable

    java -jar multibit-exe.jar

From memory I think it looks in the launch directory for the
multibit.properties

On Wed, May 1, 2013, at 04:43 PM, soslug wrote:

Bug report
Operating System: Ubuntu 12.04 LTS 64bit
MultiBit Version: 0.5.9 however this problem was seen on other versions
Java Version used openjdk-7-jre
Steps to replicate the problem:

  1. Insert USB drive after PC is turn on and in desktop this causes the
    filemanager to launch
  2. open a console and navigate to usb drive
  3. download installer into usb drive
  4. change directory via console to usb drive
  5. run command java -jar multibit-0.5.9-linux.jar
  6. change install path to that of the usb my case
    /media/MULTIBIT/MultiBit-0.5.9
  7. switch off setup shortcuts do not need them
  8. finish installation
  9. change flag permissions to allow executable
  10. create a file called multibit.properties thus
  11. touch MultiBit-0.5.9/multibit.properties
  12. via the console and still within usb directory launch executable
    java -jar MultiBit-0.5.9/multibit-exe.jar

After every instance the only place MultiBit directory is made is in the
/home/user directory I do not seem able to change this. My MultiBit
directory is on the same USB as the executable directory thus:-

MultiBit
MultiBit-0.5.9

Following these instructions below it should have been possible to run
MultiBit from a USB key where the data is also stored.

Linux

Installing MultiBit to run on a USB drive for Linux.

Insert your USB drive into your Linux machine.
Run the MultiBit Linux installer. On the screen with the question "Select
the installation path:" click on the "Browse" button and select a
directory on your USB drive.
Run the rest of the installation as normal.
Once the installation is done, navigate to your USB drive's MultiBit
installation directory. It is the directory with the "multibit-exe.jar"
file.
Create a new text file called (exactly) "multibit.properties". Leave the
file empty. This is the MultiBit configuration file. Having a copy in the
installation directory (rather than the user's application data) tells
MultiBit to run locally.
To run MultiBit locally, double click on the multibit-exe.jar. If this
does not start up the jar file, open a command line to your installation
directory and run "java -jar multibit-exe.jar".

Try as I might the ONLY place MultiBit directory installs to is the linux
/home/user directory and nowhere else despite the addition of an empty
file as specified above.


Reply to this email directly or view it on GitHub:
#119

https://multibit.org Money, reinvented


Reply to this email directly or view it on GitHub:
#119 (comment)


Reply to this email directly or view it on GitHub:

#119 (comment)

https://multibit.org Money, reinvented

@soslug
Copy link
Author

soslug commented May 1, 2013

Perhaps I am missing something here but my wallets are stored in MultiBit directory on the USB ie

MultiBit
MultiBit-0.5.9

the top one has all my wallets the MultiBit-0.5.9 has multibit-0.5.9-exe.jar opens it writes a new wallet container in /home/user and whilst I can work with this it means having multiple MultiBit directories on each machine I use it on, this is not the behaviour I really want.

I have had it running before I know i have because it is the only way I do run it. I run the command from the stick and it finds my MultiBit directory on the stick why it doesn't work now I don't know but it did enable me to run the executable without installing a new new MultiBit directory on a home drive that serves no purpose.

@jim618
Copy link
Contributor

jim618 commented May 1, 2013

If you in the help in Troubleshooting there is a section on the search
path MultiBit uses for the multibit.properties.

It basically looks first in the directory it is running in and uses the
multibit.properties there if it exists.

The multibit.properties specifies where the wallets are.

So:

  1. put a multibit.properties in the installation directory.
  2. run MultiBit from_the_installation_directory
  3. open your wallets

You need to start Java from the installation directory on your USB drive
not another directory.

On Wed, May 1, 2013, at 06:12 PM, soslug wrote:

Perhaps I am missing something here but my wallets are stored in MultiBit
directory on the USB ie

MultiBit
MultiBit-0.5.9

the top one has all my wallets the MultiBit-0.5.9 has
multibit-0.5.9-exe.jar opens it writes a new wallet container in
/home/user and whilst I can work with this it means having multiple
MultiBit directories on each machine I use it on, this is not the
behaviour I really want.

I have had it running before I know i have because it is the only way I
do run it. I run the command from the stick and it finds my MultiBit
directory on the stick why it doesn't work now I don't know but it did
enable me to run the executable without installing a new new MultiBit
directory on a home drive that serves no purpose.


Reply to this email directly or view it on GitHub:

#119 (comment)

https://multibit.org Money, reinvented

@soslug
Copy link
Author

soslug commented May 1, 2013

Hello Jim, yes I have create an empty file called multibit.properties and this is updating with the new path info for the wallets in the previous folder it, has still created a new empty wallet in the launch folder which is undesirable and untidy but this can be deleted.

You are correct in that if I run java -jar multibit-exe.jar in the launch directory it finds the wallets newly imported into Multibit system. However if I now run from filemanager in the launch folder a new MultiBit folder is created with wallets in the /home/user directory. So fixed sought of thanks for the help.

@soslug
Copy link
Author

soslug commented May 1, 2013

I will request some features that will allow for the wallet directory to be specified in the installer if that is possible.

@jim618
Copy link
Contributor

jim618 commented May 1, 2013

Wallets can be anywhere. There is no 'wallets directory'.

@soslug
Copy link
Author

soslug commented May 1, 2013

True but if you were installing MultiBit to a USB drive or hard disk, would it not be helpful to specify where your wallets are contained if they were in one place or not. Surely it would overcome the problem I have had after al I followed the instructions as detailed and this didn't work. I have had to ask quite a few questions which you kindly responded very quickly I might add, to get mine to work. As I have indicated before you can not expect someone with low computer experience to know how to view his / her wallets from a USB if it is not extremely simple. At least that is my opinion.

The MultiBit directory contains all my wallets and is the default wallet directory for MultiBit at least every time I have run it.

@jim618
Copy link
Contributor

jim618 commented May 1, 2013

I am not disagreeing that a 'portable mode'mshould be easier.

Just saying it does not make sense to have a setting for the directory your wallets are in. You might have two directories or a dozen directories with wallets in.

There is already an issue for making MultiBit portable.

@soslug
Copy link
Author

soslug commented May 1, 2013

I take your point but does not all the wallets that are managed by MultiBit exist in the MultiBit directory true you wouldn't want to add individual wallets at point of installation, but I am only talking about the wallets that MultiBit manages. If this directory exist in multiple places surely by specifying which one, be it on a usb or whatever does this not make the task of installation simpler?

@jim618
Copy link
Contributor

jim618 commented May 1, 2013

We are obviously talking at cross purposes. I'll try and explain where the difference is.

You install MultiBit into an installation directory.
When you install it normally you also have a user data directory. In here are various things (checkpoints, block store, multibit.properties etc).
It is also the default location of the first wallet that is created to 'keep the user happy'.

When you run according to the instructions in the 'how to run MultiBit from a USB drive' it has the installation directory and the user data directory in the same directory.

The point is: you can create and open your wallets from anywhere. Regardless of where the program is stored or the user data directory. The wallets MultiBit manages YOU have in a single directory but in general they can be anywhere.

I have wallets literally all over the place. You just navigate to where your wallet is in the Open file dialog and open it. Create is the same. You can create a wallet anywhere and MultiBit will remember where it is.

Getting things running smoothly on a USB drive is NOT about specifying where the wallets are. It is about streamlining the setup regardless of how a particular user stores their wallets.

I hope that distinction is clear.

@gary-rowe gary-rowe added the MBHD label Apr 10, 2014
@gary-rowe
Copy link
Contributor

Adding MBHD label in case we want to support this use case.

@gary-rowe gary-rowe modified the milestone: Support Jun 18, 2015
@gary-rowe
Copy link
Contributor

MBHD does not support running from USB. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants