Posts

Showing posts with the label Linux

Setting up IPython Notebook on Centos 6.6 64-bit

I've been using IPython Notebook for awhile now for my development work in Windows environment. It's a great tool to use as it provides a confined environment for which I can write and test my code at the same time, not to mention the wealth of available libraries out there that one can use. However not all libraries can be successfully installed in Anaconda (Windows). Specifically speaking - the igraph library. For some time I've been using a flavor of WinPython that has igraph pre-installed (google  winpython-64bit-3.4.2.4flavorigraph.exe for more info), but I guess it became quite cumbersome to keep track of which library is installed in which environment. Hence to maintain my level of sanity, I'm going back to IPython Notebook - in Linux this time. Note that the steps below is really meant for me, but hopefully others can make some use of it as well. Setting up anaconda. Download it from Anaconda . Choose " Linux 64-bit - Python 2.7 ". Run ...

Basic Shell Scripting

This is a basic shell scripting tutorial i got off the Net. Credit goes to the writer. By the way, the site i ripped this off was at http://more-shell.blogspot.com/2007/03/easy-shell-scripting.html Easy Shell Scripting By Blessen Cherian Shell scripting can be defined as a group of commands executed in sequence. Let's start by describing the steps needed to write and execute a shell script: Step 1: Open the file using an editor (e.g., "vi" or "pico".) vi Firstshellscript.sh Step 2: All shell scripts should begin with "#!/bin/bash" or whatever other shell you prefer. This line is called the shebang, and although it looks like a comment, it's not: it notifies the shell of the interpreter to be used for the script. The provided path must be an absolute one (you can't just use "bash", for example), and the shebang must be located on the first line of the script without any preceding space. Step 3: Write the code that you want to develop. ...