Code: Select all
#!/bin/sh
# install_freebasic.sh
# installing FreeBASIC on Mint and other Ubuntu and derivates
# install wget if not already done
sudo apt-get install wget
# test if 64 bit linux
bits=$(uname -m)
# download right freebasic version, unpack and install
if [ "$bits" = "x86_64" ]
then
echo "64 bit linux"
wget https://www.freebasic-portal.de/dlfiles/674/FreeBASIC-1.05.0-linux-x86_64.tar.gz
tar -xvzf FreeBASIC-1.05.0-linux-x86_64.tar.gz
cd FreeBASIC-1.05.0-linux-x86_64
sudo ./install.sh -i
cd ..
else
echo "32 bit linux"
wget https://www.freebasic-portal.de/dlfiles/673/FreeBASIC-1.05.0-linux-x86.tar.gz
tar -xvzf FreeBASIC-1.05.0-linux-x86.tar.gz
cd FreeBASIC-1.05.0-linux-x86
sudo ./install.sh -i
cd ..
fi
# update system
sudo apt-get update
# install dependencies
sudo apt-get install gcc libncurses5-dev libffi-dev libgl1-mesa-dev
sudo apt-get install libx11-dev libxext-dev libxrender-dev libxrandr-dev libxpm-dev
# install geany and kchmviewer for use with geany
sudo apt-get install geany kchmviewer
# prepare geany for kontextsensitive help
# Go to Edit, Preferences, Tools, Context Action. Set it to "kchmviewer --sindex %s /<chm-path>"
# Go to Edit, Preferences, Keybindings, edit section, "Context Action", press "Change button", press F1 key.
# todo: install with other distros and package systems