Friday, April 27, 2007

Ubuntu 7.04 is here (...and it includes NetBenas 5.5)

All Ubuntu fans waited to the moment when 7.04 (code name "Feisty Fawn") will be released, and it was finally released last week (April 19).

  • Download Ubuntu 7.04 installation from here
  • What does it include? A lot of goodies. Check it here.
  • Here is a great setup guide.



Ubuntu 7.04 supports 3D desktop effects
(somebody saied "Windows Vista"...?)

No, no... you must see this one:

And my favour - it includes NetBenas 5.5 as part of the applications repository. Indeed, the best Linux OS environment with the best Linux development environment, together in one box.
What else can we ask for??

So, installing NeatBenas on "Feisty Fawn" is more than simple, just write the following command, in the Terminal window:

sudo apt-get install netbeans5.5

In order to find a required package name to be installed (i.e.: netbeans5.5, netbeans5.5-doc, netbeans5.5-platform, etc.) just write:

sudo apt-cache search netbeans

That's all.

Friday, April 20, 2007

Toronto Raptors' desktop wallpapers for 2007 Playoffs

As the NBA Playoffs approaches, and the Raptors' game VS the New Jersey Nets is seen around the corner, I found some nice wallpapers for this particular time: Click Here.

(If you're wondering what wallpaper did I pick, it's Anthony Parker's of course...)

Thursday, April 19, 2007

NetBeans 5.5 as an excellent C/C++ IDE for Linux

There are several ways to program and develop C/C++ applications under Linux. Here are a few of them:

  • Use a simple text editor (Kate for example) for code writing, and running the gcc (for compliation) and gdb (for debugging) with needed paramters inisde the Terminal window. Well, this is really not a comfortable way to program things, but works with no problems.
  • Popular IDEs such as XEmacs and KDevelop, which I'm not so fimiliar with, but I heared only good things regard them.
  • NetBeans by Sun Microsystems (freeware) in it's Linux version. A really powerful, nice and easy to use IDE with a similar user interface as the Windows version.
But hey! Isn't NetBeans is an IDE for Java programming?! Well, basically it is, but it has several intersting extension modules and one of them is the C/C++ programming add-on.

Click to enlarge

Screenshot of the C/C++ IDE in NetBeans 5.5
(Windows version, but similar to Linux...)

Advantages

  1. Currently, the latest version of NetBeans is 5.5 and it has an excellent user interface. Everyone who familiar with NetBeans 5.5 for Windows will feel at home when using NetBeans 5.5 for Linux. Newbies will quickly get the drift (of course previous acquaintance with Visual Studio IDE and alike is an advantage).
  2. It has an easy compiler, debugger and other runtime settings configuration manager. You want to compile with the gcc? No problem. You want to use Sun's compiler for C/C++? It's easy to set! Want to determine warning levels? 64bit mode output? Debug on demand? Really, a piece of cake!
  3. It is a very stable environment. I ran it under Ubuntu 6.10 and it has never crashed (so far...). Even when I accessed an unauthorized memory section again and again...

Installation

Even the installation process is very simple (OK, I know I'm starting to sound like and advertiser, but I'm completely not).
Generally, You must have an installed version of JDK (version 5 or higher) before you can install NetBeans 5.5. So:

  • If you don't have JDK in your machine, you will want to download this version, which is the "Java SE Development Kit and NetBeans IDE Cobundle (JDK 6u1 / NB 5.5)". The instalation file is something about 142MB.
  • If you do have previous installation of JDK, just download the NetBeans 5.5 IDE from here (note that other languages are available). The file size is 55MB.

The file is of "bin" format and in order to install it, you just need to drop it inside a Terminal window (don't forget the "sudo" prefix!). Shortly, a graphical wizard will be open and the rest will be straightforward.

Now, after the installation was completed successfully, you need to install the C/C++ add-on module. Only after this installation you'll be able to start programming and compile your C/C++ applications with NetBeans. Download the Linux version for the C/C++ add-on from here. Again, just drop this "bin" file in the Terminal window and the next will be straightforward. Good luck!

Tuesday, April 17, 2007

Allowing widescreen support (1280X800) in Ubuntu 6.10 using VMware Workstation 5.5

After installing Ubuntu, I've noticed that the display was stretched to the size of my screen (HP Pavilion dv5000 series). All fonts, pictures and UI elements were spread horizontally and the display wasn't sharp.

I tried to change to screen resolution inside Ubuntu to fit my widescreen (1280X800) but the maximal available resolution set was 1024X768. Strange, it was like it didn't recognize my screen abilites or couldn't detect the graphical card accurately.
Searching the web (and after disqualifying some registery changes as one techie was advised. In principal, "registery games" are definitely last solution) I managed to fix the problem by installing VMware Tools.

VMware Tools are a set of components that installed inside the guest OS and operates in cooperation with the VMware Workstation. These components allows us enhanced configuration control over the guest OS, which one of them is the ability to determine an exact required screen resolution.

As I found VMware Tools is not such an easy to install in Ubuntu, I searched for some help, and found this superb "how to" post written by Khairul Faizi: Click Here.

Sunday, April 15, 2007

A real troublemaker: AppToPort.dll

OK, now I'm really mad!

In the last couple of days I've noticed that my both IE 7 and Firefox 2.0 (all recently updated) browsers are crashing randomly. Sometimes it's when I'm clicking an image, sometimes it's when I open a new tab, and in the other time it's just crash without any logical reason. BOTH IE 7 and Firefox 2.0 (did I already mention that?).

So, a red light was turned on. What, in the name of the holy Anthony Parker, was happend now!? Wasn't I good enough to my computer?
Alright alright, relax and think! The first blame is automatically ascribed to Microsoft - it's easy, you know, to get mad of them, not always because of their products but (most of the time) because of their endless funds... jealousy. Human nature. Linux users nature.

Googling for a good reason, I found two repetitive symptoms:

  • A problematic windows update (a.k.a as KBxxxxxx)
  • A malware
...Of course! those windows updates! I've just update my computer with recent windows fixes - it must be one of them! And regard a malware - no chance. My computer is fortified like a 17th century british castle: Anti spyware (AVG anti spyware 7.5), antivirus (NOD32), firewall (Netlimiter 2).

So, turning to my best psychologist, the "add/remove programs" window, I started remove the latest windows updates, one by one - in order to find the troublemaker. Restarting etc... and at last - Nothing. Both browsers remains on their own crashing behavior. Damn.
So, turning back all updates (restarting bla bla bla), I switched to option no.2: a possible malware.

A malware? in my precious computer?! how could it be??

I started scanning my computer with all my weapons: full antivirus system scan (twice! - took all night), full anti spyware scan, using registry fix tools, monitoring the firewall again and again. Nothing. Except of standard tracking cookies I found nothing.
Thus, to my great sorrow, I turned to google for some more help.

One system tool attracted my attention: HijackThis, produced by Mergin.org (download here). This freeware is scanning all active processes (hidden and unconcealed) and gives a general expertise for each found process - is it evil or a good one.

A screenshot of HijackThis 2.00

I passed all the results one by one - and of all entries I found one suspect: some dll file named "AppToPort.dll" which lays down in the folder "C:\Program Files\bulletproofsoft.com\BPS Spyware & Adware Remover\". Hmm, interesting. In one of the last days I remember I downloaded and installed an evaluation copy of an anti spyware tool named "BPS SpyWare/Adware Remover" from here (I DON'T recommend you to download it now, unless you want to get mad for next two days as I was...). A web advertisement said that this anti spyware tool is one of the best, so I gave it a try. A few hours later I concluded it is not good enough for me, so I uninstalled it tidily.

So I thought...

Googling once again for the "AppToPort.dll" file, I couldn't absolutely conclude that this is a kind of troublemaker, but since 90% of the results was in the context of spyware and malware problems, it strengthened my suspicion.
Continue googling I found a free anti spyware software called "Spybot S&D" (download here). I heared of it before, but never had any experience with. The installation is very simple, and after a short software update I started to scan my computer once again. This software is awesome! 10 minutes passed and the bell ring wasn't late: "BPS SpyWare/Adware Remover" was found as (quote) "a software that pretends to be an anti spyware but actually is a trojan". What the hell?

A screenshot of Spybot S&D 1.4

Moreover, the Spybot couldn't delete all the remains of the "BPS spyware" (and as I said, I unistalled it tidily) becasue our friend, "AppToPort.dll", was in the use of the system. So I tried to remove this file on a Safe Mode, but it didn't go. It still was in the use of the system.
Again, googling, I found what I was looking for: a little application called "LSP-Fix" produced by cexx.org. It seems that the "AppToPort.dll" is a type of "Layered Service Provider" (read more here) and it cannot be removed elegantly. So I downloaded this little application from here, and did as follows:

  1. When LSPFix has started, put a checkmark in "I know what I am doing".
  2. In the Keep column, select all apptoport.dll entries and click the arrow to move them into the remove column.
  3. Click the Finish button to remove them.
  4. Boot into Safe Mode
  5. Delete the following folder: "C:\Program Files\bulletproofsoft.com"
  6. Restart as usual.

A screenshot of LSP-Fix v1.1

At last, my saga was ended. The IE 7 and Firefox 2.0 was once again a stable and pleasant place to browse on.
(And I truly regret about the previous slurs regard Microsoft's updates... They are just great!).

And for all of you, be aware: DON'T USE "BPS SpyWare/Adware Remover"!
IT'S AN UGLY TORJAN!!!

Thursday, April 05, 2007

Monitoring blog activities with Google Analytics

I've just started to monitor my blog with the Google Analytics service.
This free service enables you monitoring all of your websites by collecting information about users' geographic location, the frequency they visit your website, how did they came to your site (e.g. directly by entering the site url, through another site/blog, using a web search etc.) and more.
All of this done by comfortable reports it produces for you, such as visual geographical map and various informative graphs. It is also has the feature to export the stats. to an XML, Excel or txt formats!

As a matter of fact, this service has powerful abilities which preeminently intended for the small to medium business. That is reflected as "Marketing goals" you can create - which analyzes exact usage of your site.

As they say - "it's more than a counter".

HD files and folders collects dust

Recently I've noticed that my HD has left only a little space. Wondering how can it be I started searching for an appropriate software that will answer my question. Googling here and there I finally found what I was looking for: JAM Software's TreeSize Professional.
This great software is analyzing the HD completely and gives you several easy to understand gauges regard the files and folders resting in the obscurity of the HD (take a look).

What I found:

  • Need for Speed Carbon (didn't play it for a long time): 6GB
  • Some old help files of an ancient IDE which I removed a long time ago: 1.2GB
  • Unused Flight Simulator aircraft files: 2GB
  • Images and movies I never knew I'm still keeping them: 3GB
  • Very very old documents, PDFs and PPT files: 2GB.
    Sum: 14.2GB (!) of wasted place.

Satisfied, I can now Install Command & Conquer 3 - Tiberium Wars.

Tuesday, April 03, 2007

Installing Ubuntu 6.10 using VMware Workstation 5.5

Installing Ubuntu, my preferred Linux version, seems to be pretty hard at the beginning, but as a matter of fact it is not so scary.
Indeed, several Ubuntu installaion guides already exist over the internet, but I couldn't find any comprehensive guide explaining how to install Ubuntu under VMware Workstation 5.5 from A to Z. So I decided to write one...

Before we'll begin, make sure you have an Ubuntu 6.10 CD or an equivalent .iso file. You may download Ubuntu for free in Ubuntu site here.

The concept
Well, in the distant past, when the linux underground assembly decided to set up a new revolutionary, innovative, open source operating system (OS), they didn't intend that this operating system will lay upon MS Windows, but actually they wanted linux to replace it completely.
That was their vision, and I truly respect it.
But sometimes you do need linux and at the same time you do want to stay with your loyal Windows XP OS and you don't want to mess up again with hard drive partitioning or losing you're native OS handling.

For that reason, and some more, an old/new player came to town. It is the Virtual Machine guy (from now and on we will call it "VM"). This is an emulating software which able to, well, emulate another PC (one or more) running in your physical computer. Sounds weird?
It is! It resposible to create a virtual hard drive, manage the memory and isolating the runtime environment of that pseudo PC while it runs under the main operating system - Windows XP in our case. By terminology, the OS which runs the VM (the real OS) is called "Host Operating System" while the OS which runs inside the VM (the virtual) is called "Guest Operating System".
OK - for those of you which never heard of VMs I'm sure it sounds really strange, but believe me - it works and it even pretty easy to handle.

What VM should I use?
There are number of VMs in the market (just google for "Virtual Machine" and you'll get a lot of results...) - and three of them are very popular:

  1. Microsoft Virtual PC: Microsoft's version to the VM is offered completly for free. You can download it's 2007 version from here. Personally, I like its simple and straightforward user interface, but it's main lack is the basic (too basic) functionality, which prevents from doing some essential operations. So it's nice VM for basic tests - but in this manual we are not going to use it.
  2. VMware Player: The VMware company is offering a free VM software which presents almost the same functionality as the Microsoft Virtual PC offers. I can't point an exact fundamental advantage of this VM over Microsoft's. Maybe it's user interface is a little more friendly. You should watch that there are few known bugs which (up to date) the relevant support forums are full with people who desperately trying to by-pass them. Bottom line: Only a free taste for it's "big brother" - the VM Workstation (next...). By the way, you can download it here (last known version is 1.0.3).
  3. VMware Workstation: In my opinion - the flagship of all VMs around. This product is also by the VMware company and it costs money. You can download an evaluation copy of it from here (30 days) and I suggest you to do so in order to fulfill this manual. The latest version (currently 5.5.3) offers an easy-to-use but yet very functional interface, and it runs successfully many types of OS. So let's go!

Recommended hardware
An important attention should be to the hardware you need in order to successfully run a VM on your machine. After all, running two PCs simultaneously is not a trivial job...

For the basic user I suggest:

  • AMD or Pentium processor from the last generation
  • 512MB RAM
  • Free 8GB

For the advanced user (programmers etc.) I suggest:

  • AMD or Pentium processor from of the cutting edge
  • 1GB RAM and the more the better
  • Free 15GB

Preparing the VMware Workstation

1. Doubleclick on the VMware Workstation Icon


You'll get a "Tip of the Day" screen, read it or skip it by clicking "close".

2. Press Ctrl+N to create a new Virtual Machine. A wizard screen will be open:


Click "Next" to continue.

3. In the next screen choose "Typical" and click "Next".

4. On this screen you need to choose the operating system you're going to use with the Virtual Machine ("Guest"). Choose "Linux" in the upper selection and under the "Version" list - choose "Ubuntu". Please note that only if you have Windows XP 64-bit edition installed, you may choose the "Ubuntu 64-bit", but you can't choose the "Ubuntu 64-bit" if you have a standard 32-bit Windows (even though you may have a 64-bit processor, the VM will alert that you're not using a valid 64-bit machine).

Click "Next" to continue.

5. On the following screen you need give a name for the VM you're creating. The wizard suggests you the name "Ubuntu", it's good enough so leave it as is. The second thing you need to supply is the location of the VM dynamic files. These files are basically: log files (*.log), configuration files (.vmx) and the virtual machine disk file (.vmdk).
The "vmdk" file is actually the virtual hard drive the VM created for you. Every time the VM is starting up the guest operating system, it loads the vmdk file. In fact, every operation you're doing in the guest operating system - saving documents, installing new software etc. - is stored inside the vmdk file (and it's done transparently to the user). That's why you'll notice as time goes by that this file becomes huge. Give a location where you have enough space and then click "Next".

6. Here you need to choose how a network connection is going to set up and operate using the VM. VMware Workstation has a cool feature which is sharing the host operating system's Ethernet network connection with the guest operating system. This way, the guest operating system will automatically get the host's IP and an instant access to the host's network resources. In other words, you'll be able to access the internet from within the Ubuntu without ANY setup! In the screen check the second option as follows:"

Click "Next" to continue.

7. In the last screen of the wizard you need to supply the maximal amount of disk capacity for the guest operating system. The number of GB you'll enter will actually determine the virtual PC's hard drive capacity. The only option is to set a fixed, non-sizeable disk capacity. If you'll choose "Allocate all disk space now" you'll benefit from a faster loading. However, I won't recommend this unless you have a really large free HD capacity. Note that if you're a "basic" user - an amount of 8GB disk capacity will be enough. But if you're an advanced user (like me...) - you may find that 15GB is most suitable for you. I'll also suggest that anyway you won't check the last checkbox.

Click "Finish" to end the wizard.
You'll notice that a new tab named "Ubuntu" will appear on top of the screen.

8. No it's not over, but we almost there. Now, in the middle of the screen, under the "Commands" subtitle you'll find the text "Edit virtual machine settings" as follows:

Click on it.

9. This is the Virtual Machine Settings screen. Here you're able to control many of the abilities of your guest operating system. As time goes by you'll become more familiar with most of the settings, but for now we'll setup only the necessary parameters. Click on the "Hardware" tab, if it is not in focus. Then choose "Memory" from the list on the left hand.
You can adjust the maximal amount of memory the guest OS will consume. In "VM words" it is the size of the physical RAM you installed in you virtual PC. 256MB will be enough for the basic user, while advanced user (especially programmers) will probably need about 512MB.
Of course, the amount you set is derived from the physical RAM size "in stock" that you're able to supply while Winodows XP is running (don't forget that Windows consumes "some" memory by itself...).
Here is the screen:

Only if you downloaded an Ubuntu 6.10 .iso file, you should set the following: In the "Hardware" tab, click on "CD-ROM" in the left hand list. Then, Choose "Use ISO image" and browse for the .iso file you have downloaded. Generally, it is recommended to keep the .iso in the same directory where the VM files are located (see paragraph no. 5). This setting let us startup Ubuntu from an .iso file, as it was a real CD. Here is the screen:

Again, you can adjust and play with more settings later. For now, all other default settings are just fine.

By the way, another cool feature in VMware Workstation is that the guest OS will recognize your USB devices (including Disk On Key) when you'll plug them inside. It will take care of unmounting the devices in the host OS when you'll be in focus of the guest OS and will mount them again automatically when you'll return to the host OS. This way, no hardware interference will happen.

Now, Click "OK" to close the settings screen and we're ready to install Ubuntu!

Ubuntu installation

1. Under the "Commands" subtitle click the "Start this virtual machine", as follows:


After a few seconds the Ubuntu initial menu will come up in a "Live CD" mode. Click with the mouse inside the Ubuntu screen. That will cause the VM to "grab" the control of the input devices of your computer. From now and on, until pressing Alt+Ctrl, the mouse and keyboard will operate only the current session of VM.

2. Using the arrow keys, choose "Start or install Ubuntu" from the menu, and press Enter. The Ubuntu logo will be displayed as well as a progress bar. Finally, the Ubuntu OS will appear and you'll see the following screen:

Note that the Ubuntu wasn't installed yet. It just started up in a "Live CD" mode, which means that it has been loaded into the RAM and will be erased right after exiting Ubuntu. Moreover, you won't be able to save anything to the HD but only to a USB key device, if you own one. Now, press Alt+Ctrl+Enter to enter the full screen mode. Again, pressing Alt+Ctrl inside Ubuntu will return us back to the VMware console display.

3. Doubleclick the "Install" icon appears in the desktop. The welcome screen of the installation wizard will appear:

4. Choose your preferred language for the installation process and as the default language for the final system. Then click "Forward". In the next screen you need to choose a city in your country and time zone:

5. Make your choice and click "Forward". Next you'll need to determine your keyboard layout:

6. Make your choice and click "Forward". In the following screen you need to enter some personal details, such as your name, your username, password and computer name:

Note that it is VERY IMPORTANT to remember your username and password, as this information is needed for login to the system and for some other administrative operations during the usage of the system, such as further software installations. Click "Forward" to continue.

7. Next you should select the disk where you want to install Ubuntu. Don't worry, this operation will not erase ANYTHING in your real HD. It just uses the virtual HD file as it was a real HD, and for Ubuntu - it doesn't know it's inside a VM environment... good for us!

So leave the first check mark checked and click "Forward". Finally, a summary screen will appear and you'll need to confirm that all information you've entered so far is correct. So, if everything is OK, click "Install" to start the installation process.

8. The installation process will take about 10-20 minutes. At last, you'll be asked whether to restart the comoputer or continue using the live CD. Select "Restart now" and wait until the Ubuntu will come up once again (note that you'll need to press Enter in some phase of the restarting process).

In the login screen of Ubuntu, enter your username and password. The "Software packages" dialog window will pop up. Click "Cancel" to close it (you can manage packages later. Please refer the online manuals regard this subject). You'll notice that the install icon is no more displayed on the desktop. That's because we have installed Ubuntu. Yes, we've finished!

My online photo album

You're welcome to visit my online photo album at