Bitcoin Forum

Other => Beginners & Help => Topic started by: Buo on June 19, 2014, 07:24:53 PM



Title: File .bat with Linux?
Post by: Buo on June 19, 2014, 07:24:53 PM
To start the bitcoin-qt and store the blockchain in the same directory I use this .bat file in windows:

Code:
IF NOT EXIST .\DATA mkdir DATA
start bitcoin-qt.exe -min -datadir=.\DATA
exit

How can I create a similar file in Linux?
I'm a totally beginner with it but I need Ubuntu for cold storage.


Title: Re: File .bat with Linux?
Post by: Bernard Lerring on June 19, 2014, 08:30:05 PM
If you're using bitcoin core (bitcoin-qt) then I think I'm right in saying that you need an Internet connection to refresh/verify the blockchain. So this is not proper cold storage.

Try electrum instead.



Title: Re: File .bat with Linux?
Post by: Buo on June 19, 2014, 08:39:04 PM
No I don't need internet connection, I just want to generate the private keys in an offline linux live-cd.

Where does linux bitcoin-qt store the blockchain?
In the same directory of the qt or in another directory like in windows?


Title: Re: File .bat with Linux?
Post by: cp1 on June 19, 2014, 08:42:02 PM
Code:
#!/bin/bash
if [ ! -f ./DATA ]; then
    mkdir ./DATA
fi
/usr/local/bin/bitcoin-qt -min -datadir=./DATA

save it as run_bitcoin
then type:
sh run_bitcoin
or:
chmod u+x run_bitcoin
./run_bitcoin

type which bitcoin-qt to make sure it's in /usr/local/bin


Title: Re: File .bat with Linux?
Post by: cp1 on June 19, 2014, 08:44:13 PM
No I don't need internet connection, I just want to generate the private keys in an offline linux live-cd.

Where does linux bitcoin-qt store the blockchain?
In the same directory of the qt or in another directory like in windows?

Normally it's in your home directory in .bitcoin


Title: Re: File .bat with Linux?
Post by: Buo on June 19, 2014, 08:46:55 PM
Thanks  :)