Linux安装指南#

This guide describes how to download, verify, install and encrypt the Dash Core wallet for Linux. The guide is written for Ubuntu 20.04 LTS, but the steps should be similar for other Linux distributions.

下载Dash Core钱包#

Visit https://www.dash.org/downloads/ to download the latest Dash Core wallet. In most cases, the website will properly detect which version you need. Click the Dash Core button to download the package directly.

../../../../_images/download.png

网站会正确检测到适合你系统的钱包软件#

If detection does not work, you will need to manually choose your operating system and whether you need an x64 (64 bit x86) or ARM version. If you are unsure about your version of Linux, you can check in Ubuntu using the Terminal:

uname -m

If the response is x86_64, download Dash Core x64. If the response is aarch64, download Dash Core ARM. Once you know which version you need, download the Dash Core TGZ file to your computer from https://www.dash.org/downloads/ and save it to your Downloads folder.

备注

Since Dash Core 18.0, downloads are not available for 32-bit Linux installations.

验证Dash Core#

This step is optional, but recommended to verify the authenticity of the file you downloaded. This is done by checking its detached signature against the public key published by the Dash Core development team. To download the detached signature, click the Signature button on the wallet download page and save it to the same folder as the downloaded binary.

All releases of Dash since 0.16.0 are signed using GPG with the following key:

Open a terminal, import the key and verify the authenticity of your download as follows:

curl https://keybase.io/pasta/pgp_keys.asc | gpg --import
gpg --verify dashcore-23.1.0-x86_64-linux-gnu.tar.gz.asc
../../../../_images/setup-linux-gpg.png

下载PGP密钥并验证已签名的二进制文件#

If you see the message Good signature from ..., then you have an authentic copy of Dash Core for Linux.

备注

If you have your own key configured, you can eliminate warnings from the verification output by signing the imported key before verifying:

gpg --quick-lsign-key "29590362EC878A81FD3C202B52527BEDABE87984"
gpg --verify dashcore-23.1.0-x86_64-linux-gnu.tar.gz.asc

提取Dash Core#

Linux的Dash Core是以压缩文档而不是安装程序方式分发的。这是因为同一文档下还有其它文件存在,比如在服务器上运行主节点文件。本指南中,我们会解压一个带图形用户接口(GUI)的可执行文件,此图形用户接口是最终用户按钱包用途设计的。

Extract Dash Core as follows:

tar xzf dashcore-23.1.0-x86_64-linux-gnu.tar.gz

This will create a folder named dashcore-23.1.0 in the current working directory. We will now install the executable binaries to /usr/local/bin using the install command:

