How-To Recover password under Ubuntu

If you forgot you password for your ubuntu system you can recover using the following steps

Turn your computer on.

Press ESC at the grub prompt.

Press e for edit.

Highlight the line that begins kernel ………, press e

Go to the very end of the line, add rw init=/bin/bash

press enter, then press b to boot your system.

Your system will boot up to a passwordless root shell.

Type in passwd username

Set your password.

Type in reboot

Source: Ubuntu Geek

Advertisements

Create Disk Usage Reports with durep

durep is a perl script used for disk usage reports. It can generate text output with bar graphs to allow easy comparisons of disk usage between directories. It can also generate web pages which can be navigated through the directory structure. This allows easy visual monitoring of disk usage. durep was designed for monitoring disk usage in a more visual way than du. The du program works fine but doesn’t allow a lot of control over how the results are displayed. This perl script is designed to produce output more useful for reports.

Install durep in Ubuntu

Use the following command to install durep

sudo aptitude install durep

Using durep

durep Syntax

durep [OPTION]… [DIRECTORY]

durep Examples

1. “durep -w ~/durepweb -td 2″

This would print the directory tree starting from the current directory to depth 2 to the console and also create web pages in the directory ~/durepweb (this directory must exist).

2. “durep -f /var/spool/mail”

This might be useful for keeping a check on the mail directory. The “-f” switch tells durep to just scan files and not descend into directories. Since the “-w” switch is not present, no web pages are produced.

3. “durep -x -cp “/(etc|usr/share)” -ep “/var” /”

This more complicated version does the following. It scans the root filesystem only, hides the contents of any paths begining /etc or /usr/share and skips the contents of the /var directory.

4. “durep -q -sf durep.save /home ”

This scans /home and saves the results to the save fail durep.save. No text output is produced.

5. “durep -q -w ~/durepweb -lf durep.save /home ”

This reads the save file durep.save and produces a web report from it in the directory ~/durepweb. No text output is produced.

Source: Ubuntu Geek

Speed Up Firefox web browser

Mozilla Firefox is a graphical web browser developed by the Mozilla Corporation. Started as a fork of the browser component (Navigator) of the Mozilla Application Suite, Firefox has replaced the Mozilla Suite as the flagship product of the Mozilla project, stewarded by the Mozilla Foundation and a large community of external contributors.

Mozilla Firefox is a cross-platform browser, providing support for various versions of Microsoft Windows, Mac OS X, and Linux. Although not officially released for certain operating systems, the freely available source code works for many other operating systems, including FreeBSD,OS/2, Solaris, SkyOS, BeOS and more recently, Windows XP Professional x64 Edition.

In your location bar, type about:config

Once it Opens You should see similar to the following screen

Tip1

In the filter bar type network.http.pipelining

You should see the following screen

Normally it says ” false ” under value field , Double click it so it becomes ” true “.

Once you finished this you should see the following screen.

Tip2

In the filter bar again and type network.http.pipelining.maxrequests

Once it Opens You should see the following screen

Default it says 4 under value field and you need to change it to 8

Once you finished this you should see the following screen.

Tip3

Go to the filter bar again and type network.http.proxy.pipelining

Once it Opens You should see similar to the following screen

Normally it says ” false ” under value field , Double click it so it becomes ” true “.

Once you finished this you should see the following screen.

Tip4

Go to the filter bar again and type network.dns.disableIPv6

Once it Opens You should see the following screen

Normally it says ” false ” under value field , Double click it so it becomes ” true “.

Once you finished this you should see the following screen.

Tip5

Go to the filter bar again and type plugin.expose_full_path

Once it Opens You should see the following screen

Normally it says ” false ” under value field , Double click it so it becomes ” true “.

Once you finished this you should see the following screen.

Some more Tweaks

Enable the spellchecker for inputfields and textareas (default is textareas only)

layout.spellcheckDefault=2

Open lastfm://-links directly in amarok

network.protocol-handler.app.lastfm=amarok
network.protocol-handler.external.lastfm=true
Firefox Memory Leak Fix

Open a new tab. Type “about:config” without quotes into the address bar and hit enter/click Go.

Right-click anywhere, select New, then Integer. In the dialog prompt that appears, type:

browser.cache.memory.capacity

