1、利用ssh或vnc协议,远程登录树莓派,nano etc/rc.local ,在 末尾 和exit 0之间,写入要自启的命令!
例:/etc/init.d/tightvncserver start & //vncserver服务自动开启
/etc/init.d/samba start & //vncserver服务自动开启
这样 samba 和 vnc 就可以在开机时启动
ps:tightserver配置文件请自行创建,网络上有写好的,可自行参考

时间:2026-02-13 19:09:48
1、利用ssh或vnc协议,远程登录树莓派,nano etc/rc.local ,在 末尾 和exit 0之间,写入要自启的命令!
例:/etc/init.d/tightvncserver start & //vncserver服务自动开启
/etc/init.d/samba start & //vncserver服务自动开启
这样 samba 和 vnc 就可以在开机时启动
ps:tightserver配置文件请自行创建,网络上有写好的,可自行参考
