April 16, 2010
Replace Windows Notepad with Notepad2
What are some of the things I do not like about Windows Notepad:
- Does not handle large text files well.
- Does not show line numbers next to each line
- Does not support advanced search and replace features.
- Does not open text files from other platforms in a readable manner.
- Can't change the background or foreground colors.
- No good indent support
So what are our options? Replace it with a freeware notepad replacement. For this tutorial we will focus on Notepad2. Notepad2 is a freeware replacement to notepad with the following features:
- Customizable syntax highlighting
- HTML, XML, CSS, JavaScript, VBScript, ASP, PHP, CSS, Perl/CGI, C/C++, C#, Java, VB, Pascal, Assembler, SQL, Python, NSIS, INI, REG, INF, BAT, DIFF
- Drag & drop text editing inside and outside Notepad2
- Basic regular expression search and replace
- Useful word, line and block editing shortcuts
- Rectangular selection (Alt+Mouse)
- Brace matching, auto indent, long line marker, zoom functions
- Support for Unicode, UTF-8, Unix and Mac text files
- Open shell links
- Mostly adjustable
Providing a seamless replacement of notepad can be difficult, though, due to Windows XP's and Windows 2000/2003's Windows System File Protection (SFP) security feature. What this means is that when you replace a Windows system file with another file, SFP will automatically replace it with the original. I have though, provided some information below that should make it easier to do this replacement.
Replacing Notepad with Notepad2
The goal here is to make working with Notepad2 seem like you are working with the original Notepad by actually replacing notepad.exe with the notepad2 executable. To do this we will rename notepad2.exe to notepad.exe and copy it to the proper locations so as to overcome SFP as described above. Before we do anything, please enable the viewing of hidden system files.
Now we need to download Notepad2 from the following link:
Download NOTEPAD2
Save it to your hard drive and extract the files to C:\Notepad. Once extracted, rename notepad2.exe to notepad.exe. Now you should have a folder called C:\Notepad that contains the file notepad.exe.
When you have have followed the steps above you need to do the next series of steps. These steps should be done fairly quickly in order to beat SFP at its game. If you go too slow, then SFP may replace notepad.exe with the original Windows notepad. For those who do not want to deal with the instructions below, I have created two batch files that will do all these steps for you and almost always gets past the SFP problem. These batch files can be downloaded from the following link depending on your operating systems:
Notepad Replacement for XP
As long as you have notepad2.exe saved as C:\Notepad\notepad.exe, then the batch files above should be able to perform the replacement for you. After running the batch file you may get an alert from Windows saying one of your files (notepad.exe) was replaced with another file and asking if you want to restore it. You should press the Cancel button and the Yes button so that it does not replace the file. When done, feel free to delete your C:\notepad folder and hide your files again.
If instead you would like to do this manually, then below are the manual steps that the batch files does for you. These steps should be done in this exact order and as fast as possible to bypass SFP:
1. Make backup copies of notepad.exe in the following directories (Not necessary but good in case you want to roll back to the original notepad):
* C:\Windows\System32\notepad.exe
* C:\Windows\notepad.exe
* C:\Windows\system32\dllcache\notepad.exe
* C:\WINDOWS\ServicePackFiles\i386\notepad.exe
* C:\Windows\System32\dllcache\notepad.exe
2. Copy C:\Notepad\notepad.exe to all the directories listed above overwriting the notepad.exe that is there.
3. If Windows will issue an alert stating that the new notepad.exe is not the correct one and if you would like to correct. Press cancel at this prompt and then press Yes as we want to keep the new notepad replacement.
4. Delete the C:\notepad folder.
5. Hide your files again.
This will certainly work....
Give a Feedback after you have used it
July 6, 2009
Install OpenOffice.org 3.0 on Ubuntu 8.10
OpenOffice.org (OO.o or OOo), commonly known simply as OpenOffice, is an office application suite available for a number of different computer OS. It is distributed as freeware. It supports the ISO/IEC standard OpenDocument Format (ODF) for data interchange as its default file format, as well as Microsoft Office formats among others. As of March 2009, OpenOffice supports over 75+ languages.
STEP 1 - Add the OpenOffice.org 3 repositories
Navigate to System -> Administration -> Software Sources...
Navigate to the second tab, "Third-Party Software," click on the "Add" button, and paste the line below...
deb http://ppa.launchpad.net/openoffice-pkgs/ubuntu intrepid main
Get key files HERE Navigate to the fourth tab, "Authentication", click the "Import Key File" button, navigate to to the location were you've just saved the key file (File System/home/YOURUSERNAME/Desktop) and double click it. You will immediately see a new entry called "247D1CFF 2009-01-21 Launchpad PPA for OpenOffice.org Scribblers".
Now, click the “Close” button, then the “Reload” one and wait for the application to termnate!
STEP 2 - Update OpenOffice to version 3.0.0
When the Software Sources window will close itself, the update icon will appear in the system tray...
Click on it and update your system. Your open source office suite will be up-to-date from now on. Take a look below for some shots of OpenOffice.org 3.0 in Ubuntu 8.10 .
Work on it and enjoy