Mark Leck
Posts: 23
Joined: Sun Jul 01, 2012 4:38 pm

Configurator....

Wed Aug 08, 2012 11:24 pm

I've written a little program for the Pi, it's a GUI/Script based app that basically configures your config.txt file and makes the whole process of adding multiple edits a breeze....
I wrote this originally as an overclocking tool for my own personal use and then added to it, and added to it, and..... I'll keep adding too if people want me too, let me know what you think, good or bad, but constructive....

Here’s a screenshot of the main menu to give you some idea of it’s capabilities so far (and no it won't make your screen go wonky :) ):

Image

The script automatically installs any dependencies (Thanks to Sam Nazarko for helping me out on that one :cool: ) namely whiptail, which is a simply bash script GUI programme.

To try it:
Either from Terminal or SSH (NOTE: Internet connection is required)

Code: Select all

sudo -s
 wget http://www.juicypi.com/downloads/configurator -O /usr/bin/configurator
 chmod +x /usr/bin/configurator
Once installed to run it from Terminal or SSH
NOTE: first run takes a while as it needs to download & install whiptail after that it's instant - make sure internet is connected for first run!!
simply type:

Code: Select all

sudo configurator
...And away you go.

User avatar
hojnikb
Posts: 128
Joined: Mon Jun 04, 2012 3:59 pm
Location: @Home

Re: Configurator....

Thu Aug 09, 2012 9:22 am

Nice work. I will defenetly give it a try when i have the time to play with my Pi ;)
+°´°+,¸¸,+°´°~ Everyone should have a taste of UK Raspberry Pie =D ~°´°+,¸¸,+°´°+
Rasberry Pi, SoC @ 1225Mhz :o, 256MB Ram @ 550Mhz, 16GB SD-Card, Raspbian

Mark Leck
Posts: 23
Joined: Sun Jul 01, 2012 4:38 pm

Re: Configurator....

Thu Aug 09, 2012 4:40 pm

Thanks, I'm adding to it on a daily basis and updating as and when, I'm currently working on a benchmark utility that uploads the results to a pastebin....Its nearly finished too.
I will be introducing a testing branch soon so I will post details on how to access it as and when I'm ready.
Anyway let me know how you get on!

bud-pnq
Posts: 27
Joined: Sat Aug 04, 2012 3:09 am

Re: Configurator....

Thu Aug 09, 2012 8:16 pm

Neat :)

Mark Leck
Posts: 23
Joined: Sun Jul 01, 2012 4:38 pm

Re: Configurator....

Mon Aug 13, 2012 7:27 pm

Just finished a few updates:
1) Upto 15 config.txt edits now possible in custom configurator mode(previously only 5)
2) SD Card benchmarking added with upload results to pastebin feature (also reads the SD cards ID Number for reference purposes)
3) -top- command snapshot - take a look at system resources
4) CPU info -
5) Timestamp now added to config.txt for user reference purposes

Requires pastebinit & whiptail - which will be auto installed on first run if not already after update from relevant repo'

To get latest version

Code: Select all

sudo -s
wget http://www.juicypi.com/downloads/configurator_13_08_12 -O /usr/bin/configurator
chmod +x /usr/bin/configurator
To start:

Code: Select all

sudo configurator

Colday213
Posts: 13
Joined: Thu Jun 14, 2012 12:31 pm

Re: Configurator....

Tue Aug 21, 2012 1:24 pm

Cool.

Just installed this. Works well!

Thanks
Motto: Si prius non succedunt, verto is off tunc tergum iterum.

Mark Leck
Posts: 23
Joined: Sun Jul 01, 2012 4:38 pm

Re: Configurator....

Tue Oct 02, 2012 7:06 pm

Updated
Changelog:
1)Updated Raspbmc defaults settings for RC5
2)Added ability to restart XBMC after SD-Card benchmark (If using on Raspbmc system)
3)Added option to add codec license keys
4)Added a few more standard settings to Configurator

To get latest version 02/10/12=

Code: Select all

sudo -s
wget http://www.juicypi.com/downloads/configurator_02_10_12 -O /usr/bin/configurator
chmod +x /usr/bin/configurator
To start:

Code: Select all

sudo configurator

Mark Leck
Posts: 23
Joined: Sun Jul 01, 2012 4:38 pm

Re: Configurator....

Mon Oct 08, 2012 9:53 am

Major update!

Changelog:
1)Full 'on the fly' intergration with raspbmc-settings-addon whatever you choose in the 'Configurator' part of the program is now updated in the addon = No more addon crashes and no nagging config.txt mismatch error messages on boot up.

