Ethereum/Installation

From r00tedvw.com wiki
(Difference between revisions)
Jump to: navigation, search
Line 4: Line 4:
 
<br>
 
<br>
 
With the above mentioned, this article will be based on the latest Ubuntu server build, which at the time of this writing is 16.04.3 LTS.
 
With the above mentioned, this article will be based on the latest Ubuntu server build, which at the time of this writing is 16.04.3 LTS.
 +
 +
=Initial Hardware Setup=
 +
As a personal rule, I always start with the most basic configuration and slowly build upon it, step by step, rather than just installing everything at once.  In my experience, this has helped me overcome issues as they are easier to identify this way.<br>
 +
With that said, I would first recommend setting up your system in the most basic functional configuration possible.  My beginning config was this:<br>
 +
'''Installed:'''
 +
*Power supply - EVGA 1k watt PS
 +
*Intel Mainboard - AS Rock H81 Pro BTC (with onboard video through HDMI)
 +
*Intel Processor - 2.9Ghz Pentium
 +
*CPU heatsink/fan
 +
*ThumbDrive - Toshiba 16GB USB 2.0
  
 
=OS Installation=
 
=OS Installation=
Line 49: Line 59:
 
  PasswordAuthentication yes
 
  PasswordAuthentication yes
 
  Port 22</nowiki>
 
  Port 22</nowiki>
 +
 +
=Video Card Installation=
 +
With a base OS configured, I decided to go ahead and install the first video card (test card).  <br>
 +
'''Hardware installed:'''
 +
*ATI Radeon 5850
 +
*PCI-e Riser (USB)
 +
With the video card installed and the system powered on, let's make sure the system sees the video card.
 +
<nowiki>~$ lspci -v | grep -A 10 AMD | grep -A 10 VGA
 +
02:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Cypress PRO [Radeon HD 5850] (prog-if 00 [VGA controller])
 +
Subsystem: XFX Pine Group Inc. Cypress PRO [Radeon HD 5850]
 +
Flags: bus master, fast devsel, latency 0, IRQ 27
 +
Memory at e0000000 (64-bit, prefetchable) [size=256M]
 +
Memory at f0020000 (64-bit, non-prefetchable) [size=128K]
 +
I/O ports at e000 [size=256]
 +
Expansion ROM at f0000000 [disabled] [size=128K]
 +
Capabilities: <access denied>
 +
Kernel driver in use: radeon
 +
Kernel modules: radeon</nowiki>
 +
We can see that the video card is seen and has a location of '''02:00.0'''.

Revision as of 00:47, 11 December 2017

Contents

Overview

In the below article i'll be covering how to configure an Ethereum deployment on Ubuntu. Out of the available linux resources out there, Debian based are well supported by Ethereum developers, with some people even setting up a repository software can be easily obtained from.
Regarding Redhat based solutions, most everything I've seen requires you to download the source, compile and make yourself, which is not ideal for any solution long term that you plan on keeping up to date.

With the above mentioned, this article will be based on the latest Ubuntu server build, which at the time of this writing is 16.04.3 LTS.

Initial Hardware Setup

As a personal rule, I always start with the most basic configuration and slowly build upon it, step by step, rather than just installing everything at once. In my experience, this has helped me overcome issues as they are easier to identify this way.
With that said, I would first recommend setting up your system in the most basic functional configuration possible. My beginning config was this:
Installed:

  • Power supply - EVGA 1k watt PS
  • Intel Mainboard - AS Rock H81 Pro BTC (with onboard video through HDMI)
  • Intel Processor - 2.9Ghz Pentium
  • CPU heatsink/fan
  • ThumbDrive - Toshiba 16GB USB 2.0

OS Installation

I've chosen to use a thumbdrive as my hard disk. I do not think that disk speed will affect performance, so i've gone with the cheapest solution i can find that I think will work, an 8GB Sandisk drive straight from China. Mine cost $2.84 shipped, but I see others just like it for $2.99 and some mini 8GB versions (sit almost flush with the USB port) for $1.49 shipped.

