Coming from a Windows/Mac background, I got in the habit of having shortcuts to applications I use frequently on my desktop or in a task bar. I’ve continued that practice when switching to Linux as well. Unfortunately, Pentaho Spoon – the GUI tool for designing transformations and jobs for Pentaho Data Integration (aka Kettle) is started from a command line. When I tried to create a desktop launcher on my CentOS laptop, but that only resulted in an error message:
Unable to access jarfile launcher/pentaho-launcher-22.214.171.124-752.jar
I searched on the Internet, and apparently this was a common question, so I decided to come up with a quick and easy solution. Here it is:
- In your home folder, create a text file. I called mine “start-pentaho.sh”, but feel free to call it whatever you like, as long as you have the .sh extension.
- Edit the file and add these three lines:
cd <path to where you extracted PDI>. On my laptop, its: cd /opt/pentaho/data-integration
- Save the file.
- Open up the file browser, and go to your home folder. Locate the “start-pentaho.sh” file you just created, and right click on it and choose properties from the menu.
- In the Properties window that appears, switch to the Permissions tab. For the owner and group, make sure the Access drop down is set to Read and Write and for others it is set to Read-only. Finally at the bottom of the window, check the box next to “Allow executing file as program”.
- Click Close to save your changes and return to the desktop.
- On your desktop, right click and choose: Create Launcher
- In the type field, choose “Application in Terminal”. Enter whatever you would like in the Name field. Finally, for the Command field, you can click Browse to where you created your startup file and choose it, or enter the path manually. When you are finished the results should look similar to this:
- Before you click OK, you can click the spring icon in the upper left corner, and navigate to the data-integration folder on your system to substitute a Pentaho icon for the spring.
- Once you have changed the icon, click OK, and you should now have a desktop shortcut to start Pentaho.
- Double click the window and a terminal will open with the first line of the script showing: cd /opt/pentaho/data-integration. After a few seconds, the Pentaho splash screen will appear, and then the application will load up after that!
Update: If you are running Linux Mint Mate (have not tried this on Cinnamon), you need to install Gnome-terminal for it to work. Launch the Software Manager application, search for gnome-terminal and install it. Then the above will work.
PENTAHO is a trademark of Penatho, Inc.