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

Baked Raspberry Pi Mod for Raspbian

Mon Jan 28, 2013 3:20 am

I created a script for people who want easy access to set up their Raspberry Pi with software and functionality that is either common, hard to do, or important to do (or a combination of those!).

It is free software (GNU).

Baked Raspberry Pi Mod is an installer program for Raspbian running on the Raspberry Pi, to easily install and configure useful software, and tailor the operating system to be useful to novice/intermediate users.

Where possible, installs are via apt-get, in order to make installation, and updates easy, safe, and convenient. I am also working on a more generic "Baked Linux" version that will support the likes of Ubuntu/Debian/Fedora/Arch/CentOS etc. Watch this space.

Changelog:

v13.01.28
- First public release.

What Does It Do?

Baked Raspberry Pi Mod takes a fresh install of Raspbian on a Raspberry Pi and does the following things:

Installs the Tiger* intrusion detection system.
Installs RKHunter* rootkit checker.
Runs 'strippedpi' - removing around 300 packages including the GUI, not needed for a pure server.
Menu option to jump into raspi-config: the Raspian configuration tool for partition resizing etc.
Installs Hexxehs rpi-update tool.
Quick menu option to run apt-get update & apt-get upgrade.
Quick menu option to run apt-get autoremove & apt-get clean to free LOADS of space.
Add a new system user with sudo rights.
Delete a system user (e.g. 'pi')
Enable IPv6
Install, configure and run Tight VNC Server.
Install Webmin.
Install htop, iptraf, nmap, & logwatch server tools.
Install UFW firewall (interface to iptables), open & close ports, enable & disable the firewall.
Install & configure Postfix*, Apache2*, Lighttpd*, Nginx* & Squirrelmail*. (Note currently no IMAP server install option).
Install MySQL*.
Install ImageMagick tools & dependencies for image manipulation.

It will in the future, support "Easy Mode", where you can simply choose a function - e.g. "mailserver", and it will install and configure a complete mailserver setup, asking the user for a bare minimum of information.

I would love to hear any suggestions for software/functions/routines that could be added. If you have already written a script, any would like it added in, I am happy to do that, as long as you release it under GNU or similar for the good of the community. I will provide attribution/linkback on the site, and in the script & menu.

Download: Visit http://www.geek101.co.nz/bakedraspberrypimod
Support: http://www.geek101.co.nz/forums/baked-r ... port-forum

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

Re: Baked Raspberry Pi Mod for Raspbian

Mon Jan 28, 2013 4:41 am

Of course each option given above is a menu option within the program. No changes will be made without the user choosing first!

Digital Larry
Posts: 75
Joined: Tue Jul 24, 2012 9:10 pm
Location: Silicon Valley, CA

Re: Baked Raspberry Pi Mod for Raspbian

Mon Jan 28, 2013 5:21 am

Sure would enjoy a script to help configure a USB WI-Fi dongle for WPA. I've done it a few times but all by hand.
Pi user since 2012. Python, Pygame
Support, remot3.it, Inc.

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

Re: Baked Raspberry Pi Mod for Raspbian

Mon Jan 28, 2013 7:30 am

Nice idea. I currently do mine throught the GUI desktop - and thats the only thing I use the gui for.

I'll have to check out doing it directly with wpa supplicant, and see how portable the procedure is across different WiFi dongles.

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

Re: Baked Raspberry Pi Mod for Raspbian

Mon Jan 28, 2013 10:51 am

New release...

Changelog:

v13.01.29 Alpha
- Added MySQL database creation wizard - add databases with user and password from Baked Raspberry Pi Mod.
- Added Drupal 7 CMS (7.19) easy install function, clean URLs working fine, and no installation warnings on completion. - this Drupal install works with Apache2 only for now.
- Very minor fixes.

Get it: http://www.geek101.co.nz/bakedraspberrypimod

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

Re: Baked Raspberry Pi Mod for Raspbian

Sat Feb 02, 2013 3:05 am

I have a few more modules ready to go in the next release, and I am in the middle of creating a more user friendly grouping of similar menu items (i.e. an "Update your Pi" menu, an "Install servers" menu, etc).

I see there have been several dozen downloads, so feel free to say hi, and suggest features and improvements, or report bugs/problems.

