Last active
December 28, 2025 01:47
-
-
Save zhangyingda/d44da195b057e67a9609c4a32acd35d7 to your computer and use it in GitHub Desktop.
树莓派 4B 配置 Raspberry Pi 4B
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #/boot/config.txt | |
| dtoverlay=vc4-fkms-v3d | |
| dtoverlay=gpio-poweroff | |
| gpu_mem=512 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo /etc/init.d/ssh restart | |
| passwd | |
| sudo apt-get install vim | |
| modify the mirrors | |
| sudo apt-get update | |
| sudo raspi-config | |
| GL Driver | |
| sudo apt-get install realvnc-vnc-viewer xinit | |
| sudo apt-get install git | |
| git clone https://github.com/ejurgensen/forked-daapd.git | |
| sudo apt-get install \ | |
| build-essential git autotools-dev autoconf automake libtool gettext gawk \ | |
| gperf antlr3 libantlr3c-dev libconfuse-dev libunistring-dev libsqlite3-dev \ | |
| libavcodec-dev libavformat-dev libavfilter-dev libswscale-dev libavutil-dev \ | |
| libasound2-dev libmxml-dev libgcrypt20-dev libavahi-client-dev zlib1g-dev \ | |
| libevent-dev libplist-dev libsodium-dev libjson-c-dev libwebsockets-dev \ | |
| libcurl4-openssl-dev | |
| git clone https://github.com/ejurgensen/forked-daapd.git | |
| cd forked-daapd | |
| autoreconf -i | |
| ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var | |
| make | |
| sudo make install | |
| sudo cp forked-daapd.service /etc/systemd/system | |
| sudo systemctl enable forked-daapd.service | |
| sudo systemctl start forked-daapd.service | |
| sudo apt-get install cups hplip p910nd |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #/etc/default/p910nd | |
| # Printer number, if not 0 | |
| P910ND_NUM="0" | |
| # Additional daemon arguments, see man 8 p910nd | |
| P910ND_OPTS="-f /dev/usb/lp0" | |
| # Debian specific (set to 1 to enable start by default) | |
| P910ND_START=1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo raspi-config | |
| sudo vim /boot/config.txt | |
| dtoverlay=gpio-poweroff | |
| vcgencmd measure_temp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 编辑 `/etc/apt/sources.list` 文件,删除原文件所有内容,用以下内容取代: | |
| deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ buster main non-free contrib rpi | |
| deb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ buster main non-free contrib rpi | |
| # 编辑 `/etc/apt/sources.list.d/raspi.list` 文件,删除原文件所有内容,用以下内容取代: | |
| deb http://mirrors.tuna.tsinghua.edu.cn/raspberrypi/ buster main ui |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # vncviewer connect to windows realvnc server | |
| # no need the desktop enviroment | |
| # only need xinit | |
| sudo xinit /usr/bin/vncviewer UserName=zhangyingda AudioVolume=100 VerifyId=0 192.168.2.128 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment