LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-17-2021, 02:36 PM   #1
Johannes33
Member
 
Registered: Jul 2015
Distribution: manjaro Xfce
Posts: 80

Rep: Reputation: Disabled
decipering an install script?


Hi,
I want to install Xmind 8. All I have is a install script and no istructions how to use it. Also I would like to know what it does before I install it.

comments:
I have openjdk 11 installed. Do I really need to install openjdk-8-jre?
Where is the program installed? I remember before I have had this program and I had problems with it and ended up installing it under my home folder to alleviate the problems. Is there a way to fix so it installs in my home folder this time as well?

script:
Code:
#!/bin/bash

set -e

SCRIPT_NAME="$0"
SCRIPT_DIR="$(cd "$(dirname "$SCRIPT_NAME")" && pwd)"

echo "[setup] Installing dependencies...."
apt-get install openjdk-8-jre libgtk2.0-0 libwebkitgtk-1.0-0 lame libc6 libglib2.0-0

FONTS_DIR="$SCRIPT_DIR/fonts"
if [ -d "$FONTS_DIR" ]; then
    echo "[setup] Installing custom fonts...."
    mkdir -p /usr/share/fonts/truetype/xmind
    rsync -av "$FONTS_DIR/" /usr/share/fonts/truetype/xmind/
    fc-cache -f
else
    echo "[setup] WARNING: Custom fonts for XMind are not found."
fi

echo "[setup] Done."
 
Old 08-17-2021, 03:35 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,623

Rep: Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964
Quote:
Originally Posted by Johannes33 View Post
Hi,
I want to install Xmind 8. All I have is a install script and no istructions how to use it.
Did you read the documentation on their website?
Quote:
Also I would like to know what it does before I install it.

comments:
I have openjdk 11 installed. Do I really need to install openjdk-8-jre?
Where is the program installed? I remember before I have had this program and I had problems with it and ended up installing it under my home folder to alleviate the problems. Is there a way to fix so it installs in my home folder this time as well? script:
Code:
#!/bin/bash
set -e

SCRIPT_NAME="$0"
SCRIPT_DIR="$(cd "$(dirname "$SCRIPT_NAME")" && pwd)"

echo "[setup] Installing dependencies...."
apt-get install openjdk-8-jre libgtk2.0-0 libwebkitgtk-1.0-0 lame libc6 libglib2.0-0

FONTS_DIR="$SCRIPT_DIR/fonts"
if [ -d "$FONTS_DIR" ]; then
    echo "[setup] Installing custom fonts...."
    mkdir -p /usr/share/fonts/truetype/xmind
    rsync -av "$FONTS_DIR/" /usr/share/fonts/truetype/xmind/
    fc-cache -f
else
    echo "[setup] WARNING: Custom fonts for XMind are not found."
fi

echo "[setup] Done."
Confused about this entire question, mainly because the latest Xmind is available as both a snap package, and as a Debian RPM..why load the old version?

And the script you posted can't be much more simple. All it's doing is installing any GTK packages it may need, the older version of JRE (that it NEEDS to run), and loading fonts. The program itself is a binary.
 
1 members found this post helpful.
Old 08-17-2021, 04:13 PM   #3
Johannes33
Member
 
Registered: Jul 2015
Distribution: manjaro Xfce
Posts: 80

Original Poster
Rep: Reputation: Disabled
Hehehe... they have really succeeded in their marketing.

To my knowledge, and I have been using Xmind since 2013, there is two versions. https://support.xmind.net/hc/en-us/a...d-XMind-8-Pro- (summation from xmind themself)
One is called Xmind 8. It is the one that they were developing for some time perhaps 10-15 years, 8 being the version number of it.
Then perhaps 2019 they started to develop a light version with a lot of bling but less substance that they called xmind zen.
Very sleek. I think they plan on generating more money with it because it is a subscription.
They push it hard. making it available in snap and so on.
It was even hard for me to get xmind 8 to download. I could not find it on their homepage, needed to google it.
So no it is not an old version. I would say, to my knowledge if they have not updated xmind zen (now called xmind 2021) a lot it is like comparing wordpad and word, word being Xmind 8.
I have not found any documentation on their webpage. Before they had a mindmap of how to do it in linux. It had some errors so after a whole day of trying to install it I got it to work the last time.

Yes some of it was straight forward. but I did not want to spend a whole day trying to install it and I do not understand:
Code:
set -e

SCRIPT_NAME="$0"
SCRIPT_DIR="$(cd "$(dirname "$SCRIPT_NAME")" && pwd)"

Last edited by Johannes33; 08-17-2021 at 04:18 PM.
 
Old 08-17-2021, 04:33 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,623

Rep: Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964
Quote:
Originally Posted by Johannes33 View Post
Hehehe... they have really succeeded in their marketing.
No, they just have a website.
Quote:
To my knowledge, and I have been using Xmind since 2013, there is two versions. https://support.xmind.net/hc/en-us/a...d-XMind-8-Pro- (summation from xmind themself)
One is called Xmind 8. It is the one that they were developing for some time perhaps 10-15 years, 8 being the version number of it. Then perhaps 2019 they started to develop a light version with a lot of bling but less substance that they called xmind zen. Very sleek. I think they plan on generating more money with it because it is a subscription.
And according to their website, Xmind8 was ALSO a subscription-available. Same software, just updated, still free to use as far as I can see.
Quote:
They push it hard. making it available in snap and so on.
...and with RPM's, versus pre-compiled binaries. Both of which are easier to install.
Quote:
It was even hard for me to get xmind 8 to download. I could not find it on their homepage, needed to google it.
That's hard to believe, since just scrolling down on their webpage clearly has an "Xmind 8 (classic)" link, which has both a free-download and a "Buy now" link.
Quote:
So no it is not an old version. I would say, to my knowledge if they have not updated xmind zen (now called xmind 2021) a lot it is like comparing wordpad and word, word being Xmind 8.
While it's updated, it is NOT their current version.
Quote:
I have not found any documentation on their webpage.
They have an entire support forum, along with FAQ's, user guides, etc. on their site.
Quote:
Before they had a mindmap of how to do it in linux. It had some errors so after a whole day of trying to install it I got it to work the last time. Yes some of it was straight forward. but I did not want to spend a whole day trying to install it and I do not understand:
Code:
set -e

SCRIPT_NAME="$0"
SCRIPT_DIR="$(cd "$(dirname "$SCRIPT_NAME")" && pwd)"
After working with Linux for six years, basic shell scripting should be something you've at least looked at. Any bash scripting guide can tell you the 'set -e" stops execution if a command or pipeline has an error. The other two are setting variables.

Again, all that script does is download some packages, and copy fonts. Again, their latest version is in RPM, DEB, and Snap packages...installable with a single command. Can't get much simpler.
 
Old 08-17-2021, 06:01 PM   #5
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,597

Rep: Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545
Quote:
Originally Posted by Johannes33 View Post
I have openjdk 11 installed. Do I really need to install openjdk-8-jre?
Speaking generally, software written for a v8 JVM might still run on a v11 JVM, but is not guaranteed because there have been breaking changes (details here).

Nothing wrong with having both 8 and 11 installed.

 
1 members found this post helpful.
Old 08-19-2021, 01:48 AM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
^ this.
Quote:
Originally Posted by Johannes33 View Post
I did not want to spend a whole day trying to install it and I do not understand:
Code:
set -e

SCRIPT_NAME="$0"
SCRIPT_DIR="$(cd "$(dirname "$SCRIPT_NAME")" && pwd)"
Neither do I, so you are very lucky that I encountered this construct before - it makes very sure that SCRIPT_DIR is the directory where the current script resides, and cd's into it.

You know what "$0" stands for, yes?
 
Old 08-19-2021, 12:18 PM   #7
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,342

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Code:
#!/bin/bash
set -e
Sets a break if anything below throws an error
Code:
SCRIPT_NAME="$0"
SCRIPT_DIR="$(cd "$(dirname "$SCRIPT_NAME")" && pwd)"
verifies that the subdirectory exists then changes into it and sets SCRIPT_DIR to be the pwd

Code:
echo "[setup] Installing dependencies...."
apt-get install openjdk-8-jre libgtk2.0-0 libwebkitgtk-1.0-0 lame libc6 libglib2.0-0
installs dependencies

Code:
FONTS_DIR="$SCRIPT_DIR/fonts"
if [ -d "$FONTS_DIR" ]; then
    echo "[setup] Installing custom fonts...."
    mkdir -p /usr/share/fonts/truetype/xmind
    rsync -av "$FONTS_DIR/" /usr/share/fonts/truetype/xmind/
    fc-cache -f
else
    echo "[setup] WARNING: Custom fonts for XMind are not found."
fi
verifies the fonts subdirectory exists then installs the custom fonts to the path given, or warns the fonts do not exist

Code:
echo "[setup] Done."
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Script to trigger second script--second script gets arguments of first script keif Linux - General 10 08-12-2021 01:25 AM
How can I edit files with a script? - Writing a "after install" script for my laptop questionsBot Linux - Software 4 07-05-2020 05:52 AM
Need to install a Script-fu or Python script in Ubuntu Linux LinuxLiker Ubuntu 9 07-22-2018 09:01 AM
install script to install scratchbox in debian culin Debian 1 09-26-2007 12:40 AM
building a bash script from an install script paranoid times Programming 6 07-29-2006 03:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration