樹莓派3(Raspberry pi 3)刷kali+3.5寸微雪屏

1.點亮微雪3.5寸屏幕
須要的工具1:https://github.com/swkim01/waveshare-dtoverlaysgit

git clone https://github.com/swkim01/waveshare-dtoverlays.git waveshare-dtoverlays
cd waveshare-dtoverlays
mount /dev/mmcblk0p1 /boot/
cp waveshare-dtoverlays/waveshare35a-overlay.dtb /boot/overlays/


編輯/boot/config.txt添加github

dtoverlay=waveshare35a


須要的工具2:https://github.com/adafruit/Adafruit-PITFT-Helper網絡

git clone https://github.com/adafruit/Adafruit-PiTFT-Helper.git
cd Adafruit-PiTFT-Helper
mkdir /etc/kbd
touch /etc/kbd/config
./adafruit-pitft-helper -t 35r -u /root


全選y
reboot,屏幕能夠用了。app

2.換源
編輯/etc/apt/sources.list文件
對於Kali 2.0,使用ipv4網絡添加以下內容工具

deb http://mirrors.ustc.edu.cn/kali sana main non-free contrib
deb-src http://mirrors.ustc.edu.cn/kali sana main non-free contrib
deb http://mirrors.ustc.edu.cn/kali-security sana/updates main contrib non-free
apt-install update

3.屏幕校準ui

apt-get install -y xinput-calibrator
DISPLAY=:0.0 xinput_calibrator


終端輸出一組4個數字的數據,修改到/etc/X11/xorg.conf.d/99-calibration.conf
若是觸摸不正常請把此文件改爲以下lua

Section "InputClass"
        Identifier      "calibration"
        MatchProduct    "ADS7846 Touchscreen"
        Option  "Calibration"   "3946 229 164 3881"
        Option  "SwapAxes"      "1"
EndSection

 

4.安裝raspi-configcode

wget http://archive.raspberrypi.org/debian/pool/main/r/raspi-config/raspi-config_20160527_all.deb
apt-get install triggerhappy lua5.1  alsa-utils 
dpkg -i raspi-config_20160527_all.deb
相關文章
相關標籤/搜索