IRadio = Raspberry Pi + Adafruit PiTFT (with buttons) + MPD + NCMPCPP + Bluetooth BeatsPill Speaker + Custom Frame Buffer Pygame code

Apache, audio, Bluetooth, Codec, Electronics, flac, LCD, Linux, Music, Opensource, Raspberry Pi, Tutorial
So over christmas holidays I spent about 5 days to perfect my raspberry pi based internet radio player. You’ll need the following hardware: Raspberry Pi model B USB Wifi dongle (something that works with Raspbian would be nice). I got this one (http://www.adafruit.com/products/1030) from Adafruit. SD card (I’m using a 16GB card, but I think 8GB should be good to start with) Bluetooth 4.0 dongle. I’m using this one from ASUS (http://www.asus.com/ca-en/Networking/USBBT400/) that seems to work fine in Linux/Raspbian PiTFT resistive touch screen assembled from Adafruit (http://www.adafruit.com/products/1601) Pack of 20 tactile buttons from Adafruit (http://www.adafruit.com/products/1489) for the above screen (You need to solder these in…..very simple) Appropriate power USB power supply. Again I’m using the one from Adafruit (http://www.adafruit.com/products/501) Standard A to micro-B USB cable (http://www.adafruit.com/products/592) (optional) PiTFT Enclosure from…
Read More

Streaming 1080P video using Raspberry Pi (or BeagleBone Black)

Apache, BeagleBone Black, C920, CLI, DIY, embedded OS, Linux, Opensource, Raspberry Pi, Streaming, Tutorial, Video
I've finally got this project to a point were I can do a write up on it. The following hardware is needed: Raspberry Pi 512K version (or BeagleBone Black) Logitech C920 Webcam 16 GB micro SDHC card (can probably do it on 8GB too) Wireless dongle supported by linux (I'm using a TrendNet TEW-645UB which was pretty much plug and play) The goal of this project is to get the following installed and configured: CRTMP streaming server C920 install and config (v4l2), ffmpeg installation, boneCV installation from Derek Molloy's site configuring ddclient for dynamic DNS (optional) putting it all together and creating a webpage with embedded JWplayer to view the stream UPDATE: Sound works now on BeagleBone Black. On Raspberry you will run into alsa buffer xruns. See below for…
Read More

Getting apache mod_status and mod_info to play nicely with wordpress…..

Apache, wordpress
After reading many (too many) posts about this subject that did not work, I finally found a way to get this working. If you have a wordpress site setup you will, at some point during the installation, be told to copy a bunch of "redirect" code to your .htaccess file in your wordpress installation folder. These apache redirects take care of making pretty URL's and permalinks amongst other things. The problem is that these .htaccess rules in wordpress take over server-info and server-status urls activated in apache’s config and return a page not found error. I came across numerous sites that suggested adding a rule like: RewriteCond %{REQUEST_URI} !=/server-status This didn't work for me. I'm not sure if the multisite version of wordpress (which I'm using) is causing this. The…
Read More

Adding mcrypt support to builtin php5 on OSX Leopard….