There is a built in upgrade function to let a user upgrade to newer versions, so once installed, it's very easy to keep up with new versions - at launch it will simply ask if you want to upgrade to a newer version, and if you say yes, it does it all automatically.

Cheers,
Tony

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

Re: Baked Raspberry Pi Mod for Raspbian

Mon Feb 04, 2013 2:36 am

New release, that includes RazorCMS flat file CMS system (no database needed).

Still a few more modules almost ready to add in, but they're still being tested.

Changelog:

v13.02.04 Alpha
- Added RazorCMS v2.1 install module, and post-install module. Clean install, no warnings, works with Apache2, Nginx and Lighttpd (and others).
- Very minor fixes.

Get it: http://www.geek101.co.nz/bakedraspberrypimod
or
Existing users: Run "sudo bakedraspberrypimod" and you will be offered the update OTA.

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

Re: Baked Raspberry Pi Mod for Raspbian

Tue Feb 05, 2013 3:05 am

Currently working on a Wordpress CMS installer...

Also looking to revisit my Dovecot and Courier IMAP/POP server modules that havent seen the light of day yet.

I've had a few PMs in the last few hours - dont be afraid to request features. :)

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

Re: Baked Raspberry Pi Mod for Raspbian

Sat Feb 09, 2013 10:21 am

Wordpress module is complete and working, with a completely clean install of the latest version of Wordpress.

It will be pushed out in the next update, which could be tonight or tomorrow :)

As always, if you install now, when updates come they will be offered as an OTA (over the air) upgrade when you run the software again, and the update takes only a few dozen kilobytes, and less than 5 seconds to complete, with no manual steps (just hit the go button, and it all happens automagically).

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

Re: Baked Raspberry Pi Mod for Raspbian

Mon Feb 11, 2013 12:13 am

As promised, the latest version is out now.

Of course all the modules below are optional. You just run what you want from a menu.

Changelog:

v13.02.11 Alpha
- REMINDER, THIS IS ALPHA SOFTWARE AND MAY CONTAIN BUGS AND CODE NOT FULLY TESTED
- Added Wordpress CMS (latest version) install module. All clean. Install Apache/Nginx or Lighttpd & create DB first with the respective modules.
- Added dpkg install log edit function to MANUALLY fix "/usr/bin/dpkg returned an error code (1)" message.
- Added offbutton.py script installer to supply software for a hardware 'shutdown button' across GPIO17.
- Added Transmission Bittorrent daemon install module, runs web-gui on port 9091 - turn your Pi into your torrent downloader, accessible from LAN or internet.
- Added seed Raspbian torrent option. - Help the Raspbian torrent stay healthy. Installs Transmission, downloads Raspbian Wheezy, and seeds it. Web-gui at :9091.
- Added "New Pi Baker" function. CAREFUL - THIS MODULE STRIPS A LOT OF STUFF OUT AND LEAVES NO DESKTOP. Only run on brand new Pi. Functionality:
Expands root filesystem then reboots automatically and waits for login.
Login again, and it runs Hexxehs RPI updater, updates the firmware, and reboots automatically, and waits for login.
Login again, and it does the following:
Removes nearly 300 packages including GUI packages and most development tools (leaves the Python stuff in). Removes around 1GB of stuff.
Activates IPv6 networking.
Installs Webmin server management software on port 10000 (use your system username e.g. pi/raspberry).
Installs UFW firewall and opens ports 21, 22, 80, 110, 143, 9091, 10000. DOES NOT ENABLE UFW - type 'sudo ufw enable' to enable it.
Installs Nmap network mapping tool (You might not be allowed this tool in your workplace).
Installs iptraf traffic monitor tool.
Installs htop (like 'top' tool, but on drugs).
Installs Apache2 HTTP server with PHP support, and sets appropriate permissions and groups. Enables mod_rewrite.
Installs Image Magick tools. (Because I love 'convert').
Updates apt-get package lists.
Upgrades all installed apt-get packages.
Removes any orphaned unneeded apt-get packages.
Removes cached apt-get packages.
Reboots once more, and thats it.
- Added proftpd install module.
- Added pureftpd install module.
- Minor code cleanup.
- Minor bugfixes.
- Some functions download external scripts called 'resize', 'hexxeh', and 'newpibaker' to the users home directory. These are safe to delete, and this will be tidied up in the next release.

