Can’t load firmware file bnx2/bnx2-mips-06-06.2.1.fw

While installing Debian 7 Wheezy on a Dell 1950 III I encounted the following error

Can’t load firmware file bnx2/bnx2-mips-06-06.2.1.fw

which is caused by the missing broadcom network driver. I fixed this by downloading onto a linux machine and extracting the .deb file using

ar vx firmware-bnx2_20160824-1_all.deb

which created
x – debian-binary
x – control.tar.gz
x – data.tar.xz

then extract the data file

tar xf data.tar.xz

which created folders lib and usr.

cd /lib/firmware

Now copy the bnx2 directory into the root of a usb flash drive (it must contain the folder bnx2 folder itself and it’s contents) Now insert into the machine your installing on and hit enter when prompted.

Continue Reading

Raspberry Pi usb power bank ups pass through

I use my Pi B in my car to do timelapse photos powered off a cigarette to usb plug however I found that sometimes the plug would fall out and thus power down the pi. I also had the problem that even if I wanted to stop for 5 minutes which meant turning the engine off again the pi would be powered down. TO overcome this I thought I would look into using a usb power bank as a mini ups and here are the results of my testing.

I tested for both pass-through charging i.e. a power bank which allows to be charged while powering a device AND ‘UPS’ which is a usb bank which supports pass-through charging with the added feature of power to the connected device (pi) being uninteruppted when the mains charger was switched off/on.

Continue Reading

Installing golang under Linux Debian Wheezy

Now I had a headache installing golang as using via apt-get in wheezy installed an old version which wasn’t compatible with the software I wanted to install. Luckily I manged to stumble upon a tool called Go Version Manager (gvm) installed under the root user so modify to meet your needs.

Continue Reading

Embeding Monowall Traffic Graphs Into A Webpage

I had a situation where I needed to embed a monowall interface stats into a webpage so thought i’d do a quick how to.

Create a user group
Login as an admin and navigate to System > User manager > Groups

Click the + to add a new group Choose a group name and description ie ‘stats’ Scroll down and select the field marked Status: Traffic graph status_graph.php

Click ‘Save’ Click the ‘Users’ tab Click the + to add a new user

Add new user details and under the ‘Group Name’ select the group you just created ie ‘stats’

Click ‘Save’ Navigate to Status > Traffic graph Choose the interface you want to monitor.

Right click on the graph and select ‘View Source’ Search the page ‘Ctrl+F’ for the word ’embed’

Put the embed tag into a webpage with the user details and ip address of your monowall device along with your usernam and password ie

src=”stats@YOUR-IP/graph.php?ifnum=re0&ifname=WAN”” >http://stats:stats@YOUR-IP/graph.php?ifnum=re0&ifname=WAN” etc etc

If you enter stats:stats@YOUR-IP/graph.php?ifnum=re0&ifname=WAN directly into a browser a full page will open showing your graph.

Continue Reading

Map owncloud share in linux using webdav

Install davfs2
apt-get install davfs
Reconfigure davfs2 to allow access to other users (select ‘yes’ when prompted).
dpkg-reconfigure davfs2

Add users you want to be able to mount the share (where USER is the username)
usermod -aG davfs2 USER

Create a mountpoint
mkdir /mnt/owncloud
Mount the WebDav ownCloud
mount -t davfs https://owncloud_address_or_ip/owncloud/remote.php/webdav /mnt/owncloud
If your owncloud installation is in a directory other than ‘owncloud’ substitute it above. I used HTTPS which will encrypt communication and credentials but HTTP can also be used but obviously is higher risk.
Credentials can be automatically supplied by adding them to the following files
system wide /etc/davfs/secrets
individually ~/.davfs2/secrets
Edit either file using nano and add
https://owncloud_address_or_ip/owncloud/remote.php/webdav /mnt/owncloud USERNAME PASSWORD
To mount on boot add the following to fstab
https://owncloud_address_or_ip/owncloud/remote.php/webdav /mnt/owncloud davfs2 user,auto 0 0
(using noauto instead of auto will prevent it beingmounted automatically so choose depending on your enviroment)
To manually mount use
mount /mnt/owncloud
To unmount use
umount /mnt/owncloud
When I tried to create a test file on the shared I got the following error
touch: setting times of ‘test’: No such file or directory
To fix this edit your /etc/davfs2/davfs2.conf file and change/uncomment the ‘use_locks’ parameter to
use_locks 0
Continue Reading

Mounting a WebDav Share In Linux

Will clean up this post when i get a chance

apt-get install davfs2

Remote filesystems should not be indexed, so you should exclude the /dfs directory from the updatedb command:
edit /etc/cron.daily/slocate.cron and add the /dfs directory in the list of excluded directories:
/usr/bin/updatedb -f "nfs,smbfs,ncpfs,proc,devpts" -e "/tmp,/var/tmp,/usr/tmp,/afs,/net,/dfs"

Continue Reading

HP Microserver N54L Nas Build

As per my previous posts i've decided to take the plunge and go for the N54L Microserver from HP. Rather than doing many posts covering the post I will be encompassing everything into a single one as a blog reader I find this easier to follow than many posts spread over lots of days causing confusion.

As I said previously the thing that put me off about the microserver was the fact it had no media card slots and only a single 5.25" bay. After some research i've found a solution, namely the Startech Slim Optical & 3.5in Hard Drive Mounting Bracket for 5.25in Front Bay which allows for fitment of slim optical drive and a standard 3.5" device in my case a media card reader.

That's the first problem sorted, the next one was to overcome the fact that the internal usb on the N54L doesn't use a header as on most motherboard but rather a 'real' usb port. I managed to find the Akasa External to internal USB adapter which will convert from the header connector on the media card reader to a usb port. I purchased this and a Samsung SN-208FB/BEBE 8x DVD/RW SATA Slim Black OEM along with a Akasa AK-ICR-07U3 3.5" Black Internal Multi Card Reader M2, Micro SD & USB 3.0 from Scans store on ebay for total of £27.66 delivered to my local argos store, ok so the usb 3.0 connector is pointless for the microserver but i've had a couple of the cheapo media readers before and they seem to just stop working or break so thought i'd spend a couple of poound extra on a named brand.
More to follow………..
Continue Reading

New NAS the FINAL decision

Yes i've still been pondering over which new nas to go for and like a woman i've ended up back at the first product I looked at *sigh* namely the HP Microserver. 
I did look at the Acer Aspire XC-603 which ebuyer were selling for £130 as I liked the fact it was of reasonable spec and had a media card reader built in. However looking at 2.5" 2tb drives they were coming in at over £100 each when a 4tb 3.5" can be had for the same money. 
I again considered the shuttle but like my current one power consumption is a little on the high side and due to previous hardware failures don't appear to be designed for 24hr usage.
Alas it was back to the microserver with it's 4 HDD slots and numerous USB ports it's surely a no brainer. I copy pi sd cards quite regularly so wanted to put in a media card reader but there is only a single external 5.25 slot so couldn't have a optical drive as well, or so I thought….. after some searching I came across the Startech Optical & 3.5in Hard Drive Mounting Bracket for 5.25in Front Bay (wow that was a long name to type) which can be had for around £20 posted. I've specced a slim DVD RW and card reader and will be ordering them shortly.
Next decision is HDD, i'm probably going to go for WD Red's either 2 or 3tb in RAID 1.
This project will take a while to complete due to limited funds but at the end it's should be a nice little setup.
Continue Reading