Comments from Blog Post “Sticky Finger’ Kali-Pi”

Overview Forums Sticky Finger’s Kali-Pi Comments from Blog Post “Sticky Finger’ Kali-Pi”

  • This topic has 226 replies, 14 voices, and was last updated 2 months ago by MaxMega12. This post has been viewed 204155 times
Viewing 154 reply threads
  • Author
    Posts
    • #1048
      Re4son
      Keymaster

      hi,
      I m very interested in this tuto/project.
      I’m about to buy a tft screen “adafruit” but the 3.5″ cost more for europe.
      Do you think this is work well with a 2.8″ ?

      Thanks par avance,
      regards
      Original author: tranquillechat

    • #1049
      Re4son
      Keymaster

      Hi Tranquillechat,

      works just as well with the 2.8″
      You only have to adjust the dimensions of the menu.

      Cheers,
      Re4son
      Original author: Re4son

      • #1089
        Re4son
        Keymaster

        How do I adjust the dimensions of the menu for the 2.8 screen? Sorry, I’m a newb
        Original author: Kenneth Woodham

    • #1050
      Re4son
      Keymaster

      This was THE most helpful source for my build, huge thanks homie.
      Original author: @ShreddieMurphy

    • #1051
      Re4son
      Keymaster

      Re4son,

      Thanks for a very well tutorial.
      Though I followed it step by step, I ended up with some “problems”;
      Under “Create a low privilege user”, the following commands didn’t work;
      # usermod -a -G sudo,ftp,kismet pi
      # /usr/bin/clear &
      # %pi ALL=(ALL:ALL) NOPASSWD: /sbin/poweroff, /sbin/reboot, /sbin/shutdown, /home/pi/pitftmenu/menu

      Under “Kali-Pi Launcher:”, the following commands didn’t work;
      # sudo pip install pbkdf2
      # sudo pip install RPi.GPIO

      I didnt get any further, hopefully you can assist on this; I would LOVE to have your menu running!
      Original author: Stigh

    • #1052
      Re4son
      Keymaster

      Hi Stigh,

      About the “pip install RPi.GPIO” issue:

      Try running
      sudo apt-get install python-dev
      again. That should re-install the missing headers.

      About the “low priv user”:

      Not too sure what could have failed. Maybe one of the groups we created earlier is missing.
      You can check whether all groups have been created via the following command:
      grep ‘sudo|ftp|kismet’ /etc/group
      The output should be something like this:
      “sudo:x:27:pi
      kismet:x:116:pi
      ftp:x:1000:pi”

      Do you remember the command that triggered the error and what the message was?
      That’ll help me to pinpoint the culprit.
      Just post the result or shot me an e-mail and I’ll have a look at it.

      Hope that helps,
      Re4son
      Original author: Re4son

    • #1053
      Re4son
      Keymaster

      Thanks for this!
      Got one question though? Is it possible to get kismet running without a keyboard? Touching does not work for me when kismet is running and I can’t turn of the server startup message. Also is it possible to quit tools like htop and kismet from the touch screen?
      Original author: Furiuz

      • #1062
        Re4son
        Keymaster

        Hi Furiuz,

        You can start and run kismet in a pre-configured mode without a keyboard by configuring kismet.conf
        You do need a keyboard to change the configuration or to exit it though. I bought the “Rii mini i8+” wireless keyboard on eBay for $20. It’s an awesome buy for the Pi.

        Cheers,
        Re4son

    • #1054
      Re4son
      Keymaster

      Hi re4son,
      Firstly let me say that this how to is very well put together and has been a great help to me, I have learnt a load from following this project 🙂

      I ran into a snag when fixing Pygame, I’m hoping you might be able to help.
      Im following this tutorial using a Pi B+ with the 3.5″ Adafruit TFT. Its not a Pi2.

      I update the sources.list file by commenting out the origional sources and add this:
      deb http://archive.raspbian.org/raspbian wheezy main contrib non-free

      Then I run the apt-get update and I recieve the following error:
      root@kali:/etc/apt# sudo apt-get update
      Hit http://archive.raspbian.org wheezy InRelease
      Get:1 http://archive.raspbian.org wheezy/main Sources [6,081 kB]
      Fetched 6,081 kB in 57s (106 kB/s)
      W: Failed to fetch http://archive.raspbian.org/raspbian/dists/wheezy/InRelease Unable to find expected entry ‘main/binary-armel/Packages’ in Release file (Wrong sources.list entry or malformed file)

      E: Some index files failed to download. They have been ignored, or old ones used instead.

      This is where things break down as the next parts don’t seem to go well either.

      Other than fixing Pygame I have everything working nicely!

      Thanks for your help!
      Original author: Mark Judge

      • #1061
        Re4son
        Keymaster

        Hi Mark,

        thanks very much. I’m glad you like it.
        Your problem might be caused by the original repository. It’s not very reliable. Using a mirror usually helps.
        Just try using this line in your sources.list:

        deb http://mirror.aarnet.edu.au/pub/raspbian/raspbian/ wheezy main contrib non-free

        Always works for me.

        I hope this helps,
        Re4son

    • #1055
      Re4son
      Keymaster

      Bro, I salute you..

      Good job on this Impressive write up.. I don’t think I have ever seen a step by step in linux this clear..
      You got me up and running with the PITFT 3.5 & Kali 2.01 on a Pi2
      The only glitch while steping through, is the user accounts. When I got to he menu section it did not come up unless I logged in as [root] via SSH, easy fix, changed the user in one of the earlier steps..
      I really like the menu options.. Will learn how to customize..

      Ulitimatily, could like to get this set up simular to a WiFi Pineapple. Im sure you know what that is. Would be nice to have to radios. One as a Access point/AD hac and another with a Realtek radio to look around with. I had that type of setup working last year on my B+ and could never get that setup working again for some reason.
      Original author: Wilson

    • #1056
      Re4son
      Keymaster

      Bro, I salute you..

      Good job on this Impressive write up.. I don’t think I have ever seen a step by step in linux this clear..
      You got me up and running with the PITFT 3.5 & Kali 2.01 on a Pi2
      The only glitch while stepping through, is the user accounts. When I got to he menu section it did not come up unless I logged in as [root] via SSH, easy fix, changed the user in one of the earlier steps..
      I really like the menu options.. Will learn how to customize..

      Ulitimatily, could like to get this set up simular to a WiFi Pineapple. Im sure you know what that is. Would be nice to have to radios. One as a Access point/AD hac and another with a Realtek radio to look around with. I had that type of setup working last year on my B+ and could never get that setup working again for some reason.
      Original author: Wilson

    • #1057
      Re4son
      Keymaster

      I know there is a way to block out adafruit_pitft_kernel_1.20150420-1.tar.gz from being over written during a apt-get upgrade.. Anyone able to provide? I searched and can’t find.
      Original author: Wilson

    • #1058
      Re4son
      Keymaster

      Hi Furiuz,

      You can start and run kismet in a pre-configured mode without a keyboard by configuring kismet.conf
      You do need a keyboard to change the configuration or to exit it though. I bought the “Rii mini i8+” wireless keyboard on eBay for $20. It’s an awesome buy for the Pi.

      Cheers,
      Re4son
      Original author: Re4son

    • #1059
      Re4son
      Keymaster

      Hi Wilson,

      thanks for you kind words. I much appreciate it.
      I usually run Kali-Pi with 2 interfaces – 1 TP-Link TL-WN722N and either the ethernet port or a Wi-Pi. Runs nicely. Very rarely the TP-Link doesn’t get picked up properly after a reboot but that’s easily fixed by pulling it out and reconnecting it.
      I know what you are saying about protecting the Adafruit kernel from being overwritten during an upgrade but it doesn’t seem to be an issue. I’ve run several upgrades, including one to 2016.1 and none attempted to replace the kernel.

      Interesting concept the WiFi Pineapple. I’ve never seen one in real life but I’m intrigued by it. What is it supposed to do? Is one interface for scanning and one for remote access or can you use it for MitM attacks?

      Many thanks,
      Re4son
      Original author: Re4son

    • #1060
      Re4son
      Keymaster

      Hi everyone,

      Good news: Kali-Pi goes “rolling release”!

      I’ve just completed a successful upgrade to Kali 2016.1 and will soon update the blog to include the steps required. Everything seems to be working fine apart from a few missing icons in the Kali menu in X.
      Here’s what I did:

      $ cat << EOF > /etc/apt/sources.list
      deb http://http.kali.org/kali kali-rolling main non-free contrib
      EOF

      $ apt-get update
      $ apt-get dist-upgrade # get a coffee, or 10.
      $ reboot

      Repeat section “Boot into text mode”
      Repeat section “Enable Auto Login”

      MySQL will start on boot after the upgrade, let’s disable it to save resources (we’ll start it manually if needed)
      $ systemctl disable mysql

      That’s it.

      Have fun and please let me know if you encounter any problems.

      Cheers,
      Re4son
      Original author: Re4son

    • #1063
      Re4son
      Keymaster

      Hey thanks a lot for your tutorial, you got me further then the other tutorials!
      Have a raspberry pi 2 with the image of kali you suggested here, but have some trouble with the adafuit-pitft-helper.
      When i run it for 28r it says: Would you like the console to appear on the PiTFT display? [y/n] y
      [PITFT] Updating console to PiTFT…
      /boot/cmdline.txt already updated
      sed: can’t read /etc/kbd/config: No such file or directory
      Any ideas? I manually made the /boot/cmdline.txt.
      Many thanks!
      Thijs
      Original author: Thijs

      • #1064
        Re4son
        Keymaster

        Now I tried it with No for showing the console on the screen, the adafruit helper replied “succes” but still my screen is not working after the reboot. Any ideas?
        Original author: Thijs

        • #1065
          Re4son
          Keymaster

          Maybe as an extra note the screen does go on but is only white.
          Original author: Thijs

          • #1066
            Re4son
            Keymaster

            Hi Thijs,

            Do you get any output on the hdmi port?

            Cheers,
            Re4son

            • #1067
              Re4son
              Keymaster

              Yes output on the hdmi port is fine and i can also connect to it via ssh without any problem. So i guess the problem is with the adafruit-helper part.
              Original author: Thijs

              • #1068
                Re4son
                Keymaster

                Hi Thijs,

                out of the box, Kali boots up into the GUI and that is outputted via HDMI.
                That’s why I ended up writing the Kali-Pi Launcher.
                Just boot into text mode and start X manually to test. I’d continue following this guide and install the Launcher.
                Let me know how you go.

                Cheers,
                Re4son
                Original author: Re4son

                • #1069
                  Re4son
                  Keymaster

                  Yeah i tried startx but doesnt work, thanks for the ongoing help though! it gives a long message and im not sure what to think of it:

                  startx

                  X.Org X Server 1.17.3
                  Release Date: 2015-10-26
                  X Protocol Version 11, Revision 0
                  Build Operating System: Linux 3.16.0-4-armmp-lpae armv7l Debian
                  Current Operating System: Linux kali 3.18.14-v7+ #2 SMP PREEMPT Thu May 28 18:17:59 UTC 2015 armv7l
                  Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=1184 bcm2708_fb.fbheight=624 bcm2709.boardrev=0xa21041 bcm2709.serial=0x6a7888ba smsc95xx.macaddr=B8:27:EB:78:88:BA bcm2708_fb.fbswap=1 bcm2709.disk_led_gpio=47 bcm2709.disk_led_active_low=0 sdhci-bcm2708.emmc_clock_freq=250000000 vc_mem.mem_base=0x3dc00000 vc_mem.mem_size=0x3f000000 dwc_otg.fiq_fix_enable=2 console=tty1 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait rootflags=noload
                  Build Date: 27 October 2015 11:47:01PM
                  xorg-server 2:1.17.3-2 (http://www.debian.org/support)
                  Current version of pixman: 0.33.6
                  Before reporting problems, check http://wiki.x.org
                  to make sure that you have the latest version.
                  Markers: (–) probed, (**) from config file, (==) default setting,
                  (++) from command line, (!!) notice, (II) informational,
                  (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
                  (==) Log file: “/var/log/Xorg.1.log”, Time: Fri Jan 29 11:39:08 2016
                  (==) Using config directory: “/etc/X11/xorg.conf.d”
                  (==) Using system config directory “/usr/share/X11/xorg.conf.d”
                  ^Cxinit: connection to X server lost

                  waiting for X server to shut down (II) Server terminated successfully (0). Closing log file.
                  Original author: Thijs

                  • #1075
                    Re4son
                    Keymaster

                    Did you ever sort this problem out? I have the exact same thing and it’s killing me slowly trying to fix it.
                    Original author: Edd

    • #1070
      Re4son
      Keymaster

      Yo,
      Bought a Pi2B, eliminate any B+ issues, quicker and better…

      Got it working last night, was a moment of joy I can say!
      So I followed the script and got the same result as Thijs, so I nuked the card and started again but I used the mirror you mentioned in my sources list.
      I did everything but launch the TFT helper, leaving that part until we get to installing the menu.
      IIRC I made the missing file the helper crashed out on and ran it again it was happy and completed.
      Rebooted and boom!
      Looks the bomb and I have most of the menu items working nicely, just a little more config and we are fully up and running 😀

      I’ll prob do it all again and document my steps if it’s of any use…

      I’m using two Pi hut wifi dongles and I know they work in monitor mode so I should be able to make it into a wifi pineapple type device ?
      Original author: Mark

      • #1071
        Re4son
        Keymaster

        OK great, i’ll try it this weekend with avoiding the adafruit tft helper! thanks
        Original author: Thijs

    • #1072
      Re4son
      Keymaster

      Great write-up! Took a few tweaks but got this up and running. Is there a good guide on the Snort/Pulled Pork portion that you mentioned? It appears that Snort starts, but when I run Pulled Pork is throws errors about the snort service (snortbarn.service) not starting and there is no config file for Pulled Pork.
      Original author: Anonymous Coward

    • #1076
      Re4son
      Keymaster

      Hey Thx for the tutorial, I got this going on my 3.2 (28r) pitft but I’m unable to alter the pygame menu screen output .. It’s all off the screen and I’ve tried so many different ways … Any insight ?? Thank you
      Original author:

      • #1077
        Re4son
        Keymaster

        Hi Anonymous,

        the coordinates are hard coded in the menus. The screen size has to be adjusted in four areas (let’s use file manu_kali-1.py as example):
        1. Screen size parameters for initializing pygame (line 137) – set to: size = width, height = 320, 240
        2. Outer border draws the border around the outside ( two borders actually, for 3d effect) (lines 144 & 145).
        3. make_button function calls at lines 151 – 160 draw the buttons. You have to play around with those to find a layout that looks good on your screen.
        4. Touch positions are defined on lines 34 – 53 and should match the corresponding make_button coordinates (make_button defines the output (drawing), touch_pos defines input (touch) – I could have solved that a bit cleaner, sorry.

        Adjusting these values should get you up and running in no time. You might have to change the entire layout to make it look good on your screen though, e.g. using the screen in portrait mode and using one long button per row or something like that.
        Please let me know how you go. I’d love to see a picture of the finished set up.

        Hope that helps,
        Re4son
        Original author: Re4son

        • #1078
          Re4son
          Keymaster

          thanks for the prompt reply , im actually messing with it as i write this, i will def post some pics when finished
          Original author:

          • #1079
            Re4son
            Keymaster

            I have the same issue . Could you please post the code as well ?
            Original author: x

          • #1109
            Re4son
            Keymaster

            Same here!
            Original author: Kenneth Woodham

            • #1113
              Re4son
              Keymaster

              Good news everyone:

              JPearn has adjusted the menu for a 2.8″ screen and it looks great.
              He himself calls it “still a bit rough around the edges” but I reckon we can run with it.

              The zip file with the modified scripts can be downloaded here:
              http://www.whitedome.com.au/download/menu_kali_2.8.zip

              Just copy the files over the originals in the root directory and you should be ready to go.

              I’ll include the source in my github when I get around it.

              A round of applause to JPearn for the hard work.

              Many thanks,
              Re4son

    • #1080
      Re4son
      Keymaster

      Hi all,

      Good news:
      I’ve updated the kernel package to work on the Raspberry Pi 3 with Kali Linux.
      Just follow these steps to upgrade:

      mount /dev/mmcblk0p1 /boot
      wget http://www.whitedome.com.au/download/adafruit_pitft_kernel_1.20160323-1.tar.gz
      tar -xf adafruit_pitft_kernel_1.20160323-1.tar.gz
      cd adafruit_pitft_kernel_1.20160323-1
      ./install.sh

      Be safe,
      Re4son

      • #1081
        Re4son
        Keymaster

        Hi Re4son,

        thank you for updating the kernel package.
        Now my pi3 is rebooting after installing the kernel package but when i install the pitfthelper there is only a white screen.
        With the HDMI connected there is output on the monitor.
        Any ideas?

        THX
        Original author: blackyE

        • #1082
          Re4son
          Keymaster

          Hi blackyE,

          Let me do a new vanilla installation this arvo to see if I can reproduce the problem.
          Have you told the pitft-helper to display to the tft in text mode? If so, do you get any output during the boot process?
          Are you booting into GUI or text mode. GUI with pitft is very fragile, that’s why sticky fingers boots into text mode and lets you start XWindow manually.

          I’ll get back to you tonight if I can reproduce the problem,
          Re4son
          Original author: Re4son

          • #1083
            Re4son
            Keymaster

            after the pitft helper installation there was no Output on the screen when asked.
            I’m Booting to the gui! Now when the pi is Booting, the screen is white and i get Output on hdmi.
            Original author: blackyE

            • #1084
              Re4son
              Keymaster

              I found the culprit:

              The latest kali image omits the file “/etc/kbd/config” causing the PITFT-Helper to exit prematurely when you run it.
              Easy to fix – just type:

              mkdir /etc/kbd
              cd /etc/kbd
              wget http://www.whitedome.com.au/download/config

              Then run the PITFT-Helper again.

              I’ve just done it a few times and it worked like a charm.
              Please let me know how you go.

              I’ve also updated the kernel package under http://www.whitedome.com.au/download/adafruit_pitft_kernel_1.20160323-Re4son-1.2.tar.gz
              to patch this problem during the install.

              Good luck,
              Re4son

              • #1085
                Re4son
                Keymaster

                Thank you very much, its Working now!
                I just want to change the speed of the tft in the boot file but i cant find it! Do you know where i can find the settings?

                Thx
                Original author: blackyE

                • #1086
                  Re4son
                  Keymaster

                  Hi blackyE,

                  I’m glad it works for you. You can find the settings in “/boot/config.txt”.
                  Don’t forget to mount /boot first via “mount /dev/mmcblk0p1 /boot”

                  Cheers,
                  Re4son

    • #1087
      Re4son
      Keymaster

      Thanks for this! One nitpick: You’re instructions need to be updated when installing the PiTFT to reflect the name change of the file you download.
      wget http://www.whitedome.com.au/download/adafruit_pitft_kernel_1.20160323-Re4son-1.2.tar.gz
      tar -xf adafruit_pitft_kernel_1.20160323-1.tar.gz
      cd adafruit_pitft_kernel_1.20160323-1

      Having not had enough coffee, it took me a couple of minutes to figure out why i couldn’t get it to work.
      Original author: Kenneth Woodham

    • #1088
      Re4son
      Keymaster

      Hi Kenneth,

      sorry for that. Maybe I should have had another coffee too before I did the last update 😉

      Thanks for letting me know. I’ve fixed it.

      Many thanks,
      Re4son

    • #1090
      Re4son
      Keymaster

      Hey Re4son,

      I recently purchased a Raspberry 3 and tft. I went through your instructions and was able to finish the “Install the PiTFT screen:” . After rebooting, the screen was on but now I cannot read or make out anything being displayed. I can still see that Kali is being loaded onto the screen and I am able to login but cannot do much else. My screen size is a 2.8. Do you have any suggestions on how I may be able to resolve this issue?
      Original author: aDude

      • #1091
        Re4son
        Keymaster

        Hi aDude,

        did you run the helper with the correct arguments for the 2.8″ screen?
        I believe it should be:

        ./adafruit-pitft-helper -t 28r -u /root

        Many thanks,
        Re4son

        • #1092
          Re4son
          Keymaster

          Hey Re4son,

          Thanks for the help, I got the tft up and running. Now I am trying to install the SDR Scanner and when I run the line “cmake ../ -DINSTALL_UDEV_RULES=ON -DDETACH_KERNEL_DRIVER=ON”, I get an error saying “CMake Error at CMakeLists.txt:69 (message): LibUSB 1.0 required to compile rtl-sdr”. I then installed libusb-1.0-0-dev but I am still getting the same error. Do you have any suggestions by chance?

          Thanks for the help
          Original author: aDude

          • #1093
            Re4son
            Keymaster

            Hi aDude,

            not sure what happened there, libusb-1.0-0 should get automatically installed when you install libusb-1.0-0-dev.
            Why don’t you install aptitude (sudo apt-get install aptitude) and search for libusb via “aptitude search libusb-1.0.0”. The output should be:
            i A libusb-1.0-0
            p libusb-1.0-0-dbg
            i libusb-1.0-0-dev

            “i” means it’s installed, “A” means it was installed automatically.
            If libusb-1.0-0 is not installed just run “sudo apt-get libusb-1.0-0”

            That should do the trick.
            Please let me know how you go,
            Re4son

    • #1047
      Re4son
      Keymaster

      This topic contains all the feedback from the blog post”

       

       

    • #1094
      Re4son
      Keymaster

      Hi, thanks for the image, I am slowly adapting it to the 2.8 PiTFT. I am at the stage of editing the menus / touch areas which is going OK, however I cannot get the SDR-Scanner to run. I quickly see an error ‘error code -1 when opening sdr’. Do you have any ideas ? I have a WL722N plugged in and working as wlan1.
      Original author: jpearn

      • #1095
        Re4son
        Keymaster

        Looks to be a voltage issue, changed the PSU and all good now 🙂
        Original author: jpearn

    • #1096
      Re4son
      Keymaster

      OK, working through the menus as they are resized, VNC starts as user root from the menu and hangs waiting to update a password. Running vncpasswd /root/.vnc/passwd sets the password up correctly, but the session is running with window manager as root.
      Original author: jpearn

    • #1097
      Re4son
      Keymaster

      Hi jpearn,

      good to hear that things are working out for you.
      You can start the VNC service as user pi by adjusting menu_kali-3.py:

      uncomment line 138 and comment out line 139
      uncomment line 142 and comment out line 143

      You want to start vncserver like this:
      run_cmd(“/usr/bin/sudo -u pi /usr/bin/vncserver :1″)

      Give that a try and let us know how you go.

      I would love to see your menus on the 2.8” in action. Would you mind sharing your results?

      Cheers,
      Re4son

      • #1103
        Re4son
        Keymaster

        Hi Rea4son, yep will sort out the pics for the weekend as I am busy this week. Thanks for the quick fix !
        Original author: jpearn

    • #1098
      Re4son
      Keymaster

      Hi.

      Great Tutorial but anyone proved with the version Kali 2.1.2?
      i haved error with libc-bin
      Original author: n0b0dy

    • #1099
      Re4son
      Keymaster

      Hi n0b0dy,

      I’ve just done a fresh install using 2.1.2 without any problems.
      What hardware are you using and when do you get the error?

      Cheers,
      Re4son
      Original author: Re4son

    • #1100
      Re4son
      Keymaster

      Hi Re4son

      Thank for your help!
      I did it like this.

      Hardware:
      Raspberry pi 3
      Touchsreen RB TFT3.2-V2
      SDcard 16gb

      Install Step By Step
      1-. dd if=kali-2.1.2-rpi2.img of=/dev/mmcblk0 bs=512k
      2-. apt-get update
      3-. mount /dev/mmcblk0p1 /boot
      4-. cd /usr/local/src
      5-. wgethttp://www.whitedome.com.au/download/adafruit_pitft_kernel_1.20160323-Re4son-1.2.tar.gz
      6-. tar -xf adafruit_pitft_kernel_1.20160323-Re4son-1.2.tar.gz
      7-. cd adafruit_pitft_kernel_1.20160323-Re4son-1.2
      8-. ./install.sh

      Ouput with error:

      Preparando para desempaquetar libraspberrypi0_1.20160323-1_armhf.deb …
      Desempaquetando libraspberrypi0 (1.20160323-1) …
      Configurando libraspberrypi0 (1.20160323-1) …
      Procesando disparadores para libc-bin (2.21-9) …
      Aborted
      /sbin/ldconfig.real: Path `/lib/arm-linux-gnueabihf’ given more than once
      /sbin/ldconfig.real: Path `/usr/lib/arm-linux-gnueabihf’ given more than once
      Aborted
      dpkg: error al procesar el paquete libc-bin (–install):
      el subproceso instalado el script post-installation devolvió el código de salida de error 134
      Se encontraron errores al procesar:
      libc-bin
      Error completing: dpkg
      Original author: n0b0dy

    • #1101
      Re4son
      Keymaster

      One more thing.

      I haved update the Package LIBC-BIN 2.21-9 to 2.22-6 and that also gives me error

      Thanks
      Original author: n0b0dy

      • #1102
        Re4son
        Keymaster

        Hi n0b0dy,

        I’m not quite sure what’s going on. I’ve imaged a card with 2.1.2, changed locals to spanish and followed all your steps a couple of times without any problems. This is what I get:

        Preparando para desempaquetar libraspberrypi0_1.20160323-1_armhf.deb ...
        Desempaquetando libraspberrypi0 (1.20160323-1) ...
        Configurando libraspberrypi0 (1.20160323-1) ...
        Seleccionando el paquete libraspberrypi-bin previamente no seleccionado.
        (Leyendo la base de datos ... 117809 ficheros o directorios instalados actualmente.)
        Preparando para desempaquetar libraspberrypi-bin_1.20160323-1_armhf.deb ...
        Desempaquetando libraspberrypi-bin (1.20160323-1) ...
        Seleccionando el paquete libraspberrypi-dev previamente no seleccionado.
        Preparando para desempaquetar libraspberrypi-dev_1.20160323-1_armhf.deb ...
        Desempaquetando libraspberrypi-dev (1.20160323-1) ...
        Seleccionando el paquete libraspberrypi-doc previamente no seleccionado.
        Preparando para desempaquetar libraspberrypi-doc_1.20160323-1_armhf.deb ...
        Desempaquetando libraspberrypi-doc (1.20160323-1) ...
        Configurando libraspberrypi-bin (1.20160323-1) ...
        Configurando libraspberrypi-dev (1.20160323-1) ...
        Configurando libraspberrypi-doc (1.20160323-1) ...
        **** Kernel install complete! ****

        **** Fixing unmet dependencies in Kali Linux ****

        **** Unmet dependencies in Kali Linux fixed ****
        **** Installing Raspberry Pi 3 WiFi drivers ****
        cp: ¿sobreescribir '/lib/firmware/brcm/brcmfmac43430-sdio.bin'? (s/n) cp: ¿sobreescribir '/lib/firmware/brcm/brcmfmac43430-sdio.txt'? (s/n)
        **** Driver install complete! ****

        **** Please send me an e-mail in case you encounter errors: re4son [at] whitedome.com.au
        Reboot to apply changes? (y/n):

        Is the screen already attached when you run it? If so I’d suggest to remove it for the installation and see how you go.
        You’ve probably done it but just in case you haven’t: step 2 should include “apt-get upgrade”, e.g. “apt-get update && apt-get upgrade”.

        Fingers crossed and please let us know how you go.

        Many thanks,
        Re4son

    • #1104
      Re4son
      Keymaster

      Hi Re4son

      Thank again
      Ok i haved problems with package LIBC-BIN 2.21-9 but the solutions is:

      1-. rm /var/lib/dpkg/info/libc-bin.*
      2-. apt-get install libc-bin

      I say this because someone may need it

      I´ll find the solutions and will comment
      Original author: n0b0dy

    • #1106
      Re4son
      Keymaster

      Ok

      I updated & upgraded the OS but still with problem LIBC-BIN version and it keeps going on like this:

      **** Kernel install complete! ****

      **** Fixing unmet dependencies in Kali Linux ****

      **** Unmet dependencies in Kali Linux fixed ****
      **** Installing Raspberry Pi 3 WiFi drivers ****
      cp: ¿sobreescribir ‘/lib/firmware/brcm/brcmfmac43430-sdio.bin’? (s/n) cp: ¿sobreescribir ‘/lib/firmware/brcm/brcmfmac43430-sdio.txt’? (s/n)
      **** Driver install complete! ****

      **** Please send me an e-mail in case you encounter errors: re4son [at] whitedome.com.au
      Reboot to apply changes? (y/n):

      But then i haved problem when to reboot the system with —-kbd (0x9374382) current— something like that.

      PS: When I updated and then upgraded the package, nothing works.

      Thanks
      Original author: n0b0dy

    • #1107
      Re4son
      Keymaster

      Do you have bluetooth working with this kernel? With the official adafruit one bluetooth is broken.
      Original author: ricosuave0922

      • #1111
        Re4son
        Keymaster

        Hi ricosuave0922,

        I must admit that I haven’t tried bluetooth yet but I’ve heard that there are problems with everything that is not stock standard Raspbian.

        I’ll investigate and keep you posted.

        Cheers,
        Re4son

    • #1108
      Re4son
      Keymaster

      Hi Re4son,

      I followed your instruction on my Rpi 3 with Allwin TFT 3.5 v3.0 LCD but after running:

      ./adafruit-pitft-helper -t 35r -u /root and then rebooting the Pi

      I get only a white screen on the PiTFT and on the HDMI the boot process gets stuck somewhere randomly.

      Thanks!
      Original author: Ledkeso

    • #1110
      Re4son
      Keymaster

      UPDATE:

      after deleting the line: “dtoverlay=pitft35r,rotate=90,speed=42000000,fps=20” in my config.txt

      I managed to boot into terminal mode. I think the dtoverlay line is causing the pi to freeze while booting.

      Unfortunately, the TFT LCD still has no display, only white screen. =(
      Original author: Ledkeso

    • #1112
      Re4son
      Keymaster

      Hi Ledkeso,

      The error seems hardware related.
      My kernel package is for the adafruit PiTFT:
      http://www.adafruit.com/products/2441

      It looks like you screen is not compatible with the adafruit drivers and overlays I used.

      Do you have a link to the specs for your model?
      I’ll investigate and see if I can make it work.

      Many thanks,
      Re4son

    • #1115
      Re4son
      Keymaster

      Hi Re4son,

      I bought mine here: http://www.lazada.com.ph/xcs-35-inch-display-for-raspberry-pi-bb-35-480×320-lcdtouch-screen-board-te328-sz-black-3169208.html

      It does not come with any cd in the packaging.

      Thank you very much
      Original author: Ledkeso

    • #1116
      Re4son
      Keymaster

      Hi Re4son

      Well i have good news

      I have a waveshare 32p v2 touchscreen and i installed drivers with this process
      http://joy-it.net/downloads/send/31-raspberry-zubehoer/88-anleitung-touch-display-3-2-v2
      Just work just in text mode
      Then i installed Adafruit PiTFT and now works fine

      Thanks

      Sorry my english is really bad xD
      Original author: n0b0dy

      • #1119
        Re4son
        Keymaster

        Hi n0b0dy,

        glad to hear that it’s working for you.
        Your English is perfect – no reason at all to apologize.

        Have fun with your display,
        Re4son

    • #1117
      Re4son
      Keymaster

      Dude…you rock. Your modified kernel took me from 3 beer frustration…to it working.

      Cheer mate,

      Average joe
      Original author:

      • #1118
        Re4son
        Keymaster

        Haha,

        lets have another beer or three to celebrate 🙂
        Glad it’s working for you.

        Cheers,
        Re4son

    • #1120
      Re4son
      Keymaster

      hi,
      ysterday reboot (new image) failed after step1of (Install the PiTFT screen:)
      so i installed again and with updating/upgrading i see that this image loads from kali-rolling/main instead of (as i expected) kali-rolling main non-free contrib , what was required tochange in sources.list to upgrade from kali 2.0 to kali rolling.
      could this cause any trouble?
      actually i should be able to reboot rpi3 before doing step2 of “Install the PiTFT screen:” chapter, cause evrything until then seemed to be right so far.
      i’m just upgrading the image now and will wait for any suggestion before the next steps.
      thank you bro, i like to learn this way!
      Original author: rtng

    • #1121
      Re4son
      Keymaster

      I have the same TFT LCD like this: https://www.raspberrypi.org/forums/viewtopic.php?f=45&t=136558

      Please help =(
      Original author: Ledkeso

      • #1124
        Re4son
        Keymaster

        hey i guess this was meant for you (it seems to be the same screen you mentioned):

        ” I’m sure your problems are caused by the tft display and is most probably an issue with drivers and/or overlays.
        Unfortunately I don’t have your model screen available for testing but these guys seem to have been successful in making it work:
        https://www.raspberrypi.org/forums/viewtopic.php?f=45&t=137149&hilit=+waveshare#p913157
        (Re4son)
        Original author: rtng

    • #1122
      Re4son
      Keymaster

      Hi rtng,

      you shouldn’t have to worry about the sources.list if your downloaded the latest kali image.
      A simple apt-get update && apt-get upgrade will get you the latest and greatest 🙂

      I’m sure your problems are caused by the tft display and is most probably an issue with drivers and/or overlays.
      Unfortunately I don’t have your model screen available for testing but these guys seem to have been successful in making it work:
      https://www.raspberrypi.org/forums/viewtopic.php?f=45&t=137149&hilit=+waveshare#p913157

      I’d try to install my kernel package, copy the waveshare overlays accross and play with the parameters in /boot/config.txt (don’t forget to mount /boot first)

      I’m sorry that I cannot be of more help but I’m kinda flying blind without hardware to test.

      If you get stuck trying these steps, just send me a dump of your dmesg and syslog and I can try to put the pieces together.

      Good luck,
      Re4son

      • #1123
        Re4son
        Keymaster

        hey,
        thanks for quick reply!
        o.k. then i will just try the next step again, probably something went wrong yesterday with loading the kernel, may it was because i didn’t enlarge & resize the image .
        if the image don’t fail to boot, i will put the screen on an try it running with your kernel. if the screen won’t work with thati’m going to figure it out with that link, you mentioned.
        i allready have a raspian image running with that screen on the rpi3 and loaded kali via katoolin. i took the steps to run the screen from this guide: http://www.joy-it.net/downloads/send/31-raspberry-zubehoer/88-anleitung-touch-display-3-2-v2 (sorry its german 😉 ) and tried that later with the new rp2/3i kali image but some config-files needed to be changed for the raspbian image were missing. to say this briefly, i’ll try to figure this out and if i could serve others with helpfull information i will write that here in the comments, if you would not mind.
        regards and thanks for beeing that helpful!
        Original author: rtng

    • #1348
      RFA
      Guest

      Re4son, phenomenal job on the write-up and work! Directions are very concise and easy to follow.

      Jpearn, great job on the 2.8″ menu’s for the pi custom launcher!

      I encountered a couple of issues I’d like to mention though. I have an RPi3 with an Adafruit 2.8″ Capacitive touchscreen.

      I found it best to create the SWAP file after step 3. So much quicker to create.

      I noticed in a lot of the postings people had an issue with step 3 of creating a low privilege user. I think they’re trying to run the line as a command rather than running “visudo” and pasting the line in.

      During the setup I ran this command:
      ./adafruit-pitft-helper -t 28c -u /root

      Everything ran fine, however after a reboot I had to edit config.txt and modify the following line to read capacitive or order to get the display to work.
      dtoverlay=pitft28-capacitive,rotate=90,speed=32000000,fps=20

      I also added the following line to config.txt but don’t really think it did anything.
      [pi3]
      device_tree=bcm2710-rpi-3-b.dtb

      This is where I’d like your advice because I have one issue remaining and that is that the touchscreen portion of my Adafruit PiTFT Plus 320×240 2.8″ TFT + Capacitive Touchscreen – PID: 2423 is not working.

      When logging in as user pi with autostart of the pi-launcher enabled I receive the following:
      traceback (most recent call last):
      File “/home/pi/pitftmenu/menu_kali-1.py”, line 11, in <module>
      pygame.display.init()
      pygame.error: Unable to open mouse

      So I took a look at the menu_kali-1.py file and saw this has something to do with the mouse setup, which is actually the touchscreen.
      os.environ[“SDL_MOUSEDEV”] = “/dev/input/touchscreen”

      I then took a look in /dev/input and did not see symbolic link created for touchscreen –> event2.

      It appears the whole touchscreen configuration was omitted from the setup process. If I manually “ln -s event2 /dev/input/touchscreen” and re-login as user pi I see the Kali-Pi Launcher on the screen but the touch functionality does not work. If I reboot the symbolic link I created disappears. All directory permissions are 755 so I’m not sure why the link I create disappears.

      I’m continuing to research but wondered if you had any ideas.

      Thanks again.

    • #1349
      RFA
      Guest

      I reinstalled your adafruit kernel and re-ran the adafruit helper again. This time success. Cap touch is working like a champ.

      Not sure what happened the first time. A couple of articles I read, based on what I saw in dmesg said the wrong PiTFT was installed. I also noticed the ft6x06_ts module wasn’t loading.

      Anyway, thanks again for all your work.

      • #1358
        Re4son
        Keymaster

        Hi RFA,

        Good to hear that it worked for you.
        Thanks for your kind words and the excellent comments above. I’ve included your tips in the post.

        Many thanks,
        Re4son

    • #1378
      Gaven
      Guest

      Re4son hello friend, having some issues.

      Purchased a brand new 32GB SDHC SANSDISK extreme. I’m fine till I get to the step where you input…

      apt-get install aptitude curl cmake build-essential mailutils python-dev python-pip libusb-1.0-0-dev python-numpy htop ftp locate kismet pure-ftpd tightvncserver

      this crashes near the end due to not enough free space. I’m very confused since this is a 32GB card and I should have plenty of space. Am I doing something wrong I don’t know about? Thanks.

    • #1380
      Re4son
      Guest

      Hi Gavin,

      You better confirm you really have enough space via “df -h”
      This happened to me so many times that this is the first command I issues after re-imaging 😉
      I’d fire off a “resize2fs /dev/mmcblk0p2”, just for good meassure 🙂

      Please let us know how you go.

      Many thanks,
      Re4son

    • #1432
      Joao Jesus
      Guest

      Hi! Amaizing job!! I just have one question,how can we calibrate the screen?

    • #1433
      Re4son
      Keymaster

      Hi Joao,

      thanks for the compliment. Much appreciated.
      You can download a text based calibration script for Adafruit screens here:

      http://whitedome.com.au/download/adafruit-pitft-touch-cal

      A graphical version, which is suitable for screens from any manufacturer is available here:

      http://whitedome.com.au/download/xinput-calibrator_0.7.5-1_armhf.deb

      I’ve included both tools in the tools directory of my kernel packages dated after 16-May.

      Hope that helps,
      Re4son

    • #1465
      Simone Capra
      Guest

      HI all!

      i am having troubles installing the system on a RPI 3 with a 3.5″ TFT from Kuman (which should be compatible with Waveshare).

      As i do everything that you suggest (i have done it three or four times now, just to be sure) i get a system that is fully working in gui mode (as i boot into kali in graphical mode the TFT works like a charm!). When i boot the python interface i get the error

      File “/home/pi/pitftmenu/menu_kali-1.py”, line 11, in <module>
      pygame.display.init()
      pygame.error: Unable to open mouse

      Like for RFA, i went to see if in the input directory there was the touchscreen file. As it was not there i pointed the menu item to /dev/input/event2 (in my installation event2 is the tft). The problem is that rebooting i get the interface, but when i touch the screen, the tft returns always the coordinates 479X319

      I have double checked and i’ve installed libsdl… 1.2debian:

      root@kali:~# dpkg -S sdl
      libsdl1.2debian:armhf: /usr/share/lintian/overrides/libsdl1.2debian
      libsdl-mixer1.2:armhf: /usr/share/doc/libsdl-mixer1.2/changelog.gz
      libsdl-mixer1.2:armhf: /usr/share/doc/libsdl-mixer1.2/changelog.Debian.gz
      libsdl-ttf2.0-0:armhf: /usr/share/doc/libsdl-ttf2.0-0/changelog.Debian.gz
      libsdl-mixer1.2:armhf: /usr/share/doc/libsdl-mixer1.2/copyright
      libsdl-ttf2.0-0:armhf: /usr/share/doc/libsdl-ttf2.0-0/copyright
      libsdl-ttf2.0-0:armhf: /usr/share/doc/libsdl-ttf2.0-0/changelog.gz
      linux-libc-dev:armhf: /usr/include/linux/sdla.h
      libsdl-image1.2:armhf: /usr/share/doc/libsdl-image1.2/copyright
      libpython2.7-dev:armhf: /usr/include/python2.7/asdl.h
      libsdl1.2debian:armhf: /usr/share/doc/libsdl1.2debian/README
      libsdl-mixer1.2:armhf: /usr/share/doc/libsdl-mixer1.2/README
      libsdl-ttf2.0-0:armhf: /usr/share/doc/libsdl-ttf2.0-0/README
      libsdl1.2debian:armhf: /usr/share/doc/libsdl1.2debian/BUGS
      libsdl1.2debian:armhf: /usr/share/doc/libsdl1.2debian
      libsdl-mixer1.2:armhf: /usr/share/doc/libsdl-mixer1.2
      libsdl-image1.2:armhf: /usr/share/doc/libsdl-image1.2/changelog.gz
      libsdl1.2debian:armhf: /usr/share/doc/libsdl1.2debian/CREDITS
      libsdl-ttf2.0-0:armhf: /usr/share/lintian/overrides/libsdl-ttf2.0-0
      libsdl1.2debian:armhf: /usr/share/doc/libsdl1.2debian/README-SDL.txt
      libsdl1.2debian:armhf: /usr/share/doc/libsdl1.2debian/copyright
      libsdl-image1.2:armhf: /usr/share/doc/libsdl-image1.2
      libsdl-ttf2.0-0:armhf: /usr/share/doc/libsdl-ttf2.0-0
      libsdl1.2debian:armhf: /usr/share/doc/libsdl1.2debian/changelog.Debian.gz
      libsdl-mixer1.2:armhf: /usr/share/lintian/overrides/libsdl-mixer1.2
      libsdl-image1.2:armhf: /usr/share/lintian/overrides/libsdl-image1.2
      libsdl-image1.2:armhf: /usr/share/doc/libsdl-image1.2/changelog.Debian.gz
      libsdl-image1.2:armhf: /usr/share/doc/libsdl-image1.2/README
      python-lxml: /usr/lib/python2.7/dist-packages/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_dsdl_include.xsl

      What could be?

    • #1466
      Re4son
      Keymaster

      Hi Simone,

      Not quite sure but my 3.5″ waveshare seems to have arrived at my local post office. I’ll pick it up tomorrow and test it out.
      Will post my results tomorrow.

      Cheers,
      Re4son

    • #1469
      Re4son
      Keymaster

      Hi Simone,

      my screen arrived and I’ve found the culprit: the SDL_MOUSEDEV is “/dev/input/event2” whereas it is “/dev/input/touchscreen” on the Adafruit ones.
      I have created a waveshare branch of the pitftmenu.

      Just do the following:

      cd /home/pi/pitftmenu
      git pull
      git checkout waveshare
      reboot

      That should do the trick. The “screen off” function doesn’t work – I’ll look into that over the weekend.

      Please let me know how you go.

      Have fun,
      Re4son

      • #10983
        Daniel
        Guest

        Hi there,

        I tried to use the menu using the waveshark branch as I also have the Kuman 3.5″ display.

        However I get this error upon launching:

        ioctl VT_GETSTATE: Inappropriate ioctl for device (not a linux console?)

        and therefore the touchscreen is also not working (although it works just fine in X and Xfce etc). I’m booting everything as root, so shouldn’t be a problem in terms of permissions.

        • #10984
          Re4son
          Keymaster

          Hi Daniel,

          Did you use the image or did you do the manual install?
          Have you done an “apt-get upgrade” or “apt-get dist-upgrade?
          I’ll try to reproduce it tonight when I get home.

          Many thanks,
          Re4son

          • #10987
            Re4son
            Keymaster

            Hi Daniel,

            have you tried using the type “kum35”?
            I’ve just tried my waveshare and it’s working fine but I remember having added the “kum35” option a while back with some special tweaks to get it to work.

            Could you please give that a try?

            Many thanks,
            Re4son

    • #1478
      Andreas
      Guest

      Hello Re4son,

      like Simone i’ve had a problem with my Waveshare 3.5 TFT.
      Your new brach solved the problem, but now my TFT doesn’t respond to any finger or pencil tap on the screen.

      Using X the touchscreen works normal.

      Any clue?

      Thank you for your great work so far!

    • #1479
      Re4son
      Keymaster

      Hi Andreas,

      Have you tried the Re4son TFT Setup tool version 1.1.2? I’ve updated the calibration (mine was off a bit out of the box) and fixed a bug in the config.txt setup.

      the new version is included in the latest kernel package and can also be cloned via git:

      “git clone https://github.com/Re4son/Re4son-Pi-TFT-Setup&#8221;

      I’ve tested that version with all my screens and the waveshare works like a charm.

      Have fun,
      Re4son

    • #1480
      Andreas
      Guest

      Hi Re4son,

      thank you very much for your quick response!

      I’ve tried version 1.1.2, but neither “/pi” nor “/root” as home directory gave a positive result.

      I think i’m doing something wrong.

    • #1481
      Re4son
      Keymaster

      Hi Andreas,

      if you can wait until tonight than I can upload my running waveshare image to the download area of this website.
      You can give that a try and compare the configuration of my image with yours to figure out what went wrong.

      Cheers,
      Re4son

    • #1482
      Andreas
      Guest

      Hi Re4son,

      that would be very helpful.

      Thank you in advance.

      Cheers,
      Andreas

    • #1483
      Re4son
      Keymaster

      Hi Andreas,

      there’s a bug in the setup of the waveshare screens for touch in terminal mode.
      I’ve never noticed it because I usually took one of my existing adafruit images and just ran the waveshare setup over the top.
      I’ll fix the bug over the weekend but for now you can get it to work by running:

      cd /usr/local/src/re4son_kali-pi-tft_kernel*
      sudo mount /dev/mmcblk0p1 /boot
      sudo ./re4son-pi-tft-setup -t 35r -u /root
      sudo ./re4son-pi-tft-setup -t wave35 -u /root
      sudo nano /boot/config.txt

      remove all sections from /boot/config.txt except one waveshare section.

      Good luck,
      Re4son

    • #1484
      Hyp3r10n
      Guest

      how i update kali to lastest version after lcd (waveshare 3.5) working ? i forgot update before install kernel 🙁 ?

    • #1485
      Andreas
      Guest

      Hi Re4son,

      i’ve tested your last post, but no positive effect.
      Still no touch function in Kali-Pi Launcher.
      Touch in X is working.

      I’ll wait until you’ve made your weekend changes. 😉

      Cheers,
      Andreas

    • #1486
      Re4son
      Keymaster

      Fixed. I’ve changed a few things and now we don’t even need the “waveshare” branch anymore.

      Just cut and paste the following into a terminal window running as root to update the setup tool:

      cd /usr/local/src/re4son_kali-pi-tft_kernel_*
      rm re4son-pi-tft-setup
      wget https://github.com/Re4son/Re4son-Pi-TFT-Setup/raw/master/re4son-pi-tft-setup
      chmod +x re4son-pi-tft-setup

      If you want to reset all changes made before, just run:

      mount /dev/mmcblk0p1 /boot
      rm /boot/config.txt
      rm /etc/X11/xorg.conf.d/99-fbdev.conf
      rm /etc/X11/xorg.conf.d/99-calibration.conf
      rm /etc/pointercal
      rm /dev/input/touchscreen

      Then set up the waveshare 3.5″ like this:

      ./re4son-pi-tft-setup -t wave35 -u /root

      It works like a charm now.

      Please let me know how you go.

      Cheers,
      Re4son

    • #1487
      Hyp3r10n
      Guest

      How do i update kali after install tft ?

    • #1488
      Re4son
      Keymaster

      sudo apt-get update && sudo apt-get upgrade

    • #1503
      Simone Capra
      Guest

      Confirmed,
      on my waveshare is working like a charm!
      TKSW
      S

    • #1510
      Andreas
      Guest

      Hi Re4son,

      unfortunately still no touch function.

      Because Simone’s installation is already running, i think i’ll do a clean sweep and try it from scratch.

      Maybe my TFT isn’t that kompatible to Waveshare 3.5 as it looks like?

      I bought this one:

      Waveshare? 3.5″ TFT

      But please: No stress, my Kali-Box is just a nice to have tool for me!

      Chears,
      Andreas

    • #1511
      Re4son
      Keymaster

      Hi Andreas,

      I’ve also got the Waveshare 3.5″ and it works with the new kernel and setup tool.

      Just give it another try with the 30/05 package and it should work.

      Cheers,
      Re4son

    • #1535
      666
      Guest

      thx so much for this awesome post, i just have another question , if my kali-pi using an external power bank , and shut down unexpectedly, then it will fail to boot .got me stuck at an error like this:

      Welcome to emergency mode! After logging in, type “journalctl -xb” to view
      system logs, “systemctl reboot” to reboot, “systemctl default” to try again
      to boot into default mode.
      Give root password for maintenance
      (or type Control-D to continue):

      how can i fix , i have tried press control d and using ctrl alt f2 to start another tty , but just a blank screen , i do not know how to fix it? any help will be appreciated

      • #1538
        Re4son
        Keymaster

        Hi 666,

        Insert the sd card into another linux box and run fsck over it.
        That’ll fix it.

        Good luck,
        Re4son

    • #1537
      Andreas
      Guest

      Hi Re4son,

      finally i’ve made it! 🙂

      I’ve still no idea why it doesn’t work in former tests, but now it’s like it should be.

      Thanks again for your great work and support!

      Cheers
      Andreas

      PS: The last open problem is Bluetooth/Keyboard with internal Rasperry Pi 3 resources, but i think this will probably be fixed by Kali in one of the next releases.

      • #1539
        Re4son
        Keymaster

        Hi Andreas,

        I’m glad it worked. Thanks for letting me know.
        I’ve been playing with Bluetooth for the last day and a half. Not quite sure what’s causing the problem – but it does not seem to be kernel or firmware related.

        Not sure how long it’ll take but I’m certain I can fix it.

        Many thanks,
        Re4son

    • #6464
      666
      Guest

      Hi, Re4son, thx for you reply

      now, i followed you instraution to install waveshare 3.5 tft . now the screen is like the below images show:
      tft
      tft2

      is my tft broken , why the tft refresh rate is 0 and i can not change , is it a hardware problem?

      • #8372
        Re4son
        Keymaster

        Hi 666,

        Have you just run fsck over your card or re-installed it after the power outage?

    • #8466
      666
      Guest

      Hi re4son, I have reinstalled it,first time I got my tft working as exact as yours, after reinstall several times , I just got the above pic, I think it’s hardware issue, just don’t know it is my pi-2 error or my tft error, when I change to the cli, it works fine, I mean on a terminal interface, when I gui it can boot but screen really blurry and refresh rate at 0, are you all guys’ tft running at 30hz or 60hz??

    • #10157
      Re4son
      Keymaster

      Hi 666,

      The display settings in xfce always shows 0Hz. That seems to be normal.

      What happens when you reduce the speed in your /boot/config.txt?
      Just remove “speed=32000000,fps=50,” from your overlay line and see how you go.

      Good luck,
      Re4son

    • #10396
      666
      Guest

      wow. thx so much ,it’s clear now, it works, thank you , thank you , you are so awesome

    • #10401
      Re4son
      Keymaster

      Glad it worked.

    • #10484
      Chrisnchips
      Guest

      Hey,
      I had to give up since I’ve been trying in vain to swap the XY axes but the /usr/share/X11/xorg.conf.d/99-calibration.conf seems to have no effect at all.
      I tried going through xrandr and xinput but it is impossible to find how I can modify the configuration of the touchscreen.
      Do you have any idea ?
      I use a raspberry Pi 3 with the PiTFT 3.5+ and Kali 2.1.2
      Thanks,

      Chris

    • #10485
      Re4son
      Keymaster

      Hi Chris,

      that’s weird. Looks like a mismatch between the overlay and the calibration.conf
      Which installation did you do? Image or the manual install?
      Why don’t you e-mail me your
      /boot/config.txt
      /boot/cmdline.txt
      /usr/share/X11/xorg.conf.d/99-calibration.conf
      /etc/pointercal
      to have a look at?
      My address is re4son whitedome.com.au

      Many thanks,
      Re4son

      • #10603
        cur1ous
        Guest

        Hey,
        Same problem here, I installed the image and everything looked perfectly fine but after one week the Pi rebooted with swap axes.
        Also “X on HDMI” is not working and simply boots x on the PiTFT.
        I would have sent you the files but there are none of them present in the suggested folders !!
        save me. 🙂

        • #10610
          Re4son
          Keymaster

          Hi cur1ous,

          That sounds like a corrupt filesystem. Do you have another linux machine to run fsck on?
          What sdcard are you using?

          Cheers,
          Re4son

    • #10486
      Chrisnchips
      Guest

      Hey,
      I used the original Kali 2.1.2 images from offensive security website.
      I immediately installed your kernel and everything went fine while following your tutorial but this axes swap.
      While trying to address this issue I had a freeze and had to unplug the raspberry and the SD card did not like it haha.
      Let me reinstall the whole system and if the problem is the same I will send you a mail with the files !
      Thanks for answering so quickly !

      Chris

    • #10580
      Blackrose
      Guest
    • #10583
      Re4son
      Keymaster

      Hi Blackrose,

      Fixed. Sorry for that and thanks for letting me know.
      The new links are:

      Kernel:
      https://whitedome.com.au/re4son/downloads/10452/

      Image:
      https://whitedome.com.au/re4son/download/sticky-fingers-kali-pi/

      Many thanks,
      Re4son

    • #10623
      StaphAureus
      Guest

      First off, awesome work!

      I am running into a strange issue. I want pi to boot x, however it always goes to HDMI. If I don’t specify user, it boots as root correctly, but this command, no matter the framebuffer goes to HDMI, any ideas?

      run_cmd("/usr/bin/sudo -u pi FRAMEBUFFER=/dev/fb1 startx")
      
    • #10624
      Re4son
      Keymaster

      StaphAureus,

      Thanks for your kind words. Much appreciated.
      I havee difficulties reproducing this error though.

      I’ve just done a new install using the complete image from this site. I’ve set up a waveshare 35″ screen, enabled boot to cli and autologon as user pi, and changed /home/pi/pitftmenu/menu_kali-1.py to start X as user pi:

      run_cmd(“/usr/bin/sudo -u pi FRAMEBUFFER=/dev/fb1 startx”)
      ## run_cmd(“/usr/bin/sudo FRAMEBUFFER=/dev/fb1 startx”)

      Reboot, press “X on TFT” and voila – X popped up on the TFT screen.

      Did you follow these steps or did you do something different?
      What display are you using?

      Many thanks,
      Re4son

      • #10625
        StaphAureus
        Guest

        I have an adafruit 2.8 cap screen. I don’t have auto logon turned on, I will try that, but as for all the steps I did them step by step.

        • #10626
          StaphAureus
          Guest

          Auto-logon didn’t change the behavior, I will reinstall and do it again and see what happens.

      • #10627
        StaphAureus
        Guest

        Did a full reimagined and I have the same results, strange I think that I am the only one…

    • #10727
      Xylose
      Guest

      Hey there, re4son! Thanks for putting up such a great tutorial! I tried to follow your general guide but must have missed some steps somewhere, because after boot up and login the kali-pi-menu wont show up. I guess this must have something to do with unsuccessful installation of pygame, as the manual start of freqshow quits with “Error code -1 when opening SDR”…

      Anyway I tried to download your pre-made image – but the file must be corrupted somehow, as the download wont go above ~900 MB… Can you supply me with another mirror of your image? That would be great. kind regards

    • #10729
      Re4son
      Keymaster

      Hi Xylose,

      I refreshed the image around the same time you downloaded it and might have caused your problems. Sorry for that.

      You can try downloading it again. I’ve just tried and it works like a charm.
      Let me know if you have any problems and we can find alternatives.

      Many thanks,
      Re4son

    • #10769
      vetsin
      Guest

      This should work on a Waveshare 4″ too, right? I’m still on the fence whether to get the 3.5″ or the 4″ 😀

    • #10770
      Re4son
      Keymaster

      Hi Vetsin,

      should work nicely but I have not had a chance to fully test the calibration.
      Let me know if you have a problem and we can sort it out.

      Have fun,
      Re4son

    • #10775
      vetsin
      Guest

      Touchscreen works but I’m having a problem with calibrating the 4″. I used xinput-calibrator and this is the output:

      Section “InputClass”
      Identifier “calibration”
      MatchProduct “ADS7846 Touchscreen”
      Option “MinX” “21913”
      Option “MaxX” “21913”
      Option “MinY” “48725”
      Option “MinX” “48861”
      Option “SwapXY” “1”
      Option “InvertX” “0”
      Option “InvertY” “0”
      EndSection

      But according to http://www.waveshare.com/wiki/4inch_RPi_LCD_(A)#Touch_screen_calibration, output should be something like:

      Doing dynamic recalibration:
      Setting new calibration data: 3919, 208, 236, 3913

    • #10778
      vetsin
      Guest

      Got it calibrated a while ago. I was using the pre-installed image when I encountered the problem above ^. Did the manual install earlier today and everything’s fine now (I hope). Now to install other stuff 😀

    • #10779
      Re4son
      Keymaster

      Awesome news, thanks for letting us know.
      Good luck with the rest.

      Many thanks,
      Re4son

    • #10912
      seaprimate
      Guest

      Hello.

      I’m using a Raspberry Pi 3. I’ve followed all the steps up to running the Re4son Universal Pi-TFT Setup tool. After I reboot, the boot gets hung up at “starting authenticate and authorize users to run privileged tasks” Any suggestions?

    • #10913
      Re4son
      Keymaster

      Hi Seaprimate,

      I haven’t come across that one before but I haven’t run any Kali updates in weeks. Doing it right now to see if I can replicate the problem.

      Did it boot successfully before you ran the setup tool?

      Many thanks,
      Re4son

    • #11781
      kaliji
      Participant

      I’m using this same configuration :
      https://learn.adafruit.com/adafruit-dpi-display-kippah-ttl-tft/installation
      I followed all the steps on your tutorial and tried all the different screen using the command :./re4son-pi-tft-setup -t ** -d /root ,none of them work.
      I’m struggling for days trying anything that I can found .
      Can you please provide me with any suggestions

    • #11783
      Re4son
      Keymaster

      Hi kaliji,

      You can’t use the installer for that screen yet. Just remove the current config with:

      ./re4son-pi-tft-setup -r -d /root

      and install adafruits device blog manually.
      Just follow your link and jump straight to “Install Device Tree Blob”

      Follow those few steps and you should be up and running in no time.

      Please let me know how you go,
      Re4son

    • #11785
      kaliji
      Participant

      I just did it it’s still not working .

    • #11786
      Re4son
      Keymaster

      Odd, have you tried their instructions with Raspbian? That’ll help us to zoom in on the OS or kernel

    • #11787
      kaliji
      Participant

      I did their instruction with Raspbian ,it works perfectly .But nothing with Kali.

    • #11790
      Re4son
      Keymaster

      Did you mount /boot before downloading the blob?

      • #11791
        kaliji
        Participant

        I just tried it now ,did mount /boot then followed the Install Device Tree Blob section ,rebooted and still the same .

        root@kali:~# sudo bash
        root@kali:~# mount /boot
        root@kali:~# cd ~
        root@kali:~# wget https://raw.githubusercontent.com/adafruit/Adafruit-DPI-Kippah/master/dt-blob.bin
        –2017-06-30 19:52:08– https://raw.githubusercontent.com/adafruit/Adafruit-DPI-Kippah/master/dt-blob.bin
        Resolving raw.githubusercontent.com (raw.githubusercontent.com)… 151.101.0.133, 151.101.64.133, 151.101.128.133, …
        Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.0.133|:443… connected.
        HTTP request sent, awaiting response… 200 OK
        Length: 52314 (51K) [application/octet-stream]
        Saving to: ‘dt-blob.bin.4’

        dt-blob.bin.4 100%[===================>] 51.09K 307KB/s in 0.2s

        2017-06-30 19:52:08 (307 KB/s) – ‘dt-blob.bin.4’ saved [52314/52314]

        root@kali:~# sudo cp dt-blob.bin /boot/

        Then I copied the code to the config.txt file

    • #11792
      Re4son
      Keymaster

      Just for completeness: Can you try this:

      mount /boot
      cd ~
      cp -f dt-blob.bin.4 /boot/dt-blob.bin

      Shouldn’t make a difference but I want to make sure.

      I’ll dig into that blob and try to find out if there are any dependencies on other packets, drivers or tweaks that are missing in kali.
      To help me our, could you please send me the output of “dmesg” and a copy of you /boot/config.txt?

      Many thanks,
      Re4son

      • #11793
        kaliji
        Participant

        Thank you very much for your attention and reactivity ,i really appreciate it.
        I followed the instruction same issue after reboot.
        Do you think it has to do with raspi-gpio , i was able to install the package but unable to run this command :sudo raspi-gpio get.
        I used this tuto :http://www.raspberrypi-spy.co.uk/2012/05/install-rpi-gpio-python-library/

        Config.txt:
        # Disable spi and i2c, we need these pins.
        dtparam=spi=off
        dtparam=i2c_arm=off

        # Set screen size and any overscan required
        overscan_left=0
        overscan_right=0
        overscan_top=0
        overscan_bottom=0
        framebuffer_width=800
        framebuffer_height=480

        # enable the DPI display
        enable_dpi_lcd=1
        display_default_lcd=1

        # set up the size to 800×480
        dpi_group=2
        dpi_mode=87

        # set up the hsync/vsync/clock polarity and format
        dpi_output_format=454661

        # set up the size to 800×480
        hdmi_timings=800 0 40 48 88 480 0 13 3 32 0 0 0 60 0 32000000 6

        *************************************************************************

        dmesg output :
        root@kali:~# dmesg
        [ 0.000000] Booting Linux on physical CPU 0x0
        [ 0.000000] Initializing cgroup subsys cpuset
        [ 0.000000] Initializing cgroup subsys cpu
        [ 0.000000] Initializing cgroup subsys cpuacct
        [ 0.000000] Linux version 4.4.50-Re4son-v7+ (root@re4son-kali-pi) (gcc version 4.8.3 20140106 (prerelease) (crosstool-NG linaro-1.13.1-4.8-2014.01 – Linaro GCC 2013.11) ) #11 SMP Sun Jun 25 14:51:54 AEST 2017
        [ 0.000000] CPU: ARMv7 Processor [410fd034] revision 4 (ARMv7), cr=10c5383d
        [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
        [ 0.000000] Machine model: Raspberry Pi 3 Model B Rev 1.2
        [ 0.000000] cma: Reserved 8 MiB at 0x3a800000
        [ 0.000000] Memory policy: Data cache writealloc
        [ 0.000000] On node 0 totalpages: 241664
        [ 0.000000] free_area_init_node: node 0, pgdat 808c9900, node_mem_map b9fa6000
        [ 0.000000] Normal zone: 2124 pages used for memmap
        [ 0.000000] Normal zone: 0 pages reserved
        [ 0.000000] Normal zone: 241664 pages, LIFO batch:31
        [ 0.000000] [bcm2709_smp_init_cpus] enter (9520->f3003010)
        [ 0.000000] [bcm2709_smp_init_cpus] ncores=4
        [ 0.000000] PERCPU: Embedded 13 pages/cpu @b9f62000 s22592 r8192 d22464 u53248
        [ 0.000000] pcpu-alloc: s22592 r8192 d22464 u53248 alloc=13*4096
        [ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
        [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 239540
        [ 0.000000] Kernel command line: 8250.nr_uarts=0 bcm2708_fb.fbwidth=800 bcm2708_fb.fbheight=480 bcm2708_fb.fbswap=1 dma.dmachans=0x7f35 bcm2709.boardrev=0xa22082 bcm2709.serial=0x689ee739 bcm2709.uart_clock=48000000 smsc95xx.macaddr=B8:27:EB:9E:E7:39 vc_mem.mem_base=0x3dc00000 vc_mem.mem_size=0x3f000000 dwc_otg.fiq_fix_enable=2 console=ttyS0,115200 kgdboc=ttyS0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait rootflags=noload net.ifnames=0
        [ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
        [ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
        [ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
        [ 0.000000] Memory: 939044K/966656K available (6356K kernel code, 435K rwdata, 1728K rodata, 480K init, 771K bss, 19420K reserved, 8192K cma-reserved)
        [ 0.000000] Virtual kernel memory layout:
        vector : 0xffff0000 – 0xffff1000 ( 4 kB)
        fixmap : 0xffc00000 – 0xfff00000 (3072 kB)
        vmalloc : 0xbb800000 – 0xff800000 (1088 MB)
        lowmem : 0x80000000 – 0xbb000000 ( 944 MB)
        modules : 0x7f000000 – 0x80000000 ( 16 MB)
        .text : 0x80008000 – 0x807ed62c (8086 kB)
        .init : 0x807ee000 – 0x80866000 ( 480 kB)
        .data : 0x80866000 – 0x808d2c40 ( 436 kB)
        .bss : 0x808d5000 – 0x80995dec ( 772 kB)
        [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
        [ 0.000000] Hierarchical RCU implementation.
        [ 0.000000] Build-time adjustment of leaf fanout to 32.
        [ 0.000000] NR_IRQS:16 nr_irqs:16 16
        [ 0.000000] Architected cp15 timer(s) running at 19.20MHz (phys).
        [ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x46d987e47, max_idle_ns: 440795202767 ns
        [ 0.000007] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 4398046511078ns
        [ 0.000025] Switching to timer-based delay loop, resolution 52ns
        [ 0.000278] Console: colour dummy device 80×30
        [ 0.001355] console [tty1] enabled
        [ 0.001402] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=192000)
        [ 0.001471] pid_max: default: 32768 minimum: 301
        [ 0.001791] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
        [ 0.001835] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
        [ 0.002796] Disabling cpuset control group subsystem
        [ 0.002855] Initializing cgroup subsys io
        [ 0.002907] Initializing cgroup subsys memory
        [ 0.002971] Initializing cgroup subsys devices
        [ 0.003015] Initializing cgroup subsys freezer
        [ 0.003058] Initializing cgroup subsys net_cls
        [ 0.003127] CPU: Testing write buffer coherency: ok
        [ 0.003209] ftrace: allocating 21428 entries in 63 pages
        [ 0.053609] CPU0: update cpu_capacity 1024
        [ 0.053673] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
        [ 0.053706] [bcm2709_smp_prepare_cpus] enter
        [ 0.053848] Setting up static identity map for 0x8240 – 0x8274
        [ 0.055561] [bcm2709_boot_secondary] cpu:1 started (0) 17
        [ 0.055749] [bcm2709_secondary_init] enter cpu:1
        [ 0.055793] CPU1: update cpu_capacity 1024
        [ 0.055799] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
        [ 0.056194] [bcm2709_boot_secondary] cpu:2 started (0) 16
        [ 0.056358] [bcm2709_secondary_init] enter cpu:2
        [ 0.056381] CPU2: update cpu_capacity 1024
        [ 0.056387] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
        [ 0.056765] [bcm2709_boot_secondary] cpu:3 started (0) 17
        [ 0.056896] [bcm2709_secondary_init] enter cpu:3
        [ 0.056917] CPU3: update cpu_capacity 1024
        [ 0.056923] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
        [ 0.056985] Brought up 4 CPUs
        [ 0.057084] SMP: Total of 4 processors activated (153.60 BogoMIPS).
        [ 0.057113] CPU: All CPU(s) started in HYP mode.
        [ 0.057139] CPU: Virtualization extensions available.
        [ 0.057787] devtmpfs: initialized
        [ 0.068995] VFP support v0.3: implementor 41 architecture 3 part 40 variant 3 rev 4
        [ 0.069373] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
        [ 0.070113] pinctrl core: initialized pinctrl subsystem
        [ 0.070693] NET: Registered protocol family 16
        [ 0.075875] DMA: preallocated 4096 KiB pool for atomic coherent allocations
        [ 0.082746] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
        [ 0.082795] hw-breakpoint: maximum watchpoint size is 8 bytes.
        [ 0.082973] Serial: AMBA PL011 UART driver
        [ 0.083153] uart-pl011 3f201000.uart: could not find pctldev for node /soc/gpio@7e200000/uart0_pins, deferring probe
        [ 0.083359] bcm2835-mbox 3f00b880.mailbox: mailbox enabled
        [ 0.155734] bcm2835-dma 3f007000.dma: DMA legacy API manager at f3007000, dmachans=0x1
        [ 0.156357] SCSI subsystem initialized
        [ 0.156558] usbcore: registered new interface driver usbfs
        [ 0.156669] usbcore: registered new interface driver hub
        [ 0.156788] usbcore: registered new device driver usb
        [ 0.163165] raspberrypi-firmware soc:firmware: Attached to firmware from 2017-04-05 11:49
        [ 0.190398] clocksource: Switched to clocksource arch_sys_counter
        [ 0.233602] FS-Cache: Loaded
        [ 0.233909] CacheFiles: Loaded
        [ 0.246382] NET: Registered protocol family 2
        [ 0.247291] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
        [ 0.247429] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
        [ 0.247640] TCP: Hash tables configured (established 8192 bind 8192)
        [ 0.247754] UDP hash table entries: 512 (order: 2, 16384 bytes)
        [ 0.247823] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
        [ 0.248081] NET: Registered protocol family 1
        [ 0.248437] RPC: Registered named UNIX socket transport module.
        [ 0.248469] RPC: Registered udp transport module.
        [ 0.248497] RPC: Registered tcp transport module.
        [ 0.248524] RPC: Registered tcp NFSv4.1 backchannel transport module.
        [ 0.249565] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 7 counters available
        [ 0.251041] futex hash table entries: 1024 (order: 4, 65536 bytes)
        [ 0.264525] VFS: Disk quotas dquot_6.6.0
        [ 0.264859] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
        [ 0.267174] FS-Cache: Netfs ‘nfs’ registered for caching
        [ 0.268104] NFS: Registering the id_resolver key type
        [ 0.268173] Key type id_resolver registered
        [ 0.268201] Key type id_legacy registered
        [ 0.273639] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
        [ 0.273814] io scheduler noop registered
        [ 0.273852] io scheduler deadline registered
        [ 0.273937] io scheduler cfq registered (default)
        [ 0.276577] BCM2708FB: allocated DMA memory fac10000
        [ 0.276625] BCM2708FB: allocated DMA channel 0 @ f3007000
        [ 0.288308] Console: switching to colour frame buffer device 100×30
        [ 0.298901] bcm2835-rng 3f104000.rng: hwrng registered
        [ 0.301785] vc-cma: Videocore CMA driver
        [ 0.304503] vc-cma: vc_cma_base = 0x00000000
        [ 0.307182] vc-cma: vc_cma_size = 0x00000000 (0 MiB)
        [ 0.309820] vc-cma: vc_cma_initial = 0x00000000 (0 MiB)
        [ 0.312625] vc-mem: phys_addr:0x00000000 mem_base=0x3dc00000 mem_size:0x3f000000(1008 MiB)
        [ 0.330523] brd: module loaded
        [ 0.342010] loop: module loaded
        [ 0.345634] vchiq: vchiq_init_state: slot_zero = 0xbac80000, is_master = 0
        [ 0.349814] Loading iSCSI transport class v2.0-870.
        [ 0.353264] usbcore: registered new interface driver smsc95xx
        [ 0.356011] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
        [ 0.559013] Core Release: 2.80a
        [ 0.561646] Setting default values for core params
        [ 0.564306] Finished setting default values for core params
        [ 0.767343] Using Buffer DMA mode
        [ 0.770018] Periodic Transfer Interrupt Enhancement – disabled
        [ 0.772739] Multiprocessor Interrupt Enhancement – disabled
        [ 0.775395] OTG VER PARAM: 0, OTG VER FLAG: 0
        [ 0.778047] Dedicated Tx FIFOs mode
        [ 0.781040] WARN::dwc_otg_hcd_init:1047: FIQ DMA bounce buffers: virt = 0xbac04000 dma = 0xfac04000 len=9024
        [ 0.786780] FIQ FSM acceleration enabled for :
        Non-periodic Split Transactions
        Periodic Split Transactions
        High-Speed Isochronous Endpoints
        Interrupt/Control Split Transaction hack enabled
        [ 0.801088] dwc_otg: Microframe scheduler enabled
        [ 0.801140] WARN::hcd_init_fiq:415: FIQ on core 1 at 0x8044a868
        [ 0.804110] WARN::hcd_init_fiq:416: FIQ ASM at 0x8044abc4 length 36
        [ 0.807125] WARN::hcd_init_fiq:441: MPHI regs_base at 0xbb87e000
        [ 0.810098] dwc_otg 3f980000.usb: DWC OTG Controller
        [ 0.812999] dwc_otg 3f980000.usb: new USB bus registered, assigned bus number 1
        [ 0.815974] dwc_otg 3f980000.usb: irq 62, io mem 0x00000000
        [ 0.818886] Init: Port Power? op_state=1
        [ 0.821705] Init: Power Port (0)
        [ 0.824627] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
        [ 0.827479] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
        [ 0.830322] usb usb1: Product: DWC OTG Controller
        [ 0.833159] usb usb1: Manufacturer: Linux 4.4.50-Re4son-v7+ dwc_otg_hcd
        [ 0.836031] usb usb1: SerialNumber: 3f980000.usb
        [ 0.839656] hub 1-0:1.0: USB hub found
        [ 0.842478] hub 1-0:1.0: 1 port detected
        [ 0.845833] dwc_otg: FIQ enabled
        [ 0.845842] dwc_otg: NAK holdoff enabled
        [ 0.845850] dwc_otg: FIQ split-transaction FSM enabled
        [ 0.845881] Module dwc_common_port init
        [ 0.846132] usbcore: registered new interface driver usb-storage
        [ 0.849146] mousedev: PS/2 mouse device common for all mice
        [ 0.852668] bcm2835-cpufreq: min=600000 max=1200000
        [ 0.855654] sdhci: Secure Digital Host Controller Interface driver
        [ 0.858307] sdhci: Copyright(c) Pierre Ossman
        [ 0.861243] sdhost: log_buf @ bac07000 (fac07000)
        [ 0.920428] mmc0: sdhost-bcm2835 loaded – DMA enabled (>1)
        [ 0.925386] mmc-bcm2835 3f300000.mmc: mmc_debug:0 mmc_debug2:0
        [ 0.928140] mmc-bcm2835 3f300000.mmc: DMA channel allocated
        [ 0.980510] sdhci-pltfm: SDHCI platform and OF driver helper
        [ 0.983621] ledtrig-cpu: registered to indicate activity on CPUs
        [ 0.986482] hidraw: raw HID events driver (C) Jiri Kosina
        [ 0.989432] usbcore: registered new interface driver usbhid
        [ 0.992215] usbhid: USB HID core driver
        [ 0.995501] Initializing XFRM netlink socket
        [ 0.998242] NET: Registered protocol family 17
        [ 1.001086] Key type dns_resolver registered
        [ 1.004322] Registering SWP/SWPB emulation handler
        [ 1.007805] registered taskstats version 1
        [ 1.011861] Key type encrypted registered
        [ 1.014551] vc-sm: Videocore shared memory driver
        [ 1.017137] [vc_sm_connected_init]: start
        [ 1.018737] mmc0: host does not support reading read-only switch, assuming write-enable
        [ 1.021837] mmc0: new high speed SDHC card at address aaaa
        [ 1.022510] mmcblk0: mmc0:aaaa SS08G 7.40 GiB
        [ 1.026165] mmcblk0: p1 p2
        [ 1.032590] [vc_sm_connected_init]: end – returning 0
        [ 1.036568] 3f201000.uart: ttyAMA0 at MMIO 0x3f201000 (irq = 87, base_baud = 0) is a PL011 rev2
        [ 1.039775] of_cfs_init
        [ 1.042630] of_cfs_init: OK
        [ 1.044161] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
        [ 1.045709] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
        [ 1.047253] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
        [ 1.050030] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
        [ 1.055946] Indeed it is in host mode hprt0 = 00021501
        [ 1.066242] EXT4-fs (mmcblk0p2): mounted filesystem without journal. Opts: noload
        [ 1.068900] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
        [ 1.074065] devtmpfs: mounted
        [ 1.077275] Freeing unused kernel memory: 480K (807ee000 – 80866000)
        [ 1.143762] mmc1: new high speed SDIO card at address 0001
        [ 1.230445] usb 1-1: new high-speed USB device number 2 using dwc_otg
        [ 1.233389] Indeed it is in host mode hprt0 = 00001101
        [ 1.382742] systemd[1]: System time before build time, advancing clock.
        [ 1.430712] usb 1-1: New USB device found, idVendor=0424, idProduct=9514
        [ 1.433694] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
        [ 1.437440] hub 1-1:1.0: USB hub found
        [ 1.440500] hub 1-1:1.0: 5 ports detected
        [ 1.494555] NET: Registered protocol family 10
        [ 1.515360] random: systemd: uninitialized urandom read (16 bytes read, 52 bits of entropy available)
        [ 1.526383] systemd[1]: systemd 229 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN)
        [ 1.536438] systemd[1]: Detected architecture arm.
        [ 1.559265] systemd[1]: Set hostname to <kali>.
        [ 1.632900] random: systemd: uninitialized urandom read (16 bytes read, 64 bits of entropy available)
        [ 1.647511] random: systemd-gpt-aut: uninitialized urandom read (16 bytes read, 66 bits of entropy available)
        [ 1.655752] random: systemd-gpt-aut: uninitialized urandom read (16 bytes read, 67 bits of entropy available)
        [ 1.668584] random: systemd-cryptse: uninitialized urandom read (16 bytes read, 68 bits of entropy available)
        [ 1.671943] random: systemd-sysv-ge: uninitialized urandom read (16 bytes read, 68 bits of entropy available)
        [ 1.740467] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
        [ 1.838783] random: systemd-sysv-ge: uninitialized urandom read (16 bytes read, 69 bits of entropy available)
        [ 1.847755] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
        [ 1.852264] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
        [ 1.859628] smsc95xx v1.0.4
        [ 1.872294] random: systemd: uninitialized urandom read (16 bytes read, 71 bits of entropy available)
        [ 1.881280] random: systemd: uninitialized urandom read (16 bytes read, 71 bits of entropy available)
        [ 1.891071] random: systemd: uninitialized urandom read (16 bytes read, 71 bits of entropy available)
        [ 1.924264] smsc95xx 1-1.1:1.0 eth0: register ‘smsc95xx’ at usb-3f980000.usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:9e:e7:39
        [ 2.067544] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
        [ 2.078105] systemd[1]: Listening on udev Kernel Socket.
        [ 2.087989] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
        [ 2.098241] systemd[1]: Created slice System Slice.
        [ 2.107536] systemd[1]: Reached target Encrypted Volumes.
        [ 2.116843] systemd[1]: Created slice User and Session Slice.
        [ 2.125740] systemd[1]: Listening on fsck to fsckd communication Socket.
        [ 2.134435] systemd[1]: Reached target Remote File Systems (Pre).
        [ 2.143170] systemd[1]: Reached target Swap.
        [ 2.151657] systemd[1]: Listening on Journal Socket (/dev/log).
        [ 2.159918] systemd[1]: Listening on Journal Socket.
        [ 2.190673] systemd[1]: Mounting POSIX Message Queue File System…
        [ 2.214835] systemd[1]: Starting Load Kernel Modules…
        [ 2.226603] systemd[1]: Mounting Debug File System…
        [ 2.238261] systemd[1]: Starting Create list of required static device nodes for the current kernel…
        [ 2.258947] systemd[1]: Listening on Syslog Socket.
        [ 2.269213] systemd[1]: Starting Journal Service…
        [ 2.280210] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
        [ 2.288257] systemd[1]: Reached target Paths.
        [ 2.296222] systemd[1]: Listening on udev Control Socket.
        [ 2.304118] systemd[1]: Reached target Slices.
        [ 2.312729] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
        [ 2.329401] systemd[1]: Reached target Remote File Systems.
        [ 2.340272] systemd[1]: Starting File System Check on Root Device…
        [ 2.349697] systemd[1]: Created slice system-getty.slice.
        [ 2.366004] systemd[1]: Mounted Debug File System.
        [ 2.374789] systemd[1]: Mounted POSIX Message Queue File System.
        [ 2.384662] systemd[1]: Started Load Kernel Modules.
        [ 2.398120] systemd[1]: Started Create list of required static device nodes for the current kernel.
        [ 2.410761] systemd[1]: Started Journal Service.
        [ 2.761907] EXT4-fs (mmcblk0p2): re-mounted. Opts: errors=remount-ro
        [ 3.259102] systemd-journald[139]: Received request to flush runtime journal from PID 1
        [ 3.583828] gpiomem-bcm2835 3f200000.gpiomem: Initialised: Registers at 0x3f200000
        [ 3.593947] bcm2835-wdt 3f100000.watchdog: Broadcom BCM2835 watchdog timer
        [ 3.927813] usbcore: registered new interface driver brcmfmac
        [ 4.112219] brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Dec 15 2015 18:10:45 version 7.45.41.23 (r606571) FWID 01-cc4eda9c
        [ 4.142220] brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166 code
        [ 4.155265] brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166 code
        [ 4.158417] cfg80211: World regulatory domain updated:
        [ 4.161425] cfg80211: DFS Master region: unset
        [ 4.161563] cfg80211: (start_freq – end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
        [ 4.170176] cfg80211: (2402000 KHz – 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
        [ 4.173364] cfg80211: (2457000 KHz – 2482000 KHz @ 20000 KHz, 92000 KHz AUTO), (N/A, 2000 mBm), (N/A)
        [ 4.179579] cfg80211: (2474000 KHz – 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
        [ 4.182872] cfg80211: (5170000 KHz – 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
        [ 4.189109] cfg80211: (5250000 KHz – 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
        [ 4.195731] cfg80211: (5490000 KHz – 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
        [ 4.199324] cfg80211: (5735000 KHz – 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
        [ 4.202929] cfg80211: (57240000 KHz – 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
        [ 25.723801] random: nonblocking pool is initialized
        [ 26.241668] uart-pl011 3f201000.uart: no DMA platform data
        [ 27.342941] smsc95xx 1-1.1:1.0 eth0: hardware isn’t capable of remote wakeup
        [ 27.346358] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
        [ 28.040766] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
        [ 28.080721] brcmfmac: brcmf_add_if: ERROR: netdev:wlan0 already exists
        [ 28.080751] brcmfmac: brcmf_add_if: ignore IF event
        [ 28.086392] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
        [ 28.086443] brcmfmac: power management disabled
        [ 29.067327] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1
        [ 29.078229] brcmfmac: brcmf_add_if: ERROR: netdev:wlan0 already exists
        [ 29.078250] brcmfmac: brcmf_add_if: ignore IF event
        [ 29.081604] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
        [ 29.132031] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
        [ 31.106085] Bluetooth: Core ver 2.21
        [ 31.106186] NET: Registered protocol family 31
        [ 31.106198] Bluetooth: HCI device and connection manager initialized
        [ 31.106222] Bluetooth: HCI socket layer initialized
        [ 31.106241] Bluetooth: L2CAP socket layer initialized
        [ 31.106277] Bluetooth: SCO socket layer initialized
        [ 31.120985] Bluetooth: HCI UART driver ver 2.3
        [ 31.121011] Bluetooth: HCI UART protocol H4 registered
        [ 31.121021] Bluetooth: HCI UART protocol Three-wire (H5) registered
        [ 31.121208] Bluetooth: HCI UART protocol BCM registered
        [ 31.293679] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
        [ 31.293701] Bluetooth: BNEP filters: protocol multicast
        [ 31.293724] Bluetooth: BNEP socket layer initialized
        [ 31.436231] fuse init (API version 7.23)

    • #11862
      blackk.s
      Participant

      Hi re4son,

      I am in need of assistance with this build.

      Problem #1:
      In an earlier comment on here, Stigh had mentioned that he ran into a error during the “create low privilege user” section.
      Your solution was:

      About the “low priv user”:

      Not too sure what could have failed. Maybe one of the groups we created earlier is missing.

      The problem I ran into during this, is that your tutorial has nothing on setting up the kismet group (so it’s definitely missing), therefore shows an error when you run the command to add the groups to user.

      I could just do “addgroup kismet” and drop it in, but idk what’s supposed to be in it.

      Problem #2:

      Under “Install Applications” section,
      “apt-get install mysql-server” returns an error. Upon Google searching, I found that this error doesn’t matter bcuz mysql is installed and configured by default on Kali. Is that correct? I don’t see it under “System Services”.

      And if I run “systemctl disable mysql”
      It returns:
      “Mysql.service is not a native service, redirecting to systemd-sysv-install.
      Executing: systemd-sysv-install disable mysql”

      So it seems to be installed, but what’s the problem?

      Also, in this same section, Unable to locate “dns2proxy”.

      I haven’t got any further as of now, bcuz I wanted to make sure everything worked right before continuing. Please help.

    • #11863
      Re4son
      Keymaster

      Hi blackk.s,

      Sorry for the late reply, been away in sunny north Queensland the last few days.
      Unfortunately, the defaults in kali and the standard applications change quicker than I can keep up with the documentation but you’re spot on with your discoveries:

      Problem #1: the kismet group is created during the installation of kismet when you choose “only members of the kismet group can run it” or something similar. Nothing to worry about if you choose the other option, just ignore the error message

      Problem #2: Depending on whether or not you’ve installed kali-linux-full or other metapackages, mysql could already be installed – just disable it as you did.

      dns2proxy – Just ignore it. We’ve already switched to alternatives.

      Sorry for the hassle and thanks for letting me know, I’ll update the walk through asap.

      Many thanks,
      Re4son

      • #11864
        blackk.s
        Participant

        So it doesn’t matter if kismet group isn’t added to low priv user? Will it still be able to run it? And could I go back and rechoose the option to reset it?

        And to part 2, i can stop it like I did with the redirect process it did, but I don’t think i can start it. Of I remember right it.gibes am error. Will double check tho

    • #11871
      Requ
      Participant

      https://www.kali.org/news/kali-drones-portable-ctf-builds-raspberry-pi-craziness-and-more/

      Congratz Mate ! Well-deserved !

    • #11872
      Re4son
      Keymaster

      Thanks mate – much appreciated

    • #11875
      blackk.s
      Participant

      Re4son,

      I am completely lost. I’ve spent months, and much needed sleep attempting to turn my pi into a headless hacking machine (which oddly enough was to attach it to a drone). I came across your tutorial in my endless search for a solution to get a fucking vnc viewer to work for more than a single login on kali-pi.

      This was the best tutorial I have found. I have attempted to do the manual install, so that I’d have a better understanding of what’s going on (which gave me the kismet issue that you helped solve), and then gave up again in my frustration. Decided to just install your custom image with everything done.

      Once again, I cannot connect through vnc viewer. ?
      My viewer says “the port on which the computer is listening for a connection could not be contacted”.
      (I’m using port 5901 as that’s what the log in /pi/home/.vnc says it’s listening on)
      I tried your xcfe solution with no change. Can’t even connect a single time. Yet ssh works fine.
      I’m not quite a noob to Linux, but I’ve never used it this way. I’ve never set up vnc through ssh tunnelling and all that. And I need it to work. Where do i find all the config files? How do i reconfigure it to work? Or did i just forget to do something?

      Here is the output of “vncserver -list” I did to make sure it was running:

      root@kali-pi:~# vncserver -list
      
      TigerVNC server sessions:
      
      X DISPLAY #     PROCESS ID
      root@kali-pi:~# su pi
      pi@kali-pi:/root$ vncserver -list
      
      TigerVNC server sessions:
      
      X DISPLAY #     PROCESS ID
      :1              1112 (stale)
      pi@kali-pi:/root$

      Please help me.

    • #11876
      Re4son
      Keymaster

      Haha – Gosh, I feel for you, I really do. Still funny though 😉
      I too was going mad because of this. Easy to fix:

      The VNC server is now installed with a default setting restricting connections from localhost only.
      You either change the default setting or you connect through an ssh tunnel.
      Flick through this forum post for the details:

      https://whitedome.com.au/re4son/topic/vnc/

      Please let me know how you go.

      Happy hacking,
      Re4son

      • #11883
        blackk.s
        Participant

        I really appreciate ur quick replies.

        Ok, followed the tutorial for Android (since that’s the main way I will vnc),
        I’m using VncViewer app instead of the other (but that shouldn’t matter).

        I set up the ssh through ConnectBot, port forwarded, then reconfigured my vnc address. Still no connection.

        BUT, we have improvement. Now instead of the former connection error, I get:
        “The connection closed unexpectedly” as soon as I click connect.

        Any ideas?

    • #11884
      Re4son
      Keymaster

      I think I had the same issues and they went away by using AndroidVNC.
      I’d give that that a try.

    • #11909
      blackk.s
      Participant

      Re4son,

      I have updated news.

      So, finally some progress. I realized that I was trying to vnc into user, thru ssh running at root. I thought it was supposed to be thru user to be more secure. I’m surprised u didn’t catch it either when I showed the output of “vncserver -list” (which is no longer a command now as of the last week apparently?) Brainfart on my half lol. I had showed the output to show vnc was NOT running at root. ?

      So I ran “vncserver” thru root instead and got a connection ?. But it would only allow a single connection… Once again? back at square one. (Meanwhile, attempted the same thing on my pi zero. Same deal.) I had picked up a new Samsung Evo 32gb as backup… installed ur kernel on it, thru it in my rpi3. And…BOOM. continuous connect AND disconnect!!!

      Then later, after leaving and coming back… single connect and hangs again.
      Continuous rebooting yielded no different result. In frustration, I shutdown, switch off my pi power supply, and unplugged it. The next day after booting, continuous connect/disconnect again. Weird.

      Later that day, went to work again, came home, same problem. I thought that maybe it was due to my phone switching networks (even tho I did a clean disconnect each time.) I looked thru my log, found various errors, shutdown. Continuous connect again…. wtf is going on here?
      I already tested to see if it was because of network switch, doesn’t seem to be the case.

      It seems to only work right randomly.
      Would the kali-pi:1.log readout help u help me?
      ———————————

      And secondly , but just as important… when I do connect vnc successfully, it isn’t showing live image, and giving live control.
      Example: I have terminal opened up on hdmi, when I vnc in, I only see the fresh desktop. and moving the mouse and opening windows thru vnc, is not being reflected on monitor.
      It did before tho… I could basically use vnc connection as a remote mouse and keyboard. I need to vnc in, and see my progress of running programs in real time. I’ve tried thru vncviewer app, and the andoindvnc that u suggested. same results.

      srry, for such a long reply…Helppp

    • #11910
      Re4son
      Keymaster

      Hi blackk.s,

      looks like you’ve got way too many moving parts here.
      Getting a vnc server running properly on linux feels a bit like black magic. It is extremely fragile. Too many different servers, clients and configuration options and often only one combination works.
      Why don’t you start with the default and change one thing at a time?
      These steps work definitely:
      1. Boot up the sticky finger image and press the “vnc server” button
      2. Create an ssh tunnel (it doesn’t matter if you connect as root or as normal user)
      3. Open tigervnc client on your PC and connect to your local tunnel endpoint with thdefault vnc password
      4. The default vnc server starts a new session as root (there’s little point running kali as normal user) and does not share the existing console.

      That’s it. This connection should be rock solid.
      Next you can experiment with different clients and connecting to the console session or changing the menu file to start the vnc server as pi (it’s pre-configured you just have to swap it around).
      “vncserver -list” still works. Where did you read that it’s depreciated?

      Please give that a try and let me know how you go.

      Happy hacking,
      Re4son

    • #11912
      blackk.s
      Participant

      I don’t understand what u mean about too many moving parts? Those steps are exactly what I’ve done, repeatedly, for months I’ve reinstalled ur kernel (manually, and pre-loaded image) booted, connected ssh, and attempted vnc. Im not doing anything extra, havent even got to changing default passwords yes, I’m stuck at vnc hanging. That was the first thing I needed to work. Started on a blog by Dephace, used both tightvnc (which he said was the best for kali), and x11vnc (which he posted around the same time, and claimed was a more stable improvement on ur kernel. It worked flawlessly, but only for single connect) That led me here.

      But vnc like u said, is being very fickle. And seemingly works when it wants to. Right now, I have a solid connection. But if I reboot…who knows? I thought after it worked the first time, it was just from using a better sd card. When it finally worked, then I did kali-linux-full install, and it got wonky. I need it to work the same every time.

      • #11913
        blackk.s
        Participant

        UPDATE AGAIN:

        I feel slow af lol. The reason I’m not getting a “live” reflection of vnc, is bcuz pi running on monitor is default window “:0”. And when I start vncserver, it’s “:1”. The first time, thru x11vnc, I connected straight to port 5900, which is how that was possible. Sorry about that part lol. Is that possible on TigerVnc as well?

        Also, one little detail I noticed about all this, is that when vnc fails to connect a second time, ssh also fails to find host. So maybe vnc isn’t the issue in itself.

    • #11914
      blackk.s
      Participant

      Oh..u explained consol connect already in ur reply. Apologies. I will do as suggested and hold off on that part until vnc is stable (which ive been doing thus far).

      Still seems to work when it wants tho. Srry for so many replies…i couldn’t edit the above one…

    • #11915
      Re4son
      Keymaster

      Hi blackk.s,

      the vnc configuration that comes with the Sticky Fingers image is absolutely rock solid. The fiddly thing is to find the perfect configuration and we found it. It’s been running stable for two years now and probably the best you can get on Kali right now.

      As you said in your last post, ssh isn’t too reliable either. I’d look into that first. What’s your network setup?
      Do you use ethernet, ethernet gadget or wifi to connect? If wifi, internal or external adapter?

      • #11937
        blackk.s
        Participant

        Srry, i was going to reply right away, but ive been testing it and reading all the /var/logs.

        But im on Wlan0. So internal Wi-Fi. I use my android device as the remote viewer.

        The first time I tried this, I didn’t use ssh tunnel and it’d only connect once. But that may be before I used ur image. I start with a clean image each time (When i was talking about switching networks n such, i wasnt referring to using it with dns. Re-Reading the comments, I feel that’s u thought). Today I had continuous connect again, went to work (my phone Wi-Fi autoconnects there), and came home and ssh can’t find localhost. I disconnect before leaving. But maybe bcuz I leave the network, upon returning I am no longer accepted. (This is what I have been testing for the last few days so as to find what’s going on). I have intentionally connected to other Wi-Fi spots when I’m running an errand, come home, everything’s working fine. But it seems if I’m gone an extended period (work), it will only connect once, or not at all when I return home and my phone autoconnects to the home network. One night I left my phone disconnected from Wi-Fi all night as a final test. When I woke up, I connected, disconnected, and suddenly…a second reconnect was allowed. THEN, upon loading the vnc the second connect, I got a black screen with a square as a pointer out of nowhere (pretty sure I’ve seen forums about this error) Never had it happen before tho. And it isn’t all the time…

        So now I’m stuck with figuring out the original continuous connect problem (which isn’t ssh either, bcuz neither will find host), AND it randomly being a black screen. When either of these happen, I reboot, and/or shutdown the pi (and reboot my phone) and try again until it works right (could take more than one shutdown).

      • #11938
        blackk.s
        Participant

        Srry, i was going to reply right away, but ive been testing it and reading all the /var/logs.

        But im on Wlan0. So internal Wi-Fi. I use my android device as the remote viewer.

        The first time I tried this, I didn’t use ssh tunnel and it’d only connect once. But that may be before I used ur image. I start with a clean image each time (exception of installing kali-linux-full) (When i was talking about switching networks n such, i wasnt referring to using it with dns. Re-Reading the comments, I feel that’s u thought). Today I had continuous connect again, went to work (my phone Wi-Fi autoconnects there), and came home and ssh can’t find localhost. I disconnect before leaving. But maybe bcuz I leave the network, upon returning I am no longer accepted. (This is what I have been testing for the last few days so as to find what’s going on). I have intentionally connected to other Wi-Fi spots when I’m running an errand, come home, everything’s working fine. But it seems if I’m gone an extended period (work), it will only connect once, or not at all when I return home and my phone autoconnects to the home network. One night I left my phone disconnected from Wi-Fi all night as a final test. When I woke up, I connected, disconnected, and suddenly…a second reconnect was allowed. THEN, upon loading the vnc the second connect, I got a black screen with a square as a pointer out of nowhere (pretty sure I’ve seen forums about this error) Never had it happen before tho. And it isn’t all the time…

        So now I’m stuck with figuring out the original continuous connect problem, AND it randomly being a black screen now too. When either of these happen, I reboot, and/or shutdown the pi (and reboot my phone) and try again until it works right (could take more than one shutdown).

        Sidenote: ur image for some reason makes my fan go in overdrive at boot lol. Gets super loud on every first boot, then calms right back down after all the boot up readout.

        • #11944
          blackk.s
          Participant

          *not a dns. An ip forwarding service (like no-ip)

    • #11933
      sln@72
      Participant

      Hello Re4son,
      I have a problem with the configuration of Snort, Barnyard2 and PulledPork on the Raspberry Pi 3 running Kali with the last STICKY FINGER’S KALI-PI – Pre-installed.
      the command APT-GET not ok about:
      mysql-client is not available, but is referred to by another package..
      idem for php5-gd
      idem for php5-mysql, libmysqlclient-dev, libapache2-mod-php5

      “apt-get -y install apache2 apache2-doc autoconf automake bison ca-certificates ethtool flex g++ gcc libapache2-mod-php5 libcrypt-ssleay-perl libmysqlclient-dev libnet1 libnet1-dev libpcre3 libpcre3-dev libpcap-dev libphp-adodb libssl-dev libtool libwww-perl make mysql-client mysql-common mysql-server php5-cli php5-gd php5-mysql php-pear sysstat”

      Could you help me, please?
      Will soon have a functional image with snort, barnyard2, mysql, pulledpork and base
      Thanks
      SLN@72

    • #11947
      Re4son
      Keymaster

      Hi sln@72,

      Thanks for letting me know. Try this:

      apt install apache2 apache2-doc autoconf automake bison ca-certificates ethtool flex g++ gcc libapache2-mod-php libcrypt-ssleay-perl default-libmysqlclient-dev libnet1 libnet1-dev libpcre3 libpcre3-dev libpcap-dev libphp-adodb libssl-dev libtool libwww-perl make default-mysql-client mysql-common default-mysql-server php-cli php-gd php-mysql php-pear sysstatcd /usr/local/src

      Many thanks,
      Re4son

    • #11973
      blackk.s
      Participant

      Any ideas on my last reply re4son?
      (Apologies on double posting it btw)
      Perhaps an online portforwarding server (no-ip) will actually fix this problem?
      (temporarily, as my goal is to connext to it no matter which network pi, or I am on)

      As long as i stay on the same AP, solid connection, just like u said (thru pc, and Android), but if gone from that network too long, something happens. And i either get a single connect, or none.

      ?

    • #11974
      Re4son
      Keymaster

      Hi blackk.s,

      Not sure, let me do some testing over the next couple of days.
      What’s you setup? The pi is connected to your home broadband and your android device is roaming? Or is your pi roaming?

    • #11975
      blackk.s
      Participant

      The rpi3 is indeed connected to home router via internal Wi-Fi.
      My phone roams from home network and defaults to mobile 3g data, then autoconnects to my jobs network.

      If it’s not very long that I’ve been away (an hour or so? Maybe 2) it’s still fine, but extended time away causes the problem

    • #11989
      Re4son
      Keymaster

      Hi blackk.s,

      I’ve been using my Pi via VNC in that exact configuration for almost a week now without any hiccoughs.
      All I had to do was disable light locker to avoid getting a black screen when trying to connect to a locked session.

      Have you disabled that too?

      Many thanks,
      Re4son

      • #12015
        blackk.s
        Participant

        Re4son,

        Thanks man, will try that.

        Also, in the beginning you said,

        Dns2proxy – we’ve already moved to other alternatives.

        Can you suggest any?

    • #12042
      blackk.s
      Participant

      Re4son,

      Can confirm the fix. So simple lol. Yet drove me crazy forever?. Thanks a ton.

      I have one additional question tho. You have a script to deny bluez update in order to work properly. However, a program like fluxion, cant finish installing until dependencies are met. Bluez is one of them.

      My question is how can I temporarily allow bluez to update for certain programs, then revert it back to ur blocked script after?

    • #12044
      Re4son
      Keymaster

      You sure can:

      ./install.sh -r #removes re4son bluetooth

      ./install.sh -b #re-installs re4son bluetooth

      • #12045
        blackk.s
        Participant

        Ur the best. ?

    • #12173
      blackk.s
      Participant

      Re4son,

      I’m back with another couple questions. Everything has worked very smoothly since you helped figure out my last problem btw.

      1) How do I go about linking ssh through No-IP, instead of directly to localhost? So that I can be connected no matter what AP I’m on?

      2) I have an RPI3, and an RPI Zero. I plan on creating an OpenVPN server running from AP on RPI3 to a digitalocean cloud, my Zero will be a host to the server. Using a reverse ssh tunnel, I can get behind my NAT through the RPI3. But what if I wanted to remotely reverse the way the tunnel goes?
      I pondered this for a while. Scenarios like, making each raspberry have a server and host, depending on what user they booted as, but this would not be practical. Then I had an idea. If I were using digitalocean for my cloud server, could I possibly switch it similarly on the digitalocean cloud OS??

      • #12177
        Re4son
        Keymaster

        Howdy blackk.s,

        1) I’m very happy with dnexit ddns using this client:

        http://downloads.dnsexit.com/ipUpdate-1.6-3.deb

        2) Horses for courses 😉 I assume you want a
        – transparent tunnel towards digital ocean
        – specific services tunneled back
        Is that correct? If so, what are the services or protocols?

        • #12179
          blackk.s
          Participant

          1) Thanks I’ll look into it

          2) Yes, I want a transparent tunnel to digitalocean.
          My initial idea was to write a small script for the pi Zero W to autoconnect to closest open network at startup, so that it could connect to the OpenVPN server running from home (rpi3), giving me a personal VPN anywhere I go (like Hak5’s WifiPineapple in a way, though the idea came first, and brought that discovery lol).

          Watching some of his tutorials, he used the digitalocean hosted OpenVPN to reverse ssh back to his hosting network (allowing him to transfer files and such when away), not only that, it allows access behind the NAT (Which is what peaks my interest) from the pi Zero W (in this case).
          I was trying to figure a way to remotely change the direction of the reverse ssh. So say I have my pi Zero with me connected to a public network, it then connects to the openVPN server (rpi3 at home) through the cloud on digitalocean. But what if I wanted to switch the Zero, from VPN host (or receiver?) to VPN server, allowing me to perform reverse ssh to bypass THEIR (public) NAT instead?

          Could it be as simple as ssh into the server machine (rpi3) from pi zero, then run the reverse ssh from that machine through the connection? I’m assuming this won’t work if the ssh connection is already active one way, unless I made more than a singular running instance?
          Or would it be done at the cloud OS point (digitalocean)?

    • #12175
      joeybronzoni
      Participant

      Hey Re4son,

      Like everyone else I also appreciate the detailed tutorial here. I do have a problem that I hope someone can help me figure out. I have been trying to get nodejs to work with my raspberry pi 3 kali linux setup. I successfully installed nodejs from the source and everything else seems to be working fine. Theres no candidate to install it from the package manager. Its installed, I have the paths here

      root@new-host-15:/usr/local/bin# whereis node  
      node: /usr/bin/node /usr/sbin/node /sbin/node /usr/local/bin/node /opt/nodejs/bin/node

      But its not recognized:

      root@new-host-15:/usr/local/bin# node 
      bash: /usr/local/bin/node: No such file or directory

      I need it as a dependency for beef-xss because for some reason I can’t get beef installed without node as a dependency. I seem to be the only person in the world that is struggling with this problem. I have kali-full-linux installed (after a battle with dpkg) and everything else seems to be working fine. I am not really new to linux but I am kind of new to security. Does anybody have any ideas on what the problem is here? Any insight would be appreciated, thanks.

    • #12178
      Re4son
      Keymaster

      Hi joeybronzoni,

      Someone must have poked a pin in a doll with your face on it 😉

      I’ve grabbed a couple of Pi’s, ran “apt update && apt install beef-xss” on all of them, fetched a drink and enjoyed beef in all it’s glory 🙂

      On a fresh kali image, apt installed 130 dependencies together with beef-xss, one of which was nodejs.

      I’d try again with a fresh image. Maybe your local kali mirror had a little hiccup and recovered over night.

      Please let me know how you go.

    • #12180
      blackk.s
      Participant

      Apologies for posting my reply again here, when there’s replies to replies, they shift to right more and more until I can only see a single letter per line on mobile. There’s no side-scroll.

      1) Thanks, I’ll look into that ddns.

      2) Yes, I want a transparent tunnel to digitalocean. As for services and protocols…

      My initial idea was to write a small script for the pi Zero W to autoconnect to closest open network at startup, so that it could connect to the OpenVPN server running from home (rpi3), giving me a personal VPN anywhere I go (like Hak5’s WifiPineapple in a way, though the idea came first, and brought that discovery lol).

      Watching some of his tutorials, he used the digitalocean hosted OpenVPN connection to reverse ssh back to his hosting network (allowing him to transfer files and such when away), not only that, it allows access behind the NAT (Which is what peaks my interest) from the pi Zero W (in my case).

      I was trying to figure a way to remotely change the direction of the reverse ssh. So say I have my pi Zero with me connected to a public network, it then connects to the openVPN server (rpi3 at home) through the cloud on digitalocean. But what if I wanted to switch the Zero, from VPN host (or receiver?) to VPN server, allowing me to perform reverse ssh to bypass THEIR (public) NAT instead?

      Could it be as simple as ssh into the server machine (rpi3) from pi zero, then run the reverse ssh from that machine through the connection? I’m assuming this won’t work if the ssh connection is already active one way, unless I made more than a singular running instance?
      Or could it be done at the cloud OS point (digitalocean)?

      • #12237
        blackk.s
        Participant

        I think I may have made this too complicating..
        It occurred to me that I could just make the pi Zero W a server in itself that starts OpenVPN after autoconnect is established. I could then set up the receiving client for vpn on linux deploy. Then run reverse ssh from my phone, to the pi zero thats on a public network, allowing me to bypass NAT.

        Does this sound correct?

    • #12181
      joeybronzoni
      Participant

      Ha! thanks for the reply re4son. I have been trying to compile node for this kali since I made that post. Yea, I don’t know where I could be going wrong here. I have installed both sticky images a number of times. I have never been so confused? I am questioning if this is even real? Is this real?

    • #12182
      joeybronzoni
      Participant

      Hey re4son,

      Its amateur hour over here. I grabbed the wrong image. I can’t believe I did that. I had been fighting with this setup for that past week. So yea, thanks for this. I am going to go in the corner for a time out now.

    • #13157
      blackk.s
      Participant

      Re4son,

      Prolly been busy, but I hope you’re still around on the forums. I have another couple questions.

      1) how can I ssh into the pi before logging in? So that I don’t need auto login on.

      2) I get no audio from the pi audio jack. I saw a recent tut on YouTube that said just chance “demonize=no” to “=yes” in the pulsaudio file. No luck. If I pull up pulsaudio during a YouTube vid, for example, the equalizer shows there is sound, but nothing comes out. Any ideas?

      3)what command can I use to reinstall the Bluetooth gui that regular Kali has? Entering all those commands for every new device gets tiresome lol.

      4)Not really a question, but when building sticky fingers from scratch, the copying .vnc data doesn’t work, and you can’t add it because your github repo to the xstartup is down. However, new versions still have it built in under that .vnc directory. Is it still a bug, or does the install instructions just need updated?

      Thanks for you time.

    • #13158
      Re4son
      Keymaster

      Hi blackk.s,

      1) Not sure what you mean, what are you trying to do?
      2) Here you go:
      a) Add “dtparam=audio=on” to /boot/config.txt
      b) apt install alsa-utils
      c) run alsamixer, press F6 and pick the number of your bcm2835 soundcard.
      In my case it’s “0” – you specify card number in the next command with :-c”.
      d) For 3.5 output, type (assuming your card is “0”):
      amixer -c 0 cset numid=3 1
      For HDMI output, type (assuming your card is “0”):
      amixer -c 0 cset numid=3 2
      Optional:
      e) apt install volumeicon-alsa
      f) volumeicon &
      g) right mouseclick on speaker icon and set your preference, at least replace
      xterm -e 'alsamixer' with
      xfce4-terminal -e 'alsamixer' But I’d just change “left mouse button action” to “Show slider”
      3) apt install blueman
      4) Which github link doesn’t work? The one in this chapter works:
      https://whitedome.com.au/re4son/kali-pi/#VNC

      wget -O ~/.vnc/xstartup https://raw.githubusercontent.com/Re4son/RPi-Tweaks/master/vncservice/xstartup

      Is there another one I forgot to update?

      Cheers,
      Re4son

    • #13203
      blackk.s
      Participant

      Re4son,

      1) network manager doesn’t start until you login to one of the accounts. But I want to ssh in Before that. Like possibly make network manager initiate on boot, and ssh in to different account via different address. I feel having pi autologin isn’t very secure. Especially if someone took it. So I’d like the login screen to still be there for deterrence, but also ssh in.

      2 and 3) thank you so much!

      4) whenever I tried the command listed:

      “wget -O ~/.vnc/xstartup https://github.com/Re4son/vncservice/raw/master/xstartup&#8221;

      I get an error. The link you just gave is different, and works, so it seems your tut needs updated for that link in the section “VNC”.

      Change “wget -O ~/.vnc/xstartup https://github.com/Re4son/vncservice/raw/master/xstartup&#8221;
      To
      wget -O ~/.vnc/xstartup https://raw.githubusercontent.com/Re4son/RPi-Tweaks/master/vncservice/xstartup

    • #13228
      blackk.s
      Participant

      Re4son, it looks as if I found an answer to my question #1,Using the settings in nm to “store pw for all users” will allow to ssh at login. Not the safest, but a start. I have 2 remaining questions and then I promise I’m done lol.

      1)how do you update your Sticky Fingers img? Since Kali adopted your kernel, apt-get update @@ apt-get upgrade should handle that end, but what if I wanted to update your distro? I have seen a command to update Sticky Fingers by getting the newest image, is that the only way? To keep checking for newest image and reinstalling?

      2) if I want to change the name of the user from “pi”, is there a single place to change the names that will change it for all the groups access and everything else too, or would I need to make the change in multiple files?

    • #13238
      Re4son
      Keymaster

      Hi blackk.s,

      1) Sticky Fingers is updated via “apt upgrade”. Nothing more to do.
      The entire distro consists of stock kali packages with special configurations, custom kernel, Sticky Fingers gui and some add-on programs that shouldn’t need upgrades.
      The kernel is not upgraded via “apt upgrade”. You can download and install a new kernel image from this site if you want to have the latest and greates.
      Every now and then I update the Sticky Fingers menu. There shouldn’t be a reason to update it but if I push an update you are interested in you can just do a “git pull” in “/home/pi/Kali-Pi”

      2)Just rename the user but don’t rename the home directory or you would have to adjust the Sticky Fingers configuration.

      Best to take a backup of your sd card before doing those changes.

      Hope that helps,
      Re4son

    • #13268
      blackk.s
      Participant

      Re4son,

      1) thank you.

      2) Alright, I really wanted to change system name, to be less conspicuous than the well known “kali”.

      Then I’d rename user to not be the default “pi”, so anyone that realizes it’s a pi won’t know.

      Perhaps I should build it myself from stock Kali again to do that, or is there an slightly easier way?
      What would I change in configuration?

    • #13274
      Re4son
      Keymaster

      Let me look into that. I might be able to quickly add a variable you can set

    • #13275
      Re4son
      Keymaster

      I did a quick scan and renaming shouldn’t be a problem at all.
      I am about to release a new version of the Sticky Fingers menu and I’ll include a variable that defines the username.

      Changing the following lines after renaming the user should do the trick:

      Menus/menu-3.py:103: kalipi.run_cmd(“/usr/bin/sudo -u pi screen -R -S msf msfconsole”)
      Menus/menu-3.py:137: kalipi.run_cmd(“/usr/bin/sudo -u pi screen -R -S kismet /usr/bin/kismet”)
      Menus/kismet/kismet.service:8:ExecStart=/usr/bin/sudo -u pi /usr/local/bin/kismet –silent –daemonize –homedir /home/pi/Kali-Pi/Menus/kismet
      Menus/menu-1.py:66: ## kalipi.run_cmd(“/usr/bin/sudo -u pi FRAMEBUFFER=/dev/fb1 startx”)
      Menus/menu-1.py:77: ## kalipi.run_cmd(“/usr/bin/sudo -u pi FRAMEBUFFER=/dev/fb0 startx”)
      Menus/menu-1.py:115: kalipi.run_cmd(“/usr/bin/sudo -u pi screen -R -S term”)

      Would you mind giving that a try?

    • #13277
      blackk.s
      Participant

      Re4son,

      Thanks alot for the guidance.
      I will try your commands later.

      In the meantime, I’ve noticed a problem with monitor mode on wlan0 the past couple weeks. Even with Kali’s official site download for ARM, with install kali-linux-full done.
      Possible a nexmon bug?

      Here’s a pic of the error:
      pic of rpi3 Kali monitor mode issue
      (https://paste.pics/39GGG)
      Saying not a rpi3 or Zero W. Even thought it says it recognizes driver and chipset. And I’ve tried on both

    • #13278
      Re4son
      Keymaster

      Don’t use airmon-ng, use mon0up and mon0down. They come with my kernel package.

    • #13279
      blackk.s
      Participant

      Oh, I’ve always used airmon previously and it worked. And using airmon to initiate monitor mode is somewhat needed for other repos, like for fluxion. As it fails to recognize the internal chipset as one with injection because it uses airmon to start the process.
      (I know, it’s better to use usb WiFi adapters. It’s just handy if needed)

      Btw, just used a fresh install of Sticky-fingers, changed my username and directory with
      “groupadd newuser”
      Then, “usermod -d /home/newuser -m -g newuser -l newuser pi”

      I then followed your instructions. Everything seemed to work fine. I was able to login to newuser without problems.
      When running re4son-pi-tft-setup, I added “-d /home/newuser -t wave35c” to make it initiate properly. (As it was looking for “/home/pi”)
      But then when issuing “-a newuser” and “-b cli”, I run into the problem of it not recognizing newuser for the Sticky-fingers button menu. It still boots into CLI, but asks for password, and then is just CLI, no menu buttons.

      Just now in a blonde moment, I re-ran tft setup with “-a pi” thinking that might allow it to work. Now I’m stuck on a blank screen with blinking “_” because it’s autologging in to a non-existent user.

      Not too smart of me, I know…

      Any way I can get around this blank screen and reconfigure the -a username back to what it previously was?

    • #13280
      Re4son
      Keymaster

      It’s a new version of nexmon. It doesn’t support the old school up/down anymore.

      For your autologin: best to use my new kalipi-config from now on:

      https://github.com/Re4son/RPi-Tweaks/tree/master/kalipi-config

      Thanks for testing the changes.
      I have incorporated them into the new Sticky Fingers menu v3.0.
      It’s about to go live. No big changes, except this one and support for HDMI screens and bigger sizes.

    • #13281
      blackk.s
      Participant

      No problem, I’m glad to have had the opportunity to test it out for you to update 🙂

      Will changing the system name from “kali-pi” also be supported?

    • #13282
      Re4son
      Keymaster

      No need. Just move the Kali-Pi directory into the new user’s home directory and edit the .profile to start “menu”. Just copy it across from user pi.
      You also have to adjust the MENUDIR variable in menu.
      Alternatively you could clone “https://github.com/Re4son/Kali-Pi&#8221;.
      That’s been updated to the new version which will handle that automatically.

    • #13284
      blackk.s
      Participant

      The usermod command copied all of that over earlier… just forgot about ctrl+alt+F2 to get past the blank screen 😶 lol. Got it now.
      Thanks again for everything.

    • #13286
      blackk.s
      Participant

      So with the update, would we use “sudo usermod -l newUsername oldUsername” and it’ll take care of all the rest (like home directory changing)?
      Or would we have to do the full “usermod -d /home/newuser -m -g newuser -l newuser pi”?

      Also, your kalipi-config tool is amazing, do you plan on adding the tft setup to it by chance?

    • #13287
      Re4son
      Keymaster

      You could clone the Sticky Fingers menu to /opt/Kali-Pi it would then be unaffected by the user name.

      All you then have to do is add the autostart of “menu” to .profile

      I was thinking about it but I haven’t made up my mind yet.

    • #13288
      blackk.s
      Participant

      Awesome thanks😁

    • #13289
      blackk.s
      Participant

      I feel like it’d be a great addition to kalipi-config, for ease of use, since everything else is in there

      • #13290
        blackk.s
        Participant

        The username change option would be good to have there too since it already has the system name change option. Just my opinions

    • #13291
      Re4son
      Keymaster

      Good idea – I’ll work on it

    • #13315
      blackk.s
      Participant

      Re4son,
      I used your newest version of sticky fingers (v.3.0) on a fresh install to retest the changes, and noticed something we missed, I created an issue on your github, detailing the problem.

      You may be more active here though, so here’s the issue link:
      https://github.com/Re4son/Kali-Pi/issues/3

    • #13316
      Re4son
      Keymaster

      I’ll look into it.
      Thanks for raising it here too, I’m not monitoring the github issues very well.

    • #13353
      blackk.s
      Participant

      Re4son,

      Just a random advice seeking question, but, I want to take a snapshot of my entire Kali-pi system (all files, permissions, groups, etc. in tact), and be able to make into an iso (compressed to 4gb or under) so that I can use it to flash to new microsd. That way all my configurations and setup will be done, so it’s more plug n play so to say. I’ve seen multiple repos and tools to do this. Like the famous rsync. But it seems it’s hard to make the iso bootable with rsync as it syncs everything live (instead of freezing, or “snapshot”).
      I was wondering what tool you suggest to do this, if you use one?

      • #13354
        blackk.s
        Participant

        I ask because involuntary shutdowns (power forced off and back on when plugging in a powered usb port, plugging your phone inn the charger whose usb is connected in the same dual usb charger as the piwered pi, and stuff like that) happen a little too often. I’ve literally had to reflash a new image from your site everytime it happens, because I don’t know how to save it once it gets to this point.

        It’ll say something about root partition not working, like couldn’t do system check on root device, something about run fsck. Does a few more recounting things, then hangs.

        Any help on either would be greatly appreciated.

      • #13355
        blackk.s
        Participant

        I ask because involuntary shutdowns (power forced off and back on when plugging in a powered usb port, plugging your phone inn the charger whose usb is connected in the same dual usb charger as the piwered pi, and stuff like that) happen a little too often. I’ve literally had to reflash a new image from your site everytime it happens, because I don’t know how to save it once it gets to this point.

        It’ll say something about root partition not working, like couldn’t do system check on root device, something about run fsck. Does a few more remounting things, then hangs on “reached target system time synchronized”.

        Once and now again, it’ll reboot into maintenance mode to give me the option to login my CLI or GUI for repairs. Idk what to do though to restore the system.

        Any help on either would be greatly appreciated. But backup iso is definitely top priority.

        Thanks

      • #13359
        Re4son
        Keymaster

        Hi blackk.s,

        I use dd to create periodic backups of all my raspberry pi sd cards.

        I’ve included my backup and restore scripts in the kernel packages under :./src-tools”:

        https://github.com/Re4son/re4son-kernel-builder/tree/build-4.9.n/srv-tools/sdcard

        Does that help?

        Cheers,
        Re4son

      • #13386
        clive
        Participant

        I use the disks in Kali to make image backups and restore. It uses a GUI so it is very easy. I mad a master image and cloned it to 4 Pis. Many times the disk gets corrupted and using fsck on the disk has always fixed it.

        • #13419
          blackk.s
          Participant

          Thanks for the info @Clive, what Kali disks program are you referring to though?

    • #13360
      blackk.s
      Participant

      I never knew dd could do all that, I knew it was used to flash images to removable devices, so I supp9se it makes sense. You got a script for everything, thank you:)

      So if I used a fresh image, and did all updates, then “apt-get install kali-linux-full -y” (which we know takes HOURS), I could create an img, but then it’d be like 20gb. Your script also compresses it to 4gb or under so that it’s a bootable img?
      I’d love to be able to just flash an image of my already configured Kali full kali-pi, and not have to go through all that wait process each time

    • #13361
      Re4son
      Keymaster

      Not quite, my 32 GB image gets compressed to 14 GB.

    • #13362
      blackk.s
      Participant

      Damn. How does Kali 64bit do it then? Theirs has all the tools preinstalled and it’s compressed to just under 4gb.
      Installation requires a min of 8gb

    • #13381
      blackk.s
      Participant

      Also, if I do accidently corrupt the sd card by not powering off properly, and use this script, does it give me the option to restore from last back up?

    • #13382
      blackk.s
      Participant

      Because it seems to usually be the boot partition (mmcblk0p1) that get a corrupt, not the main mmcblk0p2 that all the data is saved in

    • #13389
      Zagarolo68
      Participant

      active Automatic boot into Sticky Finger’s Touch NOT FOUD COMMAND IN YOUR PAGE

      • #13408
        blackk.s
        Participant

        Yes it is…

        After setting up tft, you do:
        ./re4son-tft-setup -a pi
        (Allows autologin of user “pi”)

        Then:
        ./re4son-tft-setup -b cli
        (This boots to command line interface, which is what brings up the custom touchscreen menu)

    • #13460
      ToySldr
      Participant

      I think I followed the directions exactly and am able to use the AdaFruit touch 3.5 tft, I can’t seem to get the Kali Pi menu to display the mini menu. It’s installed but the pi boots back into the standard full display on the tft. Saying that, what exactly is X?

      • #13529
        blackk.s
        Participant

        X is home screen. Like ur describing. The full Kali pi startx screen.

        Meaning u didn’t tell it to boot in cli mode. X is the gui mode.

    • #13528
      blackk.s
      Participant

      Re4son,

      Im getting an error when reconfiguring openssh keys.
      Also, even with ur driver for realtor Wi-Fi adapters, airmon notices they are the right driver goes to put in monitor, then error shows say it’s not found, closing monster interface. Both work before, what’s changed?

    • #13584
      h4lcy0n_twyn
      Participant

      Hey Re4son just wanted to say thanks for writing the tutorial up. It helped me a lot with my Kali-pi build and the fact that you took the time to image it all and make it easier for us to use is bad@ss. Appreciate the work you’re putting into the pentest community and passing knowledge down to those new to the Pi environment.
      Only issue I ran into was resizing the partition on the card which was a simple fix.
      Again, appreciate everything and keep up the great work.

    • #13711
      oshden
      Participant

      Hello Re4son, I am having issues with the download link in the sticky fingers how-to page. It seems that “wget -O re4son-kernel_current.tar.xz https://whitedome.com.au/re4son/downloads/11299/&#8221; links to a no longer existing directory. Does this link need to be updated? Thanks

    • #13804
      kwekwek12
      Participant

      Hi sir! I’m having problem installing additional packages:

      apt install aptitude curl cmake build-essential mailutils python-dev python-pip libusb-1.0-0-dev python-numpy htop ftp locate screen kismet pure-ftpd tigervnc-standalone-server tmux default-mysql-server darkstat ntopng mana-toolkit beef-xss resolvconf mitmf dnsmasq hostapd

      mana-toolkit is unable but is referred by other package.
      mana-toolkit has no installation candidate.

      thanks!

    • #13806
      MaxMega12
      Participant

      Hello RE4SON,
      i am recieving an invalid key error.

      Err:2 http://http.re4son-kernel.com/re4son kali-pi InRelease
        The following signatures were invalid: EXPKEYSIG 11764EE8AC24832F Carsten Boeving <carsten.boeving@whitedome.com.au

      Thanks,
      MM12

Viewing 154 reply threads
  • You must be logged in to reply to this topic.