Notes:
- Next release should mainly be a tidy up of code, removing the clutter in the home directory from the New Pi Baker function, and providing an easier to navigate categorised main menu, rather than a single list of modules.
- This is alpha software. There may be bugs and some code is not fully tested. I want to move to beta then release versions quite soon. I NEED TESTERS AND I NEED FEEDBACK.
- Dozens and dozens of you are using this software, and I would dearly love your feedback to help me improve it. Tell me you liked it and why, or tell me you hated it, and why, or tell me you didn't use it, and why, tell me you downloaded it just to peek at my code (it's okay!), just tell me anything!

Get it here: http://www.geek101.co.nz/bakedraspberrypimod
or
Existing users: Run 'sudo bakedraspberrypimod' from any directory, and you will be offered the update OTA. It's quick (less than 5 seconds) and doesn't need any manual steps.

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

Re: Baked Raspberry Pi Mod for Raspbian

Mon Feb 11, 2013 1:05 am

Here is a screenshot of the main screen:

As of v13.02.11 it is just a scrolling list of modules, but there have been a few PMs asking for a demo without installing.

Once you confirm you want to go ahead, the terminal window will show the steps as they happen and/or you may be asked for further input.

Image
Bigger image: http://www.geek101.co.nz/brpi/screenshot1.jpg

Image
Bigger image: http://www.geek101.co.nz/brpi/screenshot2.jpg

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

Wed Feb 13, 2013 1:38 am

Changelog:

v13.02.13
- Updated seed_raspbian to latest version (Raspbian Wheezy 2013-02-09).
- Added phpsysinfo install module. No documentation yet. Works. See http://www.tall.co.nz/phpsysinfo/ for example.
- Added php5-gd php-db php5-mysql to newpibaker and Apache2 install modules to fix reported dependency issues.
- Tested with Raspbian Wheezy 2013-02-09.
- Backwards compatibility before latest Raspbian version is assumed, but not offered or supported.
- Minor fixes in script.

Notes: Menu system still being redesigned. Still a big scrolling list for now.

Get it here: http://www.geek101.co.nz/bakedraspberrypimod
or
Existing users: Run 'sudo bakedraspberrypimod' from any directory, and you will be offered the update OTA. It's quick (less than 5 seconds) and doesn't need any manual steps.[/quote]

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

Re: Baked Raspberry Pi Mod for Raspbian

Thu Feb 14, 2013 1:24 am

So stoked to have reached my first 100 downloads, seeing as it's still "Alpha" status.

Heres a running download total since it was released: Image
(This will update in near-real time).

Thankyou to everyone who has downloaded it and used it so far.

Remember, to get the latest version, you only need to run the software again:

Code: Select all

sudo bakedraspberrypimod
from any location, and you will be offered an upgrade, and if you accept, it will do it all for you.

poing
Posts: 1132
Joined: Thu Mar 08, 2012 3:32 pm

Re: Baked Raspberry Pi Mod for Raspbian

Thu Feb 14, 2013 11:09 am

I tried a few things so a few comments.
- When I initially started the software in a terminal window I got a part of the text but it didn't respond. After I made the terminal larger I had more success.
- installing lighthtpd and then MySQL doesn't work because MySQL is searching for Apache, so I'll try again with Apache later.
- can you add installing MySQL for Python?
- can you add a VPN setup? It would be cool to have an easy way of linking two networks together over the Internet using two Pies. Or make it possible for Pies on the road to 'phone home'.

Thanks, looks good.

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

Re: Baked Raspberry Pi Mod for Raspbian

Thu Feb 14, 2013 7:46 pm

poing wrote:I tried a few things so a few comments.
- When I initially started the software in a terminal window I got a part of the text but it didn't respond. After I made the terminal larger I had more success.
Baked Raspberry Pi Mod expects a terminal window of 80x40 characters or larger. This is undocumented at present, but I will add it to the download page.
poing wrote:- installing lighthtpd and then MySQL doesn't work because MySQL is searching for Apache, so I'll try again with Apache later.
Seems weird. I'll test and see what I can do to fix.
poing wrote:- can you add installing MySQL for Python?
Done. This will be pushed out with the next release.
poing wrote:- can you add a VPN setup? It would be cool to have an easy way of linking two networks together over the Internet using two Pies. Or make it possible for Pies on the road to 'phone home'.
Fantastic idea. I will work on this.

