Archive for December, 2011

Command line terminals are an indispensable part of *IXs. We all need those sooner or later. Usually we want to open many terminals at a time to do various things in those but placing them in the same screen is bit chaotic. We have an utility on GNOME  desktop environment  known  as terminator that is able to create multiple terminals in same window. These  multiple terminals could be created by horizontally, verticallly or tab dividing the window. Screenshot of the same is shown below :

Multiple Terminals

To install it on Ubuntu, issue command  sudo apt­-get install terminator. To launch it  on ubuntu go to Applications -> Accessories -> Terminator . You can also type terminator in cli shell to launch it. If you want to install it manually then you can download it from their official page .

The basic key combinations are:

Ctrl+Shift+O for   the  horizontal division
Ctrl+Shift+E for the vertical division,
Ctrl+Shift+T for the  tab  division
Ctrl+Tab  to switch between the created terminals
Ctrl+Shift+q to quit terminator.

The terminator supports a hell lot of functionalities like grouping ,automatic logging,multiple searching etc. For more info about the terminator, access its man page through man terminator command.

Pages : Follow ankurtwi on Twitter      

Pygame API is an  extension of SDL in python. You can create games quickly and easily  using this. I recently created a repository on github named as ‘Pygame-Examples-For-Learning’ to motivate the learning of this API. This repository consists of various small demos (from hello world to the sprite demo). You can try out those using your own logic and can apply the same into large programs. It also includes a small 3 level game ‘Hungry-Snake’ . Just a contribution from my side to all the enthusiast learners out there (open source too) :) Play with the code to explore more. I will keep updating the repo in future also. You can also contribute in the same. Link to the repo : :) Feedback and suggestions are always welcomed :)

Pages : Follow ankurtwi on Twitter      

This trick (by Sumit Rai) was published in Linux For You (LFY) under the Tips And Tricks Section. Sharing it with all the Linux Geeks out there :)

When you format a partition in Linux , 5% of the total space gets reserved for privileged  processes, by default. This is done so that system processes continue to function correctly ,if the filesystem gets full. This is useful for your ‘root’ partition.However if you have let us say 50GB separate home partition, you may want to make use of few additional GBs by reducing the percentage of the reserved space. You can use tune2fs command to change  the default allocation of space  reserved for privileged  processes. Command for the same is :
#tune2fs -m 1  /dev/sda6
Here  we have changed space reserved for privileged  processes on /dev/sda6 to 1 percent. You can use your device file according to the target partition instead of  ‘/dev/sda6′ . You can see the effected change by mounting the filesytem and checking available space using df command before and after you execute the above command. This command is quite useful in so called ‘Emergency’, so do remember it :)

Pages : Follow ankurtwi on Twitter      


Get every new post delivered to your Inbox.

Join 69 other followers

%d bloggers like this: