Noob question, get a script running at boot
|
13th Jun, 2014, 08:40 AM
Post: #1
|
|||
|
|||
Noob question, get a script running at boot
Hi guys and gals,
I'm new to Xbian, but not to linux/unix. I installed xbian on my raspberry pi model b 512mb and I have a question (probably one with a simple answer). I want to do this mod while running Xbian: http://www.raspberrypi.org/forums/viewtopic.php?t=30347&p=430009 My question is, how can I get the code mentioned in the link to run at startup to run my fan. I plan on doing some overclocking and I just like the idea of a fan on there. Thanks everyone |
|||
13th Jun, 2014, 04:13 PM
Post: #2
|
|||
|
|||
RE: Noob question, get a script running at boot
Simple question, Why?
pilight - modular domotica solution
|
|||
13th Jun, 2014, 04:25 PM
Post: #3
|
|||
|
|||
RE: Noob question, get a script running at boot | |||
13th Jun, 2014, 04:49 PM
Post: #4
|
|||
|
|||
RE: Noob question, get a script running at boot
I never heard someone overheat their Raspberry Pi
pilight - modular domotica solution
|
|||
13th Jun, 2014, 06:52 PM
Post: #5
|
|||
|
|||
RE: Noob question, get a script running at boot | |||
13th Jun, 2014, 07:23 PM
Post: #6
|
|||
|
|||
RE: Noob question, get a script running at boot
How, don't know. But i do know that any fan is useless. Cooling wise and lifespan wise.
pilight - modular domotica solution
|
|||
13th Jun, 2014, 07:52 PM
Post: #7
|
|||
|
|||
RE: Noob question, get a script running at boot
Great way to double the power usage though!
|
|||
13th Jun, 2014, 08:11 PM
Post: #8
|
|||
|
|||
RE: Noob question, get a script running at boot
Why not just wire it directly to the 3.3v output on the gpio pins. It will run a lot quieter than using 5v.
Please read before you post How to post a log file If you liked my help, click on "Thanks" to show your appreciation.
|
|||
14th Jun, 2014, 12:45 AM
Post: #9
|
|||
|
|||
RE: Noob question, get a script running at boot
(13th Jun, 2014 08:11 PM)IriDium Wrote: Why not just wire it directly to the 3.3v output on the gpio pins. It will run a lot quieter than using 5v. I want to be able to control the fan speed, it's more of a gimmick than a real feature. I guess no one knows how, since everyone is too obessed with telling me how useless it is but no answer to my question. Again, can I compile and run code like I can in any other linux build, in Xbian? |
|||
14th Jun, 2014, 12:58 AM
Post: #10
|
|||
|
|||
RE: Noob question, get a script running at boot
Quote:Again, can I compile and run code like I can in any other linux build, in Xbian?Yes. We just want to make absolutely sure that no users get the impression that having a fan has any use at all. That's why we repeat it that much. pilight - modular domotica solution
|
|||
14th Jun, 2014, 01:41 AM
Post: #11
|
|||
|
|||
RE: Noob question, get a script running at boot
(14th Jun, 2014 12:58 AM)CurlyMo Wrote:Quote:Again, can I compile and run code like I can in any other linux build, in Xbian?Yes. Okay, noted. I want to know how. When I press shift during boot up, I get a a terminal-like interface. I haven't tried doing anything in there yet. Is there a Linux desktop GUI somewhere in Xbian? Can I maybe add it? If so, how? |
|||
14th Jun, 2014, 04:27 AM
Post: #12
|
|||
|
|||
RE: Noob question, get a script running at boot
Hola huibert, welcome to XBian!
XBian is based on Raspbian (based on Debian) - so yes, you can do almost everything you can do also with Debian. If the terminal (and of course the XBMC GUI) of XBian isn't enough for you, I would recommend: http://forum.xbian.org/thread-1850-post-18439.html That way you can also use the normal user interface (LXDE) of Raspbian. Probably you can do it also the other way - install the missing packages under XBian - but why don't just use the HOWTO. Quote:Noob question, get a script running at boot You can do this via init-script, rc.local or on user login (e.g. .bashrc)... So the same methods like on Debian and other UNIX OS. If you need more help, just ask for it. 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, 04:32 AM
Post: #13
|
|||
|
|||
RE: Noob question, get a script running at boot
It's quite simple, I have it running using HOTPI See http://forum.xbian.org/thread-1864.html?highlight=hotpi. This uses a daemon to control the fan speed and a control program to decide when to switch the fan on/off or whatever speed.
The scripts are held in /etc/init (I think, or init.d) and are in an upstart format. Please read before you post How to post a log file If you liked my help, click on "Thanks" to show your appreciation.
|
|||
14th Jun, 2014, 06:02 AM
Post: #14
|
|||
|
|||
RE: Noob question, get a script running at boot
Thank you for that reply. I took a long hard look at it, but the way you connect the fan on hotpi is different than what i want to do. I want to know how to use the code specifiek in my OP so that i can control a fan directly. I just want to know how to compile and run the code. In xbian
|
|||
14th Jun, 2014, 06:13 AM
Post: #15
|
|||
|
|||
RE: Noob question, get a script running at boot
I don't know where you are from or what your inclinations are, but "I want" does NOT bear well with in a free forum.
I, for one, will not assist in this thread any more. Please read before you post How to post a log file If you liked my help, click on "Thanks" to show your appreciation.
|
|||
« Next Oldest | Next Newest »
|
Possibly Related Threads... | |||||
Thread: | Author | Replies | Views: | Last Post | |
Noob question: Solving crash problems | JumbledGrass | 28 | 79,795 |
9th Jun, 2014 11:57 PM Last Post: menakite |