Wednesday, 16 January 2013

How to get WiFi working on MacBook Pro 13" under Ubuntu

MacBook Pro 13" i5 Late 2011

WiFi controller:

root@mac:~# lspci | grep -i network
03:00.0 Network controller: Broadcom Corporation BCM4331 802.11a/b/g/n (rev 02)
root@mac:~#


Steps to install the firmware (use sudo or run as root):

# apt-get install b43-fwcutter
# wget http://www.lwfinger.com/b43-firmware/broadcom-wl-5.100.138.tar.bz2
# tar xf broadcom-wl-5.100.138.tar.bz2 
# b43-fwcutter -w "/lib/firmware" broadcom-wl-5.100.138/linux/wl_apsta.o 
# echo 'SUSPEND_MODULES="b43 bcma"' >> /etc/pm/config.d/default
# reboot

I assume it will work on Fedora just change the first command to:

yum install b43-fwcutter

Sunday, 18 November 2012

Raspberry Pi, breadboard and GPIO

Here is the kit I got for my birthday - http://www.skpang.co.uk/catalog/starter-kita-for-raspberry-pi-pi-not-include-p-1070.html

I've found some interesting links on how to start having fun with SGPIO:

1) GPIO Traffic Light demo on the Raspberry Pi with Python or C - http://www.skpang.co.uk/blog/archives/656

2) Safe, controlled access to GPIO on the Raspberry Pi - http://quick2wire.com/2012/05/safe-controlled-access-to-gpio-on-the-raspberry-pi/

3) Getting Started with Raspberry Pi GPIO and Python - http://lwk.mjhosting.co.uk/?p=343

4) GPIO Examples - https://projects.drogon.net/raspberry-pi/gpio-examples/

minty geek, "cookie jar alarm" test

I absolutely enjoy my new Minty Geek kit (thanks Ania :-*) - http://mintygeek.com/

Here is a video of  the "cookie jar alarm" test - http://www.youtube.com/watch?v=7u8ibJa_gVY

It's using two transistors, relay, foto-resistor to sense the light and 555IC.

MacBook Pro 13" late 2011 running Fedora GNU/Linux 17 64it

When I 1st got my MacBook Pro (13" late 2011) I wasn't happy with its performance - The Spinning Beach Ball of Death. The bottleneck was it's 5,4k rpm HDD which I replaced with Seagate Momentus XT and kept the "slow" original as a Time Machine backup drive. In the same time I've doubled the RAM to 8GB and the machine became useable workstation.

This weekend I've replaced the HDD with some standard 7,2k I had and installed Fedora 17 64bit just because I can (wanted to see how hard it's gonna be) ;-).

I had some fun getting WiFi to work and this article was the answer - http://linuxwireless.org/en/users/Drivers/b43

The rest was as easy as installing it on PC - no difference at all !

Here is a video of my Mac booting into Fedora 17 - http://www.youtube.com/watch?v=R7fdeope8c0

Monitor backlight control, keyboard backlight control and rest of hardware worked out-of-the-box.

Wednesday, 10 October 2012

test cloud loadbalancer


mac:~ martin$ for i in {1..10} ; do echo "load balancer call by curl: "$i ; curl http://marcincloud.no-ip.org ; done
load balancer call by curl: 1
test centos2
load balancer call by curl: 2
test centos1
load balancer call by curl: 3
test centos2
load balancer call by curl: 4
test centos1
load balancer call by curl: 5
test centos2
load balancer call by curl: 6
test centos1
load balancer call by curl: 7
test centos2
load balancer call by curl: 8
test centos1
load balancer call by curl: 9
test centos2
load balancer call by curl: 10
test centos1
mac:~ martin$

Sunday, 2 September 2012

Monday, 5 September 2011

linux 3.0.0.1 loaded

Linux Mint Debian Edition 64bit
kernel 3.0.0-1-amd64 #1 SMP Sat Aug 27 16:21:11 UTC 2011 x86_64 GNU/Linux
GNOME 3.0.2
NVIDIA drivers 280.13