How to setup the Rippled server in my local? - ripple

Any body Please tell me how to setup the rippled server in my local system and how to call the API's for generating address and doing the transactions with out using the Rippled public server(s1.ripple.com ).
Thanks in advance

Here is simple steps to setup ripple mainnet server in your system
You can also go through the link as below -
https://developers.ripple.com/install-rippled.html
Minimum System Requirements
A rippled server should run comfortably on commodity hardware, to make it inexpensive to participate in the network. At present, we recommend the following minimum requirements:
Operating System:
Production: CentOS or RedHat Enterprise Linux (latest release) or Ubuntu (16.04+) supported
Development: Mac OS X, Windows (64-bit), or most Linux distributions
CPU: 64-bit x86_64, 2+ cores
Disk: Minimum 50GB SSD recommended (1000 IOPS, more is better) for the database partition
RAM:
Testing: 8GB+
Production: 32 GB
Amazon EC2's m3.large VM size may be appropriate depending on your workload. A fast network connection is preferable. Any increase in a server's client-handling load increases resources needs.
Installation on CentOS/Red Hat with yum
This section assumes that you are using CentOS 7 or Red Hat Enterprise Linux 7.
Install the Ripple RPM repository:
$ sudo rpm -Uvh https://mirrors.ripple.com/ripple-repo-el7.rpm
Install the rippled software package:
$ sudo yum install --enablerepo=ripple-stable rippled
Configure the rippled service to start on system boot:
$ sudo systemctl enable rippled.service
Start the rippled service
$ sudo systemctl start rippled.service
Installation on Ubuntu with alien
This section assumes that you are using Ubuntu 15.04 or later.
Install yum-utils and alien:
$ sudo apt-get update
$ sudo apt-get install yum-utils alien
Install the Ripple RPM repository:
$ sudo rpm -Uvh https://mirrors.ripple.com/ripple-repo-el7.rpm
Download the rippled software package:
$ yumdownloader --enablerepo=ripple-stable --releasever=el7 rippled
Verify the signature on the rippled software package:
$ sudo rpm --import https://mirrors.ripple.com/rpm/RPM-GPG-KEY-ripple-release && rpm -K rippled*.rpm
Install the rippled software package:
$ sudo alien -i --scripts rippled*.rpm && rm rippled*.rpm
Configure the rippled service to start on system boot:
$ sudo systemctl enable rippled.service
Start the rippled service
$ sudo systemctl start rippled.service
Postinstall
It can take several minutes for rippled to sync with the rest of the network, during which time it outputs warnings about missing ledgers. After that, you have a fully functional stock rippled server that you can use for local signing and API access to the XRP Ledger.
You can use the rippled commandline interface as follows:
$ /opt/ripple/bin/rippled
Additional Configuration (Must needs to do according your IP)-
rippled should connect to the XRP Ledger with the default configuration. However, you can change your settings by editing the rippled.cfg file (located at /opt/ripple/etc/rippled.cfg when installing rippled with yum). You must change the IP setting with your own entered IP and then connected with this setup server using java script code.
See the rippled GitHub repository for a description of all configuration options.
Changes to the [debug_logfile] or [database_path] sections may require you to give the rippled user and group ownership to your new configured path:
$ chown -R rippled:rippled <configured path>
Restart rippled for any configuration changes to take effect:
$ sudo service rippled restart
For more dig into ripple RPC and command kindly go through below link
https://developers.ripple.com/admin-rippled-methods.html
https://developers.ripple.com/public-rippled-methods.html
Hope this will help..

Related

How to install new relic on amazon linux

I have have unzipped newrelic files onto amazon linux and have both the installer.sh and config_defaults.sh
I have the license key in the parameter store which I am able to call
I install newrelic with the following command
sudo ./installer.sh GENERATE_CONFIG=true LICENSE_KEY=$APIKEY
sudo systemctl start newrelic-infra # to start the service
Where APPIKEY comes from the parameter store.
However when I do
sudo systemctl start newrelic-infra
I get error message
level=error msg="can't load configuration file" component="New Relic Infrastructure Agent" error="no license key, please add it to agent's config file or NRIA_LICENSE_KEY environment variable"
How can I make the agent recognize the license key?
It seems you are installing the infrastructure agent on a Amazon Linux 2 host by following the manual or assisted tarball installation flow. Note that not all features and integrations are available with that setup.
New Relic provides linux packages and a step by step installation in the web interface (see "Add more data" in the New Relic One web).
The standard installation steps for Amazon Linux 2 would be:
echo "license_key: YOUR_LICENSE_KEY" | sudo tee -a /etc/newrelic-infra.yml && \
sudo curl -o /etc/yum.repos.d/newrelic-infra.repo https://download.newrelic.com/infrastructure_agent/linux/yum/el/7/x86_64/newrelic-infra.repo && \
sudo yum -q makecache -y --disablerepo='*' --enablerepo='newrelic-infra' && \
sudo yum install newrelic-infra -y
Here's the documentation explaining the different install scenarios.
You can get additional support from the community on the Explorers Hub.

