Author

Topic: [BOUNTY] Ubuntu 12.04 Environment to compile bitcoin (Read 1797 times)

legendary
Activity: 1246
Merit: 1002
I created a new virtual machine in Oracle VirtualBox.  I set the memory too 1024, and set the network to bridged, not NAT.  I started the machine, and placed the Ubuntu Precise Pangolin (12.04) distribution CD into the reader, and booted from it.

I did a standard install.  I set my time zone, keyboard, and not much else.

Then I executed
Code:
>sudo ls
so that the password would be entered, and I copied and pasted the following commands.  I ended up with a working copy of bitcoind and bitcoin-qt.  I have not actually tried to run this as a shell script.

I usually enter my public ssh key, restrict logins to ssh, and some other stuff that I don't remember right now:  I like egg-nog.

If you have a nice script to set up the firewall, lock down logins, and generally tighten security, please feel free to post it.


Code:
#!/bin/sh
# ----------------
# upgrade the standard Ubuntu Precise Pangolin (12.04) distribution,
# prepare to build bytecoin
# build bytecoin
# place on desktop
# ----------------
# before executing, perform sudo ls

cd ~
# ---- comment out the next 3 lines if you don't have an apt proxy. 
echo "Acquire::http { Proxy \"http://yourproxy.local:3142\"; };"  > proxy.temp
sudo chown root:root proxy.temp
sudo mv proxy.temp /etc/apt/apt.conf.d/01proxy
# ----
sudo apt-get update; sudo apt-get -y upgrade
sudo apt-get install -y python python-dev ntp git \
gparted openssh-server \
traceroute \
libdb5.1++-dev libssl-dev pkg-config qt4-qmake libqt4-dev \
libqrencode-dev \
libboost-system-dev libboost-filesystem-dev libboost-program-options-dev \
libboost-thread-dev libboost-test-dev \
git-core build-essential \
libminiupnpc8-dev libminiupnpc8=1.6-3ubuntu1 libminiupnpc-dev=1.6-3ubuntu1   
# This last line ^ fixes a pesky problem.
git clone https://github.com/ahmedbodi/bytecoin
cd ~/bytecoin
qmake bytecoin-qt.pro USE_QRCODE=1
make
cd src; make -f makefile.unix bytecoind

# ----
# set up some directories and links.
# ----
ln ~/bytecoin/bytecoin-qt ~/Desktop/bytecoin-qt
ln ~/bytecoin/src/bytecoind ~/Desktop/bytecoind
mkdir -p ~/.bytecoin
cp ~/bytecoin/bytecoin.conf ~/.bytecoin/.
echo "logtimestamps=1" >> ~/.bytecoin/bytecoin.conf
legendary
Activity: 1246
Merit: 1002
I now have made working binaries of bytecoin-qt and bytecoind, and have a stream of consciousness .bash_history file.

Thanks

hero member
Activity: 525
Merit: 531
Ah, you use 3thparty repo, which use different name for upnp.

try install with this command:
Code:
apt-get install -y libminiupnpc8-dev libminiupnpc8

Or if you want to install the official package:
Code:
apt-get install -y libminiupnpc-dev=1.6-3ubuntu1 libminiupnpc8=1.6-3ubuntu1
legendary
Activity: 1246
Merit: 1002
This looks pretty good.  There is still one apparently well known problem. 

On my system, I have the directory path /etc/apt/preferences.d/.  This directory is empty.  I am assuming that this is where the file should go that is mentioned in the answer linked above.  What should that file name be, and should that fix be applied?


what is the result for this command
Code:
apt-cache policy libminiupnpc8 libminiupnpc-dev


That's pretty handy.  I really need to read the docs again.


Code:
avalon@avalon-VirtualBox:~/bytecoin$ apt-cache policy libminiupnpc8 libminiupnpc-dev
libminiupnpc8:
  Installed: 1.6-precise2
  Candidate: 1.6-precise2
  Version table:
 *** 1.6-precise2 0
    500 http://ppa.launchpad.net/bitcoin/bitcoin/ubuntu/ precise/main amd64 Packages
    100 /var/lib/dpkg/status
  1.6-3ubuntu1 0
    500 http://us.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
libminiupnpc-dev:
  Installed: (none)
  Candidate: 1.6-3ubuntu1
  Package pin: 1.6-3ubuntu1
  Version table:
  1.6-3ubuntu1 100
    500 http://us.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
hero member
Activity: 525
Merit: 531
This looks pretty good.  There is still one apparently well known problem. 

On my system, I have the directory path /etc/apt/preferences.d/.  This directory is empty.  I am assuming that this is where the file should go that is mentioned in the answer linked above.  What should that file name be, and should that fix be applied?


what is the result for this command
Code:
apt-cache policy libminiupnpc8 libminiupnpc-dev
legendary
Activity: 1246
Merit: 1002
I have a successful build.
I do not have a solution to the libupnpc-dev problem.
legendary
Activity: 1246
Merit: 1002
maybe "make -f makefile.unix USE_UPNP=-"

Do you have a working binary?
full member
Activity: 238
Merit: 100
maybe "make -f makefile.unix USE_UPNP=-"
legendary
Activity: 1246
Merit: 1002
This looks pretty good.  There is still one apparently well known problem. 

On my system, I have the directory path /etc/apt/preferences.d/.  This directory is empty.  I am assuming that this is where the file should go that is mentioned in the answer linked above.  What should that file name be, and should that fix be applied?

hero member
Activity: 525
Merit: 531
Hi,

Here:
Quote
apt-get install -y git-core build-essential
apt-get install -y libboost-system-dev libboost-filesystem-dev libboost-program-options-dev libboost-thread-dev libboost-test-dev
apt-get install -y libdb5.1++-dev libssl-dev pkg-config qt4-qmake libqt4-dev libqrencode-dev libminiupnpc-dev
git clone https://github.com/ahmedbodi/bytecoin/
cd bytecoin/
qmake bytecoin-qt.pro USE_QRCODE=1
make
cd src; make -f makefile.unix bytecoind

Some more packages may be missing if your env is different from mine. (in created the test env with debootstrap)

Elbandi
legendary
Activity: 1246
Merit: 1002
Oh my, my mouse button bounced.  This should compile bytecoin-qt to be accepted.  Execution of bytecoin-qt in my 12.04 virtual box is my acceptance criteria.


legendary
Activity: 1246
Merit: 1002
I want an environment to compile bytecoin (BTE) under Ubuntu 12.04 (Precise Pangolin).  This is the 1:1 bitcoin clone that was released April 1, and may or may not be an April Fools's gag.

I will have a newly installed and updated standard Ubuntu 12.04 (Precise Pangolin) virtual machine (Oracle VirtualBox), and I will test your script in that environment.  Certain posts suggest that related altcoins, especially CNC, will give a clean make in Ubuntu 11.04.

You will provide a shell script that runs as root, that makes a complete environment to compile bytecoin, and does a clean make of bytecoin. 
I will own and publish the script.  You may do anything else that you wish with it.  I have made an initial effort to do this, and there are some missing dependencies.  Some of the altcoin threads discuss these dependencies.  I would rather pay you to handle these details than duplicate your expertise. 

If you have trouble connecting to a node, you may try addnode 66.234.123.28 add in your configuration file.

for example:

#!/bin/sh
#sudo apt-get install ssh, ntp, git,
#other installs as may be necessary

#---
#git the source

#---
#perform the make


Please submit a bid denominated in BTC and a deadline.

I will consider making payment in USD or BTE, provided that we agree on the exchange rate.  If I pay in BTC or BTE, I will disclose the TXiD.

Jump to: