Package Control on Sublime Text 3

Standard

What is Package Control?

Package Control is a package manager developed by Will Bond. Package Control can be used for downloading and installing plugins, Color Scheme and extensions developed by third party developers, The Package Control is really very useful because it can be always be used to add more features to Sublime Text.

Installing

The Package Control is written Python which makes it very easy to install and develop packages for it.

  • Go here.
  • Copy the code from the link above.
  • Open Sublime Text 3.
  • The built in Console of Sublime Text 3 by visiting to Menu > Views > Show Console

The Console would look like the image below.

Sublime Text 3 Console

  • Paste the code in the Console that you have copied from the link above.

You may require to restart Sublime Text 3

  • Access you Package Control by visiting Menu > Preferences > Package Control.

You package control must look like this

Sublime Text 3 Package Control

We now have Package Control installed on Sublime Text 3. The Color Scheme used in the screenshot is Solarized (Light).

If you have any problem with the steps above feel free to leave a comment below.

Linux Mint Debian 201403 has been released

Standard

Recently Linux Mint team announced Linux Mint Debian 201403, Linux Mint Debian Edition also known as LMDE is based directly on Debian Testing, instead of Ubuntu. Linux Mint Debian looks identical to Linux Mint which is based on Ubuntu. Linux Mint Debian offers all functionality seen on Linux Mint, while using Debian as a base instead of using Ubuntu. Linux Mint Debian is available in both MATE and Cinnamon desktop environments. Linux Mint Debian is a semi-rolling release (partially rolling) development model, this means that, unlike Debian Testing (a rolling release) which constantly receives updates, Linux Mint Debian periodically introduces “update Packs” which are tested snapshots of Debian Testing, this also means that Linux Mint Debian is more stable then Debian Testing. Keeping Linux Mint Debian up-to-Date is very easy, update Packs keep Linux Mint Debian current. Linux Mint does not use Debian package repositories, Linux Mint Debian has its own repositories. You can add a Debian repositories to Linux Mint without any problem, The only thing to be kept in mind while adding a Debian repositories is to see that the repositories is Debian testing or Debian Jessie which is current testing. If you like to take risk you can switch to Debian Sid which is also known as Debian unstable. Switching to Debian Sid is a personal preference and is not recommended if you are not an experienced user. If you are using Linux Mint Debian than a you need is a ‘dist-upgrade’ to upgrade to the current snapshot.

New Features!

update Pack 8

Cinnamon 2.0

MATE 1.6

Latest Mint tools and improvements

Support for EFI and GPT

System requirements:

x86 processor (LMDE 64-bit requires a 64-bit processor. LMDE 32-bit supports all x86 processors, non-PAE included).

1GB RAM

5 GB of disk space

Graphics card capable of 800×600 resolution

DVD drive or USB port

Torrent.

64 Bit

Cinnamon x64 Bit

MATE 64 Bit

32 Bit

Cinnamon 32 Bit

MATE 32 Bit

Node.js on Ubuntu

Standard

What is Node.js?

Node.js is a brilliant platform for creating network applications. It is mainly known for its non-blocking I/O and event driven system. In simple terms, Node.js can easily handle a large number of requests while simultaneously consuming lesser server memory. These are the attributes make Node.js a better than other languages and platforms.

Why use Node.js?

Node.js comes with a built in HTTP server library. This means it doesn’t require the help of any external piece of software to act as a web server. Using Node.js alone one can have greater control of the web server parameters.

We will be installing Node.js on Ubuntu using Chris Lea PPA. The PPA will keep you will up-to-date to the latest stable version of Node.js depending on your Ubuntu release, The PPA might also download required dependencies depending on you Ubuntu install type.

There is a naming conflict with the node package (Amateur Packet Radio Node Program), and the nodejs binary has been renamed from node to nodejs. You’ll need to symlink /usr/bin/node to /usr/bin/nodejs or you could uninstall the Amateur Packet Radio Node Program to avoid that conflict.

Lets get it up and running!

  • You need to update you local repository database by entering the command below.sudo apt-get update
  • Adding the PPA.sudo add-apt-repository ppa:chris-lea/node.js
  • Re-updating the local repository database to add the PPA to the local repository database.sudo apt-get update
  • Installing Node.js using the PPA