I appreciate your feedback :)

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

Re: Baked Raspberry Pi Mod for Raspbian

Thu Feb 14, 2013 11:08 pm

New release, centered around a redesigned menu system, that is more newbie-friendly.

Changelog:

v13.02.15 Alpha

- New menu system implemented, with categories. Much tidier!!
- Added MySQL/python package 'python-mysqldb' to MySQL install module.
- Added function to add new user without sudo rights.
- Minor fix in Drupal module to avoid unneeded error message in console.

Get it here: http://www.geek101.co.nz/bakedraspberrypimod
or
Existing users: Run 'sudo bakedraspberrypimod' from any directory, and you will be offered the update OTA. It's quick (less than 5 seconds) and doesn't need any manual steps.

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

Re: Baked Raspberry Pi Mod for Raspbian

Fri Feb 15, 2013 2:46 am

Just had another mini-marathon, and sometime over the weekend, the following changes will be released:

Monkey HTTP server. If you want fast and lightweight, this HTTP server is beating Lighttpd in testing.
Several other minor new modules.
Several improvements on existing modules including Nginx, Lighttpd, and MySQL.

If you are feeling brave and would like to install the development version ahead of the release, it's available now, visit http://www.geek101.co.nz/bakedraspberrypimod for details.

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

Re: Baked Raspberry Pi Mod for Raspbian

Fri Feb 15, 2013 6:56 am

Also coming up in the next release (and available in development version now) are:

Latest Webmin version
xrdp RDP server (enabled on boot, connect via standard RDP client)
Joomla! CMS 2.5 LTS (experimental)
Joomla! CMS 3.0 (experimental)
Mediawiki (experimental)

The experimentals will appear in a few days, and should be stable by the middle of the week.

rnutter
Posts: 5
Joined: Fri Feb 01, 2013 3:05 pm

Re: Baked Raspberry Pi Mod for Raspbian

Sun Feb 17, 2013 1:18 pm

To Digital Larry:

Saw your post about the script for adding Wifi - please check the post on my website - http://www.ronnutter.com/5elr for a writeup on just this.

Ron

sigwo
Posts: 5
Joined: Mon Feb 18, 2013 6:26 pm
Location: Leavenworth, KS
Contact: Website

Re: Baked Raspberry Pi Mod for Raspbian

Mon Feb 18, 2013 6:46 pm

Just did a post for setting up SSH and VPN using pptpd. http://www.sigwo.com/sshvpn-setup-guide ... pberry-pi/

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

Re: Baked Raspberry Pi Mod for Raspbian

Wed Feb 20, 2013 8:43 am

A thread about running full blown software like Drupal / Apache2 / MySQL / Postfix / Dovecot / Squirrelmail etc on a Pi as a production server...

http://www.raspberrypi.org/phpBB3/viewt ... 36&t=34166

Also, if anyone has noticed the download count for BRPI bouncing up and down, it has been due to a couple of server migrations, and the latest drop was after I removed all my LAN IP's from the download log counter.

Can't wait for the next release, theres more than 2 dozen items in the changelog, and I am working hard to get everything to a decent standard for the release. Mostly new items, but some fixes and improvements for existing stuff too.

Rock on.

mrhobbeys
Posts: 80
Joined: Wed Jul 18, 2012 2:53 am

Re: Baked Raspberry Pi Mod for Raspbian

Fri Feb 22, 2013 11:50 pm

Is this on git?

Can I customize this to fit my exact needs?
www.betterpchealth.com
www.hektechnologies.com

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

Re: Baked Raspberry Pi Mod for Raspbian

Sat Feb 23, 2013 12:19 am

Not on git - never used git directly before.

You are welcome to take it and customise it.

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

Re: Baked Raspberry Pi Mod for Raspbian

Sun Feb 24, 2013 2:55 am

Downloads: Image
New version! v13.02.15 Beta

Wow. I'm stoked to have got this far.

