Saturday, 28 February 2015

HiFiBerry, OpenELEC and Raspberry Pi 2

Apart from the last step, these instructions come from HiFiBerry.com here.

Create this file: .config/modules-load.d/hifiberry.conf
And make its contents:
snd_soc_bcm2708_i2s
bcm2708_dmaengine
snd_soc_hifiberry_dacplus

Create or edit this file: /storage/.xbmc/userdata/advancedsettings.xml
And make it include this:
<advancedsettings> <video> <defaultplayer>dvdplayer</defaultplayer> <defaultdvdplayer>dvdplayer</defaultdvdplayer> </video> </advancedsettings>

Create this file: /storage/.config/modprobe.d/disable-lirc.conf
And make its contents:
blacklist lirc_rpi

Now a change that isn't in the hifiberry.com instructions. You need to edit the /boot/config.txt file. To do this the RPi needs to be shutdown, pull the SD card out and mount it on another computer. Add to the end of config.txt the following:
dtoverlay=hifiberry-dacplus

Save the file, start up OpenELEC and select HiFiBerry in OpenELEC's audio settings.

Sunday, 7 September 2014

2 steps for passwordless SSH login

1. Open terminal and run: ssh-keygen
2. Then: ssh-copy-id remote-user@remote-hostname

If you want to give root ssh access to the remote system (e.g. for rsnapshot) then just run 'sudo su' before those two commands.

Thursday, 7 August 2014

RDP rdesktop command

rdesktop -u username -d domain -p password -f -a 24 servername

Tuesday, 22 July 2014

Fix for rsnapshot not running through cron on raspbian

Edit crontab with:

sudo crontab -e

And then in the crontab text file, before the scheduled tasks are defined add:

MAILTO=""

Monday, 10 March 2014

compton config for i3

in ~/.i3/config add this to start compton as daemon

exec compton -CGb

and in ~/.config/compton.conf

backend = "glx"
glx-no-stencil = true
#glx-copy-from-front = false
glx-no-rebind-pixmap = true
glx-swap-method = "exchange"
refresh-rate = 0
vsync = "opengl-swc"
dbe = false
paint-on-overlay = true
sw-opti = false
##unredir-if-possible = true

Saturday, 1 March 2014

Workaround huge xbmc log files about "caesinkalsa"

XBMC log files with lots of entries about "caesinkalsa", to workaround:

1) Create advancedsettings.xml in /home//.xbmc/userdata
2) Disable logging by setting log level to -1 in advancedsettings.xml. See http://wiki.xbmc.org/index.php?title=Log_file/Advanced

Sunday, 20 October 2013

PulseAudio changes in order to have synchronous output on HDMI and SPDIF

In /etc/pulse/default.pa

1) Comment out line that loads module module-udev-detect.so

2) General idea is to use module-combine-sink. hw:0,1 and hw:0,3 might need changing depending on hardware, but otherwise add:

load-module module-alsa-sink device=hw:0,1 sink_name=optical_output
load-module module-alsa-sink device=hw:0,3 sink_name=hdmi_output
load-module module-combine-sink sink_name=hdmiandoptical slaves=hdmi_output,optical_output
set-default-sink hdmiandoptical