Tuesday, November 30, 2010

Fedora 14 with nVidia GeForce 7600 GT driver.

Check if you have a PAE kenel installed.
$ uname -r 
2.6.35.6-48.fc14.i686.PAE

Install kernel components and compiler.
# yum install kernel-devel kernel-headers gcc
or
# yum install kernel-PAE-devel kernel-headers gcc

Create copy of your GRUB configuration.
$ cp /boot/grub/grub.conf /boot/grub/grub.conf.back

Check your video card model.
$ lspci
03:00.0 VGA compatible controller: nVidia Corporation G73 [GeForce 7600 GT] (rev a1)
Your output might be different. It depends on the card model and slot for instance.

Download the correct module (driver) installer for your card from nvidia.com.

Edit grub.conf to disable nouveau module. Add nouveau.modeset=0.
# vim /boot/grub/grub.conf
title Fedora (2.6.35.6-48.fc14.i686.PAE)
    root (hd0,2)
    kernel /vmlinuz-2.6.35.6-48.fc14.i686.PAE ro root=/dev/mapper/vg_grendel-lv_root rd_LVM_LV=vg_grendel/lv_root rd_LVM_LV=vg_grendel/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=uk rhgb quiet nouveau.modeset=0
    initrd /initramfs-2.6.35.6-48.fc14.i686.PAE.img

Edit /etc/inittab and set up the system to boot into the runlevel 3.
Change id:5:initdefault: to id:3:initdefault:

Reboot your system and login as root in runlevel 3.

Run nVidia installer. Installer will compile a new driver for you.
# /path-to-driver/NVIDIA-Linux-x86-260.19.21.run

Once finished edit /etc/inittab again to change back to runlevel 5.
id:5:initdefault:

Reboot and login as user. The screen may not look perfect, do not worry. Open gnome-terminal, change to root and run nvidia-xconfig to generate a new xorg.conf file.

Log out and log in back. All should be done now and you can run System > Preferences > NVIDIA X Server Settings to check or change your settings.

More information about the driver and its settings can be found in /usr/share/doc/NVIDIA_GLX-1.0/ after installation.

Tuesday, July 13, 2010

RHEL5 Local YUM Repo

Create folder for repo.
# mkdir /var/install/RHEL5
Mount media with RHEL5.
# mount /dev/cdrom /media
Copy the content of the Server folder including repodata folder.
# cp -pr /media/RHEL_5xxx/Server/ /var/install/RHEL5
Create repo file for your new local repo folder. Make sure the file:/// path is correct and repo is enabled.
# vi /etc/yum.repos.d/rhel-local.repo
   [rhel-local]
   name=RHEL5 $releaserver - $basearch - Local Base
   baseurl=file:///var/install/RHEL5
   enabled=1
   gpgcheck=0
Check repo.
# yum repolist all

Sunday, July 11, 2010

Installing VirtualBox Additions in RHEL5.5 VM (x86)

1. Install required packages.
[root@rhel5 Server]rpm -ivh kernel-devel-2.6.18-194.el5.i686.rpm rpm -ivh gcc-4.1.2-48.el5.i386.rpm glibc-devel-2.5-49.i386.rpm glibc-headers-2.5-49.i386.rpm kernel-headers-2.6.18-194.el5.i386.rpm libgomp-4.4.0-6.el5.i386.rpm 
2. Mount VBoxGuestAdditions.iso and copy an installation file.
[root@rhel5 ~]# cd /media/VBOXADDITIONS_3.2.6_63112/
[root@rhel5 VBOXADDITIONS_3.2.6_63112]# ls
[root@rhel5 VBOXADDITIONS_3.2.6_63112]# cp VBoxLinuxAdditions-x86.run /tmp/
[root@rhel5 VBOXADDITIONS_3.2.6_63112]# cd /tmp/
3. Install Additions.
[root@rhel5 tmp]# ./VBoxLinuxAdditions-x86.run 
4. Reboot.
[root@rhel5 tmp]# reboot

Monday, February 1, 2010

Skype video in Fedora.

I found that video does not work in my Skype (Beta) 2.1.0.81 under Fedora 12.

$ sudo dmesg | grep skype
returned
process `skype' is using obsolete setsockopt SO_BSDCOMPAT

$ sudo cat /var/log/messages | grep skype
returned
Jan 31 23:15:01 localhost kernel: process `skype' is using obsolete setsockopt SO_BSDCOMPAT

After a quick online research I found that you can link Skype with /usr/lib/libv4l/v4l1compat.so to get the video work for you.

Make sure you have libv4l (a collection of video4linux support libraries) installed:
$ sudo yum install libv4l

Then you can write a script with the following content:
#!/bin/bash
LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so skype

Let's call it skype-video.sh and make it executable:
$ cd ~/.Skype
$ vi skype-video.sh
Now add the content provided above, save the file and exit (:wq).
Make the file executable:
$ chmod 755 skype-video.sh

Now you can lunch your "new" Skype and the video should work. It works for me.
$ ~/.Skype/skype-video.sh &

Important: Make sure that there is no another Skype instance running at the same time.

Reference: 
Skype for Linux 
Fedora Project - Features/Better Webcam Support
Dynamic Linker

Friday, January 29, 2010

Fedora Software Update

This is how you can quickly update your Fedora operating system.
If you are logged into your graphical user session, (Gnome is a default Fedora desktop environment):

1. Press Alt+F2 to lunch Run Application.

2. Type in gnome-terminal and press Run button.

3. In terminal window type in:
a) su -c 'yum check-update' - to check for available updates
b) type in root password when prompted
c) su -c 'yum update' - to download and install available updates
d) type in root password when prompted

4. Press Ctrl-D or type in exit in a terminal window once update completed.

You can also update your Fedora system in Gnome by selecting System -> Administration -> Software Update from the panel.

If you are logged into your text console just run the commands from a) and c) as above.

Tip: If you would like to know more about yum (Yellowdog Updater Modified) open terminal as explained above and type in man yum to read yum manual.