Q: 在不接入屏幕的情况下,无法启动树莓派?
A: 需要对 /boot/config.txt 进行配置,切记不要在window环境下打开该文件, 不然文件会被转换成dos格式, 也就是句尾会添加 ^M的符号,如果出现, 通过dos2unix config.txt 转换一下, 然后修改该文件中内容为下面的情况。
# uncomment if hdmi display is not detected and composite is being output
hdmi_force_hotplug=1
Q: 配置树莓派为静态ip地址,方便进行远程链接操作。
A: 修改nano /etc/dhcpcd.conf, 添加以下内容,
interface eth0
static ip_address=192.168.1.196
static routers=192.168.1.1
static domain_name_servers=8.8.8.8
nano编辑器使用: ^O WriteOut : 表示写入, 通过组合键 Ctrl+O 实现。 ^X Exit : 表示退出, 通过组合键Ctrl+X 实现, ^ 表示 按键 Ctrl, 其他命令以此类推。