Jan 6, 2014

Customize zsh for PiBang

By default, PiBang comes with zsh as the default shell.

After few days using zsh, I found that I have key binding issue. This reminds me that I need to setup key sequence and binding manually for certain keys: HOME, END, and DELETE.

So refer to setup key sequence and bindings manually.

Jan 5, 2014

Check NTP Config in RaspberryPi

Raspberry Pi has no real time clock (RTC). If you power up your RPi without Internet access, you will have wrong time/date.

RPi gets the time/date from NTP servers (a time server). To perform a quick check on your NTP servers:
ntpq -p

Jan 3, 2014

Fixed IP on RaspberryPi

I prefer fixed IP to dynamic IP address. So I just changed from dhcp to static in the /etc/network/interface file.
/etc/network/interface:
auto lo
iface lo inet loopback  
auto eth0iface eth0 inet static 
address 192.168.1.11 
netmask 255.255.255.0 
network 192.168.1.0 
broadcast 192.168.1.255 
gateway 192.168.1.1
And don't forget your DNS setting. Once you no longer get network configuration from DHCP server, you need to configure your DNS manually.

/etc/resolv.conf:
nameserver 192.168.1.1

/etc/network/interface and ifconfig output

Hi PiBang (Why I switch to PiBang)

Few reasons:

  • It has server edition. 
  • It uses SystemD (instead of SysV init).
  • It uses zsh (instead of bash).
At the same time:
  • In case I need a desktop environment, instead of LXDE, I still can have i3 (tiling WM) or OpenBox.
  • It still compatible with Rasbian sources.
Interested? Give PiBang a try now.

Reinstalling My PiBang

Today I download the latest PiBang Server edition, pibang-server-systemd-20131119.img (500++ MB and MD5: B824E42A BFCE74EF 980613EF 6109A811) Then follow by unzip it and burn the img file to my 4GB micro SD card.

Plug it into my Raspberry Pi. Connect my Raspberry Pi to TV after connect a USB keyboard. Power it once it is done.

The 1st thing it runs is, raspi-setup. Make all the necessary changes including:

  • Expand the file system.
  • Change hostname.
  • adduser pi
  • Split memory: 16MB
  • Enable camera module and SSH server.