Again, I've used Ubuntu Server x64 16.04.3 for the operating system. Make sure to download the right ISO, mine was almost 900MB.

USB Installation

Assuming you are working from a Debain based machine (Ubuntu, Mint, etc), you can download unetbootin from the repos in order to install Ubuntu onto the USB drive.

~$ sudo apt-get update && sudo apt-get install unetbootin -y

If you wanted to check and make sure it was available in your repos, run a quick search

~$ sudo apt-cache search unetbootin

With unetbootin installed, you can use the GUI to write the ISO to the Flash Drive.

Alternatively, if unetbootin fails (which it did for me, the USB was not bootable), you can see if your distribution has its own USB creator. Thankfully Mint had USB Image Writer and I used that to create the bootable USB.

NOTE: you may need to use (2) thumb drives to pull this off. (1) will contain the installation media, the other will be used for the Operating system to be installed to.

BIOS Configuration suggestions

Below are some BIOS configuration suggestions. I'm not going to show you how to change them or what all of the helpful ones might be because there are simply too many different types of BIOS solutions out there, however, the list below is fairly generic.

  • Set correct date/time
  • Set Boot config so your USB is first.
  • disable sound card
  • set auto power in if AC is lost
  • disable onboard RAID
  • disable full screen logo
  • change halt on to no errors (you want it to boot without stopping)
  • quick boot enabled (no memory checking)
  • disable boot up seek floppy

OS Configuration

Setup DHCP

~$ sudo vim /etc/network/interfaces
Add:
#dhcp - enp3s0=nic
auto enp3s0
iface enp3s0 inet dhcp

Update and upgrade all packages

~$ sudo apt-get update && sudo apt-get upgrade -y

Install sshd

~$ sudo apt-get install ssh -y

Configure sshd. This is a basic, low security, setup working over port 22 and password authentication. It is not meant for a device serving ssh connections to the internet.

~$ sudo vim /etc/ssh/ssh_config
Uncomment:
 PasswordAuthentication yes
 Port 22

Video Card Installation

With a base OS configured, I decided to go ahead and install the first video card (test card).
Hardware installed:

  • ATI Radeon 5850
  • PCI-e Riser (USB)

With the video card installed and the system powered on, let's make sure the system sees the video card.

~$ lspci -v | grep -A 10 AMD | grep -A 10 VGA
02:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Cypress PRO [Radeon HD 5850] (prog-if 00 [VGA controller])
	Subsystem: XFX Pine Group Inc. Cypress PRO [Radeon HD 5850]
	Flags: bus master, fast devsel, latency 0, IRQ 27
	Memory at e0000000 (64-bit, prefetchable) [size=256M]
	Memory at f0020000 (64-bit, non-prefetchable) [size=128K]
	I/O ports at e000 [size=256]
	Expansion ROM at f0000000 [disabled] [size=128K]
	Capabilities: <access denied>
	Kernel driver in use: radeon
	Kernel modules: radeon

We can see that the video card is seen and has a location of 02:00.0.

Personal tools
Namespaces

Variants
Actions
Navigation
Mediawiki
Confluence
DevOps Tools
Open Source Products
Ubuntu
Ubuntu 22
Mac OSX
Oracle Linux
AWS
Windows
OpenVPN
Grafana
InfluxDB2
TrueNas
MagicMirror
OwnCloud
Pivotal
osTicket
OTRS
phpBB
WordPress
VmWare ESXI 5.1
Crypto currencies
HTML
CSS
Python
Java Script
PHP
Raspberry Pi
Canvas LMS
Kaltura Media Server
Plex Media Server
MetaSploit
Zoneminder
ShinobiCE
Photoshop CS2
Fortinet
Uploaded
Certifications
General Info
Games
Meal Plans
NC Statutes
Politics
Volkswagen
Covid
NCDMV
Toolbox