Pages:
Author

Topic: [announce] Namecoin - a distributed naming system based on Bitcoin - page 97. (Read 596107 times)

cel
newbie
Activity: 5
Merit: 0
Here is a Mac OS X binary for namecoind. The first bitcoin thing I've actually been able to compile. Works for me on Leopard and Snow Leopard.

http://cl.ly/2D0S2Z0l082N1v1I0m2k
administrator
Activity: 5222
Merit: 13032
Has anyone discussed the pro and con of using a totally capitalist model where you own the domain only until someone buys it from you by paying more for it than you are paying or have paid?

That's not a capitalist idea... Capitalists believe in property rights.
legendary
Activity: 2940
Merit: 1090
Has anyone discussed the pro and con of using a totally capitalist model where you own the domain only until someone buys it from you by paying more for it than you are paying or have paid?

The general idea comes from a Robert A. Heinlein novel (Number of the Beast, if I recall correctly), though in the novel it was real estate and based on the appraised value you paiod taxes on instead of on wha you actually paid.

That is, if you are not willing to sell for less than X money, then you better pay taxes on it as if it were worth X money. Because however much you approaise it at for tax purposes is how much anyone who chooses to can take it from you for (by paying you that X money you claimed it was worth to you.)

-MarkM- (I wonder if hardcore capitalists actually like such models at all?)

full member
Activity: 154
Merit: 100
Has anyone got this to work properly in WinXP?

Can the author(s) vouch for the alternative dropbox link for the .exe?
legendary
Activity: 2058
Merit: 1452
guys:
mining works exactly like in bitcoin. if you're getting an error in your miner, either you didn't configure /namecoin/bitcoin.conf properly, or it's a problem with the miner you're using.

for a table of hash speeds, look over here:
https://en.bitcoin.it/wiki/Mining_hardware_comparison
hero member
Activity: 756
Merit: 500
OK I went with the namecoin binary and I must be getting close but this is what I get now:

./namecoind =server& python poclbm.py -d --user un --pass pw
[1] 6142
error: couldn't connect to server
Traceback (most recent call last):
  File "poclbm.py", line 5, in
    from BitcoinMiner import *
  File "/home/chris/Downloads/namecoin/BitcoinMiner.py", line 8, in
    from sha256 import *
ImportError: No module named sha256
[1]+  Exit 87                 ./namecoind =server


