Install bpalogin in Ubuntu
sudo apt-get install bpalogin
This will complete the installation.
Configuration file located at /etc/bpalogin.conf edit this file using the following command
sudo vi /etc/bpalogin.conf
set your name where is says username joebloggs (or whatever your username is)
set your password where it says password goldilocks (or whatever your password is)
Scroll down to the very bottom of the file and change the following lines
save and close the file
If you want to start automatically you have to edit the following file
sudo vi /etc/network/interfaces
and make the following changes
# The primary network interface
iface eth0 inet dhcp
pre-up /usr/sbin/bpalogin start
save and close the file. make sure you have a carriage return after the last line.