computer_knowledge_notes/Software/Linux分发版/Distr_Raspbian.md

1.7 KiB
Raw Blame History

参考资料

安装过程

  1. 准备安装介质:

     下载raspbian,使用sha1sum验证sha1值
    

    使用wget可以获得很好的下载速度

  2. 安装操作系统:

df -h		/找到tf卡的硬件名/
dd bs=4M if=raspbian.iso of=/dev/mmcblk0
  1. 刻好的卡里设置wifi

    在etc/wpa_supplicant/wpa_supplicant.conf的末尾添加 network={ ssid="testing" psk="testingPassword" }

  2. ssh:

在boot分区内touch ssh创建空文件ssh

  1. 更新源:
# 在etc/apt/sources.list注释掉原来的源添加
deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ jessie main non-free contrib
deb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ jessie main non-free contrib
sudo apt-get update
sudo apt-get upgrade

共享打印机

sudo apt update
sudo apt install hplip
sudo apt install cups

sudo usermod -a -G lpadmin pi
sudo cp /etc/cups/cupsd.conf /etc/cups/cupsd.conf.bak	# 备份
sudo vim /etc/cpus/cupsd.conf
	# 将Localhost:631改为0.0.0.0:631
	# 在Location /, /admin, /admin/conf 下添加"Allow all"
	
wget http://foo2zjs.rkkda.com/foo2zjs.tar.gz
tar xf foo2zjs.tar.gz
cd foo2zjs
make
./getwdb P1005
sudo make install
sudo make install-hotplug
sudo make make cups

# 浏览器登陆树莓派ip:631添加打印机

# 重启树莓派