当Raspberry Pi启动时,我需要从命令行自动启动Sonic Pi。如何: 1)当raspberry Pi启动时,我会删除用户名/密码提示? 2)自动启动sonic pi? 3)自动启动我编写的Python脚本(需要与Sonic Pi通信?)
发布于 2015-08-10 11:09:52
通过Putty或sshclient(linux)连接PI。在web上获取一个mp3 : wget "mp3 url“或将文件与filezilla (客户端)放到PI (/home/ pi /) Filezilla设置=server:s mp3用户名:pi密码: raspberry端口:21
on : omxplayer -o hdmi where_mp3_dir_and_name #在hdmi端口上播放(电视或其他)
-o本地where_mp3_dir_and_name #播放音频插孔。
如果想自动化它,就把脚本/etc/init.d/和更新-rc.d your_script_name默认的 update-rc.d manual
但是在添加到系统启动之前,需要测试您的脚本是否存在But。阅读更多
https://stackoverflow.com/questions/31916398
复制相似问题