A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Hot answers tagged

12

The diagram does not show pin numbers. Neither can I find anything on the diagram labelled 1. The diagram does appear to correctly label the ground and 5V pins. You can power a 5V fan by connecting its power leads to a 5V pin and a ground pin. It will be on all the time as you can't switch the 5V pins on or off. Do not try powering the fans from a gpio. ...


6

Based on your dmesg output, it looks like the hard drive isn't getting enough power. It's does the connection phase, and then starts the spin up process. Since this is the most energy intensive task, it makes sense that it would be the point at which the connection fails. I would suggest switching to a powered USB hub. Edit: Based on your comments: ...


6

There is a proper Netflix addon but it uses Kodi 17 (krypton)'s newly implemented InputStream API. However, Kodi 17 still isn't enough for running the plugin, Netflix uses DRM encryption which is only supported in the Kodi 18 nightly builds. At the time writing, OSMC is using Kodi 17 wich doesn't support this feature. My sugestion is using raspbian (or other ...


5

Airplay is installed and activated by default on OSMC. All you have to do is install OSMC on your Raspberry Pi and setup the audio output to direct it to your analogue speakers, as it is set on HDMI audio by default: Download the OSMC installer for your OS Run the executable to install OSMC on an SD card and setup the network connection Plug in your ...


5

You can make use of ffmpeg to convert h265 format to h264 format. Install ffmpeg using command sudo apt-get install ffmpeg Download h265 codecs. wget http://ftp.videolan.org/pub/videolan/x265/x265_1.7.tar.gz Install dependencies for compilation. sudo apt-get install cmake cmake-curses-gui build-essential yasm untar it by tar -xvzf x265_1.7.tar.gz cd x265_1....


4

This is right? (+ on 1 and - on 2?) No, because you say that you have a 5V fan, and yet pin 1 is 3.3V, in addition to the fact that pin 2 on your diagram (which is in fact pin 3) is an I2C pin. You should connect a 5V fan to the correct pin 2 (which is opposite pin 1 - the red pin in your diagram - not next to it) which is 5V and pin 6 (the black pin in ...


3

It looks like changing all the ".ovpn" files instead to use ".conf" extension worked. Not sure why that is. E.g.: sudo openvpn --config /etc/openvpn/Netherlands.conf


3

I increased gpu_mem from 160/192 (as I found earlier in internet) to 256mb, now it works fine.


3

cec-client allows you to pipe cec frames, such as echo "tx 20:71" | cec-client RPI -s -d 1. http://www.cec-o-matic.com/ has a list of supported features and frame composer/decomposer. https://blog.gordonturner.com/2016/12/14/using-cec-client-on-a-raspberry-pi/ has more information on how to use these with cec-client.


3

We don't know anything about your log in commands but you can put this commands into a shell script. This is basic bash programming and you will find millions of tutorials how to do it. If you have made the script and you have tested it running from the command line then just make a systemd Unit file to start this script one time on boot up. You will also ...


2

As for your first question, it's perfectly possible to use your Raspberry Pi as a media center, I've done it once and it works just fine. How I did it? Well, I've flashed my Pi with the XBMC distribution. You can use either the ones based on OpenELEC or OSMC. The flashing process can be easily achieved through NOOBS, which you can download here. As taken ...


2

Nothing is possible without software. I guess what you mean however is "without installing a full media center". You can just install Shairplay or the now no longer maintained ShairPort on your rPi to do the AirPlay emulation.


2

Recently someone has uploaded a noobs image. It is recent and it works with the latest noobs version. Download it from here: Ubuntu Mate. Unzip the archive and transfer the folder into the os folder of noobs and install noobs as usual.


2

This is because aria2 is trying to use IPv6 and failing. You can disable this option by adding following line to aria2 config disable-ipv6=true


2

If you modify a skin that is currently in use you'll have to reload the skin for your changes to take effect: kodi-send --action="ReloadSkin()" Credits: How to remove and add features from OSMC and Openelec on raspberry pi?


2

I solve the problem by adding this code to list of itags that locates at /home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/youtube/helper/video_info.py '91': {'container': 'ts', 'Live': True, 'title': 'Live@144p', 'sort': [144, 0], 'video': {'height': 144, 'encoding': 'h.264'}, ...


2

You can use the xbmc-send command. For example to make the video window the active window you would enter this: xbmc-send --action="ActivateWindow(Videos)" A list of the built in actions can be found here. I could not find how to get the currently playing title using xbmc, but there is a JSON-RPC API, some examples can be found here, and this question ...


2

I have never had any luck running sudo within a script. In fact i have seen it very much not recommended. You could cron this and have root own it: #!/bin/bash URL="http://www.google.com" wget_output=$(wget -q "$URL") if [ $? -ne 0 ]; then service openvpn restart fi


2

raspi-config is specifically for Raspbian, whence the name. Try these instructions for setting up a keyboard layout for OSMC. It involves installing a few packages and reconfiguring one, all from the console.


2

Based on the link provided by tlhIngan, here is what I did (as root, sudo -s): dpkg-reconfigure locales Here I was able to select (in my case) de_DE.UTF-8. No substancial changes to the user experience up to this point. apt-get install console-setup Here I was able to choose Other first, and then the classic German keyboard layout with dead keys for ...


2

To turn off wifi, rfkill block wifi; to turn it on, rfkill unblock wifi. For Bluetooth, rfkill block bluetooth and rfkill unblock bluetooth. (I have not tried in OSMC.)


2

You can change the bootmenutimeout= to a higher value. This setting is found in the /boot/config.txt file.


2

BerryBoot lets you do this with supposedly any OS, unlike NOOBS (as per this question). Just make sure your SD card is large enough for each OS.


2

I managed to resolve my issues using Raspbian. Edit: also works with OSMC. It seems like I got a mix of unrelated errors, combined with my impatience to run back and forth between OS lead to total failure. I will answer for each bullet: Raspbian/OSMC (Can't reach by hostname) It seems like I needed two things: Install avahi and samba (to support my ...


1

You should be able to do this through the Yatse remote on your smart phone or tablet. Otherwise, if you click the power down icon at the bottom left, you should have an option to exit OSMC.


1

For Windows users: Put the Pi's SD card in your computer. Download Raspbian and unzip it. Install Win32DiskImager. Open Win32DiskImager, select the Raspbian image you downloaded and press Write. For Linux users Put the Pi's SD card in your computer and make sure it isn't mounted. Download Raspbian, unzip it and rename it to raspbian.img. Open a terminal ...


1

If surround sound directly from alsa is what you need, I suggest taking a look at this article: http://alsa.opensrc.org/SurroundSound The article also covers JACK.


1

You say "When i try to install a new osmc in another sd card, it freezes at 20% estimated". What freezes? If the install is freezing, then it seems your sd card is suspect. If the install runs fine and pi freezes on boot, then we're troubleshooting a problem with the pi. While it would seem unlikely two sd cards would go bad simultaneously, this is not ...


1

Motion changed some variable names in recent versions. To view the stream in a web-browser (http://192.168.0.*:8081) you need to set the 'stream_localhost' to off. This enables other devices on your network to view the stream (not just localhost). All of the streaming settings have new names and can be found about 3/4 of the way down in a section called '...


Only top voted, non community-wiki answers of a minimum length are eligible