Pages:
Author

Topic: sx command line utilities - Empower The Sysadmin With Bitcoin Tools - page 3. (Read 240156 times)

newbie
Activity: 50
Merit: 0
Okay, I get how to install it, but how do I actually run it so obelisk will sync with testnet instead of mainnet?

what I said on the previous page:  " If you run 'sx-install.sh --help' then it shows you some usage info. "

Regards,
RTFM.

And tell me where it mentions anything about testnet. It doesn't. I would RTFM if there was a FM.

Code:
~$ bash install-sx.sh --help

 [+] Welcome to S(pesmilo)X(changer).

 [+] Install script help:
 --> To execute this script type:
 
 --> To execute this script and install at a specific path type:
 
 This script will install libbitcoin, libwallet, obelisk and sx tools.
 The standard path for the installation is /usr/local/
 The stardard path for the conf files is /etc.
newbie
Activity: 50
Merit: 0
Okay, I get how to install it, but how do I actually run it so obelisk will sync with testnet instead of mainnet?

what I said on the previous page:  " If you run 'sx-install.sh --help' then it shows you some usage info. "

Regards,
RTFM.
newbie
Activity: 50
Merit: 0
Okay, I get how to install it, but how do I actually run it so obelisk will sync with testnet instead of mainnet?
legendary
Activity: 1232
Merit: 1076
try --enable-leveldb

also as per your question before, try installing under different users and configuring your environment variables accordingly (as install-sx.sh tells you).
newbie
Activity: 50
Merit: 0
Hm, I think I figured out what I need to do, but now I'm getting the following when building obelisk:

Code:
In file included from worker/main.cpp:8:0:
worker/node_impl.hpp:60:5: error: ‘leveldb_blockchain’ in namespace ‘obelisk::bc’ does not name a type
newbie
Activity: 50
Merit: 0
If you run 'sx-install.sh --help' then it shows you some usage info. You can either pass the installation prefix and data dir to the install script or just edit the install script variables at the top. That would be one way to achieve what you would like, as you could have one datadir /srv/obelisk-main and another /srv/obelisk-test - I don't know if you need different binaries but it wouldn't hurt as you can test new versions then without affecting the main copy.
newbie
Activity: 50
Merit: 0
Forgive me if this is not the best location to post about Obelisk.

How do you install obelisk mainnet and testnet side by side on the same computer?

I have used the install_sx.sh script to install Obelisk mainnet. I am running Linux.

Thanks.
legendary
Activity: 1232
Merit: 1076
Because the old repo links haven't been fixed, I decided to take another look at the install-sx script. I fixed several bugs (the wrong repo links and sx always failing on Arch due to being run with python3), simplified the logic, and added a feature (you can now use a command-line switch to build and install the develop branches of the repos.)

Before I post it, I want to say, I am not the greatest at bash, and I did not test this. That means look it over before running it.

You can find it here: https://ottrbutt.com/tmp/wolf-install-sx.sh

OK, will you merge this with the latest version, and I will commit it to git for you.

Last changes (see veox):
https://github.com/spesmilo/sx/commits/develop

Download:
https://github.com/spesmilo/sx/raw/develop/install-sx.sh

BTW we have --develop switch now in install-sx.sh
legendary
Activity: 1232
Merit: 1076
soon I'm going to be removing the old electrum deterministic wallet commands. people should switch to using the newer HD commands which all wallets (electrum included) are adopting.
legendary
Activity: 1232
Merit: 1076
SX may release - stealth tools, EC commands, HD keys

See the tutorials on HD keys and stealth payments.

Code:
$ sx stealth-newkey
Stealth address: vJmwY32eS5VDC2C4GaZyXt7i4iCjzSMZ1XSd6KbkA7QbGE492akT2eZZMjCwWDqKRSYhnSA8Bgp78KeAYFVCi8ke5mELdoYMBNep7L
Scan secret: af4afaeb40810e5f8abdbb177c31a2d310913f91cf556f5350bca10cbfe8b9ec
Spend secret: d39758028e201e8edf6d6eec6910ae4038f9b1db3f2d4e2d109ed833be94a026
$ sx mktx txfile.tx --output vJmwY32eS5VDC2C4GaZyXt7i4iCjzSMZ1XSd6KbkA7QbGE492akT2eZZMjCwWDqKRSYhnSA8Bgp78KeAYFVCi8ke5mELdoYMBNep7L:100
Added output sending 100 Satoshis to 1BjqrpQqr4tY5YPQkL8aG7NGkFbTbiuVu.

