January 7, 2012
On Fedora, I was having issues getting my T-Mobile G2X to connect in developer mode.
For sure, I was setting Settings-Applications-USBdebugging to Checked. And when plugging in the device, the SD card (and/or) internal memory space was showing up on the desktop (and the output in /var/log/messages looked equivalent to that from my working G1) [...]
November 25, 2011
/var/log/messages complains :
Nov 24 23:52:54 myth systemd[1]: mythbackend.service: control process exited, code=exited status=235
Nov 24 23:52:54 myth systemd[1]: Unit mythbackend.service entered failed state.
Simple solution (not tested whether this survives reboot) :
# touch /var/run/mythbackend.pid; chown mythtv:mythtv /var/run/mythbackend.pid
# systemctl start mythbackend.service
# grep mythbackend
November 24, 2011
MythTV suddenly stopped audio (yet again : Every upgrade the reason is different). This time, it appears that the order the audio cards are detected has changed, so the default output has changed…
The following is relevant to the process (haven’t tested this through a reboot, yet) :
$ pacmd help
$ pacmd info | grep -i [...]
November 18, 2011
/etc/nginx/conf.d/site.conf :
server {
server_name example.com www.example.com;
root home/example/flask/static;
location ~ ^/(img|js|css)/ { # |pi||ext|theme
root /home/example/flask/static;
add_header Cache-Control public;
#expires 30d;
#access_log off;
}
location / { try_files $uri @yourapplication; }
location [...]
November 16, 2011
To build uwsgi on Fedora 12 (which has no easy-to-find python3 rpm), run through the rpmbuild process (shown in a previous post in more detail for nginx) and make the following changes :
wget http://kad.fedorapeople.org/packages/uwsgi/uwsgi-0.9.9.2-2.fc15.src.rpm
rpm -ivh uwsgi-0.9.9.2-2.fc15.src.rpm
rpmbuild -bb ~/rpmbuild/SPECS/uwsgi.spec
yum install python-devel libuuid-devel jansson-devel libyaml-devel ruby-devel python3-devel python-greenlet-devel lua-devel ruby
# NB: python3-devel doesn’t exist…
# [...]
November 14, 2011
In order to get access to uwsgi (useful for deploying python flask projects, for instance), one needs a version of nginx > 0.8 or so. But Fedora 12 doesn’t have such a modern version : Here’s how to build it from a src.rpm from a more recent Fedora release.
# First, make sure [...]
October 17, 2011
In order to get access to uwsgi (useful for deploying python flask projects, for instance), one needs a version of nginx > 0.8 or so. But Fedora 12 doesn’t have such a modern version : Here’s how to compile it from source :
Actually, a less hacky approach is to simply back-port (trivially) [...]
July 16, 2011
I’ve been maintaining a PVR350 on an old Dell 2.4GHz since forever.
Latest updates (to MythTV 24.1, and licrd 0.9.0.7) have made big changes. But it’s all working again, including a serial IR blaster. The following is just for my easy reference, and anyone else who now finds their Grey Hauppauge remote [...]
May 28, 2011
Before you attempt to experiment with knockd and/or fwknop, Google around a little for venet0 and packet sniffing.
The virtualization of the interfaces by OpenVZ apparently mangles the IP headers for packet sniffers (like fwknop uses to listen to DROP’d packets). And they then fail to trigger the next step of cleverness (opening the SSH/22 [...]
May 2, 2011
Fedora 12 maxes out it’s Ruby version at 1.8.6. Unfortunately, compass / sass requires 1.8.7. The following steps creates a suitable RPM, and installs it :
# cd ~
# wget http://mo.morsi.org/blog/files/ruby-1.8.7.249-1.fc11.src_.rpm
# yum install rpm-build
# yum install ncurses-devel gdbm-devel tcl-devel tk-devel libX11-devel autoconf db4-devel byacc bison emacs compat-readline5-devel
# rpmbuild –rebuild ruby-1.8.7.249-1.fc11.src_.rpm
# cd /root/rpmbuild/RPMS/i386/
# rpm [...]