Linux

Howto encode DVD video for an iPod (ffmpeg)

My co-worker just got an iPod so I thought I would try and encode a DVD onto it (an unencrypted DVD that I own, for backup purposes only, not to be used for public performances, etc, only I looked at it, I shut it off when someone looked over my shoulder...blah blah). The ffmpeg that comes stock on RHEL4 is insufficient to do the transcoding. I built a newer version and mucked around a bit and got this going. I have a simple wrapper (there are numerous versions of such scripts floating around).
Wordpress category: 

Firefox fullscreen kiosk machine

Update (2 Dec 2005): kiosk extension is broken, I'm now using a hacked browser.jar (version 1.0.7), I made a few changes to xinitrc-common as well Simple kiosk implementation, not entirely thorough, but enough for our purposes. Machine boots and gdm logs into a user without a password, firefox starts fullscreen and opens our homepage. Simple to implement.
Wordpress category: 

Replacing selinux policy

Make a backup and set the security context:

[root@surrey policy]# mv /etc/selinux/targeted/policy/policy.18 /etc/selinux/targeted/policy/policy.18.orig
[root@surrey policy]# cp new/policy.18 /etc/selinux/targeted/policy/
[root@surrey policy]# chcon system_u:object_r:policy_config_t /etc/selinux/targeted/policy/policy.18
[root@surrey policy]# /usr/sbin/setfiles -q -c /etc/selinux/targeted/policy/policy.18
/etc/selinux/targeted/contexts/files/file_contexts
[root@surrey policy]# load_policy /etc/selinu
Wordpress category: 

SELinux targeted preventing gnome-volume-manager from automounting filesystems

Symptom:

[user@surrey ~]: gnome-volume-manager ** (gnome-volume-manager:10207): WARNING **: manager.c/912: failed to initialize HAL!

Generate policy rules using audit2allow

[root@surrey ~]# audit2allow -i /var/log/messages allow initrc_t unconfined_t:dbus send_msg; allow unconfined_t initrc_t:dbus { acquire_svc send_msg };

Install policy source rpm

[root@surrey ~]# yum install selinux-policy-targeted-sources

Add local rules to local.te

[root@surrey ~]# pushd /etc/selinux/tar
Wordpress category: 

Displaying international characters in Firefox (installing unicode fonts in fontconfig)

Using unicode fonts is the easiest way to properly display hindi, arabic, hebrew and other non latin languages. We install the unicode fonts in a local directory and then tell fontconfig to look in that directory. Edit /etc/fonts/local.conf


/usr/ias/share/fonts/fc
Then tell fontconfig to rehash it's tables
[root@host] # fc-cache
Check that your new font is there
[root@host] # fc-list |grep
Wordpress category: 

Pages