Code:
$ SEED=$(sx hd-seed)
$ echo $SEED
xprv9s21ZrQH143K3YEx9tNjNtm6FJJHWuKRMmnXw42Eq6RiKt7oRpkKViHPJDnVvVZweqnjxEn6UsFLmztqCc5STduaMMGbwxgwMEkR8xM5wbK
$ echo $SEED | sx hd-seed | sx hd-priv 0 | sx hd-priv 0 | sx hd-priv 1 --hard
xprv9zShfTYMrPQdXBs1x4zYcf99DGyvykdvYxfdovarBZTh7RTZZ5vNgrdS4eQDPTxN9YnjSzfjVf6eWvEKuNubwLUoEYNg5cDfKp5RQVmYj2x

Code:
$ sx help
...
EC MATH
   ec-add-modp                Calculate the result of INTEGER + INTEGER.
   ec-multiply                Multiply an integer and a point together.
   ec-tweak-add               Calculate the result of POINT + INTEGER * G.
legendary
Activity: 2058
Merit: 1452
the installation script at http://sx.dyne.org/install-sx.sh needs to be updated because the libbitcoin, libwallet and obelisk git repos have moved.
legendary
Activity: 1232
Merit: 1076
develop branch has new hd keys commands:

Code:
HD KEYS
   hd-priv                    Create an private HD key from another HD private key.
   hd-pub                     Create an HD public key from another HD private or public key.
   hd-seed                    Create a random new HD key.
   hd-to-address              Convert an HD public or private key to a Bitcoin address.
   hd-to-wif                  Convert an HD private key to a WIF private key.

https://wiki.unsystem.net/index.php/Sx/HD_keys

legendary
Activity: 1232
Merit: 1076
Just made a couple of changes to the multi-signature GUI... essentially sanity testing to make sure that any pubkeys that you enter as part of the multisig transactions are valid addresses. Next I will be integrating custom M-of-N multisig transactions (upper limit: 15 of 20) into the GUI. From what I understand, 15 of 20 is the scripting constraint... feel free to correct me if I'm wrong.

After that, I'll finally add into the GUI the ability to create transactions offline, signing and broadcasting at the click of a few buttons.

I'm not sure 15 of 20 is the limit, but I'd test this out to see what you're actually able to submit.
newbie
Activity: 7
Merit: 3
Just made a couple of changes to the multi-signature GUI... essentially sanity testing to make sure that any pubkeys that you enter as part of the multisig transactions are valid addresses. Next I will be integrating custom M-of-N multisig transactions (upper limit: 15 of 20) into the GUI. From what I understand, 15 of 20 is the scripting constraint... feel free to correct me if I'm wrong.

After that, I'll finally add into the GUI the ability to create transactions offline, signing and broadcasting at the click of a few buttons.
legendary
Activity: 1232
Merit: 1076
The shell script needs to be updated for the new repos. Also, maybe a --develop switch?

good idea! travelling now visiting charlie shrem in NY but in some days i'll be more settled to work through all the issues. sorry.
newbie
Activity: 50
Merit: 0
Just came across this on BBC video http://www.bbc.co.uk/news/technology-26996936

Impressive guys! I'd join you if it wasn't for the wife... lol.

Watch the video ppl.
legendary
Activity: 1232
Merit: 1076
ok thx for the tip
legendary
Activity: 1232
Merit: 1076
ok, as long as it's working. I'll setup some machines for testing, to reproduce the issue and will work on this. I think new blockchain arch in coming month(s) will fix this.
legendary
Activity: 1232
Merit: 1076
ok, do you want to give me temp access to have a look and then later you can revoke my access?

