Saturday, May 26, 2007

Install Netbeans 5.5 in Kubuntu

Netbeans is a suitable IDE for Rapid Application Development in Java, and most Developers prefer Netbeans over Eclipse (especially developers who just migrated from Windows). I wouldn't recommend downloading Java in Adept since it'll just spit out errors or shut down on the EULA part of the installation.

First, download 2 packages: sudo aptitude install sun-java6-jdk netbeans5.5
You only need to download the 2 package and let aptitude download its' dependencies for you, this will save you the hassle of typing a long command.

Note: Netbeans still depends on Java 5, but if you're serious about software development in Java, you will need Java6. Just issue Y and hit the Enter key.

Once download finishes, the installer would present you with its' End User License Agreement, and as the name suggest, you have to  agree before you can use it. Navigate to the <Ok> prompt by hitting the Tab key. If you download and install Java via Adept, this is where you'll encounter problems.

So hit the Tab key again to navigate to the <Yes> prompt and hit the Enter key.

Aptitude will continue installing other packages. This won't take long, so it'll be better if you just wait.

Now this is where Aptitude needs you. You have to download the NetBeans package from Netbeans.info. In case you're wondering, the package netbeans5.5 is just an installer.

Go to http://www.netbeans.info/downloads/start.php?f_id=13710&lang_id=1 and let Firefox download the package. While downloading, you can walk your dog or take a coffee break. This will take some time, unless you have a very very very very high speed ADSL connection. Also, the link above wouldn't work in KGet or other download managers. Don't waste your time configuring a download manager download it for you.

Once you're done downloading the netbeans-5_5.tar.gz save it to /tmp and change its' permission to root:root. I suggest you use kdesu konqueror for this since it'll be a lot easier for those still not comfortable with the command line. You can easily change the files' permission and copy to the /tmp directory without much hassle.

Hit the Enter key to continue with the installation.

After that, NetBeans would be available for you under the Development dir.

Another License Agreement here, so just Accept it to use Netbeans.

Here's the splash screen.

And here's NetBeans IDE 5.5 window. So go ahead and keep coding.

If you're really keen on using NetBeans, and you're also a C++ coder, you might as well use it to code in C/C++ by downloading an Add-On package. This is only for those comfortable in using Netbeans though. But if you're developing mobile applications based on Java, there's also an add-on pack available from netbeans.info.

You can download the C/C++ Pack here: http://www.netbeans.info/downloads/start.php?f_id=14405&lang_id=1

And you can download the Mobility Pack here: http://www.netbeans.info/downloads/start.php?f_id=13718&lang_id=1

One advantage of using Netbeans over Eclipse is speed. So far, Eclipse 3.2 is a bit sluggish as compared to Netbeans. It also has a habit of either freezing itself, or freezing your system. Yup, it's a resource hog. But I am looking forward to the next release which, rumour goes, is far more optimized than the current one.

Let's just install the addons tomorrow. I'm tired and I have a fever... need some sleep. See ya!

Blogged with Flock

Monday, May 21, 2007

My LAMP on Kubuntu Feisty

I get my money from GetAFreelancer.com and I noticed that there's a lot of Joomla! projects available for the taking... Joomla! Projects can get as high as $150 per project, and you only need to install, setup a couple of modules, configure the interface, and optimize the site. If I'm only adept in PHP/MySQL, it'll only take me a few hours to do that... so now I'm focused on learning PHP/MySQL and Joomla! I also took it upon myself to redesign Ubuntu-PH and ask Zak Elep how to proceed with it. So before we implement a new design, we agreed to do it first on a "Beta Site". I'll be signing up for a free service later tonight and install Drupal. Then proceed with a new design tomorrow morning.

By installing my own LAMP server, I can practice and refine my skills without the hassle of uploading and testing it remotely. After everything's configured, I can just upload the modules and import the .sql file.... very convenient.

First, I downloaded the following files by issuing the command :

sudo aptitude install apache2 mysql-server php5 php5-mysql libapache2-mod-php5 phpmyadmin


Of course, it'll download a few more files.

Since it'll also download Postfix, you'll see this notice. I don't have any plans of setting up Postfix in the next 2 weeks, so I just set it to No Configuration

