[[mythtv]] ====== Configuring Apache for git access ====== ===== gitweb.conf ===== $projectroot = '/path/here'; ===== httpd.conf ===== Require valid-user Require ldap-group CN=groupname,OU=organizationalunit,DC=domain,DC=extension Require ldap-user "joe" 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 SetEnv GIT_PROJECT_ROOT /physical/path/to/git/repo/folder SetEnv GIT_HTTP_EXPORT_ALL SetEnv REMOTE_USER $REDIRECT_REMOTE_USER Alias /gitweb /usr/share/gitweb ScriptAlias /git/repos/ /usr/lib/git-core/git-http-backend/ SetEnv GITWEB_CONFIG /physical/path/to/gitweb.conf 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]] - 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. - 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/ Options +ExecCGI AcceptPathInfo On AddHandler cgi-script .cgi ===== /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 ====== From http://forum.hiddenpath.com/forum/hidden-path-forums/defense-grid-technical-support/16855-option-to-disable-controller-support Add launch options: -controller steam ====== 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. ====== Disable F1 keyboard shortcut in xfce4-terminal ====== In ''$HOME/.config/xfce4/terminal/accels.scm'': (gtk_accel_path "/terminal-window/contents" "") ====== Building xscreensaver ====== sudo apt install \ libxml2-dev \ libglade2-dev \ libjpeg62-dev \ libgl1-mesa-dev \ libglu1-mesa-dev \ libxmu-dev \ libxpm-dev \ libxt-dev ./configure --prefix=$HOME/local --with-x-app-defaults=$HOME/local/etc/X11/app-defaults make ====== Changing gnome-terminal double-click to include colons ====== From [[http://unix.stackexchange.com/questions/290544/double-click-selection-in-gnome-terminal]]: Run: # Find profile ID: dconf list /org/gnome/terminal/legacy/profiles:/ # Set to $pid or replace $pid below: dconf write /org/gnome/terminal/legacy/profiles:/$pid/word-char-exceptions '@ms "-=&#:/.?@+~_%;"' ====== Disable Windows 10 Lock Screen ====== Disable the lock screen that appears before the login screen: [[http://windows.wonderhowto.com/how-to/disable-lock-screen-windows-10-0162965/]] * HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Personalization * NoLockScreen DWORD, value 1 ====== Windows 10 Taskbar Never Combine Registry ====== * HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced * TaskbarGlomLevel DWORD * 0 = Always combine, hide labels * 1 = Combine when taskbar is full * 2 = Never combine ====== Mouse side button double-click ====== $HOME/.xbindkeysrc: "/usr/bin/xte 'mouseclick 1' 'mouseclick 1'" b:8 + Release ====== Mouse side button back ====== $HOME/.xbindkeysrc: "/usr/bin/xte 'key XF86Back'" b:9 + Release ====== Finer Volume Adjustments ====== $HOME/.xbindkeysrc: "amixer set Master 2-" XF86AudioLowerVolume "amixer set Master 2+" XF86AudioRaiseVolume ====== Windows 10 VirtualBox Shared Folder File Access Problems ====== Follow Cat_Is_Not_SP directions at [[https://www.virtualbox.org/ticket/5732]] to change UAC settings. ====== squid slow service start and shutdown ====== See [[https://askubuntu.com/questions/18127/start-stop-taking-too-much-time]] Edit squid config file and set: shutdown_lifetime 3 seconds ====== Disable media controls on KDE Plasma 5 lockscreen ====== Finally in Kubuntu 20.04 the settings GUI works to disable this! System Settings -> Workspace -> Workspace Behavior -> Screen Locking -> Appearance -> Media controls. Previously: See [[https://bugs.kde.org/show_bug.cgi?id=384264]]. Edit ''/usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/lockscreen/LockScreenUi.qml'' and change ''active: true'' to ''active: false'' in the Loader section for MediaControls.qml. ====== APT Pinning a PPA Package ====== For example, after installing the ''ppa:mythbuntu/0.28'' PPA, create the file ''/etc/apt/preferences.d/mythbuntu-0-28'' with the contents: Package: * Pin: release o=LP-PPA-mythbuntu-0.28 Pin-Priority: 600 See [[https://help.ubuntu.com/community/PinningHowto]] for more info. ====== Install xubuntu from .iso file on a second drive with GRUB ====== Boot into GRUB, then open GRUB command line and do: loopback loop (hd0,msdos1)/xubuntu-18.04-desktop-amd64.iso linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=/xubuntu-18.04-desktop-amd64.iso initrd (loop)/casper/initrd.lz boot ====== Fix Java for Minecraft in Ubuntu 18.04 ====== See [[https://www.reddit.com/r/Minecraft/comments/8ip8vh/issue_with_minecraft_java_launcher_and_ubuntu_1804/]] and [[https://stackoverflow.com/questions/6784463/error-trustanchors-parameter-must-be-non-empty/50103533#50103533]]. sudo apt install openjdk-8-jdk sudo update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java /usr/bin/printf '\xfe\xed\xfe\xed\x00\x00\x00\x02\x00\x00\x00\x00\xe2\x68\x6e\x45\xfb\x43\xdf\xa4\xd9\x92\xdd\x41\xce\xb6\xb2\x1c\x63\x30\xd7\x92' > /etc/ssl/certs/java/cacerts /var/lib/dpkg/info/ca-certificates-java.postinst configure ====== KDE Plasma Task Manager button width ====== When turning on Group by Program name but turning off Combine into a single button, the maximum task manager button size decreases. I fixed this by editing preferredMaxWidth() in ''/usr/share/plasma/plasmoids/org.kde.plasma.taskmanager/contents/ui/code/layout.js'': function preferredMaxWidth() { if (tasks.iconsOnly) { if (tasks.vertical) { return tasks.width + verticalMargins(); } else { return tasks.height + horizontalMargins(); } } // if (plasmoid.configuration.groupingStrategy != 0 && !plasmoid.configuration.groupPopups) { // return preferredMinWidth(); // } return Math.floor(preferredMinWidth() * 1.6); } plasmashell can be restarted to see the change take effect with: killall plasmashell; kstart5 plasmashel