Apache, Apple, Macintosh, OSX, osx Server, php, Server, XServe
I got a request to add mcrypt support to our Leopard server today and here is a brief step-by-step installation instruction. This works well under the current 10.5.8 server installation. It should also work for 10.6 (snow leopard), but I have not tried it. Before you start here are the requirements: Backup your system Install (and update) the latest XCode (I've got version 3) Install X11 client stuff from your server install DVD install X11 SDK stuff from your server install DVD Ensure you have server 10.5.8 (latest update as of Feb.04.2011) Make sure you have not tried to install mcrypt using another method. We need a "virgin" 10.5.8 install (as far as homebrew/local installs) BACKUP Please note that this will add mcrypt support to php. This is NOT the…
Read More

Adding GD support to builtin php5 on OSX Leopard….

Apache, Apple, Leopard, Macintosh, osx Server, php, XServe
I got a request to add GD support to our Leopard server today and here is a brief step-by-step installation instruction. This works well under the current 10.5.8 server installation. It should also work for 10.6 (snow leopard), but I have not tried it. Before you start here are the requirements: Backup your system Install (and update) the latest XCode (I've got version 3) Install X11 client stuff from your server install DVD install X11 SDK stuff from your server install DVD Ensure you have server 10.5.8 (latest update as of Feb.04.2011) Make sure you have not tried to install GD using another method. We need a "virgin" 10.5.8 install (as far as homebrew/local installs) BACKUP Please note that this will add GD support to php. This is NOT the…
Read More

Where is php.ini under OSX 10.5 (Leopard)…

Apache, osx Server, php
I came across a issue and the solution required a bit of tweaking in php.ini. After looking around my Leopard Server I finally found php.ini.default under /etc directory. After making the changes and restarting apache, I got nothing, zip, zilch. Well after digging around the output of phpinfo<?phpphpinfo ();?>I found that /etc is the expected location of php.ini. So after copying php.ini.default to php.ini and restarting apache everything started working nicely. Lesson learned....By default the php module uses baked-in values, if you need to change something (eg: maximum upload file size) you need to copy php.ini.default to php.ini (in /etc directory). Make the changes to php.ini and restart apache.
Read More

How to stream live HDV/DV to iphone…..

Apache, HDV, iPhone, iPodTouch, Linux, Macintosh, OSX, osx Server, Video, VLC
In this guide I'll show you how to stream live HDV/DV video to your iphone using a linux box (Ubuntu 9.10) with firewire input running vlc/ffmpeg and a Imac with OSX 10.6.2 running mediastreamsegmenter and apache2. Start out with the iPhone streaming media overview. Without understanding this document you'll have a hard time getting things working. First things first, you need to have a working Ubuntu 9.10 machine. I'm using a small footprint 2.4Ghz Core2Duo machine with PCI firewire 400 card in it. For video input I'm using a Canon HV30 set to HDV mode (1080i/60) connected via firewire. Next you need to follow the instructions on this page (steps 0-5) to get a working ffmpeg with x264 and aac encoding. Without this working you're not going anywhere....sorry. If you're…
Read More

Step-by-step instructions to get Cacti installed on Ubuntu 9.04 (Jaunty Jackalope) Desktop Edition

Apache, cacti, Linux, mysql, Opensource, php, Ubuntu, Unix
So after yesterdays rant, I went back and figured out how to install the Cacti monitoring software (OSS, Free) onto a Ubuntu 9.04 "Jaunty Jackalope" Desktop installation. This guide uses packages only, no compiling, no Makefiles or anything like that.....You should be able to just follow this and get a fully functioning Cacti installation in about 30 minutes. Here are the steps:install ubuntu 9.04 ("Jaunty Jackalope") Desktop Edition on your machine Login, open a Shell window and install ubuntu LAMP (Linux/Apache/MySQL/PHP) server stack on your machine "sudo tasksel install lamp-server". Note: Make sure you remember the password for "root" user in mysql Database, write it down somewhere, we will need it later on.Get a superuser shell started since it will make for less typing. "sudo -i" followed by your password.…
Read More

OSX 10.5 Server oddities

Apache, osx Server, Virtual Hosts, Webserver
So after pulling out my (non-existent) hair for the past two days I think I've finally figured out how Apple deals with Virtual Web Servers under Leopard. If you go to the Server Admin and look under the Web Service you'll notice the Sites icon and if you're like me you assume that since Apple obviously has gone to great lengths to design a unified interface for Admins, that they would give you access to all the basic/intermediate options. NOPE!!!!! Read on and see if you've run into any of these problems.1) First of all, I don't understand why apple's webserver (apache) is configured to automagically reroute you to http://www.mysite.com/groups/workgroup when you really just want to get to the index.html in the (so called) document root. Apple assumes that when…
Read More