2)More multiple choice GUI input menus so less typing is needed, additional GUI input settings are automatically added in the correct format to the raspbmc settings addon.

3)Choice between Advanced & Normal Configurator program mode, Normal is fully automated with the option for further additional custom settings, advanced mode is more of a manual mode, but both modes intergrate with the addon.

4)Added SDTV settings options (as requested).

5)Console output is now cleared on every return visit/exit

6)Multi platform as usual so fully Raspbian compatable, both configurator program modes are tested and confirmed working with latest Raspbian build



To get latest version 08/10/12=

Code: Select all

sudo -s
wget http://www.juicypi.com/downloads/configurator_08_10_12 -O /usr/bin/configurator
chmod +x /usr/bin/configurator
To start:

Code: Select all

sudo configurator
I have testest this as best as I can, but with over 1000 lines of code it's getting quite a complex bit of software to test alone, and with more and more permutations with every build it may not be perfect, so PLEASE report any bugs found here and I'll sort ASAP!
Also don't be afraid to ask for requests or offer suggestions.....

Mark Leck
Posts: 23
Joined: Sun Jul 01, 2012 4:38 pm

Re: Configurator....

Fri Oct 19, 2012 5:45 pm

Updated

Changelog:
1)Now offers full GUI setup of the config.txt.
2)Various Raspbmc backup/restore features added
3)Dropbox feature now added upload/download direct to your Dropbox account via a GUI interface
4)Update feature now added

To get the latest release, follow the instructions in the first post of this thread!

paultnl
Posts: 103
Joined: Fri Oct 12, 2012 6:25 pm
Location: Cambridge

Re: Configurator....

Fri Oct 19, 2012 6:34 pm

Just tried it but get sysntax error when trying to run Configurator
I don't like Russian dolls, they are so full of themselves

Mark Leck
Posts: 23
Joined: Sun Jul 01, 2012 4:38 pm

Re: Configurator....

Fri Oct 19, 2012 9:42 pm

paultnl wrote:Just tried it but get sysntax error when trying to run Configurator
Its working fine here, just tried the install procedure myself and no errors.....
I've tested on latest Raspbian build & Raspbmc RC5 and both working as should.

Just in case try install again; copy and paste the code if poss:

Code: Select all

sudo -s
 wget http://www.juicypi.com/downloads/configurator -O /usr/bin/configurator
 chmod +x /usr/bin/configurator

Code: Select all

sudo configurator
Note: All lower case for configurator
Let me know....

paultnl
Posts: 103
Joined: Fri Oct 12, 2012 6:25 pm
Location: Cambridge

Re: Configurator....

Fri Oct 19, 2012 9:45 pm

[email protected]:/home/pi# configurator
/usr/bin/configurator: line 1: --2012-10-19: command not found
/usr/bin/configurator: line 2: syntax error near unexpected token `('
/usr/bin/configurator: line 2: `Resolving www.juicypi.com (www.juicypi.com)... 82.197.130.142'
[email protected]:/home/pi#

This is what I get when trying to run
I don't like Russian dolls, they are so full of themselves

Mark Leck
Posts: 23
Joined: Sun Jul 01, 2012 4:38 pm

Re: Configurator....

Fri Oct 19, 2012 10:27 pm

paultnl wrote:[email protected]:/home/pi# configurator
/usr/bin/configurator: line 1: --2012-10-19: command not found
/usr/bin/configurator: line 2: syntax error near unexpected token `('
/usr/bin/configurator: line 2: `Resolving http://www.juicypi.com (http://www.juicypi.com)... 82.197.130.142'
[email protected]:/home/pi#

This is what I get when trying to run
Not sure what is up, but I know that there is no 2012-10-19 anywhere in my code...

Heres the source:
http://www.juicypi.com/downloads/configurator

Mark Leck
Posts: 23
Joined: Sun Jul 01, 2012 4:38 pm

Re: Configurator....

Fri Oct 19, 2012 10:52 pm

Looks like your download is getting entries added somehow?

Code: Select all

sudo nano /usr/bin/configurator
Delete anything that appears before:

Code: Select all

#!/bin/sh
Ctrl+x then Y then ENTER
Try again....

EDIT: the -O switch in the code to download is upper case, I think you maybe adding the download information to configurator as if it was a .log file by using the -o (lower case) switch!

Mark Leck
Posts: 23
Joined: Sun Jul 01, 2012 4:38 pm

Re: Configurator....

Sat Oct 20, 2012 4:12 pm

