Bitcoin Forum

Bitcoin => Project Development => Topic started by: bbulker on March 24, 2011, 04:03:42 AM



Title: My portable Bitcoin for Flash Drives
Post by: bbulker on March 24, 2011, 04:03:42 AM
Not sure if this has been done yet or if this is the right section, but I felt like sharing my portable setup that I keep on an encrypted flash drive.

Just copy your wallet to the DATA folder and run "launch.bat".


-Link removed, tutorial at post #6.-


Title: Re: My portable Bitcoin for Flash Drives
Post by: FreeMoney on March 24, 2011, 04:24:35 AM
I apologize, but I need to warn people to be careful. This seems dangerous.


Title: Re: My portable Bitcoin for Flash Drives
Post by: Cryptoman on March 24, 2011, 05:02:26 AM
I apologize, but I need to warn people to be careful. This seems dangerous.

+1


Title: Re: My portable Bitcoin for Flash Drives
Post by: bbulker on March 24, 2011, 05:09:09 AM
I apologize, but I need to warn people to be careful. This seems dangerous.

You can replace everything in the APP folder if you don't trust me, which I don't blame you. The only important part really is the launcher:

Code:
start %cd%\APP\bitcoin.exe -server -datadir="%cd%\DATA"
EXIT


Title: Re: My portable Bitcoin for Flash Drives
Post by: Anonymous on March 24, 2011, 08:38:00 AM
I apologize, but I need to warn people to be careful. This seems dangerous.

You can replace everything in the APP folder if you don't trust me, which I don't blame you. The only important part really is the launcher:

Code:
start %cd%\APP\bitcoin.exe -server -datadir="%cd%\DATA"
EXIT

I'll wait till someone else installs it first .





Title: Re: My portable Bitcoin for Flash Drives
Post by: bbulker on March 24, 2011, 09:22:30 AM
Didn't think this would cause such a big fuss, forget my download, removed from OP, here is a tutorial on how I made my install portable:


1) Create an empty folder on your flashdrive called "Bitcoin".
2) Create folders "APP" and "DATA" in the "Bitcoin" folder.
3) Copy all files from "AppData\Roaming\Bitcoin" into "DATA" folder.
4) Copy all files from "Program Files\Bitcoin" into "APP" folder.
5) Open a new Notepad document and paste the following launch code:

Code:
start %cd%\APP\bitcoin.exe -server -datadir="%cd%\DATA"
EXIT

6) Save document in the newly created "Bitcoin" folder as "launch.bat".
7) Run "launch.bat" to run Bitcoin.


Title: Re: My portable Bitcoin for Flash Drives
Post by: Cryptoman on March 24, 2011, 05:27:31 PM
Appreciate the contribution.  There have been some wallet scams lately, so that is the reason for an abundance of caution.


Title: Re: My portable Bitcoin for Flash Drives
Post by: zellfaze on March 29, 2011, 07:11:57 PM
I have one that is very similar.  It though also adds some nodes.   I use it for when I have to run bitcoin through tor.

Code:
@echo off
echo Launching BitCoin...
echo ----------------------------------------
echo Please make sure to exit before removal!
echo ----------------------------------------
bitcoin.exe -datadir=./data -addnode=69.164.218.197 -addnode=217.157.1.202 -addnode=178.63.15.200 -addnode=109.75.176.193 -addnode=174.120.185.74

The warning at the beginning of the batch file is so that you are reminded to close bitcoin before removing your flash drive.

Also, I can vouch for bbulker's batch file.  There is nothing malicious in his program.


Title: Re: My portable Bitcoin for Flash Drives
Post by: theGECK on April 01, 2011, 12:58:08 AM
Would this work without the server switch, or is that necessary to set the data folder?


Title: Re: My portable Bitcoin for Flash Drives
Post by: Alex Beckenham on April 01, 2011, 01:38:36 AM
Also, I can vouch for bbulker's batch file.  There is nothing malicious in his program.

Quote
Posts: 2

You need more vouching credits :)


Title: Re: My portable Bitcoin for Flash Drives
Post by: cw on April 01, 2011, 04:57:56 AM
The only important part really is the launcher:

You better have TrueCrypt (or simiar) installed in the Flash Drive and keep Bitcoin data in an encrypted file/partition.


Title: Re: My portable Bitcoin for Flash Drives
Post by: bbulker on April 02, 2011, 06:34:39 PM
The only important part really is the launcher:

You better have TrueCrypt (or simiar) installed in the Flash Drive and keep Bitcoin data in an encrypted file/partition.

Yes, that is very important. When I said the launcher is the only important part, that was in regards to making it work regardless of drive letter and path, as I included an unmodified Bitcoin app in my original link.

I keep a portable TrueCrypt on my Flash Drive to mount the standard TrueCrypt volume that contains my portable Bitcoin. I also backup my wallet to my harddrive regularly since data on Flash Drives can easily become damaged.


Title: Re: My portable Bitcoin for Flash Drives
Post by: zellfaze on April 05, 2011, 02:10:06 PM
Also, I can vouch for bbulker's batch file.  There is nothing malicious in his program.

Quote
Posts: 2

You need more vouching credits :)


You're right.  I forget that I start with no reputation when I join a new forum.  Forgive me.

Quote
You better have TrueCrypt (or simiar) installed in the Flash Drive and keep Bitcoin data in an encrypted file/partition.

I keep my portable copy of bitcoin on a flash drive with hardware based encryption.  At some point I'll add TrueCrypt to the mix as well, but I haven't had the time yet.


Title: Re: My portable Bitcoin for Flash Drives
Post by: dishwara on April 18, 2011, 11:10:55 PM
Nice portable edition. Good work.

+10 for your work.

I just created folder & encrypted the folder with windows encryption. job done. perfect & simple.


Title: Re: My portable Bitcoin for Flash Drives
Post by: lulzplzkthx on April 18, 2011, 11:34:33 PM
Just by reading the batch file, it's valid and safe. I plan on using this soley in a few. I think it would be nice to post this on the main page as a Windows Portable edition.

EDIT: You can remove license.txt, readme.txt, and src/ if you are short on space. ;)


Title: Re: My portable Bitcoin for Flash Drives
Post by: Alex Beckenham on April 21, 2011, 07:47:05 AM
Thanks everyone, I'm finally getting around to setting up my savings account.

When using Truecrypt you could just have the data directory encrypted and not the program files...

eg.

launcher.bat says:
bitcoin.exe -datadir=x:\data

Truecrypt container : data.tc
Contains the bitcoin data directory which you always make sure to mount as x:\ (or whatever drive letter you've chosen in launcher.bat).


Title: Re: My portable Bitcoin for Flash Drives
Post by: Alex Beckenham on April 21, 2011, 04:29:08 PM
Could someone answer a quick question... what is the 'database' directory exactly? And are files such as log.0000000002 necessary?

There's 257mb of files in there which has made my thumb drive so full that bitcoin isn't even able to download the full block chain.



Title: Re: My portable Bitcoin for Flash Drives
Post by: theymos on April 21, 2011, 06:00:11 PM
Could someone answer a quick question... what is the 'database' directory exactly? And are files such as log.0000000002 necessary?

You can delete them. They contain journaling information in case database recovery is necessary.