Downloads so far have exceed 200, and I have had several small donations, and larger donation. I have used this money to purchase another Pi to aid in testing Baked Raspberry Pi Mod, and also to help with a new super-secret project I am working on. Thank you.

Pageviews are going through the roof, and interaction is starting to happen, although I probably get twice as many private messages, as I do public messages.

It would be really helpful if any non-private queries were made in the forums on http://www.geek101.co.nz or in the Baked Raspberry Pi Mod thread on http://www.raspberrypi.org (http://www.raspberrypi.org/phpBB3/viewt ... 66&t=31408).

As always, please report bugs asap. I want to fix them for you.

New users can get this from http://www.geek101.co.nz/bakedraspberrypimod and existing users can run 'sudo bakedraspberrypimod' to be offered the update OTA.

Changelog:

v13.02.15 Beta
- This is a GIANT new release.
- WOOHOO we are now in BETA. The 'ALPHA' type stuff is squirrelled away into the 'Experimental' section, and plastered with warnings. The non-experimental stuff may still have bugs, and needs testing, and shouldn't be used on production systems, but there shouldn't be any showstoppers in there!
- Added phpmyadmin module
- Added mumble server to experimental, see joe in the forum for his success so far.
- Added dhcp server to experimental - not configured yet.
- Upgraded Webmin installer to version 1.620.
- Downgraded logwatch to experimental status.
- Added fast 'test' MySQL database creation option.
- Improved Lighttpd install.
- Improved MySQL install.
- Improved Nginx install with addition of php.
- Improved Postfix install with instructions to prevent relay error from LAN clients.
- newpibaker no longer removes packages. Use stripped pi afterwards if needed.
- Added Monkey http server version 1.1.1.
- Add xrdp RDP server (enabled on boot) in Server Utils section.
- Added Joomla 2.5 LTS to experimental
- Added Joomla 3.0 to experimental
- Added mediawiki to experimental
- Added Dovecot module to Email section.
- Added Awstats to experimental
- Added Webalizer to experimental
- Updated rpi-update routines to update & upgrade packages, as something changed and rpi-update won't work without a packages update.
- Added Postfix catchall creator module to experimental.
- Added ability to assign read/write rights to /var/www/ for a user.
- Updated rpi-update routine to only run if Pi hardware detected.
- Updated stripped pi routine to only run if Pi hardware detected.
- Updated raspi-config routine to only run if Pi hardware detected.
- Updated new pi baker routine to only run if Pi hardware detected.
- Added confirmation screen before activation for: Tiger install, RKHunter install, Apt-get clean routine, raspi-config link launch, rpi-update firmware update module, apt-get upgrade routine, ipv6 module, tightvncserver module, enable tightvnc module, webmin module, imagemagick module, squirrelmail module, sqlite module, apache2 module, nginx module, lighttpd module, createdb module, testdb module, mysql module, postfix module, ufw install module, ufw enable module, htop module, nmap module, iptraf module.
- Added warning to experimental stripped pi module that it will break WiFi capability. Thanks to user: Pluggy from raspberrypi.org
- Added Pluggys GUI-stripping routine to experimental
- Downgraded ipv6 module to experimental.
- Added module to load TightVNC Server at boot time to experimental (not working at present).
- Added stern warning to Experimental section to deter casual clicky-moo-moos.
- Improved menu navigation - exiting a module returns to that modules menu instead of the main menu.
- Officially adopted GNU GPL v3 as licence. See http://www.geek101.co.nz/brpi/licence.txt or see "licence" in the menu.
- Credits now acknowledge some of the help that has come my way.

poing
Posts: 1132
Joined: Thu Mar 08, 2012 3:32 pm

Re: Baked Raspberry Pi Mod for Raspbian

Mon Feb 25, 2013 10:35 am

I successfully installed Apache, MySQL and phpMyAdmin with the latest iteration of your tool, but where is the item to add 'pi' user rights to /var/www? Also it would be nice if you added this script: http://cymplecy.wordpress.com/2012/08/0 ... mba-setup/ so we can reach the Pi (including /var/www) from a Windows machine to edit the web pages. And maybe change the hostname of the Pi?

You guessed it, I'm lazy :D

Return to “Raspberry Pi OS”