To avoid further confusion between the -o & -O wget switches, I suggest the following to download and install:

Code: Select all

sudo -s 
cd /usr/bin/
wget http://www.juicypi.com/downloads/configurator
chmod +x configurator
configurator
Needs to be ran as root:

Code: Select all

sudo configurator

User avatar
richev
Posts: 2
Joined: Sun Feb 10, 2013 9:57 am
Location: London, UK
Contact: Website

Re: Configurator....

Tue Feb 19, 2013 7:18 pm

Thanks for this useful utility, however I think it broke my Raspbmc install. After installing Raspbmp (using the Windows installer), I then installed configurator and used it to add my mpeg2 key.

Upon rebooting the Pi I was faced with a black screen, and the green LED on the Pi flashing in sets of three flashes. Apparently this means "loader.bin not found".

User avatar
richev
Posts: 2
Joined: Sun Feb 10, 2013 9:57 am
Location: London, UK
Contact: Website

Re: Configurator....

Tue Feb 19, 2013 7:43 pm

Further to my last post - and speaking very much as a Raspberry Pi newbie - it looks like Configurator might not work with the 1.0 final release of Raspbmc. The config.txt file it writes is missing some settings.

In my scenario, the config.txt written out by Configurator was:

arm_freq=800
force_turbo=1
decode_MPG2=0xabcd1234
disable_overscan=1
gpu_mem_256=128
gpu_mem_512=256

(I had only used it to set my mpeg2 key)

However, on a fresh install of Raspbmc, my config.txt looks like this:

arm_freq=800
force_turbo=1
gpu_mem=100
disable_overscan=1
start_file=start_x.elf
fixup_file=fixup_x.dat

Could it be that Configurator failed to write out the start_file and fixup_file settings?

Mark Leck
Posts: 23
Joined: Sun Jul 01, 2012 4:38 pm

Re: Configurator....

Wed Feb 27, 2013 11:18 pm

Hi sorry about they delay in replying :oops:

Yup it looks that way, I have been doing various other projects lately and this one has sadly fallen behind and seeing that the config settings seem to change on a regular basis with the RPI it can be quite hard to keep up with it all....I will certainly look into your problem and push another commit to fix any issues that I find.

This project is now hosted at:
https://github.com/Mark-Leck/Configurator
Feel free to submit any patches if I don't get around to it sooner!

Thanks for the heads up anyway!!

Full install instructions are available at the above github link.

Mark Leck
Posts: 23
Joined: Sun Jul 01, 2012 4:38 pm

Re: Configurator....

Thu Feb 28, 2013 12:29 am

This was bugging me so I have just submitted a patch that 'should' solve your issues, I say 'should' as I have not had chance to test it out on my Pi yet.
Any problems then either post here or preferably file a bug report at the Configurator github and i'll pick up on there.

To get the latest build direct from the github, simply copy and paste this block of code into your terminal:

Code: Select all

sudu su
cd /usr/bin/
wget https://raw.github.com/Mark-Leck/Configurator/master/configurator
chmod +x configurator
configurator
echo "Done!"

User avatar
tonyhughes
Posts: 951
Joined: Wed Dec 26, 2012 3:46 am

Re: Configurator....

Thu Feb 28, 2013 1:10 am

Cool stuff Mark,

If you want an easy way to update your code and maintain a development version, and a release version, I made a little "IDE" for Bash scripting (using Bash and Whiptail themselves), just to automate all the tasks involved, including uploading development version to another Pi for testing, and uploading to the webserver, and automatically applying a date based version number etc.

It would be trivial for you to adapt to your work if you want.

PM me if you want further details.

Image
Bigger: http://www.tall.co.nz/pics/ide.jpg

Mark Leck
Posts: 23
Joined: Sun Jul 01, 2012 4:38 pm

Re: Configurator....

Thu Feb 28, 2013 9:53 am

^^ Please :D anything that makes my life easier is a must, looks a cracking project, I'll PM you now!

Mark Leck
Posts: 23
Joined: Sun Jul 01, 2012 4:38 pm

Re: Configurator....

Thu Feb 28, 2013 11:24 am

Install instructions now finally work :D
Please copy and paste the block of code below into a terminal:

Code: Select all

sudo su
cd /usr/bin/
wget --no-check-certificate https://raw.github.com/Mark-Leck/Configurator/master/configurator -O configurator
chmod +x configurator
configurator
echo "Done!"
(NOTE if typing the above code manually then please make sure the -O on the wget line is a capital O for Oscar):

Return to “General discussion”