linux

Asus P6X58D - Intel Matrix RAID - Linux - Fefora 12/13 - How To

Getting the Intel Matrix RAID working on my P6X58D Premium took a bit of searching and good luck despite how simple the solution.

Update: This works for Fedora 13 also.

My Configuration:

Primary OS - 64GB SSD: /dev/sda

Storage - 2 * 1GB Sata: /dev/sdb & /dev/sdc - Configured as Raid 0 with the Matrix Storage Manager bios setup.

Symptoms:

No device present in /dev/mapper/

dmraid finds my raid 'device' but:

[root@xxx xxx]# dmraid -ay
RAID set "isw_ebibiffebg_DataVolume01" was not activated
ERROR: device "isw_ebibiffebg_DataVolume01" could not be found

Hmmmm!

[root@xxx xxx]# dmesg
device-mapper: table: 253:2: mirror: Device lookup failure
device-mapper: ioctl: error adding target to table
device-mapper: ioctl: device doesn't appear to be in the dev hash table.

Hmmm...

Solution:

After a lot of searching and digging I finally found that I need to disable a kernel module/feature/whatever by editing my /boot/grub/grub.conf by adding the noiswmd option to the end of the boot options like:

kernel /vmlinuz-2.6.32.10-90.fc12.x86_64 ro root=/dev/mapper/vg_hummer-lv_root  LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us rhgb quiet nouveau.modeset=0 noiswmd

After the modifications and rebooting I now have:

[xxx@xxxx ~]$ ls -la /dev/mapper
total 0
drwxr-xr-x 2 root root 140 2010-05-23 13:24 .
drwxr-xr-x 19 root root 4180 2010-05-23 14:34 ..
crw-rw---- 1 root root 10, 62 2010-05-23 13:23 control
brw-rw---- 1 root disk 253, 0 2010-05-23 13:24 isw_ebibiffebg_DataVolume01
brw-rw---- 1 root disk 253, 1 2010-05-23 17:39 isw_ebibiffebg_DataVolume01p1
brw-rw---- 1 root disk 253, 2 2010-05-23 13:24 vg_xxxxxx-lv_root
brw-rw---- 1 root disk 253, 3 2010-05-23 13:24 vg_xxxxxx-lv_swap

Done - now just mount your drive like any other (or partition, or what ever) eg:

I can mount it like:

mount /dev/mapper/isw_ebibiffebg_DataVolume01p1 /data

Or add to your /etc/fstab:

/dev/mapper/isw_ebibiffebg_DataVolume01p1 /data ntfs-3g rw,defaults,umask=0000 0 0

Hopefully you don't have to search as hard I as did to find this solution.

Now go and enjoy that raid!

Citrix Presentation Server (Citrix Client) on Fedora 12, 13, 14

Here's how I got Citrix Presentation Server (Citrix Client) running on Fedora 12.

  • Install the rpmfusion repo if not already installed

rpm -ivh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm
rpm -ivh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm

  • Make sure your system is up-to-date

yum update

  • Install OpenMotif - at this time is version 2.3.2 which works fine.

yum install openmotif

  • There is a conflict with the cjkuni-uming-fonts package - if you have it installed, remove it

yum remove package cjkuni-uming-fonts

  • Download the Citrix ICA Client rpm from:

http://www.citrix.com/English/SS/downloads/details.asp?downloadID=3323&productID=-1#top

  • Install the Citrix ICA Client:

yum --nogpgcheck localinstall ICAClient-11.100-1.i386.rpm

  • Configure for use with Firefox:

mkdir ~/.mozilla/plugins
ln -s /usr/lib/ICAClient/npica.so ~/.mozilla/plugins/

When Firefox asks you how to open an .ica file choose to open it with /usr/lib/ICAClient/wfica and select to do this automatically.

Done!

On some installs I have seen been a VeriSign cert error, that reads:

You have not chosen to trust "VeriSign Class 3 Secure Server CA", the issuer of the server's security certificate (SSL error 61).

To fix this problem, I added the missing certificates by exporting them from firefox into the ICA client's cacerts folder.

If you have a local install of the ICA client this is usually in:

~/ICAClient/linuxx86/keystore/cacerts/

Otherwise it will usually be in:

/usr/lib/ICAClient/keystore/cacerts/

Ok, to export the certs from firefox go to: [Edit->Preferences->Advanced->Encryption->View Certificates]

Scroll down to the set of VeriSign certificates - Now for each that has "Class 3" in its name, export it in X.509 (PEM) format to .../ICAClient/keystore/cacerts/

For me there were 8 Class 3 VeriSign certificates to export.

That's it, you should be all set to go.

Deluge hangs when opening on Fedora 11

Soon after upgrading to Fedora 11, Deluge would not start. It turns out that a missing include statement in my /usr/lib/deluged was causing it to fail. Adding a import zlib fixed it for me.

