Friday 21 December 2007

Convert avi to dvd

Go here
http://video.google.com/videoplay?do...83267829297106
download the file and place it in a handy directory.

Change to that directory in konsole, then enter this command
ffmpeg -i HarddriveinAction.avi -target pal-vcd Hard.mpg

Then use k3b to burn it.
file>new video cd project>drag in Hard.mpg. Burn.
This created a vcd playable in my standalone dvd player.

If that worked try this:
ffmpeg -i HarddriveinAction.avi -target pal-dvd Hard2.mpg

To work with this mpeg first create a template as shown here
http://www.linux.com/article.pl?sid=06/04/17/2058219

Replace the vob file line in the sample with this (kate works well for this)

Save this as Hard.xml to the same directory the video files are located.

Now working from that directory run
dvdauthor -o Hard_dvd -x Hard.xml

If all goes well you should be able to use k3b;
file>new video dvd project>drag in the AUDIO_TS and VIDEO_TS folders (directories)from the newly created Hard_dvd directory. Burn.

Monday 3 December 2007

LIRC on boot for Soundgraph Imon

  1. Download, build, install LIRC (in config select USB->imon->PAD IR)
  2. Install kdelirc through synaptic
  3. On reboot /dev/lirc becomes /dev/lirc0 (?!)
  4. Create 'lircd' (below) in /etc/init.d/ and :>chmod 755 lircd
  5. Run :>update-rc.d lircd defaults

######
# lircd
#! /bin/bash

# Create link to lirc0 as lircd looks for /dev/lirc
ln -s /dev/lirc0 /dev/lirc

# Set all able to read and write
chmod 0777 /dev/lirc0

# Start daemon
/home//lirc-0.8.2/daemons/lircd

######

Saturday 10 November 2007

Gnome Preferred Applications

GUI to set gnome preferred applications

gnome
-default-applications-properties

Thursday 8 November 2007

Compiz on start-up to fixing slow GTK menus

To start compiz on KDE start and fix slow GTK menus when there are two screens (with --only-current-screen option)

In ~/.kde/Autostart create compiz.desktop, which contains:

[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=compiz.desktop
Exec=__GL_YIELD="NOTHING" compiz --replace --only-current-screen --indirect-rendering
StartupNotify=false
Type=Application
X-KDE-Autostart-after=kdesktop

Tuesday 6 November 2007

USB Permissions for Virtualbox

Edit:
sudo nano /etc/udev/rules.d/40-permissions.rules

Change:
# USB devices
SUBSYSTEM=="usb_device", MODE="664"

To:

SUBSYSTEM=="usb_device", MODE="666"

from http://ubuntuforums.org/archive/index.php/t-393582.html

Nvidia Settings

nvidia-settings to set TV overscan and contrast.

Thursday 1 November 2007

ipv6

To turn off ipv6

in /etc/modprobe.d/aliases

change:
alias net-pf-10 ipv6

to:
alias net-pf-10 off

Friday 28 September 2007

USB SD / SDHC card reader not mounting

From http://www.omg.unb.ca/~steveb/linux_tweaking.html

It's an fstab problem:

-You can mount the drive manually as root using the command 'mount /dev/sda1 /mnt/usb_drive' where /mnt/usb_drive has been created before hand.
-That will only allow root write access.

-Adding the line '/dev/sda1 /mnt/usb_drive auto user 0 0' to the fstab file will allow users to mount and umount the drive and have write access.

Monday 18 June 2007

Open video on svideo-out

Save to 'Fullscreen.sh', add to 'Open with'

export DISPLAY=:0.1
totem --fullscreen "$1"
export DISPLAY=:0.0

Saturday 16 June 2007

autofsck

Installed AutoFsck which should get rid of the "system mounted 30 times, now I'm going to ruin your life" message.

Tuesday 12 June 2007

Make Creative Audigy default soundcard and start in analog mode

1) Set Audigy as the default soundcard
sudo asoundconf set-default-card Audigy
2) Control #211 switches between analog and digital mode. Found 211 using
amixer -c Audigy controls | grep Digital
3) Create switch-audigy-to-analog.sh and add to startup programs.
# Switch Audigy to analog out
amixer -c Audigy cset numid=211 off

Broken MIME types

Double clicking file in Nautilus gives:
"The filename "foo.txt" indicates that this file is of type "txt document". The contents of the file indicate that the file is of type "plain text document". If you open this file, the file might present a security risk to your system.

1) removed all files from ~/.local/share/mime/application and ~/.local/share/mime/packages
2) sudo update-mime-database ~/.local/share/mime
3) removed affected file types from ~/.local/share/mime/globs