Brackets on Debian/Ubuntu…

Brackets

Adobe Brackets (once known as Edge) is a Open-Source cross-platform source/text editor for Web development written in HTML, CSS and Javascript.

Brackets is free and licensed under the MIT License and maintained on GitHub. Currently, Brackets has yet to achieve version 1.0. It gets updates roughly twice a month. Brackets, at the time, is under active development and may have a lot of bugs. Right now, it is at its Sprint 38th build. It offers support for many other non-web programming languages and styling languages like CSS, SCASS, SCSS, SASS, etc. It’s pretty much better than most of its competitors.

Brackets offers a Live File Preview which updates the web-page in question, if any styling changes are made. Brackets has it own plugin store and the extension to the editor is practically limitless. Depending on the use of plugins, Brackets can be customised and made much more powerful.

Installation of Brackets

This process will let you install Brackets on any system that is Debian based including Ubuntu, Linux Mint and any other distribution that is known to accept Debian packages.

1. Download Brackets

There are two editions of Brackets. You’ll have to download the one best suited for your processor architecture. A 32 bit system should use the 32 bit version. 64 bit can use either but the 64 bit version is recommended.

Download the 64 Bit version using the following link.
Brackets 64 Bit.

Or the 32 Bit version using the link below.
Brackets 32 Bit.

2. Install the Brackets package

Your browser will have downloaded the file to the Downloads folder.

Start the Terminal

Do this either by searching for the terminal and running it or from your application menu. OR, you could do it like us by using the keyboard shortcut [Ctrl][ALT][T].

Focus on the right folder

Assuming your package is in the Downloads folder, enter the following command.

cd Downloads

If your package isn’t in that folder, focus on the folder where it is. OR move the file from wherever it is into the Downloads folder and run the command.

Install the package

Enter the following command, sit back and watch as it completes.

sudo dpkg -i brackets-sprint-38*

3. Rejoice

You now have Brackets on your system.

Do let us know how it fares with you. We certainly had a lot of fun editing with it…

Node.js installation for Raspberry Pi…

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 one should be looking for in a low power server like, you guessed it, Raspberry Pi. Here, you’ll learn how to setup Node.js for Raspberry Pi.

Node.js

ON

Raspberry Pi

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.

Of course, all we care about it tinkering. Cool new web applications require Node.js to function and we like our Raspberry Pi not being a source of heat all the time. Of course, you could check the Wikipedia entry as well as their very own site.

Installing Node.js on Raspberry Pi

1. Download the Node.js package for ARM

As you must be aware, the Raspberry Pi sports an ARM11 chip. So, the package optimised for ARM will have to be downloaded. It can be done by entering the following command into the terminal.

wget http://node-arm.herokuapp.com/node_latest_armhf.deb

2. Install the package

Once the download is complete, it needs to be installed and can be done using the following command.

sudo dpkg -i node_latest_armhf.deb

And that’s it! Quick, wasn’t it?

By its end, we will have NodeJS and NPM (Node Package Manager) installed on your Raspberry Pi.

Testing the installation

The process is pretty foolproof but it wouldn’t hurt to test the installation with a simple server script.

1. Write the server script

Below, we have written a script that displays “Hello World!” to the client.

var http = require('http');
http.createServer(function (request,response) {
 response.writeHead(200, {'Content-Type': 'text/plain'});
 response.end('Hello World!\n');
}).listen(8000)
console.log("Web Server running at http://127.0.0.1:8000")

Update: There’s a chance the code might not appear in with proper line-breaks on your PC. So, here below we’ve enlisted the above code in its right syntax:

#### Save the script in a file

Save the script in a .js javascript file. Something like greetings.js would be a good idea if you’re not feeling particularly creative.

2. Run the script

Use the node program from the command line to execute the server. Something like so.

node greetings.js

You’ll receive an output like this.

Hello World!

If you’d like you could visit http://127.0.0.1:8000 and be greeted “Hello World!”.

And that is that!

Stay tuned for more on Raspberry Pi, Node.js and all of the web-apps based on it. Do leave us comments if you’d like us to do anything for you…

Kernel 3.12 – A must upgrade to your Linux kernel…

Linux Kernel 3.12 has been released recently and is a stable kernel, meaning it is utterly safe to upgrade to. Kernel 3.12 comes with far more than simple bug fixes. It is pretty much comes with features that will revamp your system performance-wise from the ground up.

Kernel 3.12

There are a few things which you might find in the new kernel 3.12 when you make the switch. We couldn’t locate a change-log, so bear with it.

  • Improved Dynamic Power Management support for newer Radeon GPUs and other changes after the Radeon DPM feature was merged in Linux 3.11
  • A Snapdragon KMS/DRM driver from the Freedreno project for the Qualcomm Adreno
  • Runtime GPU power management for NVIDIA Optimus laptops to be able to dynamically power on/off secondary GPUs
  • Experimental support for DRM render nodes
  • AMD Berlin APU support for the first HSA server APU
  • Intel Haswell graphics improvements with eLLC DRAM support now enabled for the systems with Iris Pro 5200 graphics bearing dedicated memory for graphics
  • Staging driver updates
  • Sound drivers work well now
  • EXT4 gained new features of aggressive extent caching and better recovery
  • F2FS file-system improvements
  • Slidebar support for Ideapad series of Lenovo
  • XFS file-system improvements
  • BTRFS file-system performance improvements

I found five changes among these I would want for my Debian system. You must agree, that’s an impressive list of changes…

Installation of Kernel 3.12

The process lets you manually install the kernel on your Debian based system which includes Linux Mint and Ubuntu. The process is pretty fool-proof and two of our systems have successfully accepted its new kernel. However, we urge you to exercise reasonable precaution. Read it twice before starting. It’s all on you…

1. Launch the terminal

We like using [Ctrl][T]. But you can go through the longer route if you like.

2. Enter the commands

The commands have to be entered in the terminal precisely, in the exact order one after the previous is complete.

Focus on the temporary folder

cd /tmp

Download the latest kernel

wget http://dl.dropboxusercontent.com/u/47950494/upubuntu/kernel-3.12 -O kernel-3.12

Install the freshly downloaded kernel

chmod +x kernel-3.12

Apply the kernel

sudo sh kernel-3.12

3. Restart your system

If your terminal continues to remain in view, enter the following command. Else, you can do this in the traditional way at your earliest convenience.

sudo reboot

And that’s it. You now have a system with a fresh and stable new kernel. Enjoy!

Uninstalling Kernel 3.12

Being a stable release the kernel is guaranteed not to cause any trouble but there is a remote chance you might not like the reformed system. If you wish to roll back, all you need to do is enter the following command in a terminal window and you’re done.

sudo apt-get purge linux-image-3.12*

So, do tell us if you’ve found any improvements we might add to our unofficial change-log summary. Other than that, you can always contact us about things you’d like help for…

Kernel 3.10.1 – Update your Linux kernel…

Linux Kernel 3.10 stable has been made available not more than a month ago and it has already reached it’s first update stage. Kernel 3.10 series has seen a bit of issues recently with its 3.10.2 release that supposedly interfered with a few previously-proper working nVIDIA graphics cards.

Kernel 3.10.1

We’ve tried it ourselves and not found any issues with it but we recommend you steer clear of 3.10.2. As of now Kernel 3.10.3 has not been extensively tested so we’re back to the latest stable release – Kernel 3.10.1. We’ve ourselves had 10 days to test it and you can rest assured it will work.

Issues Kernel 3.10.1 fixes

  1. cpufreq: Fixed CPU frequency regression after suspend/resume
  2. SCSI: sd: Fix parsing of ‘temporary ‘ cache mode prefix
  3. nfsd4: fix decoding of compounds across page boundaries
  4. libceph: Fix NULL pointer dereference in auth client code

The complete change-log for Kernel 3.10.1 can be found here, although why bother?

The tutorial here will help you install the latest working kernel, in our opinion, on your Debian based Linux systems including Ubuntu and Linux Mint. It will use a simple bash script that will facilitate the installation process, but if you want to install it manually and prefer to follow the entire procedure in manual steps you can go ahead here.

Installation of Kernel 3.10.1

  1. Open up the terminal. Do it however you like. We like [Ctrl][T].
  2. In the terminal enter the following commands one by one. Wait for each individual command to execute properly.

cd /tmp

wget http://dl.dropboxusercontent.com/u/47950494/upubuntu/kernel-3.10.1 -O kernel-3.10.1

chmod +x kernel-3.10.1

sudo sh kernel-3.10.1

  1. Of course, for all of it to take effect you’ll need to restart your PC. If you’ve closed the terminal already, that’s a shame; restart it in whichever way you prefer. If you’re one of the cool guys or gals enter the following.

sudo reboot

And that’s it! Play around with your system and find out if it fixed any of your issues.

Removing Linux Kernel 3.10.1

There’s a chance you might not like the latest working Linux Kernel. Of course, we wouldn’t share the installation process unless we were sure it was working. If you’re discontented due to any reason, you can revert to an earlier state using the following command.

sudo apt-get purge linux-image-3.10.1*

Do check out our dedicated page for kernels for the latest news on kernel upgrades and everything kernel.

Lets know if you have faced any problems and if the kernel update has solved it. Do leave us feedbacks, complaints, criticisms, whatever you like…