Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

Noob question, get a script running at boot
Thank you for your donation

Pages (2): 1 2 Next »
Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Noob question, get a script running at boot
13th Jun, 2014, 08:40 AM
Post: #1
huibert Offline
Registered
Posts: 10
Joined: Jun 2014
Reputation: 0
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
Find all posts by this user
Quote this message in a reply
13th Jun, 2014, 04:13 PM
Post: #2
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: Noob question, get a script running at boot
Simple question, Why?

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
13th Jun, 2014, 04:25 PM
Post: #3
huibert Offline
Registered
Posts: 10
Joined: Jun 2014
Reputation: 0
RE: Noob question, get a script running at boot
(13th Jun, 2014 04:13 PM)CurlyMo Wrote:  Simple question, Why?

Because I really really like doing that sort of stuff, and some airflow is always better than none.
Find all posts by this user
Quote this message in a reply
13th Jun, 2014, 04:49 PM
Post: #4
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: Noob question, get a script running at boot
I never heard someone overheat their Raspberry Pi Smile

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
13th Jun, 2014, 06:52 PM
Post: #5
huibert Offline
Registered
Posts: 10
Joined: Jun 2014
Reputation: 0
RE: Noob question, get a script running at boot
(13th Jun, 2014 04:49 PM)CurlyMo Wrote:  I never heard someone overheat their Raspberry Pi Smile

It's more of a lifespan thing, but how can it be done?
Find all posts by this user
Quote this message in a reply
13th Jun, 2014, 07:23 PM
Post: #6
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
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
Visit this user's website Find all posts by this user
Quote this message in a reply
13th Jun, 2014, 07:52 PM
Post: #7
Smultie Offline
Moderator
******
Posts: 322
Joined: Feb 2013
Reputation: 16
RE: Noob question, get a script running at boot
Great way to double the power usage though!
Find all posts by this user
Quote this message in a reply
13th Jun, 2014, 08:11 PM
Post: #8
IriDium Offline
Inquisitor
******
Posts: 2,025
Joined: Jan 2013
Reputation: 170
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.
Find all posts by this user
Quote this message in a reply
14th Jun, 2014, 12:45 AM
Post: #9
huibert Offline
Registered
Posts: 10
Joined: Jun 2014
Reputation: 0
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?
Find all posts by this user
Quote this message in a reply
14th Jun, 2014, 12:58 AM
Post: #10
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
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
Visit this user's website Find all posts by this user
Quote this message in a reply
14th Jun, 2014, 01:41 AM
Post: #11
huibert Offline
Registered
Posts: 10
Joined: Jun 2014
Reputation: 0
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.

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.

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?
Find all posts by this user
Quote this message in a reply
14th Jun, 2014, 04:27 AM
Post: #12
josch Offline
Registered
Posts: 85
Joined: Jan 2014
Reputation: 17
RE: Noob question, get a script running at boot
Hola huibert, welcome to XBian! Cool

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. Wink


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
Find all posts by this user
Quote this message in a reply
14th Jun, 2014, 04:32 AM
Post: #13
IriDium Offline
Inquisitor
******
Posts: 2,025
Joined: Jan 2013
Reputation: 170
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.
Find all posts by this user
Quote this message in a reply
14th Jun, 2014, 06:02 AM
Post: #14
huibert Offline
Registered
Posts: 10
Joined: Jun 2014
Reputation: 0
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
Find all posts by this user
Quote this message in a reply
14th Jun, 2014, 06:13 AM
Post: #15
IriDium Offline
Inquisitor
******
Posts: 2,025
Joined: Jan 2013
Reputation: 170
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.
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Pages (2): 1 2 Next »
Post Reply 


Possibly Related Threads...
Thread: Author Replies Views: Last Post
  Noob question: Solving crash problems JumbledGrass 28 84,520 9th Jun, 2014 11:57 PM
Last Post: menakite

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 9th May, 2025, 04:24 PM Powered By MyBB, © 2002-2025 MyBB Group.