How to Install RubyMine IDE for Ruby on Rails on Ubuntu

RubyMine is by far the most intelligent Ruby and Rails IDE on the market. Some of the features:

  • Runs on Windows, Mac OS X or Linux
  • Intelligent Ruby Editor with completion, code snippets and automatic refactorings On-the-fly code analysis throughout the project tree with type inference and quick-fixes
  • Rails Models Diagram, Rails Project View and other specialized project/file views for faster overview & navigation
  • RSpec, Cucumber, Shoulda, MiniTest & Test::Unit coding assistance and GUI-based test runner
  • iOS development with RubyMotion
  • Web Development with all Ruby on Rails framework versions from 2.x to 4.x
  • Cutting-edge Ruby development stack support: Bundler, RVM, rbenv, pik, etc.
  • HTML, CSS and JavaScript editing with auto completion and refactorings. Plus CoffeeScript, HAML, SASS, and LESS
  • Zen coding snippets for productive HTML/CSS authoring
  • JavaScript/CoffeeScript debugger based on Mozilla Firefox and Google Chrome
  • Ruby Debugger: Ruby/Rails applications and tests debugging in a easy-to-use interface even in Windows
  • Git, Subversion, Mercurial, Perforce and CVS integration with a unified UI
  • Diff, merge, history views and changelists for every supported VCS
  • Bundled Textmate, NetBeans, Eclipse & Emacs keyboard schemes, plus Vi/Vim emulation plugin

Downsides:

  • It’s not always free. Being free for OSS projects and classrooms, they charge between $199 and $29 for a new license. Renewals are much cheaper, though.
  • You’re obviously a Rubist, you might find the fact it is written in Java as downside (I hope you won’t).
  • Some bugs here and there (nothing critical and they are getting fixed fast once reported).

Installation

  • Go to the RubyMine web site  https://jetbrains.com/ruby/download , current version is 7.1 (04/29/15).
  • Download the GZ zipped file.
  • Unzip it using whatever tool is your favorite unzipper.
  • Locate the BIN directory and run the script in a Terminal window named:

This will do a complete install. default configuration settings and create a RubyMine shortcut on your Ubuntu desktop.

Special Thanks to

http://softwarerecs.stackexchange.com/questions/721/ruby-on-rails-ide-for-ubuntu

How to install LibreOffice 4.4 in Ubuntu; LinuxMint; ElementaryOS

libreoffice_logoLibreOffice is a free and open source office suite which was forked from OpenOffice in 2010. LibreOffice 4.4 was released last week by The Document Foundation and you can read about it in this post LibreOffice 4.4 Released With Improved UI.

 

LibreOffice 4.4 is the 9th major release of the free office suite with improved UI, improved Interoperability with OOXML file formats, improved source code and a significant list of other improvements.

UI Improvements in LibreOffice 4.4

  • Redesigned Menu bars, Tool bars & Status bars
  • Redesigned Context Menus
  • Redesigned Ruler
  • New Color Selector
  • Improved Sidebar that Integrate Smoothly with Menus
  • Improved Status Bar

LibreOffice 4.4 also features an improved right-click menu that features ‘Cut, Copy & Paste’ at the top. The right-click menu now also features a new ‘Paste Special‘ option that allows the user to paste copied text as Unformatted text and also has more advanced options.

Download & Install

LibreOffice 4.4 (not even 4.3) is not yet available in the Official Ubuntu repositories. The latest version of LibreOffice available in the Official Ubuntu repository is 4.2.

So if you want LibreOffice 4.4, you can install it via a PPA. A PPA is just a third-party repository maintained by an individual or a team. In this case, the LibreOffice PPA is maintained by the LibreOffice team.

Here are the steps to download & install LibreOffice 4.4 in Ubuntu / LinuxMint / ElementaryOS.

Ubuntu / Linux Mint / Elementary OS

First we have to add the LibreOffice 4.4 PPA by running the following command,

After adding the PPA, we have to update the system running the following command,

Before installing LibreOffice 4.4, lets upgrade the system so that all the latest packages are downloaded & installed.

Now we can install LibreOffice 4.4 by running the following command,

Special Thanks to

http://www.dailylinuxnews.com/blog/2015/02/install-libreoffice-44-in-ubuntu-linuxmint-elementaryos/

How to install Cinnamon as replacement for Unity on Ubuntu

If there’s one area of Linux that gets more scrutiny than any other, it’s the desktop. From every corner, the haters and detractors abound. Nearly every publication that offers any focus on the Linux desktop at some point posts a piece about getting rid of the default Ubuntu desktop. Cinnamon is one of the primary replacement contenders.

Cinnamon is the default desktop for Linux Mint and, quite frankly, it’s one of the main reasons why Mint has gained so much popularity. Why? Because it has the user-friendliness of Ubuntu and a desktop that dares to harken back to nineties-era Linux — with a few modern touches.

With that said, let’s install Cinnamon on your Ubuntu 14.04 desktop and find out if it’s a worthy replacement for the metaphor defying Ubuntu Unity.

Installation

Note: This installation shouldn’t break Unity. I have successfully installed Cinnamon and retained full use of Unity.

