Thursday 25 December 2008

Fedora 10 Ethernet Configuration

System->Administration->Services->Network Manager->[Disable]

vi /etc/sysconfig/networking/devices/ifcfg-eth1
DEVICE=eth1
HWADDR=xx:xx:xx:xx:xx:xx
ONBOOT=yes
BOOTPROTO=static
USERCTL=no
PEERDNS=no
IPV6INIT=no
NM_CONTROLLED=no
TYPE=Ethernet
IPADDR=192.168.1.2
NETMASK=255.255.255.0
GATEWAY=192.168.1.1

vi /etc/rc.local
ifup eth1



Tuesday 2 December 2008

How to mount an ISO image in Linux

mkdir /mnt/iso
mount myiso.iso /mnt/iso/ -t iso9660 -o ro,loop=/dev/loop0
nautilus /mnt/iso/

Sunday 9 November 2008

vpnc configuration

edit /etc/vpnc/default.conf


#IPSec gateway my.vpn.gateway
#
IPSec ID my.ipsec.id
#
IPSec secret mysecret
#
your username goes here:
#
Xauth username


IPSec gateway my-gateaway.com
IPSec ID my-ipsec-id
IPSec obfuscated secret 2DE878F2B77008ACB5368DFD3A3BEA3724DDA4
Xauth username my-username
Xauth password my-password


If you dont include
Xauth password, vpnc will promt.

M-Audio Delta 44 and pulseaudio in Fedora 9

Automatic sound card detection isn't able to configure the
Delta card correctly, the card seems to be a bit too exotic
for that. So I'd say it's a HAL and/or PulseAudio problem.

Since the configuration process succesfully manages to open
the device - after much struggling - you probably can make
it work with static device configuration. The thing that the
configuration finally stumbles is that the channel map for
the sink and source aren't valid. That's because there isn't
a default channel map defined for 10 and 12 channels.

So, what you'll have to do is edit /etc/pulse/default.pa.
Comment out module-hal-detect and module-detect, and then
add these lines (if you don't need the sources, leave them
out):

# Load the on-board device:
load-module module-alsa-sink sink_name=intel-hda_out device=hw:0
load-module module-alsa-source source_name=intel-hda_in device=hw:0

# Load Delta 44:
load-module module-alsa-sink sink_name=delta_out device=hw:1 channels=10 channel_map=left,right,aux0,aux1,aux2,aux3,aux4,au x5,aux6,aux7
load-module module-alsa-source source_name=delta_in device=hw:1 channels=12 channel_map=left,right,aux0,aux1,aux2,aux3,aux4,au x5,aux6,aux7,aux8,aux9

# Set the default sink and source (not mandatory, intel-hda
# would probably be used without this):
set-default-sink
delta_out set-default-source delta_in



