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

1.点亮微雪3.5寸屏幕
需要的工具1:https://github.com/swkim01/waveshare-dtoverlays

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添加

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,屏幕可以用了。

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.屏幕校准

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


终端输出一组4个数字的数据,修改到/etc/X11/xorg.conf.d/99-calibration.conf
如果触摸不正常请把此文件改成如下

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

 

4.安装raspi-config

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

 

转载于:https://my.oschina.net/wangandi/blog/689536

  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值