Gethをインストールする。 Ethereumを利用する場合、まずはEthereumのP2Pネットワークに参加する必要があります。.
Go-Ethereum (Geth) is one of the many Ethereum clients. It is developed by developers from the Ethereum Foundation. The core features of Ethereum web 3.0 stack are expected to arrive at Geth first.
In this guide, the procedure for installing Geth on Windows will be shown. I will be installing Geth 1.5.4 (latest stable version as of 30 Nov) on my Windows 10 machine.
Machine Specifications: (Overkill)
- i5-6600K Processor
- Samsung 850 Evo SSD
- 16 GB RAM
Download & Install
Step 1: Download the latest Geth Windows release from Geth’s GitHub page.
The link to the Github page is as follows: https://ethereum.github.io/go-ethereum/downloads/.
Click on the windows download link (as shown by the red arrow below). As an additional precaution, you can check that your download is not corrupted by verifying the file’s MD5 checksum (See How To Check MD5 Checksum of Files for more information).
Important!: Please check that you are at the CORRECT github page and ONLY download Geth from the official Github page.
Step 2: Install Geth
Begin the installation by double-clicking on the Geth installer.
Step 3: Run Geth!
You can find the exe file for Geth at your installation folder that you have specified earlier.
Double-click on the exe file to begin the block syncing process.
The full syncing of the blocks will take some time (a few hours). Notice that 128 MB was allocated as cache, as indicated by the red line. You are able to increase this cache and let Geth sync much faster.
Step 4: Forget about Step 3 and set flags to speed up Geth’s syncing!
First, go back to the installation folder. Right click on the exe file and create a shortcut (on desktop).
Go to your desktop and right click on the “Geth” shortcut. Choose “Properties” and go to “Shortcut” tab. Type in -fast -cache=1024 in the “Target”. This will let Geth be in “fast” mode and allocates 1024 MB from the RAM to Geth. If you have a lot of free ram, you can increase the amount (to say, 4096).
Step 5: Wait for Geth to complete the fast sync
You should be looking at this new screen now (as shown below). The cache will be 1024 MB and Geth will start importing state entries instead of blocks.
You will know that fast sync is completed once Geth starts to import block-by-block (1 block at a time). The fast sync took 34 minutes to complete.
Using apt-get command to install specific version of package in Ubuntu Linux. Ubuntu users can install package from previous release or install a specific version of a package.
A specific version of a package can be selected for installation by following the package name with an equals and the version of the package to select. This will cause that version to be located and selected for install. Alternatively a specific distribution can be selected by following the package name with a slash and the version of the distribution or the Archive name (stable, frozen, unstable).
For example, you could do:
Note that you may need to do some dependency resolution on your own in this case, but if there are any problems apt-get will tell you what is causing them.
sudo apt-get update
sudo apt-get install apache2=2.2.20-1ubuntu1
Note that you may need to do some dependency resolution on your own in this case, but if there are any problems apt-get will tell you what is causing them.
Check all the available version of a package
Use the apt-cache command to check the version of the package installed on your system plus all available packages in the Ubuntu repository. You can either run “apt-cache policy firefox” or “apt-cache madiosn firefox”. Please note that the firefox in the said command is the name of the package. if ypu are looking for some other package, name it there.
apt-cache policy firefox
apt-cache madison firefox
This is the output on my system
sourcedigit@SD:~$ apt-cache madison firefox
firefox | 59.0~b14+build1-0ubuntu0.16.04.1 | http://ppa.launchpad.net/mozillateam/firefox-next/ubuntu xenial/main i386 Packages
firefox | 45.0.2+build1-0ubuntu1 | http://archive.ubuntu.com/ubuntu xenial/main i386 Packages
sourcedigit@SD:~$ apt-cache policy firefox
firefox:
Installed: 59.0~b9+build1-0ubuntu0.16.04.1
Candidate: 59.0~b14+build1-0ubuntu0.16.04.1
Version table:
59.0~b14+build1-0ubuntu0.16.04.1 500
500 http://ppa.launchpad.net/mozillateam/firefox-next/ubuntu xenial/main i386 Packages
*** 59.0~b9+build1-0ubuntu0.16.04.1 100
100 /var/lib/dpkg/status
45.0.2+build1-0ubuntu1 500
500 http://archive.ubuntu.com/ubuntu xenial/main i386 Packages
sourcedigit@SD:~$ apt-cache madison firefox
firefox | 59.0~b14+build1-0ubuntu0.16.04.1 | http://ppa.launchpad.net/mozillateam/firefox-next/ubuntu xenial/main i386 Packages
firefox | 45.0.2+build1-0ubuntu1 | http://archive.ubuntu.com/ubuntu xenial/main i386 Packages
sourcedigit@SD:~$ apt-cache policy firefox
firefox:
Installed: 59.0~b9+build1-0ubuntu0.16.04.1
Candidate: 59.0~b14+build1-0ubuntu0.16.04.1
Version table:
59.0~b14+build1-0ubuntu0.16.04.1 500
500 http://ppa.launchpad.net/mozillateam/firefox-next/ubuntu xenial/main i386 Packages
*** 59.0~b9+build1-0ubuntu0.16.04.1 100
100 /var/lib/dpkg/status
45.0.2+build1-0ubuntu1 500
500 http://archive.ubuntu.com/ubuntu xenial/main i386 Packages
Install a specific version of a package
Run the following command to install a specific version of a package {Firefox in our example}.
So the code becomes “sudo apt install firefox=45.0.2+build1-0ubuntu1” which needs to be executed.
-s is the parameter to simulate the installation so that no erroe is encountered during the installation process.
apt-get install package=version -V
So the code becomes “sudo apt install firefox=45.0.2+build1-0ubuntu1” which needs to be executed.
apt-get install -s package
-s is the parameter to simulate the installation so that no erroe is encountered during the installation process.