树莓派做好镜像后要做的事 – 静谧的海 |
您所在的位置:网站首页 › 树莓派镜像是什么 › 树莓派做好镜像后要做的事 – 静谧的海 |
1、新建SSH boot 硬盘中新建 SSH 空白无后缀名文件 2、添加Wi-Fi 文件名:wpa_supplicant.conf格式:txt文本 country=CN ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 network={ ssid="raspberry" psk="bi4jgm" } network={ ssid="家里Wi-Fi热点的名字" psk="Wi-Fi密码" } network={ ssid="单位Wi-Fi热点的名字" psk="Wi-Fi密码" }3、设置64位 设置防止树莓派4不接入显示器无法启动的现象 在boot 驱动器根目录找到 config.txt 最后写入 arm_64bit=1 hdmi_group=2hdmi_mode=35 取消# hdmi_force_hotplug=1 #bi4jgm # For more options and information see # http://rpf.io/configtxt # Some settings may impact device functionality. See link above for details # uncomment if you get no picture on HDMI for a default “safe” mode #hdmi_safe=1 # uncomment this if your display has a black border of unused pixels visible # and your display can output without overscan #disable_overscan=1 # uncomment the following to adjust overscan. Use positive numbers if console # goes off screen, and negative if there is too much border #overscan_left=16 #overscan_right=16 #overscan_top=16 #overscan_bottom=16 # uncomment to force a console size. By default it will be display’s size minus # overscan. #framebuffer_width=1280 #framebuffer_height=720 # uncomment if hdmi display is not detected and composite is being output hdmi_force_hotplug=1 # uncomment to force a specific HDMI mode (this will force VGA) #hdmi_group=1 #hdmi_mode=1 hdmi_group=2 hdmi_mode=35 # uncomment to force a HDMI mode rather than DVI. This can make audio work in # DMT (computer monitor) modes #hdmi_drive=2 # uncomment to increase signal to HDMI, if you have interference, blanking, or # no display #config_hdmi_boost=4 # uncomment for composite PAL #sdtv_mode=2 #uncomment to overclock the arm. 700 MHz is the default. #arm_freq=800 # Uncomment some or all of these to enable the optional hardware interfaces #dtparam=i2c_arm=on #dtparam=i2s=on #dtparam=spi=on # Uncomment this to enable infrared communication. #dtoverlay=gpio-ir,gpio_pin=17 #dtoverlay=gpio-ir-tx,gpio_pin=18 # Additional overlays and parameters are documented /boot/overlays/README # Enable audio (loads snd_bcm2835) dtparam=audio=on [pi4] # Enable DRM VC4 V3D driver on top of the dispmanx display stack dtoverlay=vc4-fkms-v3d max_framebuffers=2 [all] #dtoverlay=vc4-fkms-v3d 4、SSH 1、扩展硬盘空间 sudo su raspi-config 选 6 Advanced Options 1 Expand Filesystem 2、启动vncserver 设置后台自动启动 sudo systemctl enable vncserver-x11-serviced.service 5、修改运行缓存解决内存不足1G建议设置大点,内存大了设置小点 sudo nano /etc/dphys-swapfile CONF_SWAPSIZE=2048 6、更改软件源 方法1 sudo echo “deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ buster main non-free contrib rpideb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ buster main non-free contrib rpi“>/etc/apt/sources.list 方法2 sudo nano /etc/apt/sources.list deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ buster main non-free contribdeb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ buster main non-free contrib 把 /etc/apt/sources.list.d/raspi.list 文件也替换成下面的内容: deb http://mirrors.tuna.tsinghua.edu.cn/raspberrypi/ buster main ui7、更新系统 #更新软件源列表 sudo apt-get update #更新软件版本 sudo apt-get upgrade sudoapt-get dist-upgrade #更新系统内核sudo rpi-update 转载请注明:静谧的海 » 树莓派做好镜像后要做的事 喜欢 (1) |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |