Raspberry Pi - $35 Linux computer

  • Thread starter Thread starter daz
  • Start date Start date
YES! :D Windows phone win!

L2tp via IPsec with PSK instead of cert, VPN working on the PI to my phone :D Just tested by entering my internal IP for my router and it loads.

This may not be the biggest deal but the internet is full of bad reviews of WP VPN and Im just glad I got it working :)
 
can the pi2 be used as a streamer to my tv?
i was looking at a nas, but i have a desktop 2tb drive doing nothing, could i connect this to the pi2 and then browse the network on my tv (dlna etc) and watch things and listen to music?
 
Very little.

I've got mine working 99% perfectly now.

I'll write a mini guide on the weekend.



If you already have the Apple remote, buy the TSOP and the wires for it.


My quick workaround for getting an Info button working..

Set the Play/Pause button as 'Info'. Then when in fullscreen video, make it become Play/Pause.

I can now transfer my settings to any Pi by adding one line to config.txt and pasting 2x files into the Pi's shared folders.
Do you have a guide for this? It's driving me nuts trying to find an unto date guide for openelec. Got all the gear it's just useless at the moment.
 
I will write this up one day..

But this is what I followed.


Connect the GPIO IR like this.

LsSkmIU.png


http://wiki.openelec.tv/index.php/Guide_To_lirc_rpi_GPIO_Receiver

-What I did..

Step 1 -edit the config file

Add this line to config.txt (I put my SD card for the Pi into my PC to edit it)
To do this, add line to the end of the config.txt file in notepad

Code:
dtoverlay=lirc-rpi

Save the file, put it in the Pi, boot up.


This enables the GPIO module

-----

Step 2 -ssh into the Pi and run the command to record keys

You may want to look up how to ssh, basically you download 'putty.exe', run that type in the name of your Pi, for me it's openelec, or you can use the IP of the Pi. You'll need to have ssh enabled on the Pi, you can do this in the OpenElec settings.

This is basically network commandline access to the Pi.

It will ask for the login (user,password) which is

root
openelec

Run this command in putty.

Code:
irrecord /storage/.config/lircd.conf

Follow the on screen instructions, carefully.


It will ask you to type in your 'KEY_ commands'.


Ie, if you type KEY_UP it will then ask you to press the IR button for UP.


This is what I set mine as..

KEY_UP
(up)

KEY_DOWN
(down)

KEY_LEFT
(left)

KEY_RIGHT
(right)

KEY_OK
(middle select button)

KEY_MENU
(menu)

KEY_INFO
(play/pause button)


I set play/pause as info so you can use it as a info button during menu screens, in step 3 you'll see how I change this button to become play/pause when in fullscreen video mode

Once you save this file (I think it tells you on screen how to do that), it will be saved in..

\\openelec\Configfiles\lircd.conf

You can browse this from your Windows machine if you fancy editing it in notepad.


-----

Step 3

This step is required to change the play/pause 'info' key to become play/pause when in fullscreen video mode.

Browse to the folder

\\openelec\Userdata\keymaps

Create a new file here in notepad called gen.xml

Add this line to it and save.

Code:
<keymap><fullscreenvideo><keyboard><key id="195">playpause</key></keyboard></fullscreenvideo></keymap>


Now reboot and your Pi should be working with your Apple remote
 
Nice one, actually did get it working in the end, had to use
Code:
irrecord .config/lircd.conf
which got it going, finding it very unresponsive though.

Thanks for step3, very helpful.
 
Unresponsive? what hardware do you have?

Mine is lightning fast..

RPi2
Openelec (5.0.8)
TSOP4838 IR module (ebay)
Apple remote

Even on my Pi model B 512MB it runs pretty well, much better than CEC.


-edit, it's a little finnicky to set up, but once it's configured, I find it perfect.
 
Same, although I'm on OpenELEC 5.95.1

Button presses are very unresponsive, although I've never changed the battery in the remote so it maybe that. Also use a PS3 BD Remote for backup so it's not too bad.

Just need to find a case for this thing now, any recommendations? Want to fit a HiFiBerry DAC+ in with it eventually.
 
Same, although I'm on OpenELEC 5.95.1

