Install NewRelic Server Monitoring Agent on Ubuntu 14.04 LTS

NewRelic is a real-time monitoring tool that has a number of useful plugins. Here I am installing the server monitoring agent to keep track of my servers health.

NewRelic - Server Monitoring

To install the server monitoring agent, first add the repository…

echo deb http://apt.newrelic.com/debian/ newrelic non-free >> /etc/apt/sources.list.d/newrelic.list
wget -O- https://download.newrelic.com/548C16BF.gpg | apt-key add -
apt-get update

…then install the monitoring agent….

apt-get install newrelic-sysmond

Configure and start server monitoring daemon…

nrsysmond-config --set license_key=<your_key_here>
/etc/init.d/newrelic-sysmond start

And here’s what the server monitoring overview page looks like.

NewRelic - Server Overview

Related Documents

newrelic.com: New Relic Servers for Linux

Rackspace Cloud Monitoring Agent

The Rackspace cloud monitoring agent allows you to monitor CPU, memory, filesystem usage and system processes. It does this by collecting information about the system and pushing it out to Rackspace Cloud Monitoring web services, where they can be analyzed, graphed, and alerted on. It is this technology that the Rackspace monitoring checks are built upon.

Plus you get a nice pretty little bar graph in the server details section of the control panel 🙂

Rackspace monitoring agent

Install the Agent

While the instructions used here are for Ubuntu 14.04 LTS, this page lists the exact commands needed for all major distros.

wget http://meta.packages.cloudmonitoring.rackspace.com/ubuntu-14.04-x86_64/rackspace-cloud-monitoring-meta-stable_1.0_all.deb
dpkg -i rackspace-cloud-monitoring-meta-stable_1.0_all.deb
apt-get update
apt-get install rackspace-monitoring-agent

If your distribution of choice isn’t listed, you can always install from source.

Configure and Start Daemon

If the /etc/rackspace-monitoring-agent.cfg file isn’t present, you will need to choose one of the methods below to start the service.

Quick Method

Run the below commands, replacing the username and API key with your own.

rackspace-monitoring-agent --setup --username <your-username> --apikey <your-api-key>
rackspace-monitoring-agent start -D

Interactive Method

Alternatively you can simply run the below to interactively enter your username and your API key or password.

rackspace-monitoring-agent --setup

Followed by…

service rackspace-monitoring-agent start

Updating

The monitoring agent does not update itself. However, if you installed using a package manager, such as apt-get, agent updates will be pulled in and applied with regular system updates anyway.

apt-get update
apt-get dist-upgrade

Uninstalling the Agent

Assuming you didn’t install from source and you used your distros package manager, you will uninstall with the same method. I am using Ubuntu, so…

apt-get remove rackspace-monitoring-agent

Or if you’re using CentOS/RHEL.

yum remove rackspace-monitoring-agent

Related Documents

https://github.com/virgo-agent-toolkit/rackspace-monitoring-agent

http://www.rackspace.com/knowledge_center/article/install-and-configure-the-cloud-monitoring-agent#UpgradeAgent

http://meta.packages.cloudmonitoring.rackspace.com/

http://docs.rackspace.com/cm/api/v1.0/cm-devguide/content/install-configure.html

http://www.rackspace.com/knowledge_center/article/about-the-cloud-monitoring-agent

Installing Popcorn Time on Arch Linux

I was looking for a Showbox equivalent that I could easily install on my Arch Linux desktop, when I came across Popcorn Time.

Like Showbox, this program is a free and similar to the likes of Netflix. It is essentially an open source BitTorrent client that uses sequential downloading for streaming. It is available for pretty much all platforms: Linux, Android, Mac OSX….oh, and Windows (I guess some people are still using it).

Popcorn Time was available from the AUR, so I thought I’d give it a go. At the time of writing, there were three packages available, popcorn-time, popcorntime-git and popcorntime-bin. I decided to give the Git-based package a try. If you don’t have a pot of glue, you should probably use the binary package.

Due to the nature of open source, there are two or three forks of Popcorn Time at the time of writing. All three of the packages I am looking at, come from PopcornTime.io.

I use the aura package manager, so installing Popcorn Time is easy!

sudo aura -A popcorntime-git

Not bad!

Popcorn Time

It even has support for Chromecast and AirPlay devices; a Remote Control API and VPN. Sweet!

Related Documents

https://popcorntime.io/
https://aur.archlinux.org/packages/popcorntime-bin/
https://aur.archlinux.org/packages/popcorntime-git/
https://aur.archlinux.org/packages/popcorntime/
http://en.wikipedia.org/wiki/Popcorn_Time
http://en.wikipedia.org/wiki/BitTorrent#Technologies_built_on_BitTorrent

Installing Oracle Java on Ubuntu 14.04 LTS

You will need to run the following as the root user. To install Java 7…

add-apt-repository ppa:webupd8team/java
apt-get update
apt-get install oracle-java7-installer

…and for Java 8…

add-apt-repository ppa:webupd8team/java
apt-get update
apt-get install oracle-java8-installer

You will have to agree and accept the following licenses:

Oracle Java 8 - Accept License

Oracle Java 8 - Accept Binary License

You can quickly test both java and javac with the following….

java -version
javac -version

…or you may want to check out one of my previous posts here.

Related Documents

https://salayhin.wordpress.com/2014/04/23/install-oracle-java-78-jdk-and-jre-in-ubuntu-14-04/

https://www.digitalocean.com/community/tutorials/how-to-install-java-on-ubuntu-with-apt-get

http://askubuntu.com/questions/521145/how-to-install-oracle-java-on-ubuntu-14-04