Revision 2 of the Raspberry Pi board has holes on the board for connecting a reset switch. You can solder two jumper pins there, then connect a push button. This should reboot the Raspberry Pi.
When you shut down the Raspberry Pi, the board and USB ports will still be powered, even if the CPU is not running. If this matters to you, there is this Kickstarter ...
OpenELEC resizes /storage on first boot after creating the SD. I looked for the script that does that. It's https://github.com/OpenELEC/OpenELEC.tv/blob/master/packages/sysutils/busybox/scripts/fs-resize?source=c
The first code line checks for /storage/.please_resize_me file.
So... to resize storage to fill the SD you need to:
You can boot an idle Raspberry Pi via the GPIO pins. All you have to do is connecting pin 5 to ground. Either by a switch or a jumper.
In addition to that, you can also use the same pin/switch as a shut down switch. You just need a simple circuit, a resistor and a Python script for that to work. See the following example (source in German); I am using that ...
Modified from here, SSH into your Raspberry Pi running OpenELEC and follow these steps.
SSH in as root, by default you’re in /storage; switch to root
$ cd /
Keep XBMC from restarting:
$ touch /var/lock/xbmc.disabled
Stop XBMC, so we can unmount /storage:
$ killall -9 xbmc.bin
$ umount /storage
$ parted /...
I run the RPi as my media station with Xbmc (now named Kodi) on Arch Linux. I have an external 1TB HDD (with external power supply) attached which holds my movie/series collection.
Xbmc has Library features for Movies, Pictures, Series and Music with extended functionality (order by year, actor, whatever).
But, before creating a library in Xbmc, ...
To stop your wifi from go to sleep after idle for awhile, you need to disable its power management.
Edit file /etc/network/interfaces
Assume you Pi connect to network through wlan0. Add new line with wireless-power off right BELOW the line iface wlan0 inet manual
Save and reboot your Pi
run iwconfig now you should see Power Management:off
If you want use your RPi as NAS you should read this:
If you want use your RPi as Media Center you should read this:
You can do all this in one system.
I use OpenELEC, and it is working very fine as a media center. Therefore it doesn't allow you to use it as a "normal" Linux. It doesn't have a window manager; only XBMC is started on boot.
It also allows you to use it through SSH, but it doesn't have apt-get.
For normal users I would say they are somehow similar, and the differences are not that huge. However, for advance users they are different. OpenELEC has a huge disadvantage for people who like to further customize their Pi since the system come as a read-only image, e.g. you cannot disable or enable services and you cannot even change the root password ...
I guess your image is OpenELEC as @Lawrence said that. OpenELEC uses squashfs compressed image filesystem so you can't edit without uncompressing.
To uncompress it, convert your sd-card content into image with dd command in another computer which runs linux.
dd if=/dev/mmcblk0 of=/tmp/openelec.img
Then install squashfs-tools to get compress/uncompress ...
If you want to use a remote controller to turn on the RPi, I suggest the following setup:
Buy an IR photo-diode, or even better, an IR photo-transistor, and connect it to Pin 5 and GND. It acts like a push-button. When it receives IR beams from remote controller, it shorts, and hence connects Pin 5 to GND, hence the RPi turns on.
Fortunately, shorting the ...
shows that sh is the default shell, not bash!
sh executes the /storage/.profile on ssh login.
here's my quick & dirty hack to switch to bash.
make sure you have the /storage/.bashrc file and
that it's error free.
# cat /storage/.profile
exec bash & source /storage/.bashrc
OpenELEC appears to be an intentionally confined, minimal operating system. I assume it is simple to use, partially because you cannot do much with it beyond Kodi.
Part of this is that it does not have much of a "package management" system. You cannot install a vast range of software the way you could on Raspbian; you are limited to the various "add-ons". ...
Because you should have just asked for what you wanted:
apt-get install kodi
For future reference, apt has a search feature:
apt-cache search kodi
This will return a list of packages with "kodi" in their name or short description.
Editing /etc/network/interfaces no longer works in Raspbian, as TSGames commented in the most upvoted answer.
Instead, you can use /sbin/iw wlan0 get power_save to read the current power save state, and sudo /sbin/iw wlan0 set power_save off to disable power state.
Since the iw command is not persistant, I added /sbin/iw wlan0 set power_save off to /etc/rc....
Assuming your PC is Windows, and not Linux or Mac:
On your computer:
Put everything you want to stream into a single folder.
Right-click that folder in Windows Explorer / File Explorer.
Click Properties, then change to the Sharing tab.
Click Advanced Sharing
Tick the "Share this Folder" box
Give the folder a name to show on the ...
Finally i could solve it. a simply python script to send a magic packet.
replace the QQ on the last line with your target pc's MAC address. with lowercase.
just exec it, and voilà...
s.setsockopt(socket.SOL_SOCKET, socket.SO_BROADCAST, 1)
For future reference.
OpenELEC config.txt file is in /flash
To modify it, you need to remount the /flash directory as rw, as it is read-only by default. The easiest way to do that is to have both the Pi and another computer on the same network and use SSH.
If you are using Windows, you can use PuTTY: launch the exe, put the IP address of your Pi (you can ...
One issue I had (with version 3.1.5) :
=> “umount: can’t umount /storage: Device or resource busy”
fuser -m /storage
=> pid of the process that was locking the mount
I tried to kill it, but everytime a new process blocked the mount. I have to kill + umount in the same time with the pipe (in this order) :
umount /storage | kill -9 pid
there are two kind of people with external hard drives, some are looking for methods to power down the HDD when not accessed, and others are looking for methods to power it up when needed =)
from my point of view, starting and stopping hdd spindle rotation is the operation that wears the hard disk drive most. unless you have strong worries about your power ...
XBMC supports starting external applications like MAME arcade emulator from it. MAME on Pi:
Do I run any risk of doing any real, long-term damage to my Pi using it like this?
No. The risk is to the root filesystem, which may get left in an inconsistent (corrupted) state. If this happens, usually it can be fixed with e2fsck.
Unless you do it at a very inopportune time though, it probably won't happen. Of course, every time you do it is like ...
To the best of my knowledge there is no terminal access in OpenELEC. There is, per Ghanima's comment above, an Exit option and terminal access in vanilla Kodi on Raspbian, but not in OpenELEC.
The instructions on the OpenELEC homepage recommend using Putty to create an SSH session from a remote machine, with the default username root and the password ...
In short, yes, the Raspberry Pi is able to do that.
The passthrough device is when XBMC doesn't decode the audio bitstream. It passes the audio information through to something downstream to decode and then convert to analog to put out to the speakers.
So if it's a DTS or AC3 (Dolby Digital) soundtrack, XBMC just passes that information along to your ...
I found a solution myself, pretty logical when i think about it...
If i disable CEC on the AVR, the TV-CEC signals are going through fine. I guess the cable cant send CEC-signals for multiple machines simultaneously.
The strange thing is that i can't remember ever changing that setting on the AVR (pretty sure it's been on all the time) even when it worked ...
The Raspberry Pi (even the B+ model) cannot be switched on/off easily. The easy way is to plug/unplug the RPi, as you already do.
To switch it on/off with a remote, you will have to plug some third-party component in the GPIO. You can either make it yourself if you are into electronics, or buy one of those RemotePi Board (I just found it, maybe other ...