sudo install -m 0755 -o root -g root -t /usr/local/bin dashcore-23.1.0/bin/*

备注

In order to run Dash Core, you will need several libraries that should be available in all major, recently-released Linux distributions. If you receive an error message that indicates files are missing when starting Dash Core, search your distribution's package database for the missing file and install the package containing that file.

On recent versions of Ubuntu, you may need to install libxcb-xinerama0 by running:

sudo apt install libxcb-xinerama0

Start Dash Core from the terminal with the following command:

dash-qt

The first time the program is launched, you will be offered a choice of where you want to store your blockchain and wallet data. Choose a location with enough free space, as the blockchain can reach 45GB+ in size. It is recommended to use the default data folder if possible.

../../../../_images/106329842.png

选择Dash Core数据文件夹#

Dash Core随后便开始运行了。第一次运行会比正常情况时间久一点,因为Dash Core需要生成一些加密数据来保护你的钱包。

../../../../_images/dashcore-splash.png

启动Dash Core#

Dash Core和达世币网络进行同步#

一旦Dash Core成功安装并启动,你就会看到钱包的主屏幕界面。这时钱包是“非同步状态”,窗口下面会有进度条显示同步的进程。

../../../../_images/dashcore-syncing.png

Dash Core和达世币网络同步#

During this process, Dash Core will download a full copy of the Dash blockchain from other nodes to your device. Depending on your internet connection, this may take a long time. If you see the message “No block source available”, check your internet connection. When synchronization is complete, you will see a small green tick in the lower right corner.

../../../../_images/dashcore-synced.png

Dash Core同步完成#

You can now create a wallet to send and receive funds.

Setting up a desktop entry#

You can set up an XDG Desktop Entry in order to be able to launch Dash Core from your KDE or Gnome desktop environment. To do so, create a file named ~/.local/share/applications/dash.desktop and add the following content:

[Desktop Entry]
Version=1.5
Name=Dash Core
Comment=Dash Core is used to interact with the Dash blockchain
Exec=/usr/local/bin/dash-qt
Icon=dash-icon
Terminal=false
Type=Application

Ensure the file is executable:

chmod +x ~/.local/share/applications/dash.desktop

An appropriate icon can optionally be downloaded from the Dash Brand Guidelines page:

wget https://media.dash.org/wp-content/uploads/dash-d-rounded-square-250.png
xdg-icon-resource install --size 256 dash-d-rounded-square-250.png dash-icon

Creating your Dash Wallet#

Added in version v20.1.0: HD wallets are now created by default.

If no wallet files are loaded, you will get this prompt in the Overview tab. To create a wallet, click the Create a new wallet button or click File -> Create Wallet. HD wallets are created by default. See the advanced topics section for information about HD wallets.

../../../../_images/dash-create-wallet-prompt.png

You will be prompted to create a new wallet with a custom wallet name. By default, your wallet will be encrypted. You may choose to uncheck the box and encrypt the wallet later. We have included instructions on how to encrypt your wallet in the following section.

../../../../_images/dash-name-wallet.png

Setting your password#

If you do choose to encrypt now, you will be asked to enter and verify a password.

../../../../_images/dash-encrypt-wallet.png

输入密码#

Following that, you will get a standard warning. Click Yes to continue.

../../../../_images/dash-encrypt-wallet-confirmation.png

确认你想要加密你的钱包#

Backing up your mnemonic#

Dash Core will display your mnemonic phrase (also called a recovery phrase) for all wallets (encrypted or not). This phrase can be used to restore your wallet if you lose access to your device.

警告

CRITICAL: If you lose your mnemonic seed phrase, you will permanently lose access to your wallet and all funds. Write it down on paper (not digitally) and store it in a safe, secure location. Never share your mnemonic with anyone.

../../../../_images/dash-mnemonic-save.png

Mnemonic phrase backup prompt#

Click the Show button to reveal your mnemonic phrase. Then, write down all the words in order and check the "I have written down my mnemonic" checkbox to continue.

../../../../_images/dash-mnemonic-save-show.png

Revealing the mnemonic phrase#

Dash Core will then ask you to verify that you correctly saved the phrase by entering specific words from your mnemonic. Enter the requested words to confirm you have properly saved your mnemonic phrase.

As you enter each word correctly, a green checkmark will appear beside it. Once you have successfully verified your mnemonic, click Continue to complete the wallet creation process.

../../../../_images/dash-mnemonic-save-confirm.png

Mnemonic verification#

备注

For more information about HD wallets and how to view or restore your mnemonic phrase later, see the advanced topics section.

The following section will detail the steps you need to follow if you choose to encrypt your Dash wallet later.

加密你的达世币钱包#

加密你的钱包,请点击设置 > 加密钱包

../../../../_images/dashcore-settings-encrypt.png

对达世币钱包进行加密#

你将被要求输入和验证密码。

../../../../_images/dash-encrypt-wallet.png

输入密码#

../../../../_images/dash-encrypt-wallet-confirmation.png

确认你想要加密你的钱包#

When the encryption process is complete, you will see a warning that past backups of your wallet will no longer be usable, and be asked to shut down Dash Core. When you restart Dash Core, you will see a small green lock in the lower right corner.

../../../../_images/dashcore-synced-and-encrypted.png

Dash Core钱包完成同步和加密#