Difference between revisions of "Linux"

From Freeplane - free mind mapping and knowledge management software
(clarification)
 
(11 intermediate revisions by 6 users not shown)
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 applicaiton 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.
+
For UBUNTU, see [[Ubuntu| here]]
  
1. command line (terminal): open a terminal and change directory to the place where you put your unzipped Freeplane folder, for example:
+
'''Update: Freeplane is packaged for Debian/Ubuntu => just run:
 +
  apt-get install freeplane
  
<code>cd '/home/YOURUSERNAME/Programs/freeplane'</code>
+
The following steps are recommended if the Freeplane package for your distro is out of date:
  
then, run the freeplane.sh:
+
1. [http://sourceforge.net/projects/freeplane/ Download] the Freeplane zipfile, and extract its contents to the folder of your choosing (e.g. ~/local/freeplane-xxxx , where xxxx is a version-number).
  
<code>sh 'freeplane.sh'</code>
+
2. Create a freeplane symlink to ~/local/freeplane-xxxx:  <pre>ln -nsf ~/local/freeplane-xxxx ~/local/freeplane</pre>
  
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):
+
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>  If you do that you should now be able to run freeplane from the commandline by simply typing <code>freeplane</code>.
  
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:
+
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> :
  
<code>sh -c "cd '/home/YOURUSERNAME/Programs/freeplane' && sh 'freeplane.sh'"</code>
+
<blockquote><pre>
 +
[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
 +
</pre></blockquote>
 +
 
 +
(for more details on why adding this file works, see [http://standards.freedesktop.org/menu-spec/menu-spec-latest.html the XDG Desktop Menu Specification], which is followed by all major linux desktop-environments)
 +
 
 +
Now, any time you wish to update your Freeplane application, just repeat steps 1 and 2.
 +
 
 +
[[Category:Documentation]]

Latest revision as of 13:02, 19 March 2017

For UBUNTU, see here

Update: Freeplane is packaged for Debian/Ubuntu => just run:

 apt-get install freeplane

The following steps are recommended if the Freeplane package for your distro is out of date:

1. Download the Freeplane zipfile, and extract its contents to the folder of your choosing (e.g. ~/local/freeplane-xxxx , where xxxx is a version-number).

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

If you do that 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

(for more details on why adding this file works, see the XDG Desktop Menu Specification, which is followed by all major linux desktop-environments)

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