- Clean old build files:
rm -rf _build deps; mix deps.clean --all
- Download deps:
mix deps.get
- Install tools and other libs:
sudo port install gmp libtool
- Try build libsecp256k1:
cd deps/libsecp256k1/c_src/secp256k1; aclocal; autoconf; cd ..; ./build_deps.sh
- Try build blockscout:
cd blockscout; mix do deps.get, local.rebar --force, deps.compile, compile
- If gmp.h not found, then modify Makefile:
vi deps/libsecp256k1/Makefile
, add followingCFLAGS += -I /opt/local/include -L /opt/local/lib
- Rebuild blockscout:
mix do deps.get, local.rebar --force, deps.compile, compile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1.Enable sharing folders: | |
sudo apt-get install virtualbox-guest-additions-iso | |
sudo mount -o loop /usr/share/virtualbox/VBoxGuestAdditions.iso /media/ | |
cd /media | |
sudo ./VBoxLinuxAdditions.sh | |
sudo reboot | |
sudo adduser jeff vboxsf | |
2.Enlarge partitions: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
^CREATE[\s\w`\(\n\),'\u00000-\uFFFFF-]*;$ //match sql | |
^(\s)*$\n //match empty line |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<style> | |
</style> | |
<script src="https://code.jquery.com/jquery-3.6.0.js" | |
integrity="sha256-H+K7U5CnXl1h5ywQfKtSj8PCmoN9aaq30gDh27Xc0jk=" crossorigin="anonymous"></script> | |
<script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone -b v4.1.2-beta --depth 1 https://github.com/poanetwork/blockscout | |
cd blockscout | |
git remote rename origin upstream | |
git remote add origin [email protected]:YongmingZhao/blockscout.git | |
git branch -f master HEAD | |
git checkout master | |
git fetch --unshallow upstream | |
git push origin master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd openssl-3.0.2 | |
./Configure shared --prefix=`pwd`/target --openssldir=`pwd`/target | |
make | |
make install | |
cd ../blockscout | |
export KERL_CONFIGURE_OPTIONS=--without-javac --with-ssl=/somepath/openssl-3.0.2/target | |
asdf install erlang 24.2 |
-
Prepare a working directory:
(Optional) nvm is conflict with asdf, if nvm is installed, deactive it
nvm unload rm -rf ~/.nvm # important, further steps will scan this path, remove or rename it
Create a working directory:
mkdir metamask
rpm -Uvh http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm
yum install mysql-server
- log-in your mysql via terminal as "root" --> mysql -uroot -p
- CREATE USER 'toor123'@'%' IDENTIFIED BY 'your-password';
- GRANT ALL PRIVILEGES ON . TO 'toor123'@'%';flush privileges;
- Open mysql's configuration file: vi /etc/my.cnf
- Append the following directive into the [mysqld] section: bind-address=192.168.1.80 (server's address)
- Make sure line "skip-networking" is commented
- Store your changes and restart Mysqld: systemctl start|stop|status mysqld
- firewall-cmd --zone=public --add-port=3306/tcp --permanent
Create a self-signed ssl server
sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/ssl/private/nginx-selfsigned.key -out /etc/ssl/certs/nginx-selfsigned.crt
Add config
ssl_certificate /etc/ssl/certs/nginx-selfsigned.crt;
ssl_certificate_key /etc/ssl/private/nginx-selfsigned.key;