After installation, /var/www would be created and if you go to http://127.0.0.1/ or http://localhost/ you'll see this page.


If you see this page, you have to click on phpmyadmin/ and assign a password for root. If you don't, then anyone can just login and mess up your account.


Since I don't want Joomla! (or other CMS) taking over my /var/www, I saved an HTML file with a link pointing to /var/www/joomla

And here I have my Joomla and my Drupal

So there it is, LAMP on my Feisty... this way, I can easily configure and test without wasting time by donwloading and uploading files and then testing them remotely. I'd rather test my stuff online once it's fully tested locally.

Blogged with Flock

First Things First

Due to my current project and venture into a SysAdmin realm, I decided to give /var it's own partition. Also, this is in preparation for my UCP and LPIC.

Since I do everything on my P4 Celeron 2.7GHz, I'd rather do it here than my laptop or my P3 (which I use very, very rarely). So after 10 deep breaths, I placed my Kubuntu Feisty on my CD Drive and booted it up after backing up my files. I have 60GB of disk and I gave swap 2GB, /home 35GB, / 15GB, and /var 7.5GB. I gave /home its own partition, so I wouldn't have to worry about losing anything even if I install another distro or I upgraded my Kubuntu in 6 months. I gave /var it's own partition for my www, and Sendmail or Postfix (whichever is easier).

After installation, the next thing I did is add repos and let adept-updater do its job. It is worth mentioning that I should've backed up my /var/cache/apt/archives via APTonCD before I cleared them so I wouldn't have wasted precious time waiting for Adept and Apt to download files.

While downloading updates, I setup my Konversation, Kopete, and KMail.

Now I downloaded plugins, players, and my oh-so-important KNewsTicker for my RSS.

After all that, I downloaded a few more applications (Firefox, KDevelop, QT, Anjuta, Glade, Eclipse, Netbeans, Gambas, MonoDevelop, GIMP, Inkscape, KOffice, etc... etc... etc...). And to top it off, I configured my desktop. All I need to do now is look for a nice theme to match my wallpaper.

Blogged with Flock

Saturday, May 19, 2007

Convergence on Net25

When computing, I always either turn the TV on or play some MP3s to help me concentrate. This time, I turned on the TV, checked on the channel, and came across this show on Net25 called Convergence. I'm not really fond of the show, never has, since the information they have are pretty much useless to me or that they convey very old information to their viewers. This time, it's inaccurate. This guy claiming to be a Linux Power User since 2001 "admitted" that Linux isn't much on Graphics! WTF??? Linux user since 2001 and claimed that Linux isn't that good in graphics? Guess what, he also said that Windows is better in graphics (not the exact words). OMG! Convergence... nobody's watching. And you have to look for an incompetent "Linux User"! Google and look for a true enthusiast. There's a lot of people willing to give you and your viewers real and accurate information. I'm guessing that the guy they interviewed install Linux every 6 months, try it for one day, and boot back to his malware-ridden Windows. That's not the definition of "A Linux Power-User". Just take a look at his computer. A Power-User spends at least 5 hours every day in front of his computer and really invest on hardware for the much needed comfort.... and what does he have... a beige box and a 15" clunky CRT monitor. My God! Graphical? Linux is much more graphical than Windows. I haven't opened my konsole for months now, and that guy tells everyone that Linux isn't graphical? Give me a break! To the staff of Convergence>>> If you're going to interview someone regarding Linux, please make sure you pick a guy who knows what he's talking about. Your reputation is at stake... oh right... what reputation?

Blogged with Flock

Friday, May 18, 2007

GPG Cleanup

I've had some problems cleaning up my GPG a month ago, and I do need to delete a couple of signatures and user ids. I didn't know back then that you first need to select a subkey by typing 1 or 2 (in my case I have 4) before issuing the deluid or delsig command.

I use a GUI frontend called KGPG which served my purposes well. I highly recommend it for KDE users.

And lastly, after cleaning my Key, I exported it to my default keyserver, hkp://keyserver.ubuntu.com/ hoping that it'll update my public keys. I don't know how it's suppose to go, but I'm too lazy to read man pages and howtos. Will check this out in a few hours.

Blogged with Flock