To install Cinnamon, open up a terminal window and enter the following commands:

When the installation completes, log out of Unity, select Cinnamon from the desktop selector (to the right of the username in the login window), enter your password, and hit Enter. When the desktop finally appears, congrats — you’ll be using Cinnamon.

 The question

Is Cinnamon a worthy replacement for Unity?

In my opinion as a Windows, MAC and Linux user…. YES!

Special Thanks to

http://www.techrepublic.com/article/is-cinnamon-a-worthy-replacement-for-ubuntu-unity/

How to install Cisco VPN client on Ubuntu

On Ubuntu, you don’t need to install the Cisco VPN Client: NetworkManager includes support for Cisco IPSec VPNs. The following steps will walk you through a successful installation and configuration of your VPN client.

1) Ubuntu ships by default with the plugin for the Point-to-Point Tunneling Protocol (PPTP), but we need the plugin for the Cisco Compatible VPN (vpnc), that provides easy access to Cisco Concentrator based VPNs. To install the vpnc plugin, open your terminal and run:

2) Find Network Connections in your Dash, and in the VPN tab select Import to choose your .pcf file, or Add if you want to manually enter your authentication details.

3) In the configurations, make sure to go to the IPv4 Settings tab, click on Routes and activate the option to use the VPN connection only for resources on its network, unless you want all your traffic to be significantly slowed down.

Special thanks to

http://askubuntu.com/questions/488435/cisco-vpn-configuration-steps

How To Install Ruby on Rails on Ubuntu 14.04 using RVM

Ruby on Rails is one of the most popular application stacks for developers wishing to create sites and web apps. The Ruby programming language, coupled with the Rails development framework, makes app development simple.

Since Ruby on Rails doesn’t come in a neatly packaged format, getting the framework installed used to be one of the more difficult parts of getting started. Luckily, tools like rvm, the Ruby Version Manager, have made installation simple.

In this guide, we’ll show how to install rvm on an Ubuntu 14.04 VPS, and use it to install a stable version of Ruby and Rails. Although you can go through these procedures as the root user, we’ll assume you’re operating using an unprivileged user as shown in steps 1-4 in this guide.

Special thanks to the link at

https://www.digitalocean.com/community/tutorials/how-to-install-ruby-on-rails-on-ubuntu-14-04-using-rvm

The Quick Way

The quickest way of installing Ruby on Rails with rvm is to run the following command as a regular user:

You will be prompted for your regular user’s password as part of the installation procedure.

or if you want to install it as a Root user:

In some cases you may not even have Curl installed, in which case you need to run:

Let’s go over exactly what’s happening here.

The \curl portion uses the curl web grabbing utility to grab a script file from the rvm website. The backslash that leads the command ensures that we are using the regular curl command and not any altered, aliased version.

The -s flag indicates that the utility should operate in silent mode, the -S flag overrides some of this to allow curl to output errors if it fails. The -L flag tells the utility to follow redirects.

The script is then piped directly to bash for processing. The -s flag indicates that the input is coming from standard in. We then specify that we want the latest stable version of rvm, and that we also want to install the latest stable Rails version, which will pull in the associated Ruby.

Following a long installation procedure, all you need to do is source the rvm scripts by typing:

You should now have a full Ruby on Rails environment configured.

Installing Specific Ruby and Rails Versions

If you need to install specific versions of Ruby for your application, you can do so with rvm like this:

After the installation, we can list the available Ruby versions we have installed by typing:

We can switch between the Ruby versions by typing:

We can use various Rails versions with each Ruby by creating gemsets and then installing Rails within those using the normal gem commands:

The gemsets allow us to have self-contained environments for gems and allow us to have multiple environments for each version of Ruby that we install.

Prevent PC from logging off after a certain period of inactivity

caffieneSome corporate environments are set so that after say 15 minutes if inactivity, about the time to get coffee, the workstation will logoff.  Then when you get back to it you have to log back on again.

Maybe if your PC had Caffeine too it wouldn’t fall asleep.    Download this Caffeine utility, it is a single EXE and requires no installation.  Then execute it and a cute little coffee pot icon will appear in your toolbar.  Your PC will be buzzed and always ready for your next command.   Does corporate approve of such a practice?

How to change HOSTS file in Windows 8

hosts00Sometimes you find yourself needing to update the HOSTS file on your Windows 8 workstation.  Try to do it with Notepad or PSPad editor and you will quickly learn Microsoft has said no and they mean it.  There is a clever web site MVPS that has an very detailed article on how to do this.  Maybe a little too detailed, but well written.

Download the HOSTS.ZIP file  and unzip into a directory, my example below I have unzipped the HOSTS.ZIP into the ChangeHosts directory,

HOSTS01

Now go to this directory and use any editor to modify the HOSTS file.

NOTE:  The HOSTS file in the download has a bazillion entries in it, which all can be deleted.  Then you can add your entries to it.

Remember when you save it to not save it with the .TXT extension or this process will fail

Last step is to open a command prompt, go to the directory where you unzipped this (ie: ChangeHosts) and execute the MVPS batch file.

If everything works you should see the following message

HOSTS02