Difference between revisions of "Linux"

From Freeplane - free mind mapping and knowledge management software
m (Add Categories)
(partial rewrite of linux-install method to simplify steps required)
Line 1: Line 1:
To run freeplane in Linux (like Ubuntu), there are 2 good options.  Before that, it is recommended that you create a folder called "Programs" or something where you can save java applications like Freeplane, Freemind, Cron-o-meter, etc.  You should also rename the unzipped application folder that you place there to just "freeplane", so you don't have to fix the directory paths in your launcher when you update the program version in the future.
+
To run freeplane in Linux, the following steps are recommended:
  
1. command line (terminal): open a terminal and change directory to the place where you put your unzipped Freeplane folder, for example:
+
1. Download the Freeplane tarball, and extract its contents to the folder of your choosing (e.g. ~/local/freeplane-xxxx).
  
<code>cd '/home/YOUR-USER-NAME/Programs/freeplane'</code>
+
2. Create a freeplane symlink to ~/local/freeplane-xxxx:  <pre>ln -nsf ~/local/freeplane-xxxx ~/local/freeplane</pre>
  
then, run the freeplane.sh:
+
3. (optional) If you have a ~/bin folder which is in your shell path, you can create a symlink to the freeplane start-script: <pre>ln -s ~/local/freeplane/freeplane.sh ~/bin/freeplane</pre>  You should now be able to run freeplane from the commandline by simply typing <code>freeplane</code>.
  
<code>sh 'freeplane.sh'</code>
+
4. Finally, to add an icon which will show up in your applications menu, save the following text to the file <code>~/.local/share/applications/freeplane.desktop</code> :
  
2. instead, you can make a nice little entry in your applications menu with the icon, which basically automates the above actions. This way is nice, because then you can launch it easily with GNOME Do or similar app launchers. To do this in Ubuntu (the process is similar in other distros: search for 'create launcher application' on google or something if you need to):
+
<blockquote><pre>
 
+
[Desktop Entry]
Open System>Preferences>Main Menu. In the options, navigate to the submenu location where you'd like it to go, such as "Office". Then click New Item, and create its launcher like so: To the left, click on the icon, and browse to the icon file freeplane.svg in its folder. For name, put Freeplane, obviously. Then for command, enter this:
+
Version=1.0
 
+
Encoding=UTF-8
<code>sh -c "cd '/home/YOUR-USER-NAME/Programs/freeplane' && sh 'freeplane.sh'"</code>
+
Name=Freeplane
 +
Exec=/bin/sh /home/YOUR-USERNAME/local/freeplane/freeplane.sh %f
 +
Terminal=false
 +
Icon=/home/YOUR-USERNAME/local/freeplane/freeplane.svg
 +
Type=Application
 +
MimeType=application/x-freemind
 +
Categories=Application;Office;
 +
GenericName=Freeplane
 +
Comment=A free mind mapping tool
 +
</pre></blockquote>
  
 +
Now, any time you wish to update your Freeplane application, just repeat steps 1 and 2.
  
 
[[Category:User_Documentation]][[Category:Advanced_Users]]
 
[[Category:User_Documentation]][[Category:Advanced_Users]]

Revision as of 19:42, 24 January 2011

To run freeplane in Linux, the following steps are recommended:

1. Download the Freeplane tarball, and extract its contents to the folder of your choosing (e.g. ~/local/freeplane-xxxx).

2. Create a freeplane symlink to ~/local/freeplane-xxxx:

ln -nsf ~/local/freeplane-xxxx ~/local/freeplane

3. (optional) If you have a ~/bin folder which is in your shell path, you can create a symlink to the freeplane start-script:

ln -s ~/local/freeplane/freeplane.sh ~/bin/freeplane

You should now be able to run freeplane from the commandline by simply typing freeplane.

4. Finally, to add an icon which will show up in your applications menu, save the following text to the file ~/.local/share/applications/freeplane.desktop :

[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=Freeplane
Exec=/bin/sh /home/YOUR-USERNAME/local/freeplane/freeplane.sh %f
Terminal=false
Icon=/home/YOUR-USERNAME/local/freeplane/freeplane.svg
Type=Application
MimeType=application/x-freemind
Categories=Application;Office;
GenericName=Freeplane
Comment=A free mind mapping tool

Now, any time you wish to update your Freeplane application, just repeat steps 1 and 2.