Button presses are very unresponsive, although I've never changed the battery in the remote so it maybe that. Also use a PS3 BD Remote for backup so it's not too bad.

Just need to find a case for this thing now, any recommendations? Want to fit a HiFiBerry DAC+ in with it eventually.

The HifiBerry DAC+ uses pin 18 on the GPIO as well and your existing setup wont work moving forwards if that's the case.

I would look at changing to different pins for the IR now so you don't have to work on it later. :)
 
Typical :D

Looks like I should look into buying a flirc USB receiver then. I do have a generic USB IR receiver but I've no idea how to train it up - any ideas?
 
I run a USB disk caddy with a 2.5" SATA disk in it that was laying a round, and I plug this straight in to my PI. Everything runs fine, for a while, and then randomly the disk will disappear from the PI. I am guessing this is power related?

below is my dmesg log. As you can see, nothing until then bam, and the disk is gone...

Code:
[   34.239807] tun: (C) 1999-2004 Max Krasnyansky <[email protected]>
[104463.492617] usb 1-1.4: reset high-speed USB device number 4 using dwc_otg
[104494.442928] usb 1-1.4: reset high-speed USB device number 4 using dwc_otg
[104504.703098] usb 1-1.4: reset high-speed USB device number 4 using dwc_otg
[104520.963286] usb 1-1.4: reset high-speed USB device number 4 using dwc_otg
[104521.183252] usb 1-1.4: reset high-speed USB device number 4 using dwc_otg
[104531.363312] usb 1-1.4: reset high-speed USB device number 4 using dwc_otg
[104531.464372] sd 0:0:0:0: Device offlined - not ready after error recovery
[104531.464445] sd 0:0:0:0: [sda]
[104531.464463] Result: hostbyte=0x05 driverbyte=0x00
[104531.464482] sd 0:0:0:0: [sda] CDB:
[104531.464493] cdb[0]=0x28: 28 00 0b 89 6c 90 00 00 20 00
[104531.464552] blk_update_request: I/O error, dev sda, sector 193555600
[104531.464652] sd 0:0:0:0: rejecting I/O to offline device
[104531.464687] sd 0:0:0:0: [sda] killing request
[104531.464729] sd 0:0:0:0: rejecting I/O to offline device
[104531.464800] sd 0:0:0:0: rejecting I/O to offline device
[104531.464885] sd 0:0:0:0: rejecting I/O to offline device
[104531.464936] sd 0:0:0:0: rejecting I/O to offline device
[104531.464982] sd 0:0:0:0: rejecting I/O to offline device
[104531.465036] sd 0:0:0:0: rejecting I/O to offline device
[104531.465204] sd 0:0:0:0: rejecting I/O to offline device
[104531.466787] sd 0:0:0:0: [sda]
[104531.466826] Result: hostbyte=0x01 driverbyte=0x00
[104531.466844] sd 0:0:0:0: [sda] CDB:
[104531.466857] cdb[0]=0x2a: 2a 00 00 60 45 30 00 00 10 00
[104531.466914] blk_update_request: I/O error, dev sda, sector 6309168
[104531.466939] Buffer I/O error on dev sda1, logical block 788390, lost async page write
[104531.466981] Buffer I/O error on dev sda1, logical block 788391, lost async page write
[104531.469581] sd 0:0:0:0: rejecting I/O to offline device
[104531.477279] sd 0:0:0:0: rejecting I/O to offline device
[104531.477413] sd 0:0:0:0: rejecting I/O to offline device
[104531.479420] sd 0:0:0:0: rejecting I/O to offline device
[104531.480395] sd 0:0:0:0: rejecting I/O to offline device
 
LOL, that is what my PI is for (as well as OpenVPN, Deluge and MiniDLNA). I guess a powered USB hub is the solution. Any recommendations? I would like to maintain my "stack" or Pi on top of the USB HDD, so the hub would have to fit in to that.
 
Need a remote for my Pi2 running openelec as TV has no CEC. Got a spare skyhd remote I plan to use with a Flirc.

Anyone see any problems with the remote? Was hoping I could maybe still program it to control the TV also and once sky button is pressed it controls the Pi.
 
