Skip to main content

Posts

Showing posts from July, 2010

Build custom Linux systems from Scratch

Linux from Scratch describes the process of creating your own Linux system from scratch from an already installed Linux distribution, using nothing but the source code of software that you need. This 318 page eBook provides readers with the background and instruction to design and build custom Linux systems. This eBook highlights the Linux from Scratch project and the benefits of using this system. Users can dictate all aspects of their system, including directory layout, script setup, and security. The resulting system will be compiled completely from the source code, and the user will be able to specify where, why, and how programs are installed. This eBook allows readers to fully customize Linux systems to their own needs and allows users more control over their system. Check current availability! 

Advanced Bash-Scripting Guide

An in-depth exploration of the art of shell scripting. This guide assumes no previous knowledge of scripting or programming, but progresses rapidly toward an intermediate/advanced level of instruction . . . all the while sneaking in little nuggets of UNIX® wisdom and lore. It serves as a textbook, a manual for self-study, and a reference and source of knowledge on shell scripting techniques. The exercises and heavily-commented examples invite active reader participation, under the premise that the only way to really learn scripting is to write scripts. This book is also suitable for classroom use as a general introduction to programming concepts. The Advanced Bash Scripting Guide is both a reference and a tutorial on shell scripting. This comprehensive book (the equivalent of 974 print pages) covers almost every aspect of shell scripting. It contains 364 profusely commented illustrative examples, a number of tables, and a cross-linked index/glossary. Not just a shell

Reveal or find (view) your invisible friends in your Gtalk(gmail chat) buddy list

Every time when you have logged into your gtalk you would have thought of seeing the friends who are invisible. Here is a small trick. The bellow peace of python code get the list of invisible users from your GTalk buddy list. It uses XMPP module for python. You can install this module in Ubuntu/Debian via apt. It also requires python dns module. So , Next time do not let anyone fool you , rather catch him Invisibly . Click here to get the procedure and code.

VIM: Search the Current File

Even though your file might not be that long, it can still be a pain to find something you are looking for. Vim has several ways to help you find what you are looking for. Find next occurrence of a word Search for a word by executing the following command in normal mode: ?someWord The command searches backwards in the file for the first occurrence of the word after the question mark. If you are at the end of the file, this is the perfect way to search for a word, but if you were at the beginning of the file it would make more sense to search forward in the file. This is done by exchanging the question mark for a slash: /someWord The word might be in the file several times, and maybe the first place you found wasn't the place you were looking for. No worries, you simply need to press n to go to the next occurrence of the word in the direction of the search. If you would rather change direction, then simply press N instead, and it will instead find the preceding occurrence of the

MediaInfo: Get extended information about media files

MediaInfo supplies technical and tag information about a video or audio file. What information can I get from MediaInfo? General: title, author, director, album, track number, date, duration ... Video: codec, aspect, fps, bitrate ... Audio: codec, sample rate, channels, language, bitrate ... Text: language of subtitle Chapters: number of chapters, list of chapters What format (container) does MediaInfo support? Video: MKV, OGM, AVI, DivX, WMV, QuickTime, Real, MPEG-1, MPEG-2, MPEG-4, DVD (VOB)... (Codecs: DivX, XviD, MSMPEG4, ASP, H.264, AVC ...) Audio: OGG, MP3, WAV, RA, AC3, DTS, AAC, M4A, AU, AIFF ... Subtitles: SRT, SSA, ASS, SAMI ... What can I do with it? Read many video and audio file formats Different methods of viewing information (text, sheet, tree, HTML...) You can customise these views Exporting information as text, CSV, HTML... Graphical Interface, Command Line, or DLL Integration with MS-Windows shell (drag 'n' drop, and Context menu) Internati

VIM: Faster navigation in a file

Sometimes even the simplest of tasks like navigating through a single file can be optimized. Vim offers several methods of navigation within a file, which can adapt to the contents of the file and how it is organized. Some of these methods are obvious, while others are more complex. Mostly, the files we are editing are well structured. If our files are text, then this structure can be in the form of paragraphs, sentences, and words, or at other times code with functions, blocks, and code lines. Vim supports jumping around the file, according to the structure in the file, and has key bindings that make it easy to go to the exact place in the file where you want to go. Moving within a text file You are working on a normal text file and in the middle of a sentence you realize that you have forgotten to make the first letter in the paragraphs uppercase. You could of course, use the arrow-keys or the h/j/k/l navigation keys to move to the beginning of the paragraph to correct this. It

How to speed up boot of Ubuntu 10.04 Lucid Lynx

Use profiling to speed up boot. By using profile, a profile of your boot is kept to make your next boot faster. After a couple of boots, a better profile would be ready for your machine. Follow the steps below for that: 1. Edit your grub $ sudo gedit /etc/default/grub You can find the lines GRUB_DEFAULT=0 GRUB_HIDDEN_TIMEOUT=0 GRUB_HIDDEN_TIMEOUT_QUIET=true GRUB_TIMEOUT=0 GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` GRUB_CMDLINE_LINUX_DEFAULT=" quiet profile " GRUB_CMDLINE_LINUX=""   add profile to the line GRUB_CMDLINE_LINUX_DEFAULT="quiet" as shown above. 2. Now Update your grub2. Type this in your terminal sudo update-grub2 3. Reboot. 4. Now edit the grub once again and remove the word profile that we added. Update grub ( sudo update-grub2 ) and then reboot.