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

Tuesday, 28 May 2013

#! SSD tweaks

In /etc/fstab set noatime,discard

Also add the line:
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0 

to move /tmp to RAM

Change Scheduler to deadline. This is done through grub, read up on elevator=deadline.

Can also move the web browser cache to RAM. Search for firefox config key:
browser.cache.disk.parent_directory
 
http://crunchbang.org/forums/viewtopic.php?id=13129 

Wednesday, 17 April 2013

run a script when a device is mounted

  1. Make sure udev-automount is installed
    pacman -Sy udev-automount
  2. Work out udev rules with udevadm (see Arch Wiki - udev)
    udevadm info -a -n /dev/sdc
  3. Create a udev rule file based on step 2, e.g. /etc/udev/rules.d/81-sdcard-sync.rules, with contents like this:
    KERNEL=="sd?1", ATTRS{idVendor}=="0781", ATTRS{idProduct}=="a7a8", ATTRS{serial}=="6333011111B1", RUN+="/usr/bin/sd-card-sync-start.py"