My /usr/lib/deluged:

#!/usr/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'deluge==1.1.9','console_scripts','deluged'
__requires__ = 'deluge==1.1.9'
import sys
import zlib
from pkg_resources import load_entry_point

sys.exit(
   load_entry_point('deluge==1.1.9', 'console_scripts', 'deluged')()

Cross compiling openssl - How to cross compile openssl

openssl doesn't use the standard ./configure && make setup, but configuring and cross compiling is amazingly simple.

Three simple steps.

  • Set the host/compiler prefix.

Here it is important not to miss the '-' on the end of the host prefix eg:

export cross=mipsel-linux-

  • Configure openssl.

Note the uppercase 'C' in Configure.

./Configure dist

  • Make openssl libs.

make CC="${cross}gcc" AR="${cross}ar r" RANLIB="${cross}ranlib"

Now copy the headers and libs as needed.

Compile fuppes for the Popcorn Hour

Fuppes can be compiled to run on the PCH, but it has a few dependencies that we'll need to build first.

These are:

  • zlib
  • libpcre
  • libsqlite3
  • libxml2
  • taglib

We'll do these one at a time, but before we start we need to prep our environment for cross compiling..

[update: a compiled binary is available here.]

Popcorn Hour Toolchain on Fedora 10

I've finally got the popcorn hour toolchain to compile on fedora 10.

Here I'll present a step-by-step how-to.

Step 1: Get the toolchain source

First you'll need to get the toolchain source: Syabas NMT (SMP8634) toolchain.

I used the version smp86xx_toolchain.20080505.tar.bz2.

Step 2: Ensure some dependent packages are installed

Next ensure that the following packages are installed, you can use Add/Remove software if you prefer:

 

Toolchain for the Popcorn Hour - Using a VM

After having my PCH A110 for a few weeks I wanted to build some other applications to run on it.. Luckily this has been made rather easy.. Here are some quick and dirty instruction on how I got a build environment up and running to cross compile applications to run on the PCH.

This information is taken from this post on the www.networkedmediatank.com forum.

You'll need three main things. VmWare to run the host OS for the development environment which is available as a Debian Etch 4.0 VmWare image and the Syabas NMT (SMP8634) toolchain.

Building fuppes for the Popcorn Hour (PCH A110)

I've managed to get fuppes cross compiled for the PCH in the VM based toolchain setup by:

  1. Using the tool chain building instructions given in this post
  2. downloaded the source bundles for the dependent libraries (pcre, libxml2, sqlite3)
  3. sourced the toolchain-path.env in my build window.

[update: a compiled binary is available here.]

For each of the dependent libraries I build them using:

$ autoreconf -vfi
$ ./configure --host=mipsel-linux --disable-zlib --prefix=/home/user/popcorn/smp86xx_toolchain.20080505/build_mipsel_nofpu/staging_dir/
$ make
$ make install

This install the libs and header files into the /home/user/popcorn/smp86xx_toolchain.20080505/build_mipsel_nofpu/staging_dir/ folder under lib and include.. I think that is what I want (??) sounds fair.

Now this all feels good so far..

Getting MediaTomb-flac-Denon 3808 to play nice

I've recently purchased a Denon 3808 AVR (very nice), but have had trouble serving flac files from mediatomb on my Popcorn Hour A110 (PCH). Everything looks good until I attempt to play a file then the 3808 gives me a "File Format Error".

Anyway, someone on a forum pointed out that it works on his Denon (not a 3808) if he adds the follow lines to his mediatomb's config.xml (I added them immediately after the opening <server> tag):

<magic-file>usr/share/file/magic</magic-file>
<filesystem-charset>ISO-8859-1</filesystem-charset>
<metadata-charset>ISO-8859-1</metadata-charset>

That first line looks very specific to the installation of mediatomb on the PCH, and I expect in most cases wont be needed or will need to be changed (note the lack of leading / on the path)...

The next thing is to ensure that transcoding is disabled for flac.. (again found in the config.xml file).

On my setup the config.xml file was found in /share/Apps/mediatomb/config/config.xml

This didn't make any difference until I killed mediatomb, deleted its mediatomb.db file (destroying its current database), re-starting it and re-importing my media files (flac)..

Now they all work just as I'd expect.

Dell 9400 screen flicker fix for nvidia on linux

I find that I have issues with the nvidia driver making my screen flicker/flash and sometime causes my machine to crash. I have found that it can be fixed by modifying /etc/modprobe.d/nvidia and replacing:

options NVreg_ModifyDeviceFiles=0

with:

options nvidia NVreg_RegistryDwords="PerfLevelSrc=0x2222" NVreg_Mobile=3 NVreg_ModifyDeviceFiles=0

(note: that is one single line that may wrap in your browser)

Syndicate content