This will also install NPM.

“`
sudo apt-get install nodejs
“`

#### Writing you first Node.js App.

  • We need to create a file named app.js. app is the name .js stands for javascript file. js is always used to specify that the file is a javascript file.
  • Add the lines given below.

var http = require("http"); server = http.createServer(function (request, response) { console.log("New request. Request url:" + request.url); response.writeHead(200, {"Content-Type":"text/plain"}); response.end("Hello!"); }); server.listen(3000); console.log("Starting Node.js server"); console.log("Running at 127.0.0.1:3000");

You can visit http://127.0.0.1:3000 to see the app in action.

Now we have Node.js installed on Ubuntu. If you have any problem feel free to leave a comment below.

Ghost installation for Raspberry Pi…

Standard

Ghost is a new blogging platform. It has a refreshingly innovative and responsive UI – one that can clearly be seen as the future of blogging. You might want to visit Ghost’s website to know more about it. I promise, once you’ve learnt how it works, you won’t stop thinking about it. While you’re at it, do learn how it’s installed on the Raspberry Pi from our tutorial below.

GhostGhost runs on Node.js and, like WordPress, is free to download and use. It is expressly intended to be a blogging platform unlike the recent evolution of WordPress.

Wait! Node.js?!

500px-Node.js_logo.svg

Node.js is an event driven system that is written in Javascript and C++. It is known for its non-blocking I/O system and higher response speed with simultaneously lesser resource consumption. Node.js is widely used in chat web application, but can definitely do a lot more like handling entire blogs as it would with Ghost.

Installation of Ghost

There are a lot of operating systems available for the Raspberry Pi but, for this, we recommend using Raspbian. The rest will be a breeze.

1. Install Node.js

You will have to have Node.js installed on your Raspberry Pi. As a matter of fact we’ve written a tutorial on how you can do just that right here.

2. Acquire the Ghost setup

Download the package

To install Ghost, it’ll need to be download from the official website. Do that by entering the following in the terminal.

wget https://ghost.org/zip/ghost-latest.zip

Unzip the package

Now that the package has been downloaded, it will have to be unzipped. You can simply do it by entering the command.

unzip ghost-latest.zip -d ghost

The package contents will fill a new directory by the name ghost.

3. Focus on the new folder

To set the Ghost folder ghost as current directory use the command.

cd ghost/

4. Install Ghost from the setup

After focusing on the ghost directory, we need to install it using NPM by entering the command below.

sudo npm install --production

5. Install a database management system

For your database management system you can choose your favourite one and use it with Ghost. We ourselves have done it a few times with MySQL and MariaDB. We’ve gone for SQLite for this tutorial – the Ghost configuration file by default uses SQLite. You can install SQLite3 using the command below.

sudo apt-get install sqlite3

6. Edit the configuration file

If you use MariaDB, MySQL or a different management system make the appropriate changes to the settings in config.js file of the Ghost setup.

Edit the config.js file to change the default host: and set the port: to 80 as seen below. That is, of course, unless you’re fine with using the default settings.

host: '0.0.0.0'

port: '80'

7. Set up Forever

Once we’re done editing config.js, we need to install Forever so we could continue running the Node.js web-server after the end of the SSH session.

Install forever

Enter this command.

sudo npm install forever -g

Set Node.js to run with Forever

This will let Node.js continue running despite being in production mode. Enter them one after another.

sudo NODE_ENV=production forever start index.js

sudo forever index.js --production

And that’s it!

You’ll have successfully created a Raspberry Pi hosted Ghost blog on its Node.js web server.

You’ll have to visit [the-IP-address-of-your-Raspberry-Pi]/ghost/ to access the process of creating your user account the first time. The process takes a while because the password is hashed using Bcrypt. Once done, that URL acts as your Ghost admin panel.

The blog can be accessed as a non-admin viewer using your Raspberry Pi’s IP address.

Cool, isn’t it?! Do leave us comments if you’ve decided to give it a try or have tried alternate methods for installation. Feedback is always appreciated. Do stay tuned for more on Ghost in the future…