Tuesday, May 15, 2007

It's 1:56AM, Election Canvassing is still ongoing

48 hours canvassing... Dead people voting... Missing people... Lost ballots... Ballot switching... Harrassments... Arguments... Altercations... Lost list of voters... Hay!!! Only in the Philippines.

I'm pretty sure that COMELEC is aware that FOSS can help them out. Why not purchase, or rent, computers to speed things up. Xubuntu is very much capable of preveting conflicts. And I'm sure that PLUG and Ubuntu-PH would help out in this matter.

Halalan 2007! Crap!

Walang pagbabago!


Blogged with Flock

Sunday, May 13, 2007

UES Boston - October 2007

Ubuntu Education Summit has really interested me. Now I'm saving money so I can go to the next UES at Boston, Massachusetts in October. I just hope I have enough money by then. hee hee! For those attending, I guess I'll see you there.

Blogged with Flock

Wednesday, May 09, 2007

Generating SSH keys for your SVN and Launchpad Account

I recently reinstalled my system and for some reason, I forgot the passphrase of my SSH key (I thought it's the same as my GPG key). So now I have to generate another keypair.

First, I issued the ssh-keygen -t rsa command


I just hit Enter on this prompt, let ssh-keygen do all the work


And of course it asked for my passphrase


And there you go, the "success" message is my key fingerprint which is 71:8F:9D:8A:01:96:DE:C2:61:23:3A:A6:13:B0:96:0A


Now I went to launchpad.net to delete my old SSH key and upload a new one. I opened the ~/.ssh/id_rsa.pub file using Kate and copy-pasted the contents on my launchpad account.


As for my SVN, all I have to do is update my key... Now I'm back in business!

Blogged with Flock

Sunday, May 06, 2007

Spring Cleaning: My Oldest Magazine & Bookmark circa 1997 & 1999

Spring Cleaning, and I found my old PC Magazine dated April 10, 1997 (total of 10 years and 26 days) and my 1999 Microsoft Bookmark.

And then I realized.... am I really getting old?

Blogged with Flock

NetBeans CDs for Free

I'm a casual C++ coder and I've been meaning to try out Java. So today, after reformatting and partitioning my sda (gave /home and /var it's own partitions), I installed Eclipse.... which I find very sluggish. So I apt-get(ted) netbeans and jdk (and I did encounter a lot of problems installing it from the repo), downloaded and installed the zipped doc and NetBeans bin, spat out "JDK 1.5 is not installed" errors, downloaded and installed megs of installer, and finally got it working (at last!!!). Surprisingly, for a bloatware, NetBeans seems faster than Eclipse.

Next up on my list is to look for tutorials on Java and finally stumbled upon the "Get your free CD" link. I bookmarked a couple of Java tutorial sites and ordered my CD.

Those into Java would be happy to hear that NetBeans.org is still shipping out free CDs for free. It includes "NetBeans IDE 5.5, NetBeans Mobility Pack 5.5, NetBeans Profiler 5.5 and Sun Java System Application Server 9.0_1 Platform Edition. In addition to the standard English distribution, localizations of the NetBeans IDE, Mobility Pack and Profiler are available in Simplified Chinese, Japanese and Brazilian Portuguese."

The free CDs are part of their worldTour promotion which started in Seattle, WA back in September 6, 2006. Today's a great time to try out Java/NetBeans so better go order your CDs while it lasts.

http://www.netbeans.org/about/cd-form.html
http://www.netbeans.org/community/articles/worldtour/index.html

Blogged with Flock

Friday, May 04, 2007

Xubuntu on Kubuntu via QEMU

This is actually the first time I've tried to virtualize anything. I've been wanting to virtualize any OS before but I just didn't find any use for it and it'll only waste my time. But now that I'm involved with my Xubuntu Initiative, I decided to try QEMU. QEMU isn't actually my first choice, Xen is but QEMU comes highly recommended. I'll also try VirtualBox and Xen soon.

Well, here it is... Xubuntu running on top of QEMU.

And just in case you're wondering, I've also installed qemu-launcher so I wouldn't have to type in long commands to create QCOW images or launch sessions.

References:
http://tech.tolero.org/blog/en/linux/qemu-9-and-kqemu-for-ubuntu-dapper-edgy-feisty
https://help.ubuntu.com/community/WindowsXPUnderQemuHowTo
http://geekpit.blogspot.com/2006/03/using-qemu-and-kqemu-under-debian-or.html
http://fabrice.bellard.free.fr/qemu/kqemu-doc.html
http://fabrice.bellard.free.fr/qemu/qemu-doc.html

Hope those references helps you out...

Blogged with Flock

Thursday, April 26, 2007

Is the search for the perfect distro over?

My peers (in person... yes, I do have a life outside my computer) has asked me whether I my quest for the perfect distro has come to an end. To answer that question, is Hell No! I have to explain over and over again that Linux is that flexible and has a lot to offer no matter what distro you choose. That boggled them since they thought that all distros uses the same base, the same source codes, the same applications... that is true! But the distro is not defined by what applications are installed and offered, but by how active and accomodating a community is. It's always the community... Softwares and Operating Systems evolve, including Microsoft Windows, but you don't see me using Windows... Community on the other hand are a bunch of humans driven by their passion and emotions. Let's face it, it's not always their brains that's working.

Fact: there is no end for my quest. Softwares will move forward, but a community may regress (almost 100% caused by emotions). And that is the reason why I won't stop downloading and installing new distros.

3rd Quarter last year, I migrated from Gentoo due to petty quarrells. Their package manager is  the best in the world. I have to admit that it has superseded Apt when it comes to dependencies and functionality, but it's not all that. What's the use of a perfect application if the people you're working with keeps on pushing you around. Don't get me wrong, I still love Gentoo, and their new Code of Conduct has  forced me to reconsider my thoughts. As for Fedora, well the most recent (at least for me, I've been out of touch lately) reason why I still haven't tried Zod (FC6) was because of this (complete). ESR may be at fault here, but a professional (and a representative of Red Hat) isn't supposed to act like that. It's all about respect, it always is and will always be. Community, always driven by emotions and almost always the cause of their success or downfall.

Now I'm into Ubuntu... who knows, maybe next year I'm back to Gentoo or Fedora. Well, let's just see...

Additional Note: No, I'm not starting a flame war here, this is my opinion and you have to accept it as that.


Blogged with Flock

Wednesday, April 25, 2007

Pinoy Geniune Kit... Bwahahaha!

So have you read your morning paper lately and discover another gimmick?

Yup! A very enticing offer.... And I suggest you go validate your XP now before it lasts. At Php7,748.00 it sure is a nice deal, so again... better buy now! You'll also have a chance to win another PC, an O2 PDA-Phone, XBox, etc. Wow!!! I'll go get one myself... Zzzzzz!

Oh right, sorry for falling asleep. Hey, look go validate your windows now, shell out Php7K, and you'll have a chance to win gadgets... you'll also win malwares and spyware 100% guaranteed! It slices, it dices...

After making Microsoft Php7K richer, you'll also be prompted to buy a Php4K Norton Internet Suite and a PhP15K MS Office 2003 Premium so you'll never be left out with Wordpad. As an added bonus, XP will drive you paranoid from email attachments, IM Spam, and internet browsing. And lastly, you don't have to be technical with XP, its' user-friendliness won't give you enough time to differentiate viruses from worms from trojans from spywares... coz they're all the same to you!

So, for the 3rd time... go validate your XP now, or you'll be sorry!

Scam.... legal or not... it's still a scam!

Blogged with Flock

Thursday, April 19, 2007

Hours Before Feisty

In a few hours, the Ubuntu community would release Feisty Fawn (v7.04). There's an alarming stillness, like a calm after the storm, like silence before an impending disaster. Only a few devs and testers are at work, the rest are unaware of what's in store for them. But everyone is talking about it... anticipating...
Feisty is considered another milestone for the Linux community. The needs of both regular users (who loves or used to using proprietary codecs, plugins, and softwares) and Open Source Software-only advocates were met. This compromise will suit everyone... and I'm happy about it.

I implore you to download it, use it, and experience the freedom you've never tasted before in Windows.

Blogged with Flock

Tuesday, April 03, 2007

SmartBro is listed

...  by CBL and won't be long before we get listed by SpamHaus. Yup, no turning back now, there's hundreds of SmartBro subscribers and almost 90% of them are using Windows. The problem is viruses and trojan mailers which try to send out spam to their contacts. Why is this a problem for us? When that happens some of our friends might not recieve our emails, especially if they are using DNS blacklist (or something like that... no time to research) like SpamHaus. Today I tried to post a comment on a WordPress site and got the message below.

So of course I gotta check this out, so I clicked on the link so I could release my (and a hundred subscribers) IP address.

Yup, I understand this. Spam not only comes in the form of emails, but also comments on blogs and news articles. So I gotta check my IP out for myself and see what comes up.

Aha, CBL has blacklisted my IP address. I clicked on the link to see if I could fix it.


http://cbl.abuseat.org/remove.cgi?ip=203.87.200.214

Yeah, I was able to release it my IP from CBL, but it says here that if OUR IP address gets listed and delisted multiple times, they're gonna have to permanently blacklist us. And like I said, we'll have a hard time sending out emails to our friends, families, and even our employers or clients (we'll lose money). We'll have a hard time chatting with our friends via IRC and IMs. Some of the sites we go to would have an Error telling us that our IP is blocked. And we won't be able to comments on our friends' blog. What causes this again? Viruses, Trojans, you name it. And it only happens if you have a Windows machine.

And NO... if our IP address gets permanently blocked, even SmartBro won't be able to do anything. And because you are using a Windows machine, you'll affect innocent users like me (and there are hundreds of us subscribed with SmartBro). Please think about what you're doing... Do you really need Windows?

"Mandadamay pa kasi e!"

Blogged with Flock

Monday, April 02, 2007

Baguio Ko Mahal Ko April 1 Article

Firstly, I need to ask forgiveness from Madam Virginia De Guia for infringing on her article without asking permission from her, though I'm sure she wouldn't mind me posting her article in full. Here's her Sunday article.








As we say goodbye to the month of March, we seem to remember it mainly as the month of ashes on our foreheads, of graduation marches and togas, of the last gasps of chilly Siberian winds, and the first warm embrace of summer drafts. And yes, in anticipation of the multitudes of holy week, the month city officials, businessmen and police get their acts together. Not to mention squads of volunteer groups like REACT and Boy Scouts to help lost visitors.
Few can remember the energies of March 1945. The infamous month of carpet bombing of Baguio by American B-24s. It was six months before the close of the war. I was 29 years old with a two-year-old son and one-year-old daughter. For almost 60 days, American B-24s were raiding our beloved city, razing it to the ground to flush out General Yamashita.
We were refugees within our own city, herding ourselves at the Baguio Cathedral. Make-shift shacks were built around the slopes of the church knowing (or at least hoping) the bombers would spare the refugee center.
It was a terrifying March - an atmosphere that we see only in documentary films from the viewpoint of the bomber's cameras. On the ground it was hell. James Halsema describes the horror: "Few participants have clear memories of the events of March 15. What they remember is endless running, exhaustion, terror, smoke, and dust. Some refugees including seriously wounded people remained in the Cathedral..."
He describes how the b-24s came in single file. Two squadrons discharged their loads from south to north and two others from southwest to northeast. Altogether 170 planes... came to Baguio that day to release their loads... so dense and devastating that they were termed "carpet bombing". I didn't realize that the expression was formed from the Baguio air raids. (Just like the American work "Boondocks" came from our word "bundok.") Pilots reported that "two days after, we were having difficulty seeing buildings through the black pall".
I remember that one stray bomb fell so close to the church, many refugees were wounded. we would return to our homes in the evenings and return to the Cathedral early next morning after cooking our daily baon. Many had dug air raid shelters near their homes -- little cuevas to run into. One day a bomb fell so close to our home and my mother, sitting near the mouth of the cave was buried live. It took almost an hour to dig her out - with neighbors and some Japanese helping. She was brought to St. Louis hospital and she survived.
we had moved several times - from our home on Session Road (present La Azotea) down to the Hotel Plaza (the DBP corner lot), which my husband Victor was managing and later to my sister-in-law Leonila Madrid Oteyza's house in Aurora Hill. When it seemed to be a never ending nightmare, we evacuated finally to Tubao La Union - walking five days and nights. I was carrying my one-year-old Genie on my back, while Eric was carried by my nephew Poping de Guia.
A report on the March 15, 16, and 17, 1945 bombings said: "The heap of rubble, which represented Baguio was no longer the beautiful, healthful, peaceful, or the gay rendezvous in the Philippines. It was with deep sorrow that pilots saw their bombs crashing into swimming pools [sic] (in reality Burnham Park Lagoon), golf courses, beautiful hotels, and other luxuries, which they had dreamed would be ours to enjoy on the capture of Luzon."
Halsema concludes: "Even over 40 years later it is not easy to understand why the US Air Force bombed so many civilian occupied buildings in Baguio on the Ides of March 1945."
Yes I can never fully understand the need for war at all, today. Six decades later, the memories of March 1945 still haunt me - as images of war continue to grace our TV screens. Kailan tayo matututo that World War II should have been "The war to end all wars?"

End of Article. My comments below.

So there it is, a chilling 1945 memory. I can't help but wonder how Baguio recuperated so easily after multiple monstrous attacks. But that made Cordillerans stronger. It's true that only a few remembers that day, but as long as someone remembers.... we'll be OK.

Why did I post this article here? 'Coz it wouldn't take long before Microsoft invades FOSS and their community. Everyone knows (and experienced) their aggressiveness and indifference. We have to prepare for the larger battle to come. War? Oh yes, we're already at war. It started way back in 1980's, and we initiated it. The day Stallman created GNU & GPL and Linus, the Linux kernel, was the day we declared war over injustices and monopoly. We won't see the end of this war for another 20 to 40 years. But we should strive to win one battle at a time. Every convert is a battle won. And every convert is another General waiting to lead an army against the Big Evil.

As for me, I'll be waiting for the D-Day... prepared!

Sunday, April 01, 2007

Google, you gotta love 'em

Now what does Google have that makes it the top dog?

GMail, Google Calendar, Notebook, Personalized Homepage, Search, Code Search, Blogger, Videos, YouTube, AdSense, etc. etc. etc.

Google actually manages my life, just a few snags though (Calendar and Notebook integration into KMail and we're all set) but it does its' job well.

But what really cracks me up is their developers, and managements, sense of humor. Yup, every year we get treated to a few laughs. And today, I managed to  digg two of them.

http://www.google.com/tisp/

and

http://mail.google.com/mail/help/paper/more.html

Google, you HAVE to love 'em...

To the devs, Thank you!

Blogged with Flock

Thursday, March 29, 2007

Are you still using Yahoo! ?

Yahoo! Messenger: Virus, http://www.pspl.com/virus_info/worms/sohanadae.htm, that opens http://thecoolpics.com/xxx.xxx which will execute ActiveX commands remotely. Now, if your company or your home computer has Windows installed, then you're out of luck. Another layer of protection is Firefox with a NoScript extension installed.

Yahoo! Mail: The heavy weight contender. You read it, bloat! There's way too many features and eye-candy that it eats up your bandwidth and CPU/Memory resources. Because of those unneeded features, you cannot fully enjoy reading your friends email. Click on a message then fix yourself a coffee, click another message then you could wash your hands and take a leak... it's that slow. Not to mention very crappy SPAM filter. It managed to tag a legitimate email that was even signed by a GPG key. Take note of this, it also blocks emails with a @yahoo.com domain. Haha!



Did I forget to mention? Bloat... And because it eats up a lot of resources, even their servers can't display the page properly.  I'm amazed that their servers can still handle the load.

Geocities: Oh my god, hosting provider that spits out ads while providing measly megs of space.

Homepage: Unneeded features(?) links on the left.

Maps: Too Slow

Launchcast: Advertisements

Briefcase: 25MB isn't enough

Groups: Advertisements and SPAM

Sports: too much Flash

Search: can't customize

Answers: what's with the Avatars?

Flickr: Now this is the only service worth using and signing up with. I just hope that Yahoo! doesn't add additional unneeded features that'll make this site slow. Hint: if it ain't broke, don't fix.

I almost forgot, I only use Yahoo! Mail when signing up to porn sites. It's useful after all...

Blogged with Flock