¶óÁ¸®ÆÄÀÌ2 ºÎÆýà ÀÚµ¿½ÇÇà Áú¹®ÀÔ´Ï´Ù

   Á¶È¸ 7034   Ãßõ 0    

안녕하세요. 가입 한지 하루 된 학생입니다. 

파이썬과 라즈베리파이를 이용해 뭔가 해보려고 하는데요.

라즈베리파이 자동실행에 대해 검색해 보니 rc.local 을 수정하여 자동실행이 되게 할 수 있다고 하여

수정했는데요.

---

#!/bin/sh -e
#
#rc.local
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

(/usr/bin/python /home/test/바탕화면/autorun.py) &
exit 0


--

rc.local의 내용이구요 python /home/test/바탕화면/autorun.py & 이런 식으로도 해보고

bash 파일로도 해보고 경로에 한글 없는 곳도 해봐도 안되네요.

rc.local에 대해 더 검색해서 알아낸 방법도 해봤는데

/lib/systemd/system/rc-local.service 를 수정 후

> systemctl daemon-reload

> systemctl enable rc-local.service

> reboot

해도 안되네요. 그리고 부팅 후

> sudo /etc/rc.local

을 하면 또 따로 실행은 되네요..


혹시 라즈베리파이 부팅 시 자동실행에 대해 더 아시는 분이나

다른 방법이 있으면 좀 도와주세요..


.
ªÀº±Û Àϼö·Ï ½ÅÁßÇÏ°Ô.
¼º¹Î¹Ú 2017-09
http://devkingsejong.tistory.com/26

crontabÀ» ÀÌ¿ëÇÏ¸é µË´Ï´Ù Âü°íÇϼ¼¿ä
     
Å׸®¾ß 2017-09
¾Ñ °¨»çÇÕ´Ï´Ù!
¶óÀÌÁ¨ 2017-09
rc.local ¿¡ ¾Æ·¡Ã³·³ ³Ö¾ú½À´Ï´Ù.
/usr/bin/python /root/ppy.py > /root/py_r.txt

cat ppy.py
print('jjajjajja')

cat py_r.txt
jjajjajja

µ¿ÀÛÀº Àߵ˴ϴÙ~
Àú ±¸¹® ÀÚü´Â ¹®Á¦°¡ ¾ø¾îº¸À̴µ¥¿ä autorun.py°¡ ¾î¶² µ¿ÀÛÇÏ´ÂÁö°¡ °ü°ÇÀϲ¨ °°³×¿ä.


QnA
Á¦¸ñPage 4243/5663
2014-05   4893139   Á¤ÀºÁØ1
2015-12   1432065   ¹é¸Þ°¡
2015-11   4713   ȭdz°¨¿ì
2020-04   2076   ¹é¸¸½º¹°Çϳª
2012-10   9110   ¹æ¿ïÅ丶Åä
2020-04   3022   ¶óÀÌÅ©À¯
2012-11   4567   ±èÁ¦¿¬
2023-04   1309   Ãູ¼Ò³â
2015-11   4806   ³ª¿ì´Ï½º
2015-11   4508   ¾Óµå·¹ÁØ
2016-11   4700   ¸®º£ÀÌÆ®
2012-12   4821   ¹Ú¹®Çü
2012-12   9328   °¡°¡¸°
2017-12   4390   com¾Ë¸ø
2020-05   4013   Á¦¿ÂÇÁ·Î
2012-12   8414   ³ª³ª³ª³ª³ª
2017-12   8625   ¹Ú»ó¹ü
2020-05   2458   È¥ÀÚ°¡´Â±æ
2009-11   8863   ¹ÚÁØ¿ë
2019-03   2548   ÀÌÀå³ë
2019-03   2624   Àº´ÜÇâ
2009-11   6656   Won³«¿¬