Difference between revisions of "Barman"

From Whitespace (Hackerspace Gent)
Jump to: navigation, search
Line 26: Line 26:
 
   exec ./start-revbank.sh
 
   exec ./start-revbank.sh
 
fi</nowiki>
 
fi</nowiki>
 +
 +
<nowiki>
 +
#start-revbank.sh
 +
 +
ssh revbank@hq.0x20.be
 +
</nowiki>
  
 
If you connect to barman through ssh, that script will NOT be executed so you can manage it.
 
If you connect to barman through ssh, that script will NOT be executed so you can manage it.

Revision as of 14:04, 20 March 2014


Barman
WhitespaceLogo.gif
What:
No idea what has happened before, but the end result is, barman doesn't work anymore and the raspberry pi didn't work so well anymore. So I fixed it!
Participants:
Carroarmato0, biertie
Locations:
Whitespace
Events:
Fix Revbank/Barman
Cornify

The raspberry pi is runnin Debian Wheezy for the Pi.

hostname: barman user: barman pass: unicorns

I installed mdns (avahi-daemon), so you can just ssh to it no matter what the IP is: ping barman.local or ssh barman@barman.local

Barman connects to kimball to the revbank account through ssh keys. Upon login, the revbank application gets launched.

Barman is set to auto login to the account. This is done by adding the following line to /etc/inittab:

1:2345:respawn:/bin/login -f barman tty1 </dev/tty1> /dev/tty1 2>&1

There is a script in the home, called via the following code in ~/.bashrc, account called start-revbank.sh which will be executed everytime upon login.

if [[ -n $SSH_CONNECTION ]]; then
  echo "Not executing barman..."
else
  exec ./start-revbank.sh
fi

#start-revbank.sh ssh revbank@hq.0x20.be

If you connect to barman through ssh, that script will NOT be executed so you can manage it. Something handy to remember in the future about the Barcode Scanner, if it prints our random symbols instead of numbers, you need to set the layout to Belgian on the scanner itself. There are codes available in the online doc which you can use to set it.

The barman is identified by Pamala as:

  • b8:27:eb:ea:e2:a1 = Barman