Noob question, get a script running at boot
|
14th Jun, 2014, 06:31 AM
Post: #16
|
|||
|
|||
RE: Noob question, get a script running at boot
I don't know how else to phase it. I want to do something and i need help. That's all I'm saying.
|
|||
14th Jun, 2014, 06:44 AM
Post: #17
|
|||
|
|||
Re: RE: Noob question, get a script running at boot | |||
14th Jun, 2014, 06:56 AM
Post: #18
|
|||
|
|||
RE: Noob question, get a script running at boot
Feature request, grammar exam at registration
pilight - modular domotica solution
|
|||
14th Jun, 2014, 07:43 AM
Post: #19
|
|||
|
|||
RE: Noob question, get a script running at boot
I don't think that it's a grammar thing what IrDium meant. I think it's because huibert is repeating what he wants,
even after he already got all he needs to know. He posted the full tutorial for Raspbian and just wanted to know how to do it with XBian and he was already told that he can do the same things in Xbian like in Raspbian. Now he should try the tutorial (his link) and ask again if something specific isn't working. But just repeating again what he wants to do is like "Ok, now give it to me step by step - what key to press at first?" The exactly howto - for compiling and running the script - is actually in the script he wants to run it self: Quote:To Compile:Source: http://www.raspberrypi.org/forums/viewtopic.php?t=30347&p=430009 So just try it and ask again if there occur any problems. My setup: Software: XBian version: 1.0RC3 | XBMC version: 13.2 (Gotham) | Overclock settings: High Hardware: RPi model: B | Power: DUB-H7 | SD: Tanscend Class 10 | Network: Wireless |
|||
14th Jun, 2014, 08:22 AM
Post: #20
|
|||
|
|||
RE: Noob question, get a script running at boot
Well the problem for me is that I don't know how to get into an environment that resembles raspian. I know how to run code, I just don't know how to do it in xbian. The step by step guide doesn't show this.
|
|||
14th Jun, 2014, 04:29 PM
Post: #21
|
|||
|
|||
RE: Noob question, get a script running at boot
Ok, so it's a very very basic question. Sorry, it wasn't clear to me that you just don't know how to get to the
command line because you said you aren't new to unix. Nevermind - here you go: As I already said, XBian is elementary based on Debian and so of course there is always a command line running below. To enter it, all you have to do is to exit XBMC. (XBMC Shutdown Button -> Quit) You can do it also more comfortable via SSH. Using SSH you can run the commands from your PC and won't need any keyboard on the Pi at all. But I would recommend to stop XBMC also, as this will speed up the compiling process. You can stop/start XBMC service via: Terminal sudo service xbmc <stop|start|restart> My setup: Software: XBian version: 1.0RC3 | XBMC version: 13.2 (Gotham) | Overclock settings: High Hardware: RPi model: B | Power: DUB-H7 | SD: Tanscend Class 10 | Network: Wireless |
|||
19th Jun, 2014, 03:32 AM
Post: #22
|
|||
|
|||
RE: Noob question, get a script running at boot
So... did it work for you?
It's kind of disappointing to spend some lifetime for helping others, if there's no thanks or any feedback at all. My setup: Software: XBian version: 1.0RC3 | XBMC version: 13.2 (Gotham) | Overclock settings: High Hardware: RPi model: B | Power: DUB-H7 | SD: Tanscend Class 10 | Network: Wireless |
|||
19th Jun, 2014, 07:42 AM
Post: #23
|
|||
|
|||
RE: Noob question, get a script running at boot
(19th Jun, 2014 03:32 AM)josch Wrote: So... did it work for you? I'm sorry, i didn't get a notification for that response, so i haven't tries it yet. It wasn't my intention to ignore anyone. I'll try it as soon as i'm on my pc. I'm sorry for not specifying the lack of my knowledge at the start. SSH is what I needed to know, thank you very much . It still doesn't work though, the script runs when I start it manually but it doesn't start from crontab or /etc/rc.local . I enabled cron, I added the line in cron but it doesn't work. Can anyone advise me what might be the problem with these 2 automatic services not working? |
|||
19th Jun, 2014, 11:15 PM
Post: #24
|
|||
|
|||
RE: Noob question, get a script running at boot
(19th Jun, 2014 07:42 AM)huibert Wrote: I'm sorry, i didn't get a notification for that response, so i haven't tries it yet. It wasn't my intention to ignore anyone. [...] No problem! I just thought that you had already success. In this case I would have expected a short reply. But of course, I didn't want to be harsh or offended only because you didn't answered fast enough. (19th Jun, 2014 07:42 AM)huibert Wrote: can anyone advise me what might be the problem with these 2 automatic services not working? Ok, so let's face the /etc/rc.local method. - What exactly did you put in and where? There are three important things you have to consider:
Example: If I would want to run a script after boot as user xbian and keep the script running, I would add a line like: Code: su xbian -c "/path/script &" right before the exit(0) line in /etc/rc.local. If you want to run the script as root, the part in the quotes (/path/script &) is all you need! My setup: Software: XBian version: 1.0RC3 | XBMC version: 13.2 (Gotham) | Overclock settings: High Hardware: RPi model: B | Power: DUB-H7 | SD: Tanscend Class 10 | Network: Wireless |
|||
20th Jun, 2014, 01:24 AM
Post: #25
|
|||
|
|||
RE: Noob question, get a script running at boot
(19th Jun, 2014 11:15 PM)josch Wrote:(19th Jun, 2014 07:42 AM)huibert Wrote: I'm sorry, i didn't get a notification for that response, so i haven't tries it yet. It wasn't my intention to ignore anyone. [...] There we go, insufficient understanding of the rc.local . added the & and correctly started the program as root. Thank you for all your help. |
|||
20th Jun, 2014, 01:28 AM
Post: #26
|
|||
|
|||
RE: Noob question, get a script running at boot
Didn't find this in the wiki FAQ yet
pilight - modular domotica solution
|
|||
20th Jun, 2014, 11:21 PM
Post: #27
|
|||
|
|||
RE: Noob question, get a script running at boot
My setup: Software: XBian version: 1.0RC3 | XBMC version: 13.2 (Gotham) | Overclock settings: High Hardware: RPi model: B | Power: DUB-H7 | SD: Tanscend Class 10 | Network: Wireless |
|||
« Next Oldest | Next Newest »
|
Possibly Related Threads... | |||||
Thread: | Author | Replies | Views: | Last Post | |
Noob question: Solving crash problems | JumbledGrass | 28 | 79,823 |
9th Jun, 2014 11:57 PM Last Post: menakite |