Skip to content

Instantly share code, notes, and snippets.

@nicholasadamou
Created April 22, 2018 13:51
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicholasadamou/1133c5ca1e95cf08da71ba6b239a436c to your computer and use it in GitHub Desktop.
Save nicholasadamou/1133c5ca1e95cf08da71ba6b239a436c to your computer and use it in GitHub Desktop.
How to setup & configure re4son-Kali-Pi on Raspberry Pi 2/3

Setup Re4son-Kali-Pi on Raspberry Pi 2/3

  1. Download and image sticky-fingers-re4son-image to the Pi.

  2. Copy the following scripts: update apt_update apt_get_update aptitude_update to /usr/local/bin

  3. Copy the following scripts: start_tightvncserver.sh start_x11vncserver.sh to /root/data/

  4. copy the following the contents of : Backgrounds/ to ~/Backgrounds

  5. Set up WiFi connection to 'iPhone' using HDMI Screen

  6. remove tigervnc using: apt-get remove tigervnc-common tigervnc-standalone-server

  7. Setup re4son kernel:

     sudo bash
     mount /dev/mmcblk0p1 /boot
     cd /usr/local/src
     wget  -O re4son_kali-pi-tft_kernel_current.tar.xz https://whitedome.com.au/re4son/downloads/11299/
     tar -xJf re4son_kali-pi-tft_kernel_current.tar.xz
     cd re4son_kali-pi-tft_kernel_4*
     ./install.sh
    
  8. Setup TFT Screen:

    1. Update 're4son-pi-tft-setup': ./re4son-pi-tft-setup -u
    2. Set autologin as pi: ./re4son-pi-tft-setup -a pi Say N to rebooting
    3. Set autoboot to CLI: ./re4son-pi-tft-setup -b cli Say N to rebooting
    4. Setup wave35c TFT Screen: ./re4son-pi-tft-setup -t wave35c Say N to rebooting
  9. Add the following to /etc/rc.local to fix Raspberry Pi 3 WiFi drop outs:

     ## Fix WiFi drop out issues
     iwconfig wlan0 power off
    
  10. To enable the on-screen keyboard in the greeter/login screen, add to the bottom of /etc/lightdm/lightdm-gtk-greeter.conf:

    #Enable the on-screen keyboard in the greeter/login screen
    show-indicators=~language;~a11y;~session;~power
    keyboard=florence --focus
    

    This will add an “On Screen Keyboard” entry to the indicator menu:

    on-screen-keyboard

  11. Fix Pygame to work with Kali-Pi-Launcher:

    • Pygame is broken in Jessie because of libsdl1.2-15-10, so we remove it and install the one from from Wheezy.
    1. Comment everything out in your /etc/apt/sources.list and temporarily add: deb http://archive.raspbian.org/raspbian wheezy main contrib non-free

    2. Run the following:

       gpg --keyserver keys.gnupg.net --recv-key 9165938D90FDDD2E
       gpg -a --export 9165938D90FDDD2E | sudo apt-key add -
       sudo apt-get update
       sudo apt-get remove libsdl1.2debian python-pygame
       sudo apt-get install libsdl-image1.2 libsdl-mixer1.2 libsdl-ttf2.0-0 libsdl1.2debian libsmpeg0 python-pygame
       sudo apt-mark hold libsdl1.2debian
      
    3. Restore /etc/apt/sources.list to it’s original state and re-run: sudo apt-get update

  12. Install desired packages: sudo apt-get install -y gparted tightvncserver exfat-fuse exfat-utils htop

  13. Update the system: bash /usr/local/bin/update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment