Go on Ubuntu

Standard

Go also know as golang, is a programming language developed at Google. It is a statically-typed language with syntax loosely derived from that of C, Go feature an automatic memory management and type safety. You can learn more about Go from [Wikipedia](http://en.wikipedia.org/wiki/Go_(programming_language).

We will be installing Go using Gophers PPA. This PPA will install the latest stable version of Go available for Ubuntu.

Installing

Adding the PPA.

“`
sudo add-apt-repository ppa:gophers/go
“`

Updating local repository database.

“`
sudo apt-get update
“`

Installing **Go**.

“`
sudo apt-get install glang-stable
“`

#### Wrting you first Go program.

  • Create a file named ‘app.go’. Go uses .go as extension to identify a Go language file.
  • Use you favorite editor to open the file ‘app.go’.
  • Add the lines given below to the file.
`packagemainimport“fmt”funcmain(){fmt.Println(“Hello, World!”)}`

Save the changes you have made in the file.

Now execute the programming by entering the command below.

“`
go run app.go
“`

We now have Go language complier installed on Ubuntu. If you have any problem feel free to leave a comment below.

Rutorrent on Debian

Standard

Rtorrent is a text-based ncurses BitTorrent client written in C++ based on the LibTorrent libraries for Unix, Rtorrent is very minimal, takes very less system resource. On high-bandwidth connections, It claims to be able to seed at three times the speed of the official BitTorrent client. Rtorrent is a package available for various Linux distribution. Rutorrent is a third party Web GUI for Rtorrent that is used widely by headless server that seed Linux distributions, Rutorrent makes it easier to use Rtorrent and gives it a front-end GUI to operate. We will be installing Rutorrent using a simple ‘bash’ script created by Kerwood. The ‘bash’ script will download dependencies required to compile and install Rtorrent and LibTorrent.

Dependencies the bash file will install

  • openssl
  • subversion
  • git
  • apache2
  • apache2-utils
  • build-essential
  • libsigc++-2.0-dev
  • libcurl4-openssl-dev
  • automake libtool
  • libcppunit-dev
  • libncurses5-dev
  • libapache2-mod-scgi
  • php5
  • php5-curl
  • php5-cli
  • libapache2-mod-php5
  • screen
  • unrar-free
  • unzip

Installing

Installing wget if you don’t have it already installed.

“`
sudo apt-get install wget
“`

Downloading the latest version of the shell file.

“`
wget https://raw.github.com/Kerwood/rtorrent.auto.install/master/rtorrent.auto.install-NEWEST-VERSION
“`

Make the file executable.

“`
chmod +x rtorrent.auto.install-NEWEST-VERSION
“`

Run the script

“`
sudo ./rtorrent.auto.install-NEWEST-VERSION
“`

Once the bash script compiles and installs Rutorrent it would ask you to set a username and password for the Rutorrent Web GUI. After you have chosen you username and password for Rutorrent Web GUI, It would ask you to choose plugins from a list of plugins

  • Now Apache2 would restart.

You can access Rutorrent by visiting this link.

Now you have Rutorrent installed on your Debian system.

HexChat on Debian

Standard

HexChat is a cross-platform IRC client based on XChat, but unlike XChat it’s completely free. HexChat is very easy to use and has a lot of features, HexChat has lesser bugs than XChat. Here is an easy guide to install HexChat on Debian 7.

Installing

Download the Hexchat package from here

Go to the place where you have downloaded the file.

Unpack the Debian package.

sudo dpkg -i hexchat_*
If the install fails run the command below.
`
sudo apt-get install -f

If you prefer GDebi user.

sudo gdebi hexchat_*

Now you have HexChat installed on Debian. If you have any problem feel free to leave a comment below.

RVM on CentOS

Standard

RVM also know as Ruby Version Manager is a command-line tool which allows you to easily install, manage, and work with multiple version of Ruby or environments from interpreters to sets of gems. Here is a really easy guide to install RVM on CentOS.

Installing

Install <code class="highlighter-rouge">Curl.

“`
sudo yum install curl
“`

Install RVM.

This will install RVM.

“`
\curl -sSL https:/ /get.rvm.io | bash -s stable
“`

A reopen of Terminal is require to set the RVM environment variable.

“`
exit # To close the Terminal
“`

RVM is a really smart tool it figures by its self what Linux distribution you are using. We can now download the required tools to build Ruby on CentOS.

“`
rvm requirements
“`

I will be installing the current stable version of Ruby using RVM. At the time of this post the latest version of Ruby is Ruby 2.1.1, So I will be installing it in using the command below, you can install any version of Ruby as you require by simply changing the version ‘2.1.1’ by the version you prefer or require for your project.

“`
rvm install 2.1.1
“`

To set Ruby 2.1.1 as the default Ruby environment.

“`
rvm use 2.1.1 –default
“`

If you have issue with setting the default Ruby environment or get an error that says the command does not exits, You can fix that too by adding the lines below in your `.bashrc`.

```
source ~/.rvm/scripts/rvm
```

Now we have Ruby installed on CentOS using RVM. If you have any problem feel free to leave a comment below.