freebasic.net Forum Index
FreeBASIC's Official Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log inLog in

FB 20.0b to ubuntu/debian install script.
Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    freebasic.net Forum Index -> Linux
View previous topic :: View next topic  
Author Message
E.K.Virtanen
Sr. Member
PostPosted: Apr 03, 2007 20:20    Post subject: FB 20.0b to ubuntu/debian install script. Reply with quote

Next script should work with Ubuntu 9.04, 9.10 and Debian 5.0.

Installs all necessary libraries and depedencies to use FreeBasic.

Save file ~./installFB.sh
Open terminal
Give executing rights to file by typing chmod +x installFB.sh (You need root priviliges)
Type ./installFB.sh

Quote:

#!/bin/bash

## FreeBASIC installer script for Debian 5.0 and Ubuntu 9.10. Most likely will work with older Ubuntu/Debian versions too.
## Script made by E.K.Virtanen www.basicprogramming.org 2009.
## Version 3.0 Date 15'th Dec. 2009. Public Domain

## Variables
library=( gcc libc6-dev libncurses5-dev libx11-dev libxext-dev libxpm-dev libxrandr-dev libxrender-dev )
url=http://downloads.sourceforge.net/fbc/FreeBASIC-v0.20.0b-linux-standalone.tar.gz?download
filename=FreeBASIC-v0.20.0b-linux-standalone.tar.gz
folder=FreeBASIC

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

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

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

*) echo "Installation aborted."
exit 0
;;
esac

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

## download fb .17
echo "FreeBASIC-v0.20.0b-linux-standalone.tar.gz"
wget "$url"

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

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

echo "Have fun with your FreeBASIC."
echo

exit 0


Last edited by E.K.Virtanen on Dec 15, 2009 8:59; edited 5 times in total
 
Back to top
View user's profile Send e-mail Visit poster's website MSN Messenger
1000101
Hero
PostPosted: Apr 04, 2007 14:15    Post subject: Reply with quote

This isn't a script. This is a source.
</nitpick>
 
Back to top
View user's profile
E.K.Virtanen
Sr. Member
PostPosted: Apr 04, 2007 15:31    Post subject: Reply with quote

I am terrible sorry about my bad language. Ill go and sit on top of three for next 6 weeks with out food, cigarette and beer.
 
Back to top
View user's profile Send e-mail Visit poster's website MSN Messenger
{Nathan}
Sr. Member
PostPosted: Apr 04, 2007 16:41    Post subject: Reply with quote

Why not put a compiled file on file-pasta so people can use that to install?
 
Back to top
View user's profile Visit poster's website AIM Address Yahoo Messenger MSN Messenger
E.K.Virtanen
Sr. Member
PostPosted: Apr 04, 2007 17:08    Post subject: Reply with quote

Yah, maybe it might be handy for someone. At least easier than goin thru tutorial.
Maybe ill make it bit nicer code later this evening. But then, would be nice to have sources for Kubuntu, Ebuntu and Xubuntu too? At least opening websites for default browser wont work in any other distro except gnome.
 
Back to top
View user's profile Send e-mail Visit poster's website MSN Messenger
1000101
Hero
PostPosted: Apr 04, 2007 20:03    Post subject: Reply with quote

Why not just provide a patched install script for the specific lunix system?
 
Back to top
View user's profile
E.K.Virtanen
Sr. Member
PostPosted: Apr 04, 2007 21:03    Post subject: Reply with quote

Check the first post. And youre right, FB source for that was silly but it was not even ment to be taken seriously ;)
 
Back to top
View user's profile Send e-mail Visit poster's website MSN Messenger
1000101
Hero
PostPosted: Apr 05, 2007 3:10    Post subject: Reply with quote

I'm all for a good joke, but the average forum user here doesn't seem to be smart enough to figure out the basics for themselves (ie: RTM, stfw). It's best to avoid anything non-serious and treat the moronic masses like the moronic masses as they are - moronic masses.

To whom everelse is reading this thread; yes, I'm talking about you, moron.
 
Back to top
View user's profile
cha0s
Site Admin
PostPosted: Apr 05, 2007 7:14    Post subject: Reply with quote

/me hands eric some Midol.

oh by the way the script is cool, doing all of it in one step is always easier, thank you.
 
Back to top
View user's profile Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
E.K.Virtanen
Sr. Member
PostPosted: Apr 05, 2007 7:39    Post subject: Reply with quote

Thanks Chaos. Im happy if there is anyone who gets help with that one.
Would there be chance to create page in wiki for these things? I mean they get lost in forum and fact is that phpBB search sucks.

Im positive that users of different distros would keep those pages updated.
 
Back to top
View user's profile Send e-mail Visit poster's website MSN Messenger
{Nathan}
Sr. Member
PostPosted: Apr 05, 2007 17:55    Post subject: Reply with quote

Sticky?
 
Back to top
View user's profile Visit poster's website AIM Address Yahoo Messenger MSN Messenger
E.K.Virtanen
Sr. Member
PostPosted: Apr 05, 2007 21:51    Post subject: Reply with quote

But if we would try to collect more these scripts for different distros? Then there would be sticky's more than enough.
Well, im goin offline for few weeks after tomorrow so it's not my problem anyway :D
 
Back to top
View user's profile Send e-mail Visit poster's website MSN Messenger
{Nathan}
Sr. Member
PostPosted: Apr 06, 2007 0:46    Post subject: Reply with quote

Basically all FreeBASIC programmers I know of are *buntu users, except for myself, but I still use debian, so the script would still work.

Anyone here use anything non-debian based?
 
Back to top
View user's profile Visit poster's website AIM Address Yahoo Messenger MSN Messenger
cha0s
Site Admin
PostPosted: Apr 06, 2007 3:05    Post subject: Reply with quote

tbh, I wanted to sticky your last walkthrough, of putting FB onto ubuntu, step-by-step... i assume someone has tested this? If it's tested from a system (preferably a fresh OS install, live cd?) then I could sticky it as like "linux setup scripts" which i'll just keep locked until we get a new script for another flavor of linux, then i could just add it to the post and lock it back up again, making sure it stays easy to read. of course you (and anyone who contributes any other script) will get credits for the scripts ;)

also, if you'd like to put it on the wiki, looks like the logical place to link from is http://www.freebasic.net/wiki/wikka.php?wakka=CompilerInstalling

we could create separate wiki pages for each script, and add links there like "for debian, use [[this script|linktothescript]] (or however the wiki syntax is... lol)
 
Back to top
View user's profile Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
DrV
Site Admin
PostPosted: Apr 06, 2007 5:07    Post subject: Reply with quote

I use FB on a non-Debian-based Linux (Arch), but I don't really need an automated installer. ;)
 
Back to top
View user's profile Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    freebasic.net Forum Index -> Linux All times are GMT
Goto page 1, 2, 3  Next
Page 1 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



sf.net phatcode