Merge pull request 'Move files making the root directory clean' (#400) from mvstuff into dev
Reviewed-on: https://git.hush.is/hush/hush3/pulls/400
This commit is contained in:
@@ -1,11 +0,0 @@
|
|||||||
# Installing Hush binaries
|
|
||||||
|
|
||||||
1. First [download the release](https://git.hush.is/hush/hush3/releases) you want to install. It will have a .deb file extension.
|
|
||||||
|
|
||||||
1. Next install the Debian package (change the version to what you downloaded above):
|
|
||||||
|
|
||||||
`dpkg -i hush-3.8.0-amd64.deb`
|
|
||||||
|
|
||||||
1. If you want to remove it, then run this to uninstall:
|
|
||||||
|
|
||||||
`apt-get remove hush`
|
|
||||||
122
INSTALL.md
122
INSTALL.md
@@ -1,122 +0,0 @@
|
|||||||
# Installing Hush
|
|
||||||
|
|
||||||
Instructions to compile Hush yourself.
|
|
||||||
|
|
||||||
## Swap Space (Optional)
|
|
||||||
You will need at least 4GB of RAM to build hush from git source, OR you can
|
|
||||||
enable a swap file. To enable a 4GB swap file on modern Linux distributions:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
sudo fallocate -l 4G /swapfile
|
|
||||||
sudo chmod 600 /swapfile
|
|
||||||
sudo mkswap /swapfile
|
|
||||||
sudo swapon /swapfile
|
|
||||||
```
|
|
||||||
|
|
||||||
## Build on Debian/Ubuntu:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
# install build dependencies
|
|
||||||
sudo apt-get install build-essential pkg-config libc6-dev m4 g++-multilib \
|
|
||||||
autoconf libtool ncurses-dev unzip git zlib1g-dev wget \
|
|
||||||
bsdmainutils automake curl unzip nano libsodium-dev cmake
|
|
||||||
# clone git repo
|
|
||||||
git clone https://git.hush.is/hush/hush3
|
|
||||||
cd hush3
|
|
||||||
# Build
|
|
||||||
# This uses 3 build processes, you need 2GB of RAM for each.
|
|
||||||
./build.sh -j3
|
|
||||||
```
|
|
||||||
|
|
||||||
## Build on Arch:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
# install build dependencies
|
|
||||||
sudo pacman -S gcc libsodium lib32-zlib unzip wget git python rust curl autoconf cmake
|
|
||||||
# clone git repo
|
|
||||||
git clone https://git.hush.is/hush/hush3
|
|
||||||
cd hush3
|
|
||||||
# Build
|
|
||||||
# This uses 3 build processes, you need 2GB of RAM for each.
|
|
||||||
./build.sh -j3
|
|
||||||
```
|
|
||||||
|
|
||||||
## Build on Fedora:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
# install build dependencies
|
|
||||||
sudo dnf install make automake gcc gcc-c++ kernel-devel cmake libtool ncurses-devel patch -y
|
|
||||||
# clone git repo
|
|
||||||
git clone https://git.hush.is/hush/hush3
|
|
||||||
cd hush3
|
|
||||||
# Build
|
|
||||||
# This uses 3 build processes, you need 2GB of RAM for each.
|
|
||||||
./build.sh -j3
|
|
||||||
```
|
|
||||||
|
|
||||||
### Building On Ubuntu 16.04 and older systems
|
|
||||||
|
|
||||||
Some older compilers may not be able to compile modern code, such as gcc 5.4 which comes with Ubuntu 16.04 by default. Here is how to install gcc 7 on Ubuntu 16.04. Run these commands as root:
|
|
||||||
|
|
||||||
```
|
|
||||||
add-apt-repository ppa:ubuntu-toolchain-r/test && \
|
|
||||||
apt update && \
|
|
||||||
apt-get install -y gcc-7 g++-7 && \
|
|
||||||
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 60 && \
|
|
||||||
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 60
|
|
||||||
```
|
|
||||||
|
|
||||||
### Build on Mac
|
|
||||||
|
|
||||||
These instructions are a work in progress. Please report issues to https://hush.is/tg_support
|
|
||||||
|
|
||||||
```
|
|
||||||
sudo port update
|
|
||||||
sudo port upgrade outdated
|
|
||||||
sudo port install qt5
|
|
||||||
|
|
||||||
# clone git repo
|
|
||||||
git clone https://git.hush.is/hush/hush3
|
|
||||||
cd hush3
|
|
||||||
# Build
|
|
||||||
# This uses 3 build processes, you need 2GB of RAM for each.
|
|
||||||
./build.sh -j3
|
|
||||||
```
|
|
||||||
|
|
||||||
## Run a HUSH Node
|
|
||||||
|
|
||||||
After you have compiled Hush, then you can run it with the following command:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
./src/hushd
|
|
||||||
```
|
|
||||||
|
|
||||||
## Windows (cross-compiled on Linux)
|
|
||||||
Get dependencies:
|
|
||||||
```ssh
|
|
||||||
sudo apt-get install \
|
|
||||||
build-essential pkg-config libc6-dev m4 g++-multilib libdb++-dev \
|
|
||||||
autoconf libtool ncurses-dev unzip git zip \
|
|
||||||
zlib1g-dev wget bsdmainutils automake mingw-w64 cmake libsodium-dev
|
|
||||||
```
|
|
||||||
|
|
||||||
Downloading Git source repo, building and running Hush:
|
|
||||||
|
|
||||||
```sh
|
|
||||||
# pull
|
|
||||||
git clone https://git.hush.is/hush/hush3
|
|
||||||
cd hush3
|
|
||||||
# Build
|
|
||||||
./util/build-win.sh -j$(nproc)
|
|
||||||
# Run a HUSH node
|
|
||||||
./src/hushd
|
|
||||||
```
|
|
||||||
|
|
||||||
## ARM Architecture
|
|
||||||
|
|
||||||
Currently, any ARMv7 machine will not be able to build this repo, because the
|
|
||||||
underlying tech (zcash and the zksnark library) do not support that instruction
|
|
||||||
set.
|
|
||||||
|
|
||||||
This also means that old RaspberryPi devices will not work, unless they have a
|
|
||||||
newer ARMv8-based Raspberry Pi. Raspberry Pi 4 and newer are known to work.
|
|
||||||
@@ -235,7 +235,7 @@ endif
|
|||||||
dist_bin_SCRIPTS =
|
dist_bin_SCRIPTS =
|
||||||
dist_noinst_SCRIPTS = autogen.sh util/build-debian-package.sh util/build.sh
|
dist_noinst_SCRIPTS = autogen.sh util/build-debian-package.sh util/build.sh
|
||||||
|
|
||||||
EXTRA_DIST = $(top_srcdir)/share/genbuild.sh qa/pull-tester/rpc-tests.sh qa/pull-tester/run-bitcoin-cli qa/rpc-tests qa/hush $(DIST_DOCS) $(BIN_CHECKS)
|
EXTRA_DIST = $(top_srcdir)/util/genbuild.sh qa/pull-tester/rpc-tests.sh qa/pull-tester/run-bitcoin-cli qa/rpc-tests qa/hush $(DIST_DOCS) $(BIN_CHECKS)
|
||||||
|
|
||||||
install-exec-hook:
|
install-exec-hook:
|
||||||
echo "We no longer install fetch-params!"
|
echo "We no longer install fetch-params!"
|
||||||
|
|||||||
@@ -251,7 +251,7 @@ LIBHUSH_H = \
|
|||||||
|
|
||||||
obj/build.h: FORCE
|
obj/build.h: FORCE
|
||||||
@$(MKDIR_P) $(builddir)/obj
|
@$(MKDIR_P) $(builddir)/obj
|
||||||
@$(top_srcdir)/share/genbuild.sh $(abs_top_builddir)/src/obj/build.h \
|
@$(top_srcdir)/util/genbuild.sh $(abs_top_builddir)/src/obj/build.h \
|
||||||
$(abs_top_srcdir)
|
$(abs_top_srcdir)
|
||||||
libbitcoin_util_a-clientversion.$(OBJEXT): obj/build.h
|
libbitcoin_util_a-clientversion.$(OBJEXT): obj/build.h
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# any CLI args given to this script will be passed along
|
# any CLI args given to this script will be passed along
|
||||||
# example: ./test_randomx -debug=randomx
|
# example: ./test_randomx -debug=randomx
|
||||||
./src/hushd -ac_randomx_interval=10 -ac_randomx_lag=3 -ac_halving=20 -ac_algo=randomx -ac_name=RANDOMX10 -ac_private=1 -ac_blocktime=20 -ac_reward=500000000 -ac_supply=55555 -gen=1 -genproclimit=1 -testnode=1 $@
|
../src/hushd -ac_randomx_interval=10 -ac_randomx_lag=3 -ac_halving=20 -ac_algo=randomx -ac_name=RANDOMX10 -ac_private=1 -ac_blocktime=20 -ac_reward=500000000 -ac_supply=55555 -gen=1 -genproclimit=1 -testnode=1 $@
|
||||||
|
|
||||||
# to run via the debugger
|
# to run via the debugger
|
||||||
# type "run" when gdb prompt appears
|
# type "run" when gdb prompt appears
|
||||||
Reference in New Issue
Block a user