Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: check_status on March 05, 2012, 07:03:45 PM



Title: Using github: Specifically, Vanitygen
Post by: check_status on March 05, 2012, 07:03:45 PM
I'm an apt-get type of person and never have used git. Could someone explain the process?
I hacked up an example from an unrelated git tut but needs some fill in the blanks or corrections.
Are there any dependancies that need to be satisfied before running?
I don't plan on using oclvanitgen as hardware doesn't support 11.11, maybe 8 or 9. ;) Will I be limited to what I can look for?

Code:
steps on how to compile under Linux:
 $ git clone https://github.com/samr7/vanitygen.git
 $ cd *where?*
 $ git checkout -b *what is going on here?*
 $ ./autogen.sh && ./configure *anyflags needed here?* && make
 $ sudo make install


Title: Re: Using github: Specifically, Vanitygen
Post by: mappum on March 05, 2012, 07:14:52 PM
apt-get is a package manager, git is source control. The difference is that apt-get packages are usually pre-built binaries, and they are automatically installed (along with any dependencies). Git is just a place for people to keep their source code, and it tracks each change (in case you need to revert some or all of your source). Git is geared toward software development that involves more than one person (whether it is a commercial team, or random internet people contributing to an open source project).

Github doesn't own Git (many people initially assume that), they just happen to be the most prominent free Git host.

To clone a repository, you just use
Code:
git clone <url>
, and a new folder with all the same info and history of changes as the remote repo you are cloning will be created. You can then make changes on the source files, or build the project (how it is built depends on the project).

If you need to update the repo, just go into its folder and hit
Code:
git pull
.


Title: Re: Using github: Specifically, Vanitygen
Post by: check_status on March 05, 2012, 10:19:50 PM
Quote
At present, vanitygen can be built on Linux, and requires the openssl and pcre libraries.
https://github.com/samr7/vanitygen/blob/master/README

OK, so those are the dependancies for linux, I've got those. There are no build steps listed in the README, are the build steps I listed correct?


Title: Re: Using github: Specifically, Vanitygen
Post by: Revalin on March 05, 2012, 11:31:05 PM
sudo apt-get install libpcre3-dev libssl-dev
git clone https://github.com/samr7/vanitygen.git
cd vanitygen
make
./vanitygen


Title: Re: Using github: Specifically, Vanitygen
Post by: check_status on March 06, 2012, 03:05:28 AM
sudo apt-get install libpcre3-dev libssl-dev
git clone https://github.com/samr7/vanitygen.git
cd vanitygen
make
./vanitygen
It's working so far. I didn't have the dev libraries though I did have the regular libs. I guess when building from source files, dev files are needed sometimes.
Code:
./vanitygen -r [^V]abcd[^V]efg  
7 characters + 2 upper and lower. 712,000,000 and none found yet, I think.

Thanks for laying it out Revalin.

Edit: 4.8 billion keys and nothing found yet. :D


Title: Re: Using github: Specifically, Vanitygen
Post by: Revalin on March 06, 2012, 03:09:10 AM
No problem. :)

The -dev ones are the headers; the regular ones are the binary libraries.  You need -dev when compiling, but after your have the binary you can uninstall them and just leave the binary libraries if desired.