NODE

INSTALLATION

The following platform was used to test SUN on:

  • Windows 7 x64
  • Ubuntu 20.04 LTS
  • macOS High Sierra (10.13) x64

Others should work too; check this page for all platforms supported by .NET 6.0 Runtime

WINDOWS

1. Unpack downloaded archive to any empty folder on a disk.

2. If needed, download and install .NET 6.0 Runtime

3. Configure Etherem API Privider in C:\Users\...\AppData\Roaming\UC.Sun\Testnet1\Settings.xon file

4. Open firewall settings and allow incoming connections for TCP port 30801.

5. Run "sun.exe run node" command to launch a full node in a console, or run Sun.FUI.exe executable to launch a node with graphical UI.

LINUX (Ubuntu 20.04 LTS)

1. Install dotnet 6.0

wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
rm packages-microsoft-prod.deb
sudo apt-get update \
&& sudo apt-get install apt-transport-https -y \
&& sudo apt-get update \
&& sudo apt-get install dotnet-runtime-6.0 -y

2. Install additional dependencies

sudo apt-get install libsnappy-dev unzip libc6-dev -y

3. Create 'sun' directory

sudo mkdir -p /usr/lib/sun/ && cd /usr/lib/sun

4. Download the latest SUN distribution package.

sudo wget https://www.ultranet.org/download/Testnet1.Sun-dotnet.Linux-Latest.zip

5. Extract the distributive archive.

sudo unzip Sun-Linux-Latest.zip

6. Run the node

/usr/bin/dotnet /usr/lib/sun/sun.dll node

7. Check a message about Ethereum API Provider and make a necessary changes in the Settings.xon file

8. Run the node again

/usr/bin/dotnet /usr/lib/sun/sun.dll node

MACOS

1. Download and install the latest .NET 6.0 Runtime using this link on macOS 10.13+, x64

curl https://download.visualstudio.microsoft.com/download/pr/03e62824-4061-45dc-8777-93e82205148d/81489074c065675bd713a9cbeb995bef/dotnet-runtime-6.0.0-osx-x64.pkg -o dotnet-runtime-6.0.0-osx-x64.pkg
sudo installer -pkg dotnet-runtime-6.0.0-osx-x64.pkg -target /

2. Download the latest SUN archive, extract and set up permissions:

curl https://www.ultranet.org/download/Testnet1.Sun-dotnet.macOS-Latest.zip -o Sun-MacOS-Latest.zip
sudo unzip Sun-MacOS-Latest.zip -d /usr/local/sun
sudo chown -R $USER /usr/local/sun

3. Run the node

/usr/local/share/dotnet/dotnet /usr/local/sun/sun.dll node

4. Check a message about Ethereum API Provider and make a necessary changes in the Settings.xon file

5. Run the node again

/usr/local/share/dotnet/dotnet /usr/local/sun/sun.dll node