Click OK. Another dialog prompt will appear. This is where you decide how much memory to allocate to Firefox. This depends on how much RAM your computer has, but generally you don’t want to allocate too little (under 8MB), but if you allocate too much, you might as well not do this. A good recommended setting is 16MB. If you want 16MB, enter this value into the dialog prompt:

16384

(Why 16384 instead of 16000? Because computers use base-12 counting. Thus 16 megabytes = 16384 bytes. Likewise, if you want to double that and allocate 32MB, you’d enter 32768.)

Click OK to close the dialog box, then close all instances of Firefox and restart. If your Firefox still uses the same amount of memory, give it a few minutes and it should slowly clear up. If that fails, try a system reboot.

Now your Firefox will now be 3 – 30 times faster in loading pages.

Source: Ubuntu Geek

fcrackzip – Password Cracker for Zip Archives

fcrackzip is a fast password cracker partly written in assembler. It is able to crack password protected zip files with brute force or dictionary based attacks, optionally testing with unzip its results.

It can also crack cpmask’ed images.Ubuntu

Install fcrackzip in ubuntu

sudo apt-get install fcrackzip

This will complete the installation

fcrackzip Syntax

fcrackzip [-bDBchVvplum2] [–brute-force] [–dictionary] [–benchmark] [–charset characterset] [–help] [–validate] [–verbose] [–init-password string/path] [–length min-max] [–use-unzip] [–method name] [–modulo r/m] file…

fcrackzip Examples

fcrackzip -c a -p aaaaaa sample.zip

checks the encrypted files in sample.zip for all lowercase 6 character passwords (aaaaaa … abaaba … ghfgrg … zzzzzz).

fcrackzip –method cpmask –charset A –init AAAA test.ppm

checks the obscured image test.ppm for all four character passwords. -TP fcrackzip -D -p passwords.txt sample.zip check for every password listed in the file passwords.txt.

Engineers for Social Impact: A unique fellowship program

Program: Engineers For Social Impact (Website)
E4SI
Engineers for Social Impact is a unique fellowship program to connect the best engineering talent to the most credible social enterprises that drive market-based solutions to development in India.

In 2008, an eminent panel of judges will select 5 E4SI Fellows to gain from challenging immersion experiences in partner social enterprises. In addition, they will join a select cohort of outstanding young leaders committed to social impact and build valuable relationships with leaders in the development sector.E4SI partner social enterprises (founded by alumni from schools such as Harvard, Wharton, INSEAD and IIT) are leaders in the sectors of Education, Energy, Health, Micro-finance and Multiple Bottom-line Investment Advisory.

The application is open to current undergraduate students at select Indian engineering schools.

Application Deadline: March 2, 2008

Website: E4SI

Java Technology: Part-1

Java Technology:

Java technology is both a high-level, object-oriented programming language and a platform. Java technology is based on the concept of a single Java Virtual Machine (JVM) — a translator between the language and the underlying software and hardware. All implementations of the programming language must emulate the JVM, enabling Java programs to run on any system that has a version of the JVM.

The Java programming language is unusual because Java programs are both compiled (translated into an intermediate language called Java bytecode) and interpreted (bytecode parsed and run by the JVM). Compilation occurs once, and interpretation happens each time the program runs. Compiled bytecode is a form of optimized machine code for the JVM; the interpreter is an implementation of the JVM.

The Java platform is a software-only platform that runs on top of various hardware-based platforms. It comes in three versions (see Multiple editions of the Java platform, below). It consists of the JVM and the Java Application Programming Interface (API), a large collection of ready-made software components (classes) that ease the development and deployment of applets and applications, including robust, secure, and interoperable enterprise applications. It spans everything from basic objects to networking and security and XML generation and Web services. The Java API is grouped into libraries of related classes and interfaces; the libraries are known as packages.

Along with the Java API, every full implementation of the Java platform includes:

  • Development tools for compiling, running, monitoring, debugging, and documenting applications.
  • Standard mechanisms for deploying applications to users.
  • User interface toolkits that make it possible to create sophisticated graphical user interfaces
  • Integration libraries that enable database access and manipulation of remote objects.

Java technology was developed by Sun Microsystems. The Java Community Process (JCP), an open organization of international Java developers and licensees, develops and revises Java technology specifications, reference implementations, and technology compatibility kits. In 2007, Sun made the bulk of its core Java technology available as open-source software under the GNU general public license version 2 (GPLv2).

Source : IBM DeveloperWorks