That configuration makes Delta a stereo device, in the sense
that if you play surround content, there will be sound only
in the first two channels. If you want a surround setup (or
want to have the stereo output on some other physical
connector(), edit the channel maps. Valid channel names are
listed in near the beginning of this page (under the "Device
Drivers" heading):

http://www.pulseaudio.org/wiki/Modules

If you wonder why I didn't set the 'channels' argument of
Delta to 2, that's because it seems that the device can't be
opened for just two channels. The auto-configurator managed
to open the device with 10 out and 12 in channels, that's
why I'm using those values.

This setup makes the assumption that the on-board device
will always be hw:0 and Delta will be hw:1. This isn't
necessary a valid assumption.

--
Tanu Kaskinen
source: https://tango.0pointer.de/pipermail/pulseaudio-discuss/2008-January/001240.html



In fact this is my (working!) /etc/pulse/default.pa


#!/usr/bin/pulseaudio -nF
#
# This file is part of PulseAudio.
#
# PulseAudio is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# PulseAudio is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with PulseAudio; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.

.nofail

### Load something into the sample cache
#load-sample-lazy x11-bell /usr/share/sounds/gtk-events/activate.wav
load-sample-lazy pulse-hotplug /usr/share/sounds/startup3.wav
#load-sample-lazy pulse-coldplug /usr/share/sounds/startup3.wav
#load-sample-lazy pulse-access /usr/share/sounds/generic.wav

.fail

### Load audio drivers statically (it's probably better to not load
### these drivers manually, but instead use module-hal-detect --
### see below -- for doing this automatically)
#load-module module-alsa-sink
#load-module module-alsa-source device=hw:1,0
#load-module module-oss device="/dev/dsp" sink_name=output source_name=input
#load-module module-oss-mmap device="/dev/dsp" sink_name=output source_name=input
#load-module module-null-sink
#load-module module-pipe-sink

### Automatically load driver modules depending on the hardware available
#z#.ifexists module-hal-detect.so
#z#load-module module-hal-detect
#z#.else
### Alternatively use the static hardware detection module (for systems that
### lack HAL support)
#z#load-module module-detect
#z#.endif

### Load several protocols
.ifexists module-esound-protocol-unix.so
load-module module-esound-protocol-unix
.endif
load-module module-native-protocol-unix

### Network access (may be configured with paprefs, so leave this commented
### here if you plan to use paprefs)
#load-module module-esound-protocol-tcp
#load-module module-native-protocol-tcp
#load-module module-zeroconf-publish

### Load the RTP reciever module (also configured via paprefs, see above)
#load-module module-rtp-recv

### Load the RTP sender module (also configured via paprefs, see above)
#load-module module-null-sink sink_name=rtp format=s16be channels=2 rate=44100 description="RTP Multicast Sink"
#load-module module-rtp-send source=rtp.monitor

### Automatically restore the volume of playback streams
load-module module-volume-restore

### Automatically restore the default sink/source when changed by the user during runtime
load-module module-default-device-restore

### Automatically move streams to the default sink if the sink they are
### connected to dies, similar for sources
load-module module-rescue-streams

### Automatically suspend sinks/sources that become idle for too long
load-module module-suspend-on-idle

### Load X11 bell module
#load-module module-x11-bell sample=x11-bell

### Register ourselves in the X11 session manager
# Deactivated by default, to avoid deadlock when PA is started as esd from gnome-session
# Instead we load this via /etc/xdg/autostart/ and "pactl load-module" now
# load-module module-x11-xsmp

### Load additional modules from GConf settings. This can be configured with the paprefs tool.
### Please keep in mind that the modules configured by paprefs might conflict with manually
### loaded modules.
.ifexists module-gconf.so
.nofail
load-module module-gconf
.fail
.endif

### Publish connection data in the X11 root window
.ifexists module-x11-publish.so
.nofail
load-module module-x11-publish
.fail
.endif

### Make some devices default
#set-default-sink output
#set-default-source input


######I have edited from here###########
# Load the on-board device: DISABLED VIA BIOS
#load-module module-alsa-sink sink_name=intel-hda_out device=hw:0
#load-module module-alsa-source source_name=intel-hda_in device=hw:0

# Load Delta 44:
load-module module-alsa-sink sink_name=delta_out device=hw:0 channels=10 channel_map=left,right,aux0,aux1,aux2,aux3,aux4,au x5,aux6,aux7
load-module module-alsa-source source_name=delta_in device=hw:0 channels=12 channel_map=left,right,aux0,aux1,aux2,aux3,aux4,au x5,aux6,aux7,aux8,aux9

# Set the default sink and source (not mandatory, intel-hda
# would probably be used without this):
set-default-sink delta_out
set-default-source delta_in

kaffeine - Greek Subtitles

  1. Download arial fonts,
  2. Extract arialBySapioiCorp.tar.gz to /usr/share/xine/libxine1/fonts/
  3. Settings –> xine Engine Parameters –> subtitles
  4. Beginer Options: normal 0 iso-8859-7
  5. Expert Options: arial



source: http://www.sapioi.gr/blog/?p=1005

kplayer - Greek Subtitles

  1. Open kplayer,
  2. Settings -> Configure kplayer - > Advanced
  3. Additional command line arguments: -subcp cp1253