Monday Mar 30, 2009
Thursday Nov 01, 2007
By octav on Nov 01, 2007
Alexei and the team have been working on a PHP plugin for NetBeans 6. I am hoping they'll be able to release it on the NetBeans 6 update center in early December. The bits will be young, beta quality at best, however I am experimenting with PHP support in NetBeans and I like what I see so far.
The first thing one may do is make sure to get a runtime stack that supports the deployment of PHP applications. Given that many of these apps will have a database backend, this calls for something like MySQL. You'll also need a matching web server, and apache comes to mind . Here are few easy steps to get started:
- SSH Server (for remote access)
: sudo apt-get install ssh
- Database Server
: sudo apt-get install mysql-server
- Apache HTTP Server
: sudo apt-get install apache2
- PHP for Apache HTTP Server
: sudo apt-get install php5
- MYSQL for Apache HTTP Server
: sudo apt-get install libapache2-mod-auth-mysql
sudo apt-get install php5-mysql
Once you install the PHP plugin in NetBeans, use the "Services" tab to configure the document root for Apache web server installation. On my Ubuntu installation the document root is /var/www/apache2-default. You will likely have to change the permission for the document root, since NetBeans is usually install in user mode and apache required sudo.
To test everything, just create a new PHP Project in the IDE and add the following line of code: phpInfo(); in the default file. Next deploy you page and in your browser look for something like: http://localhost/apache2-default/index.php
Friday Apr 20, 2007
By octav on Apr 20, 2007
The good news:
- Java 6 is now available on Ubuntu 7.04 (Feisty Fawn) from the multiverse repositories
- A couple of simple commands will install Java 6 on your system:
- Get and install Java: sudo apt-get install sun-java6-jdk
- Make Java 6 default: sudo update-alternatives --config java
- Edit sudo vi /etc/jvm the first entry should point to your JDK /usr/lib/jvm/java-6-sun
- Optionally you can install the jre and firefox plugin: sudo aptitude install sun-java6-jre sun-java6-plugin
Of course, you'll be better off following the documentation available on the Ubuntu website.
The not so good news:
- Java 6 is still not default on Ubuntu 7.04 (after installing the OS you get 1.4.2)
- You can install Java 6 from the Applications | Add/Remove, however you have to fish for it and "Show" All Available Applications when you search for it
In addition to Java, Glassfish v1 and NetBeans 5.5 are also available from the multiverse repositories. IMHO this software stack makes Ubuntu very competitive vis-a-vis RedHat / JBoss. I'll blog some other time on this topic.
Saturday Dec 02, 2006
By octav on Dec 02, 2006
MacBuntu - A word describing making something easy, humane towards others.
Starting again with a picture for the folks that like shinny objects :-)
In installed parallels with a trial key (I was not going to pay just in case my manager alter ego kicks in and I am not able finish the project), I downloaded Ubuntu 6.10 and started on the journey of making my MacBook Pro even more powerful.
- I burned the Ubuntu image on a DVD and tried the install. Oops, parallels won't recognize the media :-(. OK, perhaps I have a coaster, let me burn another iso. Nope, the VM would choke and would ask me to insert the media. OK, let me google this ...
- It turns out that you can boot from a local image of the guest OS. I further use Parallels to configure for Ubuntu to use 1024 MB of memory and 16GB of hard drive. Once I do that, happiness! So short lived :-(
- Ubuntu loads a live image of the desktop and you seem to be one click away of the installation. The installer hangs after 15% progress. I am agitated. I pull Anger Management and watch a short segment to relax :-)
- It turns out that on MacBook Pro hardware the installer chokes if the memory is set to anything higher than 512 MB. Once I change the setting of the VM I am able to install without any problems
The result is stunning:
- desktop is beautiful
- (wireless) networking works like a charm - this blew me away, since I was expecting all kind of driver issues
- OpenOffice, Firefox, Evolution
- bash as the default shell
- JDK 1.4.2 (we have to fix that)
One of the things you'll have to do is edit /etc/X11/xorg.conf and add the native resolution of the you Mac. In my case I had to add 1440x900 and tweak HorizSync and VertRefresh.
Modes "1440x900" "1280x800" "800x600" "640x480"