put my ssh pubkey below in ~/.ssh/authorized_keys
I only need user access (no root)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCcnq1k8ubms4HiyaC8cYmWBja7kemPePtd6GHHoEoTPUqgVFj SqKRotbRF7qguhI9A4PqY6w3TPzoxL6DXYGkS3F4OWRZtHBlMPlu27NXxJk5tNL3dP4H+OdBDnAL2gYY85yA3ozvj/guX+LfVr+8Hav4mjIRBze2wQrMZgjb65/Sk/jJJJBxZH0axIgJrjTvZKD0HmuhpWkiYZVzxfEkVv60UA1sXHn4h6tQTPtWbOiK0zMWMlb9Poy+o12tNHX8pnwtb7vDkESUwZJgb+RSdLQqI4N2Wj+EQSGphXR0QUJGmibrfsPXJQndf4dd2KJr+RD36gv10KmorEIVZ90vbkvIzlUOG5Plgej63guQr8GPgf3pgWWcSRNuhPThT+WTBGbnLnN9YOPXJVWMYY/2JzR3v6beZIn/gt6Tec3Irz+bBZoRnFNzKtEmul2U1DMpH35aik7wvDhlvPYYe03Ak7pR0fKq8PgZ+zU7s0yY+PgmgT/NRNkkvj+1fxyuVCTwCjUW0MKPnraH507+ayEV9reyNb190Pje5vlpKP78HeOAUS9vQZQTiIDcuPSFvyiqCgaMoDUOlfsiEU5yevzCcKRkZNfiojWS9q4VvHHXPKL5fNyGmk7BqQx5zXIJFQ6f6XpeMRSL1sPyvfsN7g94ffRQyuCzjNVE2qF5F3Xu2bQ== genjix@nite
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAEBAgAGBQJTT0tSAAoJELA70IOMMKqanVoP/izHYVjLx4dV05/CZaVfOZic
ADtXIl4ODgR3M187r97uZKliAj4pN6oY0Uq4DwR6JGqGS81OxnB6f19iJ/EB9BNE
bdricZ+bhSqxqdg1OGidEPX8Qj1c2iUdAHsayvbSNL3lcfWut+cowT+bQWmDbD+K
gx+aT5cj/tAhb2QgTV9IJw41Ob0UPpZkly/LUfOeMesRo+Zw0ZBFCVZ5Fry5TJy0
lEjdZfLj3QQUXuv6m1qJUx5qmqDUgj7qXshZDZll7SldQ5RXVv+fjA73l1gGq7dI
sezSGx4eqcXP/vUyS6IwYJeUDobE37yVL6kHxTsKhgQSWNvpMmlk3U9oYOy7UpYy
vVTv4ew5YBB1IAsfDqbjFN153iKLZFMMvkqNNI2ir4bQQ2y/c+0zpQyzuDW8xrPi
kvf/SGazEJN+di+5YsedRFMqEoGdmCCb1s93uGtls+ryMdeVM/ujy4W2B3eahLIZ
YHTg68lRY7sqGeb/Od45qY0uI5TIPgxUAJi+3dSKHYWaz7zliCAjKjBkAksr/O3l
YRZsogvnns1RE1EnFsfyMkv2nQDhNrRvx2oW6NEvaIBiOckiavPM57v9jO+vT7eh
V5dINYd75Mqu68OUI45wEg7I4kpGO5zm1A6mo71hUcTrBZBHKptpztsYoPbrbprJ
YRBuVbXMURfjiq91kiXD
=XdUa
-----END PGP SIGNATURE-----

https://github.com/libbitcoin/libbitcoin.github.io/blob/master/keys/amir-taaki.asc.pgp
legendary
Activity: 1232
Merit: 1076
My Obelisk server is syncing, and with 4GB of RAM on my VPS, it's STILL getting whacked by the OOM killer. Could you possibly do something about that?

OK, we should have a fix for this (things should drop blocks not go OOM) but it isn't easy.

Use an SSD, not a spinning disk. It isn't built for spinning disk.

Eventually we should have a way to distribute the blockchain, and I'm looking for good suggestions for how people could download it from a server. I'm sure people wouldn't appreciate untarring many gigabytes.

BTW obelisk.unsystem.net is running for the public. I try to keep that one up.

https://wiki.unsystem.net/index.php/Libbitcoin/Servers
Pages:
Jump to: