Kali on Raspberry Pi with TFT touch

raspbianRecently I bought a Raspberry Pi including a 2.8 TFT Touchscreen and WiFi USB dongle. I planned to install a Kali distribution published by Offensive Security on it.


  1. Download the Kali Linux Raspberry Pi Image. The file is compressed and you have to expand it first.
  2. Expand the image, by using f.i. 7zip.
  3. Write the image directly to a SD card. You can’t just copy it, you need the Win32 Disk Imager tool for it.

Now you can put the SD card into your Raspberry Pi and start it up. If you got a monitor connected then you can login directly. If not then you have to connect remotely. The Kali image has DHCP installed and enabled so it will start up with an IP-address out of the DHCP-range. To figure out which IP-address just use a network scanning tool like a Free Port Scanner.

Next is to update all of the software to the latest version:

root@kali:~# apt-get update
root@kali:~# apt-get upgrade
root@kali:~# apt-get dist-upgrade

Remote connectivity

I connect the RPi remotely via Windows in different ways:

  1. Putty for commandline connectivity
  2. WinSCP for filehandling
  3. tightVNC for remote desktop (see http://elinux.org/RPi_VNC_Server)

To install the tightVNC server on the RPi:

root@kali:~# apt-get install tightvncserver
root@kali:~# tightvncserver
root@kali:~# vncserver :0 -geometry 320x240

Now you can connect the RPi with tightVNC. Next we have run tightvncserver at startup (underneath is a copy of elinux.org).

root@kali:~# nano /etc/init.d/vncboot
# Provides: vncboot
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start VNC Server at boot time
# Description: Start VNC Server at boot time.

export USER HOME

case "$1" in
   echo "Starting VNC Server"
   #Insert your favoured settings for a VNC session
   /usr/bin/vncserver :0 -geometry 320x240

   echo "Stopping VNC Server"
   /usr/bin/vncserver -kill :0

   echo "Usage: /etc/init.d/vncboot {start|stop}"
   exit 1

exit 0

Modify the file permissions so it can be executed:

root@kali:~# chmod 755 /etc/init.d/vncboot

Enable dependency based boot sequencing:

root@kali:~# update-rc.d /etc/init.d/vncboot defaults

If enabling dependency based boot sequencing was successful, it says:

update-rc.d: using dependency based boot sequencing

But if it says:

update-rc.d: error: unable to read /etc/init.d//etc/init.d/vncboot

then try the following command:

update-rc.d vncboot defaults

Reboot your Raspberry PI and you should find a vncserver already started.

WiFi installation

I want to work with a WiFi USB dongle. Power down the RPi and plugin the WiFi USB dongle. Then edit the /etc/network/interfaces file which looks like:

root@kali:~# nano /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp 
allow-hotplug wlan0
auto wlan0
iface wlan0 inet dhcp
wpa-ssid "MY SSID"
wpa-psk "MY PASSWD"

Now reboot the RPi or restart the network by:

root@kali:~# etc/init.d/networking start

If it won’t work try the following commands:

  • raspberrylsusb –> will show you all the connected USB devices.
  • lsmod –> shows if the relevant module is loaded.
  • dmesg | grep -i usb –> shows all lines with usb if the module shows errors.
  • ifconfig –> shows all network adapters including the wireless adapter wlan0 (iwconfig will do the same but only for wireless adapters).
  • ifconfig wlan0 up –> activate the wlan0 adapter.
  • iwlist wlan0 scan –> will scan all the wireless networks.
  • cat /var/log/kern.log –> will show the messages when you connect the WiFi USB dongle.

Alternative 1: (re-) loading the Realtek 8192cu module

root@kali:~# modprobe 8192cu

Alternative 2:

Alternative 3:


Over Ramses Sloeserwij

Visionairy on Security ● Cybercrime ● Architecture ● Identity & Access Management ● Compliance ● Risk Management ● Governance ● Mobile Security ● Technical Infrastructure
Dit bericht werd geplaatst in Gadgets en getagged met , . Maak dit favoriet permalink.

Geef een reactie

Vul je gegevens in of klik op een icoon om in te loggen.

WordPress.com logo

Je reageert onder je WordPress.com account. Log uit / Bijwerken )


Je reageert onder je Twitter account. Log uit / Bijwerken )

Facebook foto

Je reageert onder je Facebook account. Log uit / Bijwerken )

Google+ photo

Je reageert onder je Google+ account. Log uit / Bijwerken )

Verbinden met %s