Get Bacon!
What You Need First!
The first thing you need is a computer and a free copy of Linux. Even on a computer as small as a netbook, Linux is light years faster than Windows and is totally FREE! It can run from a USB/Thumb Drive, install it along next to Windows or even replace Windows if you want. I run a copy of Lubuntu on my little netbook that I take everywhere with me.
You can use just about any Linux distro you want to program BaCon in but here is what I would suggest for someone that is new to Linux:
Lubuntu: Warning! LXDE is moving to QT so it will no longer be available in a GTK version!
Lubuntu is a small and fast OS that will run great on computers that are 5 years old or less. You can get a free copy of it here! I would suggest the 32 bit version for now.
Linux Mint: Linux Mint is a fun and very user friendly OS. You can get a free copy of it here! I would suggest the LMDE version with the Mate desktop and then install the LXDE desktop on top of it from the package manager. Go for the 32 bit version too.
Puppy Linux: Puppy Linux is a great little OS that is designed to run on old hardware and/or from a USB/Thumb Drive. You can get a free copy of it from here! I would suggest getting the Precise Puppy version.
What You Need Next!
The next thing you will need is to download and install BaCon. This will work for 32 and 64 bit versions of Bacon but there is a 64 bit version for Debian that is pre compiled , go here to read more about it. We are going to use the terminal or command line for this but don't worry, I will take you through it step by step and give examples for you to look at. This way you will be able to download and install all the newest versions as they come out!
I'm going to go at this as if you are using a copy of Lubuntu but Linux Mint should be almost the same. If you are using Puppy Linux then I would suggest that you use the in house repositories and install BaCon that way. The file you want will be called "devx.sfs".
The next thing you will need is to download and install BaCon. This will work for 32 and 64 bit versions of Bacon but there is a 64 bit version for Debian that is pre compiled , go here to read more about it. We are going to use the terminal or command line for this but don't worry, I will take you through it step by step and give examples for you to look at. This way you will be able to download and install all the newest versions as they come out!
I'm going to go at this as if you are using a copy of Lubuntu but Linux Mint should be almost the same. If you are using Puppy Linux then I would suggest that you use the in house repositories and install BaCon that way. The file you want will be called "devx.sfs".
Lubuntu Only
Now this first step is for Lubuntu users only, Linux Mint users can skip to the next part.
The first thing you will want to do is open LXterm, the terminal app for LXDE which Lubuntu uses as its desktop software. You are going to use the "sudo" command and the "apt-get" command for this first part. Sudo is to give you "root" access to the computer, think of it as the administrator password in Windows. Apt-get is the command to download a package from the archives that are hosted by Ubuntu, the base distribution that Lubuntu is based on.
Now this first step is for Lubuntu users only, Linux Mint users can skip to the next part.
The first thing you will want to do is open LXterm, the terminal app for LXDE which Lubuntu uses as its desktop software. You are going to use the "sudo" command and the "apt-get" command for this first part. Sudo is to give you "root" access to the computer, think of it as the administrator password in Windows. Apt-get is the command to download a package from the archives that are hosted by Ubuntu, the base distribution that Lubuntu is based on.
In the terminal, I would like you to type the following and then hit enter:
sudo apt-get install libgtksourceview2.0-0
Next it will ask for your user password so go a head and type that in and hit enter.
sudo apt-get install libgtksourceview2.0-0
Next it will ask for your user password so go a head and type that in and hit enter.
Part 1
Now this part is for all users. Now we are going to use the "sudo" command and the "wget" command. the sudo command is explained up above but the wget command is for downloading something from the internet but using a terminal and not a web browser to do it.
This will put you in admin/root mode.
In the terminal, I would like you to type in the following and then hit enter:
sudo -s
It will ask for your user password so go a head and put that in and hit enter. Now lets get those files we need!
wget http://www.basic-converter.org/stable/{bacon.bash,bacon.bac,bacongui-gtk3.bac}
Then get this one:
wget http://www.basic-converter.org/hug.bac
Now we get to use another new command called "chmod". You see, most things downloaded from the internet do not have permission to execute in Linux so we need to make the bacon.bash file executable so we can compile the other files we downloaded.
In the terminal I would like you to type the following and hit enter:
chmod a+x bacon.bash
Now this part is for all users. Now we are going to use the "sudo" command and the "wget" command. the sudo command is explained up above but the wget command is for downloading something from the internet but using a terminal and not a web browser to do it.
This will put you in admin/root mode.
In the terminal, I would like you to type in the following and then hit enter:
sudo -s
It will ask for your user password so go a head and put that in and hit enter. Now lets get those files we need!
wget http://www.basic-converter.org/stable/{bacon.bash,bacon.bac,bacongui-gtk3.bac}
Then get this one:
wget http://www.basic-converter.org/hug.bac
Now we get to use another new command called "chmod". You see, most things downloaded from the internet do not have permission to execute in Linux so we need to make the bacon.bash file executable so we can compile the other files we downloaded.
In the terminal I would like you to type the following and hit enter:
chmod a+x bacon.bash
Part 2
In this part we are going to build the BaCon programming envirement. To do this, we will use bacon.bash to build bacon.bac and bacongui.bac. So we need to put a dot and a forward slash in front of bacon.bash, think of this as puting the keys in your car and turning the engine on. This is well enough but we have to give bacon.bash something to do so we are going to put a space and bacon.bac after the ./bacon.bash statement.
In the terminal, I would like you to type in the following and then hit enter:
./bacon.bash bacon.bac
Now this is going to take a while to pars and compile so go get a cup of coffee and then do the bacongui.bac file when it is done. It will look like this:
./bacon.bash bacongui-gtk3.bac
In this part we are going to build the BaCon programming envirement. To do this, we will use bacon.bash to build bacon.bac and bacongui.bac. So we need to put a dot and a forward slash in front of bacon.bash, think of this as puting the keys in your car and turning the engine on. This is well enough but we have to give bacon.bash something to do so we are going to put a space and bacon.bac after the ./bacon.bash statement.
In the terminal, I would like you to type in the following and then hit enter:
./bacon.bash bacon.bac
Now this is going to take a while to pars and compile so go get a cup of coffee and then do the bacongui.bac file when it is done. It will look like this:
./bacon.bash bacongui-gtk3.bac
Part 3
Still with me so far? Now we need to move all these files to their new home and we are done! We are now going to use the "mv" command to move all of the files where they need to go and the "mkdir" command to make one folder for one of the files to go into. We will use the mkdir command first and then start moving files around.
In the terminal, I would like you to type in the following and then hit enter:
mkdir -p /usr/share/BaCon
Now the home strech, lets use the mv command to move files around. We are going to type mv, space, the file we want to move, another space and then where we want the file to go. So lets do it!
In the terminal, I would like you to type in the following and then hit enter:
mv bacon /usr/local/bin
Now move bacongui-gtk3 and bacon.bash to the same folder. After that, move hug.bac to the folder we made using the mkdir command. It should look like this:
mv hug.bac /usr/share/BaCon
Congradulations! You did it and are now ready to start programming! When ever you want to program, open a terminal and type "bacongui-gtk3" and the graphical IDE will start.
Still with me so far? Now we need to move all these files to their new home and we are done! We are now going to use the "mv" command to move all of the files where they need to go and the "mkdir" command to make one folder for one of the files to go into. We will use the mkdir command first and then start moving files around.
In the terminal, I would like you to type in the following and then hit enter:
mkdir -p /usr/share/BaCon
Now the home strech, lets use the mv command to move files around. We are going to type mv, space, the file we want to move, another space and then where we want the file to go. So lets do it!
In the terminal, I would like you to type in the following and then hit enter:
mv bacon /usr/local/bin
Now move bacongui-gtk3 and bacon.bash to the same folder. After that, move hug.bac to the folder we made using the mkdir command. It should look like this:
mv hug.bac /usr/share/BaCon
Congradulations! You did it and are now ready to start programming! When ever you want to program, open a terminal and type "bacongui-gtk3" and the graphical IDE will start.
Extra:
Extra Points!
You don't have to do this but it would be nice to clean up those left over files we downloaded. So move bacon.bac and bacongui-gtk3.bac to /usr/share/BaCon.
Extra Points!
If you are like me, you will like BaCon listed in your menu and not have to open a terminal to start the IDE. To make a menu entry, you will need two files. You will need to download this file and this icon. Unzip and move the bacon.desktop file to /user/share/applications and the icon to /usr/share/pixmaps. Now go look at your menu and find the new Programming category and click on Bacon.
If you are like me, you will like BaCon listed in your menu and not have to open a terminal to start the IDE. To make a menu entry, you will need two files. You will need to download this file and this icon. Unzip and move the bacon.desktop file to /user/share/applications and the icon to /usr/share/pixmaps. Now go look at your menu and find the new Programming category and click on Bacon.