Getting ColdFusion Studio for Linux
Getting ColdFusion Studio for Linux
--------------------------------------------------
I like using HomeSite+ for windows, and I am getting used to Dreamweaver Mx. But I still need something just as good for Linux. For some reason, I couldn't get "wine and Dreamweaver Mx" to work. So I "Googled" a bit and stumbled upon Eclipse and cfEclipse. Here is how to set it up.
--------------------------------------------------
First off get the eclipse-SDK-3.0.2-linux-gtk.zip file from http://www.eclipse.org/downloads/index.php
Then open shell, and cd to the location where the file was downloaded.
In mycase the download location was "/home/anang/downloads/"
Unzip the eclipse zip file like;
root@localhost$ unzip eclipse-SDK-3.0.2-linux-gtk.zip
Now you will get a folder called "eclipse" (For me it was in /home/anang/downloads)
Move the unzipped folder to "opt" like so;
root@localhost$ mv eclipse /opt/
This will give you a general ide. Now we will tune it for ColdFusion development.
-------------------------------------------------
To do this you will need to download;
1. http://www.spike.org.uk/downloads/cfeclipse_latest.zip (These are coldfusion plugins for eclipse studio)
2. http://cfeclipse.tigris.org/releases/snips_1.1.9.zip (These are coldfusion snippets)
-------------------------------------------------
Now unzip both files
root@localhost$ unzip cfeclipse_latest.zip
root@localhost$ ls -l
this will show you a folder called plugins. Now "cd plugins" and find a folder called "com.rohanclan.cfml_1.1.18.4"
Move this folder into plugins folder under eclipse like this;
root@localhost$ mv com.rohanclan.cfml_1.1.18.4 /opt/eclipse/plugins/
Also unzip the snips_1.1.9.zip to get a folder called snippets. Move this to eclipse/plugins also like;
root@localhost$ mv snippets /opt/eclipse/plugins/
--------------------------------------------------
To set up your webroot.
--------------------------------------------------
You, as a current user (not root) will need read/write permissions on your webroot. Mine was /var/www/cfdev
By default this folder belongs to "root". I changed the ownership of the subdirectory "cfdev" for myself;
root@localhost$ chown -c username /var/www/cfdev
changed ownership to "your username"
--------------------------------------------------
Now to setup eclipse to make it useable;
--------------------------------------------------
The following instructions come from http://www.ubuntulinux.org/wiki/EclipseIDE
You may not be the only person using that machine, and you may not even have root permissions on that machine. I will encourage you to visit the above website, because there are instructions there for a user level install as well.
They also work for Ubuntu, Debian and Red Hat/Fedora 3 OSs.
Become root or use "sudo" and follow them to the letter;
--------------------------------------------------
$ chown -R root:root /opt/eclipse/
Create /usr/bin/eclipse with your favorite text editor (e.g vi /usr/bin/eclipse) and add the following content:
#!/bin/sh
export MOZILLA_FIVE_HOME="/usr/lib/mozilla/"
export ECLIPSE_HOME="/opt/eclipse"
$ECLIPSE_HOME/eclipse $*
Finally, allow the script to be executed:
$chmod +x /usr/bin/eclipse
Gnome icon
Create a new launcher on the desktop (right click on the desktop -> Create Launcher) or on a panel (right click on a panel -> Add to Panel -> Custom Application Launcher) and add the following data:
o Name: Eclipse Platform
o Command: eclipse
o Icon: /opt/eclipse/icon.xpm
If you want an icon in the Applications Menu:
Create a new launcher called eclipse.desktop in /usr/share/applications with your favorite text editor (e.g vi /usr/share/applications/eclipse.desktop) and add the following content:
[Desktop Entry]
Encoding=UTF-8
Name=Eclipse Platform
Comment=Eclipse IDE
Exec=eclipse
Icon=/opt/eclipse/icon.xpm
Terminal=false
Type=Application
Categories=GNOME;Application;Development;
StartupNotify=true
--------------------------------------------------------------
Now you have a free coldfusion editor.
I have liked it so far. It also doubles as a php editor (if you add php plugins) and a java development tool (what it was originally intended for, I think). You can also use some imagination and above instructions for using on WIndows. But be cautioned, it will be slow to start up. On Linux, it has been acceptably fast.
I will also encourage you to add php plugins for eclipse, as these also add tools for controlling apache web server and mysql database server tools.
Have fun !!!
-
Basic Calculator
This is a tutorial to build a simple calculator for your web pages. You should get it pretty easily as you browse through the code.
Author: Anang A Phatak
Views: 20,205
Posted Date: Tuesday, October 14, 2003
-
An E - Rolodex System
Quick and easy way to sort and list your contacts by last names, in two really really simple steps.
Almost everybody who uses a data-driven website has a database containing some information about the users.
I had a database table called "contact" in which user's first name, last name, address, zip, email, phone, fax.... everything was listed.
If you do have something like that and wish to draw and group your contacts by say last names, maybe you will find this tutorial useful.
Author: Anang A Phatak
Views: 19,255
Posted Date: Friday, November 7, 2003
-
A plot to plot a line
I had no work one day due to a worm attack on our servers, thus a plot to plot a line on a graph was hatched in my empty mind. These files show you,
how to plot a line using no database, no java, no long wait times for aplet loading, just 3 tools, Loop, table and text.
Author: Anang A Phatak
Views: 17,386
Posted Date: Thursday, May 6, 2004
-
Automatic Form Generator
This is not a tutorial as such, more like an application that you can put in a directory.
It could boring if you use the CF editor, to pick "cfform" fill its attributes, then pick "cfinputs" one by one. fill out those attributes... one by one, then change tabs and pick the "submit" button... so on and so forth. Even if you code in a note pad, it might get lengthy to code individual element.
Wouldn't it be nicer to code all these elements at once, then just copy the code and paste it in your editor?
Author: Anang A Phatak
Views: 20,505
Posted Date: Thursday, May 20, 2004
-
A random password generator
RANDOM PASSWORD GENERATOR SCRIPT !
I know there is a random password tutorial here already. This is just another way to do the same. I think this is a little easier to understand.
Refresh it to generate a new password string everytime !
Author: Anang A Phatak
Views: 22,821
Posted Date: Monday, May 24, 2004
-
Advanced Calculator
I have posted a "Basic Calculator" tutorial here. That was more like a representation of how you would calculate with a paper and a pencil. You provide INPUT A then a MATHEMATICAL OPERATION like a "+" or a "-" and then an INPUT B. This is more a represntation of how you would use a regular hand-held calculator complete with buttons for NUMBERS, OPERATIONS and CLEAR TEXT.
Author: Anang A Phatak
Views: 17,868
Posted Date: Friday, June 18, 2004
-
Automatically Query To CFM
This is a custom tag application. The cf_QueryRender custom tag takes your query arguments and gives you a final page table and all...
Author: Anang A Phatak
Views: 24,169
Posted Date: Friday, October 29, 2004
-
A Mp3 Streaming Server
This is a small application that shows you how to create an MP3 streaming server.
Author: Anang A Phatak
Views: 25,179
Posted Date: Monday, November 8, 2004
-
Breaking down your query results into pages (Paging Tutorial)
I havent come across a "paging" tutorial on this site. I know there are JavaScripts available that help you achieve this, and the DataSet object in VB.Net comes with paging. All you do is "enable paging". But how do you do it in ColdFusion ?
Author: Anang A Phatak
Views: 29,598
Posted Date: Tuesday, November 16, 2004
-
A DataSet just like VB.Net
This tutorial shows you how to create a "dataset" just like the one in VB.Net
In VB.Net you would create a dataset with "edit" button in an extra column.
Once you click "edit", you get an option to "update", "delete" or "cancel edit mode"
This is just like a cfgrid tag. Although a cfgrid tag lets you bulk insert, bulk update or bulk delete, the dataset object does it one by one. But cfgrid is slower, and may give users Java errors, depending on their browser settings.
Author: Anang A Phatak
Views: 32,271
Posted Date: Wednesday, November 17, 2004
-
Dynamic time and date for your pages
Have you seen the "www.EasyCFM" page closely? On the main page, top right, there is a place for time, and top left a place for day-date.
Ever wonder how Pablo does it ?
This is not a ColdFusion tutorial. Its JavaScript.
Author: Anang A Phatak
Views: 20,249
Posted Date: Wednesday, January 5, 2005
-
ColdFusion MX 6.1 Installation on Linux (Ubuntu -- Hoary Hedgehog)
I have tried hoards of websites on how to install coldfusion on Fedora Core 3 with apache webserver. For some reason the connectors always failed.
I had "Ubuntu" on my laptop, basically because "acpi" suspend/hibernate actually works. I decided I might try to install CF there to find out what was going wrong.
Surprisingly everything worked like a charm.
Make sure you use "apt-get install apache2" before you try this.
BEST OF LUCK ....
Author: Anang A Phatak
Views: 22,647
Posted Date: Tuesday, May 10, 2005
-
Dynamic textbox and progress bar for your pages
The principle of this tutorial is similar to "Dynamic time and date for your pages" tutorial.
Except that this one generates messages, and that one updated time.
Read on, you will get the hang of it....
Author: Anang A Phatak
Views: 24,840
Posted Date: Thursday, May 19, 2005
-
Getting ColdFusion Studio for Linux
I like using HomeSite+ for windows, and I am getting used to Dreamweaver Mx. But I still need something just as good for Linux. For some reason, I couldnt get "wine and Dreamweaver Mx" to work. So I "Googled" a bit and stumbled upon Eclipse and cfEclipse. Here is how to set it up.
Author: Anang A Phatak
Views: 22,885
Posted Date: Wednesday, May 25, 2005
-
Breaking down your query results into pages (Paging Tutorial) Part-II
This is an extension to my last tutorial "Breaking down your query results into pages (Paging Tutorial)" which is posted here on www.easycfm.com
In the last tutorial, you could retrieve a dataset with a , then use a technique to seperate the results over several pages. It simply ;
- took the total "recordCount"
- divided that with the "number of records per page"
- then displayed the number of pages at the bottom of the table.
This is a little more sophisticated than that. Read on...
Author: Anang A Phatak
Views: 18,105
Posted Date: Wednesday, January 11, 2006