Do I have to start Elastic search?

If Elastic Search is always running on port:9200, do I have to start it each time I use it?
I am using Linux, MAC and Windows, in a nut shell I run command "bin/elastic" or another variation based on OS commands and it usually "starts" Elastic Search.
I just want to know why its always running on port:9200 and if I need too start Elastic each time I boot up a Operation System.
you download elasticsearch.zip and unzip it and run with "bin/elasticsearch"
you can download deb (for Debian or Ubuntu Linux) or rpm (for redhat or centos) version and install it as service for example in centos:
sudo wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.0.0.rpm
sudo rpm -ivh elasticsearch-6.0.0.rpm
sudo systemctl start elasticsearch.service
sudo systemctl enable elasticsearch.service // for running after boot
if you want to change the default port of elastic you must edit the elasticsearch.yml file. you can find this file in the manual running in config/elasticsearch.yml and in installation as service in centos in the /etc/elasticsearch/elasticsearch.yml
you can uncomment this line:
#http.port: 9200
and change port for example:
http.port: 9900

Ubuntu Desktop not visible on Azure xrdp

I am trying to set up remote Ubuntu desktop on Azure free tire. I have followed all the steps mentioned in here and Azure Documentation. I have setup instance with resources manager. Setup the rdp. Install xrdp via ssh. Install Ubuntu desktop as well.
Installed -- Ubuntu Server 16.04 LTS
Also installed xfce as mentioned in Azure Documentation
In-spite of installing everything properly I see dotted screen when I connected remotely. What am I doing wrong ?
Using xfce if you are using Ubuntu version later than Ubuntu 12.04LTS
We can follow those steps to install xrdp:
sudo -i
1.Install XRDP Package from Ubuntu Repository
apt-get install xrdp
2.Installing the xfce4 Desktop environment
apt-get update
apt-get install xfce4
3.Configure xrdp to use xfce desktop environment
echo xfce4-session >~/.xsession
4.Restart xrdp service
service xrdp restart
5.Test your xrdp connection:
We can use mstsc to test xrdp connection.
Note:
If you use this command apt-get install xfce4 get this error message:
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
Please add ARRAY <ignore> devices=/dev/sda to /etc/mdadm/mdadm.conf, like this:
root#ubuntu:~# cat /etc/mdadm/mdadm.conf
# mdadm.conf
#
# Please refer to mdadm.conf(5) for information about this file.
#
ARRAY <ignore> devices=/dev/sda
# by default (built-in), scan all partitions (/proc/partitions) and all
# containers for MD superblocks. alternatively, specify devices to scan, using
# wildcards if desired.
More information about xrdp on azure vm, please refer to this link.

Redis not working on CentOS

I'm having trouble installing Redis, this whole week I looked for a solution. I'm needing to install NodeBB running on a CentOS 6 server (with WHM/Cpanel).
Follow the steps http://nodebb-francais.readthedocs.org/projects/nodebb/en/latest/installing/os/centos.html
When I run a test (https://www.digitalocean.com/community/tutorials/how-to-configure-a-redis-cluster-on-ubuntu-14-04) with the command redis-benchmark -q -n 1000 -c 10 -P 5, the system returned the error Writing to socket: Connection refused.
In attempts I installed multiple times Redis, don't know if this may have affected the functioning now. Does anyone have any idea what could be the problem? Apparently Redis does not run in fact, and it is difficult to find specific content on the subject.
You need to install the redis package. Your guide is for Ubuntu where it is available in the base repository, it isn't in CentOs. You have to install it via the epel repository.
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm; yum -y --enablerepo=remi,remi-test install redis
chkconfig --add redis
service redis restart
You can also install it from source:
wget http://download.redis.io/releases/redis-2.8.3.tar.gz
tar xzvf redis-2.8.3.tar.gz
cd redis-2.8.3
make
make install
chkconfig --add redis
service redis restart

Install MongoDB on a virtual machine running CentOS Linux in Windows Azure

Primary Content Reference:
"http://www.windowsazure.com/en-us/documentation/articles/store-mongodb-virtual-machines-linux-install-centos/"
Beginner at linux cmd and MongoDB on Virtual Machines here.
The Tutorial: Install MongoDB on a virtual machine running CentOS Linux in Windows Azure
Is an easy follow until you reach
The Section: Install and run MongoDB on the virtual machine
As someone use to using a x64 Win8 OS I am completely lost on how I am suppose to bypass the permission denial that won't allow me to touch 10gen.repo or sudo yum install mongo-10gen mongo-10gen-server. Can someone please respond with a ELI5 format?
Related Resources:
"https://unix.stackexchange.com/questions/104916/how-do-you-configure-package-management-system-yum-for-mongodb"
You need to create the repository file with sudo as well.
Try this:
$ echo "[MongoDB]
name=MongoDB Repository
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64
gpgcheck=0
enabled=1" | sudo tee -a /etc/yum.repos.d/10gen.repo
$ sudo yum update
And then:
sudo yum install mongo-10gen mongo-10gen-server
Hope it helps

Resources