I am kind of using this guide (https://bitcointalksearch.org/topic/easy-ubuntu-python-opencl-mining-setup-2636) but have tried to change all the things to get it to work for this.

Can you see what I am missing?


When I try using those instructions on normal bitcoin I get:

/bitcoin -server& python poclbm.py -d 0 --user un --pass pw
[1] 6450
Traceback (most recent call last):
  File "poclbm.py", line 5, in
    from BitcoinMiner import *
  File "/home/chris/Downloads/bitcoin-0.3.21/bin/64/BitcoinMiner.py", line 8, in
    from sha256 import *
ImportError: No module named sha256

OK I just did wget --no-check-certificate https://github.com/m0mchil/poclbm/raw/master/sha256.py

then tried my command ./bitcoin -server& python poclbm.py -d 0 --user un --pass pw and now it says its downloading blocks.

I then stopped bitcoind and stared namecoind and ran my command again to start the bitcoin client and its given me a few errors but then it given me a k hash rate

XCEPTION: N5boost16exception_detail10clone_implINS0_19error_info_injectorINS_6system12sys tem_errorEEEEE       
Address already in use       
bitcoin in ThreadRPCServer()       

bitcoin: ../../src/xcb_io.c:140: dequeue_pending_request: Assertion `req == dpy->xcb->pending_request's failed

the hash rate is 140000 khash/s ish .. I assume it should be in mhash/s per second?

when I sudo it I don't get the errors but I get about the same hash rate

Whats the expected hash rate for an ATI 5770?
hero member
Activity: 756
Merit: 500
OK it looks like I have got the ATI driver (from the website) and the OpenCL (AMDAPPS SDK) installed ok and I even ran some samples OK and put export entries on my .bashrc file.

I think the driver that you install from the latest Kubuntu didn't work so well which explained some of my problems. The other way making sure the /'s were or were not there when I did my exports to get OpenCL working.

I have installed python-pyopencl  using apt-get and python jason-rpc from subversion and installed it.

Now I just wonder if I should test this out on bitcoin or go straight for namecoin. If I try namecoin first I will try the binaries again. I have never mined with a GPU before so this is exciting for me Smiley

legendary
Activity: 1441
Merit: 1000
Live and enjoy experiments
hero member
Activity: 756
Merit: 500
I'm trying again using this post for more ideas:

https://bitcointalksearch.org/topic/m.47174

and it is the latest kubuntu 11.04  I think as I downloaded it yesterday

I already found one thing that the icd-registration.tgz didn't go into the root directory when I was trying it last night so hopefully that will fix (or help fix) that other issue I had with not being able to run the samples.
newbie
Activity: 43
Merit: 0
Considering the following discussion,
https://bitcointalksearch.org/topic/secp256k1-2699
did you choose a different elliptic curve for namecoin than the secp256k1 to reduce possible change of intrusion into bitcoin security by, for example the NSA.
It would ease my concerns a lot if satoshi would make himself public, so that he could explain why he chose that particular curve...
member
Activity: 98
Merit: 13
Thank you. I also got it generating by using:


./namecoind setgenerate true

This is the slow way to generate.  Use an external CPU miner for greater efficiency.

legendary
Activity: 2058
Merit: 1452
hero member
Activity: 756
Merit: 500
Thank you.

I have gone out and bought a ATI Radeon HD 5770 card to cut my teeth on. 

I've been trying the guide:

Easy Ubuntu python OpenCL mining setup
https://bitcointalksearch.org/topic/easy-ubuntu-python-opencl-mining-setup-2636

I have installed kubuntu 10.4 64 bit and installed the proprietary driver using   K > Applications > System > Additional drivers

I downloaded namecoin binaries and extracted them to the folder "namecoin" under ~/Downloads


I downloaded AMD-APP-SDK-v2.4-lnx64.tgz and installed it using the instructions in pdf but still get errors  (CL_PLATFORM_NOT_FOUND_KHR) trying to run the samples
I did that command to check .so files but none were missing.

I copied the code from the example but tried to change a few things to namecoin  instead of bitcoin but ended up with a .namecoin folder in my home directory whereas the namecoind binary is in a folder under downloads.

e.g.

Quote
sudo apt-get install python-pyopencl subversion

svn checkout http://svn.json-rpc.org/trunk/python-jsonrpc
cd python-jsonrpc/
sudo python setup.py install
cd ..
mkdir .namecoin
echo "rpcuser=un" > .bitcoin/bitcoin.conf
echo "rpcpassword=pw" >> .bitcoin/bitcoin.conf
wget --no-check-certificate https://github.com/m0mchil/poclbm/raw/master/BitcoinMiner.cl
wget --no-check-certificate https://github.com/m0mchil/poclbm/raw/master/BitcoinMiner.py
wget --no-check-certificate https://github.com/m0mchil/poclbm/raw/master/poclbm.py



I have probably done a million things wrong but here is what I get when I type:



./namecoind -server&python poclbm.py -d 0 --user un --pass pw


[1] 4753
bitcoin server starting
python: can't open file 'poclbm.py': [Errno 2] No such file or directory

this is the directory listing of:

~/.namecoin$ ls
addr.dat    bitcoin.conf     BitcoinMiner.py  blkindex.dat  __db.001  __db.003  __db.005  db.log     nameindex.dat  wallet.dat
bitcoin.co  BitcoinMiner.cl  blk0001.dat      database      __db.002  __db.004  __db.006  debug.log  poclbm.py

and:

/Downloads/namecoin$ ls
base58.h        coding.txt  DESIGN-namecoin.md  init.cpp  key.h        makefile        namecoin.cpp  noui.h             rpc.cpp      setup.nsi      uibase.h       ui.rc
bignum.h        contrib     docs                init.h    license.txt  makefile.mingw  namecoind     obj                rpc.h        sha256.cpp     ui.cpp         util.cpp
build-msw.txt   cryptopp    headers.h           irc.cpp   locale       makefile.osx    namecoin.h    rc                 script.cpp   strlcpy.h      ui.h           util.h
build-osx.txt   db.cpp      hook.cpp            irc.h     main.cpp     makefile.unix   net.cpp       README-bitcoin.md  script.h     TODO-namecoin  uint256.h      xpm
build-unix.txt  db.h        hook.h              json      main.h       makefile.vc     net.h         README.md          serialize.h  uibase.cpp     uiproject.fbp


Any ideas or more questions would be much appreciated. I wish I had of known about this at easter time so I could have worked on it then!
legendary
Activity: 1078
Merit: 1005
The other question is how do I get a namecoin address so I can buy my first name coins?
It works exactly like bitcoind. So:
Code:
namecoind getnewaddress
hero member
Activity: 756
Merit: 500
Thank you. I also got it generating by using:


./namecoind setgenerate true

The other question is how do I get a namecoin address so I can buy my first name coins?

legendary
Activity: 2058
Merit: 1452
OK I have some stupid questions:

I am running Kubuntu 64 bit and installed the 64 bit binairies and set a rpcpassword in the bitcoin.conf file

I get the following with namecoin.d /getinfo

{
    "version" : 32100,
    "balance" : 0.00000000,
    "blocks" : 1318,
    "connections" : 5,
    "proxy" : "",
    "generate" : false,
    "genproclimit" : -1,
    "difficulty" : 512.00781274,
    "hashespersec" : 0,
    "testnet" : false,
    "keypoololdest" : 1304128826,
    "paytxfee" : 0.00000000,
    "errors" : ""
}

How do I get it to generate and how do I get a name coin address?

Then if I want to start GPU mining namecoins is there a guide or do I just use one of the bitcoin GPU mining guides and make a few changes?
any rpc miner that works with bitcoin should work with namecoin.
hero member
Activity: 756
Merit: 500
OK I have some stupid questions:

I am running Kubuntu 64 bit and installed the 64 bit binairies and set a rpcpassword in the bitcoin.conf file

I get the following with namecoin.d /getinfo

{
    "version" : 32100,
    "balance" : 0.00000000,
    "blocks" : 1318,
    "connections" : 5,
    "proxy" : "",
    "generate" : false,
    "genproclimit" : -1,
    "difficulty" : 512.00781274,
    "hashespersec" : 0,
    "testnet" : false,
    "keypoololdest" : 1304128826,
    "paytxfee" : 0.00000000,
    "errors" : ""
}

How do I get it to generate and how do I get a name coin address?

Then if I want to start GPU mining namecoins is there a guide or do I just use one of the bitcoin GPU mining guides and make a few changes?
legendary
Activity: 1078
Merit: 1005
@doublec thanks for the modified polipo.  What do you think about a modified resolver library that allows "sideloading"?  How about this in /etc/resolv.conf:
I don't know much about DNS so avoided modifying or using any existing DNS code. What I have been able to do is get 'dnsmasq' to serve namecoind names using a standard dnsmasq build. eg. try:
Code:
dig @cd.pn bluishcoder.bit

This seems to work well. What I did was write a small program that does a name_scan and prints out the valid mappings in the same format as /etc/hosts. I then run dnsmasq with the option for obtaining names from this file. I have a script that runs every 5 minutes that rewrites this file and sends a SIGHUP to dnsmasq. The program to generate the hostfile is namecoin-hosts.c. It needs libjansson and libcurl. It can be built with:
Code:
gcc -o namecoin-hosts namecoin-hosts.c -lcurl -ljansson

The entries I changed in my dnsmasq.conf were:
Code:
local=/.bit/
local-ttl=300
addn-hosts=/tmp/hosts.txt

I have a simple shell script that does the updating:

Code:
while true; do
  ./namecoin-hosts 127.0.0.1:8332 rpcuser rpcpassword >/tmp/hosts.txt
  kill -HUP `cat /var/run/dnsmasq/dnsmasq.pid`
  echo `date`
  sleep 300
done
newbie
Activity: 23
Merit: 34
@memvola and others that have namecoins held up by a firstupdate on a name that'
s already taken.  I pushed a new version to github.  It has a new command
Code:
name_clean
that will clear these transactions.

The symptoms include having transactions that won't confirm.

@doublec thanks for the modified polipo.  What do you think about a modified resolver library that allows "sideloading"?  How about this in /etc/resolv.conf:

Code:
tldserver  

and

Code:
socksserver  :

Oh and I should have used double quotes in my examples like you have it.
legendary
Activity: 1078
Merit: 1005
I hacked a bit on the polipo HTTP proxy code and added simple namecoin support for DNS lookups. The modified code is in this git repository: https://github.com/doublec/namecoin-polipo. It needs libjansson for JSON parsing and libcurl for talking to the namecoind JSON-RPC server.

Once compiled, you can run it passing it the details about the namecoind server:

Code:
$ git clone https://github.com/doublec/namecoin-polipo
$ cd namecoin-polipo
$ make
$ ./polipo namecoindServer="127.0.0.1:8332" namecoindUsername=rpcuser namecoindPassword=rpcpassword

This will start the proxy, and it'll connect to the namecoind JSON-RPC server with the given details. It runs 'name_scan' to get the list of names. Any program using this proxy will have all .bit domains resolved by namecoind. Currently it only supports mapping to IP addresses. So namecoind values like the following work: {"map":{"":"192.0.32.10"}}. As an example 'bluishcoder.bit' hopefully resolves to the IP address of my server with my weblog using this version of polipo. It rescans namecoind when a request is made for a domain lookup and the last scan was more than 10 minutes ago. 

To use it with Firefox (or other browsers) go into the network settings and set the 'http proxy' to localhost, port 8123.

I decided to do this to avoid needing to run the ncproxy script since I don't need socks support. Comments, suggestions, patches are welcome.
Pages:
Jump to: