Fb To Ubuntu Howto

Easy way to install FreeBASIC-v0.18.2b-linux + needed libraries for your Ubuntu system.

1) Copy code below in some text editor, save it as installFB (no extension for file) in your home/user/ directory.

2) Open terminal or console. CD to same directory where you saved installFB if other than suggested.

3) type: sudo chmod +rx installFB to make it runnable script.

4) type: ./installFB to run install script.


## FreeBASIC installer script for Ubuntu 7.04 and Ubuntu 7.10. Most likely will work with older Ubuntu versions too.
## Script made by E.K.Virtanen www.ascii-world.com 2007.
## Version 2.0 Date 17'th Oct. 2007. Public Domain

## Variables 
library=( gcc libc6-dev  libncurses5-dev libx11-dev libxext-dev libxpm-dev libxrandr-dev libxrender-dev ) 

## program itself 
echo "This script will install FreeBASIC-v0.18.2b-linux compiler and following libraries in your system:" 
echo ${library[@]:0} 

## ok, are you sure 
echo -n "Do you want to continue (y/n)"; 
keypress=$(head -c1) 

case $keypress in 
y) echo "Checking..." 

*) echo "Installation aborted." 
exit 0 

## let's check (and) install those libraries. 
echo "Checking and installing libraries..." 
sudo apt-get install ${library[@]=:0} 

## download fb .17 
echo "downloading FreeBASIC-v0.18.2b-linux" 
wget "$url" 

## unpack .tar 
echo "unpacking $filename" 
tar xvzf "$filename" 

## install FB 
cd "$folder" 
sudo ./install.sh -i 

echo "Have fun with your FreeBASIC." 

exit 0

Script is not beautifull, but it is my first shell script ever and it works. That is what matters. Feel free to edit it better.

See also: This howto topic at fb.net forums

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.