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

Post-install/first-run script #40

Closed
indolering opened this issue Jan 19, 2014 · 4 comments
Closed

Post-install/first-run script #40

indolering opened this issue Jan 19, 2014 · 4 comments

Comments

@indolering
Copy link

Jeremy_Rand and Indolering created the following post-install script to configure namecoin.conf:

mkdir -p ~/.namecoin && \
echo "rpcuser=`whoami` \n\
rpcpassword=`openssl rand -hex 30` \n\
rpcport=8334" > ~/.namecoin/namecoin.conf

This should included in the standard installer as part of the first-run setup, it would be much more secure and it all needs to be done anyway.

The openssl rand -hex 30 should probably be replaced with a better, 20-digit random number that has a larger character pool.

@indolering
Copy link
Author

As the initial blockchain setup takes a long time, it would be feasible to provide a post-install script which downloads a GPG-signed blockchain.

The logistics have already been worked out, Ryan-C and Indolering would post an updated blockchain nightly/weekly on Archive.org. The URL can remain fixed and because Archive.org supports mutable torrents we can use an embeddable Torrent client or simply require Aria2 in the install phase. This way we get a torrent distro, free bandwidth form the Archive.org project, and it is very easy to add additional peers.

However, there should be an option to download from a local S3 mirror as VM's within S3 have very fast access to this mirror and the bandwidth is free.

This, of course, becomes less of a concern with UXTO and boostrap.dat files (the latter of which is constrained by processing time, not bandwidth) but we are far from that goal.

@indolering
Copy link
Author

Make sure that the script only uses alphanumeric passwords, non-alphanumeric passwords will likely mess with RPC clients.

@phelixbtc
Copy link
Contributor

All great ideas but we don't even have an installer yet :)

@indolering
Copy link
Author

We should actually close this as Domob and everyone basically agreed that we should get rid of auth requirements for read-only data operations. A GUI should package this up as part of the installer, but they will figure that out on their own.

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

No branches or pull requests

2 participants