Tutorial to setup a WaveShare XPT2046 5" LCD on a Raspberry Pi 3 running Kali Linux 2017.1
Instructions:
*************
Step 1:
Power up the Raspberry Pi and login
Step 2:
Open terminal and type:
mount /dev/mmcblk0p1
cd /boot
nano config.txt
Step 3:
Paste the below in:
max_usb_current=1
hdmi_group=2
hdmi_mode=87
hdmi_cvt 800 480 60 6 0 0 0
hdmi_drive=1
ctrl-x to save
Reboot!