Monday, January 30, 2012

Nvidia proprietary drivers and RHEL6 / CentOS 6

Sometimes you need to run Nvidia proprietary drivers in various linux distributions.

I was able to run it on standard RHEL 6.0 installed as “Desktop” with the following commands:

Update the system and install the necessary packages
yum update
yum install gcc kernel-devel

reboot

Blacklist the nouveau driver
sed -i '/root=/s|$| rdblacklist=nouveau vga=791|' /boot/grub/grub.conf
echo "blacklist nouveau" >> /etc/modprobe.d/blacklist.conf


Change the initrd image:
mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r)-nouveau.img
dracut /boot/initramfs-$(uname -r).img $(uname -r)

Remove the nouveau driver and reboot:
yum remove xorg-x11-drv-nouveau
reboot

Stop the X server and run the Nvidia installation process from command line
init 3
chmod +x NVIDIA-Linux-x86-260.19.29.run
./NVIDIA-Linux-x86-260.19.29.run

Enjoy

iPhone Tip: How To Lock Screen Orientation in iOS 4

In iOS 4, there is a lovely feature that Apple doesn’t explicitly mention. I love iPhone’s auto-rotation feature but at the same time I hate it.

I hate it turn the screen sideway when I lay in bed to browse web and check my email. Do you have the same problem? A few months, I wrote a post about two great hacks that can disable the auto-screen rotation. But it’s for jailbroken iPhone only.

With the release of iOS 4, Apple has finally introduced a screen orientation lock for iPhone. To lock your iPhone to portrait orientation,

1. You can simply tap the HOME button twice to bring the multitasking dock.

2. Swipe your finger to the right until you see the music control buttons.





3. Then just tap on the lock button. After you enable the screen lock, the auto rotation is disabled and your screen is locked to the portrait orientation.



To re-enable the auto rotation, you can simply go through the steps again to turn off the lock.

Sunday, January 29, 2012

Install Skype in EL6 (RHEL 6/ Scientificlinux 6/ Centos 6)

Install Skype in EL6 (RHEL 6/ Scientificlinux 6/ Centos 6)

Apparently Skype are still living in the past and they do not provide 64bit versions of their app... So, in order to install it in our EL6 64bit OS we need to install a crapload of 32bit dependencies. Repeat after me (as root):
 
yum install libasound.so.2 libXv.so.1 libXss.so.1 libSM.so.6 libXi.so.6 libXrender.so.1 libXrandr.so.2 libfreetype.so.6 libfontconfig.so.1 libz.so.1 libgthread-2.0.so.0 libstdc++.so.6 libQtDBus.so.4 libQtGui.so.4 pulseaudio-libs.i686 wget http://www.skype.com/go/getskype-linux-beta-fc10 yum localinstall --nogpgcheck ./skype-*.rpm
That's about it!

PS: I love it how yum automatically found those dependencies by only specifying .so files! ;-)

Update! - It seems the latest RPM for Fedora (skype-2.2.0.25-fedora.i586.rpm in this case) no longer works on EL6 - gives out an "Aborted" message and dies. I found that after installing the RPM you can get the program back working by overwriting the binary from /usr/bin/skype with the one from the static version:
 
wget http://download.skype.com/linux/skype_static-2.2.0.25.tar.bz2
tar xjf skype_static-2.2.0.25.tar.bz2
cp skype_static-2.2.0.25/skype /usr/bin/skype
cp: overwrite `/usr/bin/skype'? y

Saturday, January 28, 2012

Multimedia @ CentOS 6

Here is one more good text about CentOS:

http://blog.ajoian.ro/2011/07/multimedia-stack-centos-6.html

Continuing my Centos 6 trip, (as Fedora 15 is un-usable by my standards) tonight I'm following a tip to use elrepo for hardware support and rpmforge for video codecs and my favorite media player - vlc.

Well to install rpmforge and elrepo is rather easy just do a :

rpm -Uvh http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm more details can be found here
rpm -Uvh http://elrepo.org/elrepo-release-6-4.el6.elrepo.noarch.rpm or here

Now to get codecs working just try to play any of your video media with "Totem Movie Player" and because somewhere in Fedora we had packagekit with gstreamer support (good call about that one) you will see a search box like the one below. Supply the root password to install them and magic you'll be able to play your videos.



Well if you feel that this is not enough you can take the experts advice and yum install everything, this way you will not miss anything :

yum install compat-libstdc++-33 libdvdcss libdvdread libdvdplay libdvdnav lsdvd libquicktime --skip-broken
yum install flash-plugin mplayerplug-in mplayer mplayer-gui gstreamer-ffmpeg gstreamer-plugins-bad gstreamer-plugins-ugly

Moving to the hardware bit, last night I managed to get my funky wireless going, but thru an ugly compile hack. I got a tip today about elrepo and looking at the driver version that they offer you can find support for ati, nvidia and ntfs.

Broadcom BCM4313 the wireless driver that i needed is not by default offered by them (i guess legal issues) but they are explaining how to use the src.rpm to compile it yourself, with a bit more elegance then the way I've done it. You can read all about it here.

Red Hat Enterprise Linux / CentOS Linux Enable EPEL (Extra Packages for Enterprise Linux) Repository

Original text can be found on location: 
http://www.cyberciti.biz/faq/rhel-fedora-centos-linux-enable-epel-repo/
Q. How do I enable EPEL (Extra Packages for Enterprise Linux) repo and install the packages under RHEL / CentOS Linux?

A. EPEL (Extra Packages for Enterprise Linux) is a volunteer-based community effort from the Fedora project to create a repository of high-quality add-on packages that complement the Fedora-based Red Hat Enterprise Linux (RHEL) and its compatible spinoffs, such as CentOS and Scientific Linux.
EPEL provide lots of packages for CentOS / RHEL, It is not part of RedHat or CentOS but is designed to work with these major distributions. Please note that EPEL only provides free and open source software unencumbered by patents or any legal issues. In short you will not find mp3, dvd and music / media player under EPEL. However, you will find many programs related to networking, monitoring, sys admin, programming and so on.
Packages are supplied in RPM format and in most cases are ready to use. Beware that some packages may break something and you should not blindly install those packages.

How do I enable EPEL?

Simply type the following command as root user:
# rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm
List new repo:
# yum repolist
Sample output:
Loading "skip-broken" plugin
Loading "fastestmirror" plugin
repo id              repo name                                 status
addons               CentOS-5 - Addons                         enabled
base                 CentOS-5 - Base                           enabled
epel                 Extra Packages for Enterprise Linux 5 -   enabled
extras               CentOS-5 - Extras                         enabled
updates              CentOS-5 - Updates                        enabled
Once installed use yum command to list, view and install the packages:
# yum search package-name
# yum install package-name

See how to use yum command for installing and searching packages using various repos.

RHEL / CentOS Linux: Mount and Access NTFS Partition

How to enable NTFS support on CentOS Linux version 5 or 6? How do I mount ntfs partition under RHEL 5 or 6?


Original text can be found on location:   http://www.cyberciti.biz/faq/redhat-fedora-enable-ntfs3g-support/

First, you need to install EPEL repo as described here. The following command will turn in EPEL repo on RHEL / CentOS version 6.x:
$ cd /tmp
$ wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-5.noarch.rpm
# rpm -ivh epel-release-6-5.noarch.rpm

NTFS-3G

NTFS-3G is a stable, open source, GPL licensed, POSIX, read/write NTFS driver for Linux. It provides safe handling of the Windows XP, Windows Server 2003, Windows 2000, Windows Vista, Windows Server 2008 and Windows 7 NTFS file systems.
NTFS-3G can create, remove, rename, move files, directories, hard links, and streams; it can read and write normal and transparently compressed files, including streams and sparse files; it can handle special files like symbolic links, devices, and FIFOs, ACL, extended attributes; moreover it provides full file access right and ownership support.

How Do I Install NTFS-3G?

Type the following command as root user:
# yum install ntfs-3g
Sample outputs:
yum install ntfs-3g
Loaded plugins: product-id, rhnplugin, subscription-manager
Updating Red Hat repositories.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package ntfs-3g.x86_64 2:2011.4.12-3.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
===============================================================================
 Package         Arch           Version                     Repository    Size
===============================================================================
Installing:
 ntfs-3g         x86_64         2:2011.4.12-3.el6           epel         247 k
Transaction Summary
===============================================================================
Install       1 Package(s)
Total download size: 247 k
Installed size: 624 k
Is this ok [y/N]:

How Do I Find Out NTFS Partition Name?

Simply type the following command:
# fdisk -l /dev/sda
# fdisk -l /dev/sdb

Sample outputs:
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xf0000000
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      102400    7  HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2              14       60802   488281089    5  Extended
/dev/sda5              14       59767   479970304   83  Linux
/dev/sda6           59767       60802     8309760   82  Linux swap / Solaris

How Do I Mount /dev/sda1 NTFS Partition at /mnt/ntfs?

First, load the fuse driver, enter:
# modprobe fuse
Create a mount point, enter:
# mkdir /mnt/ntfs
To mount the ntfs partition, enter:
# mount -t ntfs-3g /dev/sda1 /mnt/ntfs
You can use regular Unix commands to copy or access the files:
$ df -h
$ mount
$ cd /mnt/ntfs
$ cp foo /tmp

How Do I Unmount NTFS Partition?

Type the following command:
# umount /mnt/ntfs

Wednesday, January 25, 2012

StressLinux - HW testing Linux distribution

What is stresslinux


  • stresslinux is a minimal linux distribution running from a bootable cdrom, usb, vmware or via PXE (wip).
  • stresslinux makes use of some utitlities available on the net like: stress, cpuburn, hddtemp, lm_sensors ...
  • stresslinux is dedicated to users who want to test their system(s) entirely on high load and monitoring the health.

Who needs it


Stresslinux is for people (system builders, overclockers) who want to test their hardware under high load and monitor stability and thermal environment.


Note: You should be familiar with linux console because stresslinux comes without a graphical user interface.

Where to start
Downloads
Docs: FAQ, Documentation, Software
Community: Forum, Reviews, Facebook, Google+

    Thursday, January 19, 2012

    NetSpeedMonitor

    Link: http://www.floriangilles.com/software/netspeedmonitor/

    NetSpeedMonitor

    NetSpeedMonitor is a lightweight Network Monitoring Toolbar for your Windows Taskbar designed to be used on computers that run Windows XP, Windows Server 2003, Windows Vista or Windows 7. With NetSpeedMonitor you can monitor the current speed (up- and downstream) of your Network Interfaces and the amount of data transferred. In addition to the Connection Table with all TCP/UDP endpoints and the Toolbar Tooltip with a quick and short traffic overview, you can also see detailed daily and monthly Traffic Statistics. NetSpeedMonitor toolbar requires no additional drivers like other Network Monitoring tools do!

    Wednesday, January 18, 2012

    Fedora 16 Multimedia HOW-TO

    Step 1: Add the livna Repo for DVD Playback

    rpm -ivh http://rpm.livna.org/livna-release.rpm

    Step 2: Add the Adobe Flash Repo

    rpm -ivh http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm

    Step 3: Install RpmFusion Repos

    su -c 'yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm'

    Step 4: Install Multimedia Applications

    yum -y install lsdvd libdvdnav libdvdread ffmpeg gstreamer-ffmpeg gstreamer-plugins-bad gstreamer-plugins-bad-extras gstreamer-plugins-ugly libdvdcss flash-plugin

    you should now have full multimedia and video support for all popular formats. If you experience any issue feel free to post a reply.

    How to use DiskSpd to simulate Veeam Backup & Replication disk actions

    This HOW-TO contains information on how to use Microsoft© DiskSpd to simulate Veeam Backup & Replication disk actions to measure disk pe...