Here is the guide to install NXT client on linux 64-bit platform. I've chosen the ubuntu distro because it's the most common one. You can use this instructions on your linux vps as well. 32-bit instructions are similar, only you need to download and install the x32 version of java-jre.
1 - Setting up Java JRE
1.1 - First, we need the latest java jre in your system. To do that:
type the following command to a terminal to delete the existing java in your system:
sudo apt-get purge openjdk-\*
1.2 - then create a directory to hold jre files with this command:
sudo mkdir -p /usr/local/java
1.3 - then go to this folder, download the latest (1.7.0-45 for today) jre and extract the tarball:
cd /usr/local/java
sudo wget http://ghaffarian.net/downloads/Java/JRE/jre-7u45-linux-x64.tar.gz
sudo tar xvzf jre-7u45-linux-x64.tar.gz
1.4 - now you need to add the PATH variables to our system:
open a nano editor with this command:
sudo nano /etc/profile
Scroll down to the end of the file using your arrow keys and add the following lines (copy/paste) below to the end of your /etc/profile file:
JAVA_HOME=/usr/local/java/jre1.7.0_40
PATH=$PATH:$HOME/bin:$JAVA_HOME/bin
export JAVA_HOME
export PATH
save the file and exit with ctrl+x and yes
1.5 - now you need to inform your Ubuntu Linux system where your Java JRE is located, and make it default with these commands. execute each of them one by one:
sudo update-alternatives --install "/usr/bin/java" "java" "/usr/local/java/jre1.7.0_45/bin/java" 1
sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/local/java/jre1.7.0_45/bin/javaws" 1
sudo update-alternatives --set java /usr/local/java/jre1.7.0_45/bin/java
sudo update-alternatives --set javaws /usr/local/java/jre1.7.0_45/bin/javaws
now you should have succesfully installed the latest jre to your system.
2 - Installing and running NXT Client
2.1 - you should download the latest nxt client. you can check them from this post:
https://nextcoin.org/index.php/topic,100.msg730.html#msg730
cd your home folder and download the latest client:
cd ~
wget https://dl.dropboxusercontent.com/u/67242472/nxt.zip
2.2 - then unzip it:
unzip nxt.zip
cd nxt
2.3 - now it's time to start the client. start it with following command:
java -jar start.jar
you can open http://localhost:7875 or http://localhost:7674 from a browser for GUI. If you've installed the client to a vps, you should change the "localhost" with your vps ip.
3 - (OPTIONAL) Setting up client to run when computer starts
3.1 - To automate the starting process of client, you need a startup script. to make it type the following commands to terminal:
cd ~
sudo nano ~/startup.sh
now copy and paste the following lines to your script:
#!/bin/bash
cd ~/nxt/
java -jar start.jar
3.2 - you should add this script to your startup with crontabs. type
crontab -e
and select nano as editor, add this line at the end of file:
@reboot ~/startup.sh
Donations: 17449290204457266561