1回答

1收藏

[教程] 【转载】树莓派3(Raspberry pi 3)刷kali+3.5寸微雪屏

Raspberry Pi Raspberry Pi 4034 人阅读 | 1 人回复 | 2016-07-15

1.点亮微雪3.5寸屏幕
需要的工具1:https://github.com/swkim01/waveshare-dtoverlays
  1. git clone https://github.com/swkim01/waveshare-dtoverlays.git waveshare-dtoverlays
  2. cd waveshare-dtoverlays
  3. mount /dev/mmcblk0p1 /boot/
  4. cp waveshare-dtoverlays/waveshare35a-overlay.dtb /boot/overlays/
复制代码
编辑/boot/config.txt添加
  1. dtoverlay=waveshare35a
复制代码
需要的工具2:https://github.com/adafruit/Adafruit-PITFT-Helper
  1. git clone https://github.com/adafruit/Adafruit-PiTFT-Helper.git
  2. cd Adafruit-PiTFT-Helper
  3. mkdir /etc/kbd
  4. touch /etc/kbd/config
  5. ./adafruit-pitft-helper -t 35r -u /root
复制代码

全选y
reboot,屏幕可以用了。

2.换源
编辑/etc/apt/sources.list文件
对于Kali 2.0,使用ipv4网络添加如下内容

  1. deb http://mirrors.ustc.edu.cn/kali sana main non-free contrib
  2. deb-src http://mirrors.ustc.edu.cn/kali sana main non-free contrib
  3. deb http://mirrors.ustc.edu.cn/kali-security sana/updates main contrib non-free
复制代码
  1. apt-install update
复制代码
3.屏幕校准
  1. apt-get install -y xinput-calibrator
  2. DISPLAY=:0.0 xinput_calibrator
复制代码
终端输出一组4个数字的数据,修改到/etc/X11/xorg.conf.d/99-calibration.conf
如果触摸不正常请把此文件改成如下
  1. Section "InputClass"
  2.         Identifier      "calibration"
  3.         MatchProduct    "ADS7846 Touchscreen"
  4.         Option  "Calibration"   "3946 229 164 3881"
  5.         Option  "SwapAxes"      "1"
  6. EndSection
复制代码
4.安装raspi-config
  1. wget http://archive.raspberrypi.org/debian/pool/main/r/raspi-config/raspi-config_20160527_all.deb
  2. apt-get install triggerhappy lua5.1  alsa-utils
  3. dpkg -i raspi-config_20160527_all.deb
复制代码
来源作者:wangandi
分享到:
回复

使用道具 举报

回答|共 1 个

倒序浏览

沙发

enenge

发表于 2016-8-7 21:31:01 | 只看该作者

看看                     
您需要登录后才可以回帖 注册/登录

本版积分规则

关闭

站长推荐上一条 /2 下一条