I run a USB disk caddy with a 2.5" SATA disk in it that was laying a round, and I plug this straight in to my PI. Everything runs fine, for a while, and then randomly the disk will disappear from the PI. I am guessing this is power related?

below is my dmesg log. As you can see, nothing until then bam, and the disk is gone...

Code:
[   34.239807] tun: (C) 1999-2004 Max Krasnyansky <[email protected]>
[104463.492617] usb 1-1.4: reset high-speed USB device number 4 using dwc_otg
[104494.442928] usb 1-1.4: reset high-speed USB device number 4 using dwc_otg
[104504.703098] usb 1-1.4: reset high-speed USB device number 4 using dwc_otg
[104520.963286] usb 1-1.4: reset high-speed USB device number 4 using dwc_otg
[104521.183252] usb 1-1.4: reset high-speed USB device number 4 using dwc_otg
[104531.363312] usb 1-1.4: reset high-speed USB device number 4 using dwc_otg
[104531.464372] sd 0:0:0:0: Device offlined - not ready after error recovery
[104531.464445] sd 0:0:0:0: [sda]
[104531.464463] Result: hostbyte=0x05 driverbyte=0x00
[104531.464482] sd 0:0:0:0: [sda] CDB:
[104531.464493] cdb[0]=0x28: 28 00 0b 89 6c 90 00 00 20 00
[104531.464552] blk_update_request: I/O error, dev sda, sector 193555600
[104531.464652] sd 0:0:0:0: rejecting I/O to offline device
[104531.464687] sd 0:0:0:0: [sda] killing request
[104531.464729] sd 0:0:0:0: rejecting I/O to offline device
[104531.464800] sd 0:0:0:0: rejecting I/O to offline device
[104531.464885] sd 0:0:0:0: rejecting I/O to offline device
[104531.464936] sd 0:0:0:0: rejecting I/O to offline device
[104531.464982] sd 0:0:0:0: rejecting I/O to offline device
[104531.465036] sd 0:0:0:0: rejecting I/O to offline device
[104531.465204] sd 0:0:0:0: rejecting I/O to offline device
[104531.466787] sd 0:0:0:0: [sda]
[104531.466826] Result: hostbyte=0x01 driverbyte=0x00
[104531.466844] sd 0:0:0:0: [sda] CDB:
[104531.466857] cdb[0]=0x2a: 2a 00 00 60 45 30 00 00 10 00
[104531.466914] blk_update_request: I/O error, dev sda, sector 6309168
[104531.466939] Buffer I/O error on dev sda1, logical block 788390, lost async page write
[104531.466981] Buffer I/O error on dev sda1, logical block 788391, lost async page write
[104531.469581] sd 0:0:0:0: rejecting I/O to offline device
[104531.477279] sd 0:0:0:0: rejecting I/O to offline device
[104531.477413] sd 0:0:0:0: rejecting I/O to offline device
[104531.479420] sd 0:0:0:0: rejecting I/O to offline device
[104531.480395] sd 0:0:0:0: rejecting I/O to offline device

LOL, that is what my PI is for (as well as OpenVPN, Deluge and MiniDLNA). I guess a powered USB hub is the solution. Any recommendations? I would like to maintain my "stack" or Pi on top of the USB HDD, so the hub would have to fit in to that.

You can try adding max_usb_current=1 to bottom of your config.txt which gives the option for more current over usb.

Plug SD card into computer and edit file using notepad. Saved me from buying a powered usb hub.
 
What are the new models like? I did have the original one but sold it after a while

I will need something that can connect to a VPN server, and stream media over the web from my Plex server,possible? Running Plex from would be OK locally, but my media is hosted on a Plex server I access over a VPN.
 
^I wrote a guide above for using Apple remote with a GPIO IR module. Any remote would work with my guide..

Not plug and play, requires a little bit of set up the first time. After that, you can just save the config files and copy them to another Pi.
 
I've got a flirc ir dongle on the way. The apple remote looks nice but feel I would prefer something with more buttons and the ability to control my TV as well as the pi.

Just wanted to check if the sky remote would fit the bill.
 
Back
Top Bottom