Bitcoin Forum
May 25, 2024, 05:18:21 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: File .bat with Linux?  (Read 745 times)
Buo (OP)
Member
**
Offline Offline

Activity: 112
Merit: 10


View Profile
June 19, 2014, 07:24:53 PM
 #1

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.

Bernard Lerring
Sr. Member
****
Offline Offline

Activity: 294
Merit: 250



View Profile
June 19, 2014, 08:30:05 PM
 #2

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.

Buo (OP)
Member
**
Offline Offline

Activity: 112
Merit: 10


View Profile
June 19, 2014, 08:39:04 PM
 #3

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?

cp1
Hero Member
*****
Offline Offline

Activity: 616
Merit: 500


Stop using branwallets


View Profile
June 19, 2014, 08:42:02 PM
 #4

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

Guide to armory offline install on USB key:  https://bitcointalk.org/index.php?topic=241730.0
cp1
Hero Member
*****
Offline Offline

Activity: 616
Merit: 500


Stop using branwallets


View Profile
June 19, 2014, 08:44:13 PM
 #5

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

Guide to armory offline install on USB key:  https://bitcointalk.org/index.php?topic=241730.0
Buo (OP)
Member
**
Offline Offline

Activity: 112
Merit: 10


View Profile
June 19, 2014, 08:46:55 PM
 #6

Thanks  Smiley

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!