Tuesday, May 15, 2012

Ubuntu Linux - Change from GUI mode to Command line / Text mode

Simple stuff - just documenting my learnings

So here's how we change Ubuntu from its usual GUI mode to the Command line mode (black screen / text mode)

Note : If"sudo" is used before a command, then you will have to enter root password.


  • Open the Terminal, and cd /etc/default
  • Open the "grub" file in vi editor as root : sudo vi grub
  • Change the property GRUB_CMDLINE_LINUX_DEFAULT from "quiet splash" to "text". See below
    • ========
    • #GRUB_CMDLINE_LINUX_DEFAULT = "quiet splash"
    • GRUB_CMDLINE_LINUX_DEFAULT = "text"
    • ========
  • Run this command to update grub : sudo update-grub
  • Reboot Ubuntu : sudo /sbin/reboot
On reboot, you should be able to see the command-line screen instead of GUI.

Saturday, May 12, 2012

Automate Sphinx - Create rst files automatically from a list of topics

You have lots of topics to document using Sphinx, but bored of creating each .rst file manually? Not to worry at all. Here is a script that will just automate the file-creation task for you. Here we go:

First, download the zip or gz package from https://github.com/thyag/SphinxAutomation/downloads


And read the below to get your stuff donne : 

Friday, May 11, 2012

Create a PDF document from your Sphinx Documentation using rst2pdf

Pre-requisites & Assumptions

  • You have installed Python.
  • You have installed and used Sphinx documentation generator.
  • You have created an HTML documentation using Sphinx

Friday, May 4, 2012

Buying books online - some how tos, tips and thoughts


  • Ask in quora.com for the best books in your topic of interest
  • Read the reviews about those books in amazon.com. Make sure that the rating is good, if not great. Beware of those reviews which are done by the author's buddies. Check the date of publication and the date of review to get some idea ( usually fake reviews are added immediately after publication date, and they are added in the same week or month)
  • Even if a book's rating is good, read the contents and the first chapter on amazon. Make sure it captivates you. The best book still may not work for you, so watchout.
  • Search for the price of the book in atleast 4 e-commerce sites. In India, I search at flipkart.com, indiaplaza.com, homeshop18.com, bookadda.com, and sapnaonline.com. Don't buy immediately. Impuse is maya. Just put the book on wishlist. Give atleast 1 week, sleep over the book, and decide if you really need the book. There are also sites like mysmartprice.com and junglee.com which do price comparisons. 
  • If you really need the book, order the book based on what is priority for you - cost, delivery time,quality of service, etc.