G2X connecting in developer mode

January 7, 2012
Tags: , , , , ,

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) [...]

0

MythBackend service not starting

November 25, 2011
Tags: , , ,

/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

0

nginx configuration for uwsgi for Flask

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 [...]

0

Building uwsgi from src.rpm without Python 3

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…
# [...]

0

Updating nginx (with uwsgi) for Fedora 12 from src.rpm

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 [...]

0

Compiling nginx (with uwsgi) for Fedora 12

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) [...]

Comments Off

Laptop Data Security

November 5, 2010
Tags: , ,

This should be a no-brainer for anyone carrying anything important around on a laptop.
IMHO, relying on a user password (like a login password) is not a great idea, since anyone with physical access to the disk can get to your data easily. OTOH, using disk encryption seems like overkill – since if [...]

Comments Off

Running rsync from a webserver (using sudo)

October 21, 2009

Situation
I want to have ‘rsync’ run when a user presses a button on the webserver. The software stack is as follows (though this was largely a red-herring, see below) :

Fedora – server
lighttpd – webserver
Twiki – intranet setup
perl – plugin language for Twiki
bash – perl launches a script to run the rsync
sudo – to ‘change [...]

Comments Off

lmms with Fedora – compile source

March 29, 2009
Tags: , , ,

lmms has some dependencies that are not so easy to determine for Fedora
Basic setup :

yum install cmake git
yum install qt qt-devel

Synth extras :

yum install libsndfile libsndfile-devel
yum install fluidsynth fluidsynth-devel
yum install stk stk-devel
yum install fftw-devel

Importantly for wine VST(i) :

yum install wine wine-devel
yum install glibc-devel.i386

Hope this helps

2

Gateway GM6543E Linux Installation

October 3, 2008

Initial Boot Problems
Booting kernel on stock Fedora 9 x64 DVD requires the kernel option : ‘intel_iommu=off’ to be appended to the kernel boot line.
Updated kernels (after, say, 2.2.26), no longer need this extra parameter.
USB Keyboard
Unless ‘Legacy USB’ is set in the BIOS (which it is by default), the USB keyboard can’t be used to change [...]

Comments Off