BitShares Forum
Main => 中文 (Chinese) => Topic started by: alt on June 05, 2014, 12:58:57 pm
-
1. 安装 ubuntu1404,注意现在只支持64位版本
2. 安装以下依赖包
aptitude install git cmake g++ zlib1g-dev libreadline6-dev libdb++-dev libboost-all-dev libssl-dev uuid-dev
3. git 迁出 bitshares_toolkit 代码,并编译
git submodule init
git submodule update
mkdir build && cd build
cmake ..
make
运行
cd programs/client
cp ../../../tests/genesis.json ./
./bitshares_client --server --httpport 9989
4. git 迁出 web_wallet 代码
5. 下载 node , 地址 http://www.nodejs.org/download/ ,下载 linux 下 64位版本并安装
6. 使用超级用户安装 lineman
sudo -i
npm install lineman
exit
7. 安装其它依赖包,注意要在 web_wallet 目录下运行
cd web_wallet
npm install protractor jasmine-given coffee-script lineman-angular lineman-less
8. 然后编辑 ~/.BitsharesXTS/config.json,注意要配置用户名、密码及htdocs这三项
{
"rpc": {
"rpc_user": "alt",
"rpc_password": "alt",
"rpc_endpoint": "127.0.0.1:0",
"httpd_endpoint": "0.0.0.0:0",
"htdocs": "/home/alt/workspace/web_wallet/generated/"
},
"default_peers": [
"107.170.30.182:8764"
],
"ignore_console": false
}
9. 启动 web 钱包服务器
lineman run
10. 重新运行 bitshares_client
11. 浏览器内输入 http://localhost:9989 就可以访问 web 钱包了。
如果想在手机上访问,需要把 config.json 中的httpd_endpoint 改为0.0.0.0:0
-
谢谢ALT
-
web钱包我之前没搞定
这下有教程了 太好了
会提示这个哦jerry@jerry-VirtualBox64bit:~/bitshares_toolkit/programs/client$ ./bitshares_client --server --httpport 9989
================================================================
= =
= Welcome to BitShares XTS =
= =
= This software is in alpha testing and is not suitable for =
= real monetary transactions or trading. Use at your own =
= risk. =
= =
= Type 'help' for usage information. =
================================================================
Logging to file "/home/jerry/.BitSharesXTS/default.log"
Logging RPC to file "/home/jerry/.BitSharesXTS/rpc.log"
Loading config "/home/jerry/.BitSharesXTS/config.json"
{
"rpc": {
"rpc_user": "",
"rpc_password": "",
"rpc_endpoint": "127.0.0.1:0",
"httpd_endpoint": "127.0.0.1:0",
"htdocs": "./htdocs"
},
"default_peers": [
"107.170.30.182:8764"
],
"ignore_console": false
}
Loading blockchain from "/home/jerry/.BitSharesXTS/chain"
Using genesis block from file "/home/jerry/bitshares_toolkit/programs/client/genesis.json"
Error starting RPC server
You specified --server on the command line,
but did not provide a username or password to authenticate RPC connections.
You can provide these by using --rpcuser=username and --rpcpassword=password on the
command line, or by setting the "rpc_user" and "rpc_password" properties in the
config file
-
是的,第一次运行是为了生成那个 config.json,有提示先不用管它,后面改了 config.json 就好了。
-
http://nodejs.org/dist/v0.10.28/node-v0.10.28-linux-x64.tar.gz
下载这个么? 解压开不知道怎满装 囧
apt-get 能搞定就好了 诶
有个 README.md
Evented I/O for V8 javascript. [![Build Status](https://secure.travis-ci.org/joyent/node.png)](http://travis-ci.org/joyent/node)
===
### To build:
Prerequisites (Unix only):
* GCC 4.2 or newer
* Python 2.6 or 2.7
* GNU Make 3.81 or newer
* libexecinfo (FreeBSD and OpenBSD only)
Unix/Macintosh:
./configure
make
make install
If your python binary is in a non-standard location or has a
non-standard name, run the following instead:
export PYTHON=/path/to/python
$PYTHON ./configure
make
make install
Windows:
vcbuild.bat
You can download pre-built binaries for various operating systems from
[http://nodejs.org/download/](http://nodejs.org/download/). The Windows
and OS X installers will prompt you for the location to install to.
The tarballs are self-contained; you can extract them to a local directory
with:
tar xzf /path/to/node-<version>-<platform>-<arch>.tar.gz
Or system-wide with:
cd /usr/local && tar --strip-components 1 -xzf \
/path/to/node-<version>-<platform>-<arch>.tar.gz
### To run the tests:
Unix/Macintosh:
make test
Windows:
vcbuild.bat test
### To build the documentation:
make doc
### To read the documentation:
man doc/node.1
Resources for Newcomers
---
- [The Wiki](https://github.com/joyent/node/wiki)
- [nodejs.org](http://nodejs.org/)
- [how to install node.js and npm (node package manager)](http://www.joyent.com/blog/installing-node-and-npm/)
- [list of modules](https://github.com/joyent/node/wiki/modules)
- [searching the npm registry](http://npmjs.org/)
- [list of companies and projects using node](https://github.com/joyent/node/wiki/Projects,-Applications,-and-Companies-Using-Node)
- [node.js mailing list](http://groups.google.com/group/nodejs)
- irc chatroom, [#node.js on freenode.net](http://webchat.freenode.net?channels=node.js&uio=d4)
- [community](https://github.com/joyent/node/wiki/Community)
- [contributing](https://github.com/joyent/node/wiki/Contributing)
- [big list of all the helpful wiki pages](https://github.com/joyent/node/wiki/_pages)
-
这种安装包一般解开就能用的。
sudo tar -zxvf node-v0.10.28-linux-x64.tar.gz -C /opt
然后新建一个文件 /etc/profile.d/node.sh,内容为:
export PATH=/opt/node-v0.10.28-linux-x64/bin:$PATH
重新登录让环境变量生效后,就可以运行node命令了
-
这种安装包一般解开就能用的。
sudo tar -zxvf node-v0.10.28-linux-x64.tar.gz -C /opt
然后新建一个文件 /etc/profile.d/node.sh,内容为:
export PATH=/opt/node-v0.10.28-linux-x64/bin:$PATH
重新登录让环境变量生效后,就可以运行node命令了
tks
ubuntu基本0基础
新建文件用touch node.sh
然后sudo chmod 777 node.sh
再sudo gpedit node.sh
vi用不惯
nodejs搞定了
npm似乎还是不行啊
sudo npm install lineman
sudo: npm: command not found
jerry@jerry-VirtualBox64bit:~$ npm -v
1.4.9
jerry@jerry-VirtualBox64bit:~$ node -v
v0.10.28
-
cool~
-
tks
ubuntu基本0基础
新建文件用touch node.sh
然后sudo chmod 777 node.sh
再sudo gpedit node.sh
vi用不惯
nodejs搞定了
npm似乎还是不行啊
sudo npm install lineman
sudo: npm: command not found
jerry@jerry-VirtualBox64bit:~$ npm -v
1.4.9
jerry@jerry-VirtualBox64bit:~$ node -v
v0.10.28
是我想当然了。应该sudo -i 变为root后再运行
sudo -i
npm install lineman
-
不错啊
-
赞
-
mkdir build && cd build
似乎会导致 genesis.json找不到 得手动复制过去
===========
2014年6月6日01:27:16
搞定了 哈哈 多谢楼主的指南
-
哟西
看的我既崇拜又羡慕还略微带点春心荡漾 :-X :-X :-X :-X
-
+5%
-
mkdir build && cd build
似乎会导致 genesis.json找不到 得手动复制过去
===========
2014年6月6日01:27:16
搞定了 哈哈 多谢楼主的指南
是的,我习惯代码和build的目录分开,要手动拷贝那个文件,cmake中应该改一下自动拷贝的
-
+5%
-
教程太棒了 +5%
-
周末编译一下,
-
能不能搞了windows版本的
-
能不能搞了windows版本的
建议用虚拟机装一个ubuntu,windows据说不好搞,我反正不用win了
-
这个帖子很靠谱,有用!
Sent from my iPad using Tapatalk
-
头大 搞不定 :-[ :-[ :-[
root@ubuntu:/home/zoomac/build# cmake ../bitshares_toolkit
CMake Error at CMakeLists.txt:8 (include):
include could not find load file:
GetGitRevisionDescription
CMake Error at CMakeLists.txt:9 (get_git_head_revision):
Unknown CMake command "get_git_head_revision".
-- Configuring incomplete, errors occurred!
See also "/home/zoomac/build/CMakeFiles/CMakeOutput.log".
root@ubuntu:/home/zoomac/build#
-
擦嘞 居然用了长期没更新的代码:https://github.com/cgafeng
sb了我 没看更新时间 :'( :'( :'( :'( :'( :'( :'(
最新的在这里https://github.com/BitShares
头大 搞不定 :-[ :-[ :-[
root@ubuntu:/home/zoomac/build# cmake ../bitshares_toolkit
CMake Error at CMakeLists.txt:8 (include):
include could not find load file:
GetGitRevisionDescription
CMake Error at CMakeLists.txt:9 (get_git_head_revision):
Unknown CMake command "get_git_head_revision".
-- Configuring incomplete, errors occurred!
See also "/home/zoomac/build/CMakeFiles/CMakeOutput.log".
root@ubuntu:/home/zoomac/build#