這是一個建立於 的文章,其中的資訊可能已經有所發展或是發生改變。
http://inside-out.xyz/technology/farming-with-sia-in-my-desktop.html
Requisites
- 伺服器硬體設定參考
- 推薦硬碟資料分割配置
- Go語言的版本限制
Installation of SIA Software(Linux環境下如何安裝Sia)
第一個步驟是在本機上安裝Sia軟體. 寫作本文期間最新的Sia版本是1.0.3. 你可以到 Sia Github Project page 查詢新版本. Linux平台下安裝Sia需要執行下列命令:
【原文】The first thing you need to do is to install the SIA software. At the moment of writing this article, the latest SIA available was 1.0.3. You can check this information in the SIA Github Project page. To install the software, you can type the following commands:
mkdir ~/siacd ~/siago get -u github.com/NebulousLabs/Sia/...
如果安裝過程一切順利(譯者註:由於 golang.org 被和諧,你需要手動下載三個缺失的擴充工具包,詳見阿群《配置 Sia 開發環境》附錄:遇到的問題2), 你將會得到一個名為bin的子目錄, 該目錄內含有兩個可執行檔: siac 和 siad
【原文】If all goes for good, you will have a bin directory with two files: siac (the SIA client) and siad (the SIA daemon).
Configuration of the SIA Daemon
siad 是 Sia 的後台守護進程, 她很容易配置. 只需要給她手動建立一個目錄用於盛放所有相關的配置參數, 我的做法如下:
【原文】SIA Daemon (siad) is very easy to configure. You just need a directory where to put all information (not the space you are planning to lease). I did the following:
mkdir /var/lib/siacd ~sia/bin./siad -d /var/lib/sia/
使用者第一次啟動 siad 時, 後台守護進程從頭開始同步區塊鏈, 這個過程比較耗時, 你本人可以暫時離開去做別的事, 例如去吃個飯. 不帶參數調用 bin 目錄下的 siac 程式可以查看當前的同步進度. 螢幕顯示的資訊中有一行會寫著 Synced: Yes 或 Synced: No 以及當前區塊鏈同步完成率百分比.
【原文】If this is your first time, go to eat. The SIA daemon will start syncing the blockchain. If you want to check if the sync is done, execute SIA client (siac) without parameters. You will see a line that says Synced: Yes/No, and an approximation of the remaining time to complete.
Configure the Wallet
【原文】
If you want to farm, you must have a valid wallet. At the early beginning, I was thinking that using an address provided by Poloniex was enough. But it is not, the software needs the ability to push manipulate the wallet more than doing transfers. Type the following:
cd ~sia/bin./siac wallet init
The SIA client will output two very important values: sia seed and sia password. Save them, you will need them for almost anything. The next step is to know what is your SIA wallet address. Type the following:
./siac wallet unlock./siac wallet address
Take note of your new address.
Put your Harddisk Space into the Market
【原文】
You will get a message telling SIA folder has been added. The next step is to configure the price. First some concepts:
- Storage: usually in terms of Siacoins per Terabyte per Month. You can set your own price by typing ./siac host config minstorageprice 0000SC
- Bandwidth: usually in terms of Siacoins per Terabyte. Bandwidth is divided in:
- Download: when the renter downloads, this is upload for you. You can set your own price by typing ./siac host config mindownloadbandwidthprice 0000SC
- Upload: when the renters uploads, this is download for you. You can set your own price by typing ./siac host config minuploadbandwidthprice 0000SC
Collateral: usually in terms of Siacoins. The Collateral is a guarantee to renters for your commit. Its the way to say that you are committed or you will loose money as well. Collateral is divided into three concepts:
- Collateral: the amount of money that will be put in escrow. You can set it by typing ./siac host config collateral 0000SC
- Max Collateral: the maximum money that it is going to be put per contract. You can set it by typing ./siac host config maxcollateral 0000SC
- Collateral Budget: the global money tat it is going to be put in escrow. You can set it by typing ./siac host config collateralbudget 0000SC
Duration: usually in weeks, it is the duration that the host will commit to keeping a file. You can set up this value by typing ./siac host config maxduration 000
As this is a market bid, the best next question is what values should I use. The SIA FAQ says that use a lower price of 100 SC per GB.
Calculating your Prices
- Storage Pricing
- Bandwidth Pricing
- Collateral Pricing
- Maximum Contracts Duration
Start Hosting
Just type:
./siac host announce
Good Luck!