anyone can make a guide on HOW rent and set up a VPS for newbies?
Step 1) Sign up for digitalocean.com (skip to Step 4 if you already have a VPS hosting account from any other provider running Debian 7, 64-bit).
Short guide on how to choose a VPS host.Step 2) Once signed up you can fund your account
$5 covers 1 month of computing for 1 server.
For hallmarked nodes 1 gb RAM ($10/month VPS plan) is preferred, see Step 5a.
Step 3) Create your first droplet
Step 3a) Set the hostname to whatever you like
Step 3b) Select the $5 or $10 a month option
Step 3c) Select "Debian 7.0 x64" which is Debian under the Linux Distributions tab
Once created, you will receive an email with the IP address, username (should be 'root'), and password.
Step 4) Download Putty (
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html ) and connect.
Open putty and input the
IP Address from the email into the Host Name field and select open.
Step 5) Input the commands to setup your server
The first step is to login. Just enter the username from the email (most likely root). Then copy the password from the email and right click on the putty terminal and hit enter. Right clicking is how you paste in the putty terminal. Now you're ready to run the commands:
1) sudo apt-get update
2) sudo apt-get install openjdk-7-jre-headless nano ntp
3) wget http://download.nxtcrypto.org/nxt-client-0.8.9.zip
4) unzip nxt-client-0.8.9.zip
5) nano conf/nxt-default.properties
in the section ###PEER NETWORKING ###, find the following lines:
put
IP address you got from the host.
It should look like:
nxt.myAddress=x.x.x.x
-----
Step 5a) If you want to run a hallmarked node, edit this section also (if you run a hallmarked node you will need more RAM, 1gb or more especially if you want to run a node with a heavy Weight value, so get more RAM in step 2):
The best approach now is to create a special NXT account, put 10-100 NXTs in it, and create a hallmark against that account with the Weight value of how many NXTs you funded it with (100 or less NXTs is enough, make it at least 10). Then mark your node using the generated hallmark. This enormously helps the network. Please spread the word.
put your hallmark there (make sure no whitespace character is left in it when you copy-paste it),
you can generate your hallmark by going to https://localhost:7875/admin.html
explanation on what is hallmarking and what are the benefits:
https://bitcointalk.org/index.php?topic=345619.msg3863559;topicseen#msg3863559
-----
press CTRL+X and then Y to save the file.
6) cd ~/nxt
7) nano run.sh
a) If your VPS has 512 MB RAM, replace the line:
java -Xmx1024M -cp nxt.jar:lib/*:conf nxt.Nxt
with
java -Xmx450M -cp nxt.jar:lib/*:conf nxt.Nxt
b) If your VPS has 1024 MB RAM, replace the line:
java -Xmx1024M -cp nxt.jar:lib/*:conf nxt.Nxt
with
java -Xmx800M -cp nxt.jar:lib/*:conf nxt.Nxt
-----
press CTRL+X and then Y to save the file.
8 )
9)
- this command will list currently running processes, check that you see process 'java' running and using CPU and RAM, if it is, then press 'q' to exit 'top'.
It is strongly advised that you do NOT unlock your account on a vps-hosted NXT due to security of the VPS not 100% guaranteed (server admins of the hosting company always have root-level access to your VPS, etc). Only unlock your account on your local computer installation. It is ok and necessary to run a public node to help the network, but not 100% safe to unlock your account on it.