User Tools

Site Tools


notes

This is an old revision of the document!


mythtv

Configuring Apache for git access

gitweb.conf

$projectroot = '/path/here';

httpd.conf

<Location /git/repos>
  Require valid-user
  Require ldap-group CN=groupname,OU=organizationalunit,DC=domain,DC=extension
</Location>
<LocationMatch "/git/repos/.*/git-receive-pack$">
  Require ldap-user "joe"
</LocationMatch>
AliasMatch ^/git/repos/(.*/objects/[0-9a-f]{2}/[0-9a-f]{38})$ /physical/path/to/git/repo/$1
AliasMatch ^/git/repos/(.*/objects/pack/pack-[0-9a-f]{40}.(pack|idx))$ /physical/path/to/git/repo/$1
<Location /git/repos>
  SetEnv GIT_PROJECT_ROOT /physical/path/to/git/repo/folder
  SetEnv GIT_HTTP_EXPORT_ALL
  SetEnv REMOTE_USER $REDIRECT_REMOTE_USER
</Location>
Alias /gitweb /usr/share/gitweb
ScriptAlias /git/repos/ /usr/lib/git-core/git-http-backend/
<Location /gitweb>
  SetEnv GITWEB_CONFIG /physical/path/to/gitweb.conf
</Location>
RedirectMatch ^/git/repos/?$ /gitweb?p=repos

Mount TrueCrypt Partition

C:\apps\TrueCrypt\TrueCrypt.exe /q /v \Path\To\File.tc /le

openvpn-client.conf

client

dev tun
remote server.com 1194
proto udp

resolv-retry infinite

nobind

user nobody
group nogroup

persist-key
persist-tun

ca ca.crt
cert client.crt
key client.key

comp-lzo

log /var/log/openvpn-client.log
verb 3

Use KDE Classic cursor theme

http://forum.kde.org/viewtopic.php?f=66&t=101878

# cd /usr/share/icons
# tar cvf oxygen-disabled.tar oxy-*
# rm oxy-* -r

Run Script on Resume From Suspend in Kubuntu

http://ubuntuforums.org/showthread.php?t=1484156

  1. Have a look at folder /etc/pm/sleep.d/ - all scripts within this folder are automatically run as root-user after/before suspend or hibernate.
  2. A script needs to look like this example:
#!/bin/bash
case "$1" in
    hibernate|suspend)
        ACTION BEFORE SUSPEND/HIBERNATE
        ;;
    thaw|resume)
        ACTION AFTER RESUME
        ;;
    *)
        ;;
esac
exit $?

Disable Firefox Download Complete Notifications

http://ubuntuforums.org/showthread.php?t=874833

in the address bar type in:

about:config

in the search bar search for:

browser.download.manager.showAlertOnComplete

Using MinTTY as an MSYS console

mingw-get install mintty

Add -mintty argument to msys.bat in MinGW Shell start menu shortcut.

Building QEMU in MSYS

Mostly follow http://en.wikibooks.org/wiki/QEMU/MinGW

For glib:

export LIBFFI_CFLAGS="-I/opt/qemu/lib/libffi-3.0.13/include"
export LIBFFI_LIBS="-L/opt/qemu/lib -lffi"

For pkg-config:

export GLIB_CFLAGS="-I/opt/qemu/include/glib-2.0 -I/opt/qemu/lib/glib-2.0/include"
export GLIB_LIBS="-L/opt/qemu/lib -lglib-2.0"
export PKG_CONFIG_PATH=/opt/qemu/lib/pkgconfig
export ACLOCAL_PATH=/opt/qemu/share/aclocal

For qemu:

I got errors about PKG_PROG_PKG_CONFIG when building pixman. I just commented out the 7 lines starting with PKG_PROG_PKG_CONFIG in the generated “pixman/configure” script since I wasn't using GTK anyway.

Burning Blu-Rays with K3B

Out of the box on a Kubuntu 14.04.1 install, k3b will give Input/Output errors at the end of writing a blu-ray, even though the data appears to write successfully. This is due to growisofs having bugs. Installing the cdrecord package manually from http://sourceforge.net/projects/cdrtools/files/alpha/ (defaults to /opt/schily) will allow k3b to use cdrecord instead of wodim. Then, configuring the k3b project to not be multi-session will force k3b to use mkisofs instead of growisofs and avoid the bug, allowing blu-ray burning to complete successfully. Reference https://bugs.kde.org/show_bug.cgi?id=281818.

Auto-mounting NFS mount points with systemd

In /etc/fstab options field, add:

noauto,x-systemd.automount

Then run:

systemctl daemon-reload

to make the change take effect immediately.

ut2004 on linux

apt-get install libstdc++5:i386 pulseaudio:i386

Use a launcher script like this:

#!/bin/sh
# Clear LD_PRELOAD to avoid Steam trying to load its overlay which won't work with UT2004 in 32-bit mode on Linux
export LD_PRELOAD=
exec /usr/bin/linux32 padsp $HOME/ut2004/ut2004 >/home/josh/ut2004.log 2>&1

Setting up cgit

Apache Configuration

Alias /cgit/ /opt/cgit/
<Directory /opt/cgit/>
    Options +ExecCGI
    AcceptPathInfo On
    AddHandler cgi-script .cgi
</Directory>

/etc/cgitrc

css=/cgit/cgit.css
logo=/cgit/cgit.png
snapshots=zip tar.xz
section-from-path=1
readme=:README.html
readme=:README
enable-index-owner=0
enable-http-clone=0
clone-prefix=http://server/git
root-title=Git Repositories
root-desc=
index-header=/opt/git-mkrepo/conf/cgit/index-header.html
scan-path=/var/git/git/repos

Configure Defense Grid 2 to not use a USB controller

Get text back next to icons in gnucash

Use distribution's Appearance settings to change the Icon style.

Carrier Reset for HTC One M8 on Sprint

I was getting a “Unable to establish a wireless data connection” error on my HTC One M8 on Ting using Sprint's network. The technician suggested calling ##72786#' to do a “Carrier Reset”. It retried to activate several times unsuccessfully, but on the last attempt I stepped outside and then it succeeded. Since then my mobile data connection seems to work fine again.

notes.1458414643.txt.gz · Last modified: by josh