GStreamer is a multimedia framework used by many media players including rhythmbox, banshee, totem, listen, exaile and others. Due to legal issues support for various non-free formats , including mp3 files, aren't included with GStreamer by default. You can add support for mp3 and other formats by installing an add-on package from the third party repository rpm.livna.org
1. Configured you to use the RPMFusion repositories first.
2. Install GStreamer plugins
# yum install gstreamer-plugins-bad gstreamer-plugins-ugly gstreamer-ffmpeg
Monday, 11 October 2010
Friday, 8 October 2010
Install Sun/Oracle Java JDK (Java Development Kit)/JRE (Java Runtime Environment) 6u21 on Fedora 14, Fedora 13, Fedora 12, CentOS 5.5, Red Hat (RHEL) 5.5 and Red Hat (RHEL) 6
origin post
1. Download Sun/Oracle Java JDK or JRE RPMs
Download Sun/Oracle Java JDK or JRE from here (current version is JDK 6 Update 21) http://www.oracle.com/technetwork/java/javase/downloads/index.html.Note: Select rpm.bin package (example jdk-6u21-linux-i586-rpm.bin, jre-6u21-linux-i586-rpm.bin, jdk-6u21-linux-x64-rpm.bin or jre-6u21-linux-x64-rpm.bin).
2. Change to root user.
sudo -i ## OR ## su -
3a. Run Sun/Oracle Java JDK binary
chmod +x /path/to/file/jdk-6u21-linux-*-rpm.bin /path/to/binary/jdk-6u21-linux-*-rpm.bin ## OR ## sh /path/to/binary/jdk-6u21-linux-*-rpm.bin
3b. Run Sun/Oracle Java JRE binary
chmod +x /path/to/file/jre-6u21-linux-*-rpm.bin /path/to/binary/jre-6u21-linux-*-rpm.bin ## OR ## sh /path/to/binary/jre-6u21-linux-*-rpm.bin
4. Install Sun/Oracle java, Sun/Oracle javaws, Sun/Oracle libjavaplugin.so (for Firefox/Mozilla) and Sun/Oracle javac with alternatives –install command
alternatives --install /usr/bin/java java /usr/java/jdk1.6.0_21/jre/bin/java 20000 alternatives --install /usr/bin/javaws javaws /usr/java/jdk1.6.0_21/jre/bin/javaws 20000 ## Java Browser (Mozilla) Plugin 32-bit ## alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so libjavaplugin.so
/usr/java/jdk1.6.0_21/jre/lib/i386/libnpjp2.so 20000 ## Java Browser (Mozilla) Plugin 64-bit ## alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so libjavaplugin.so
/usr/java/jdk1.6.0_21/jre/lib/amd64/libnpjp2.so 20000 ## Install javac only if you installed JDK (Java Development Kit) package ## alternatives --install /usr/bin/javac javac /usr/java/jdk1.6.0_21/bin/javac 20000
5. Check current java, javac, javaws and libjavaplugin.so versions
java -version java version "1.6.0_21" Java(TM) SE Runtime Environment (build 1.6.0_21-b06) Java HotSpot(TM) Server VM (build 17.0-b16, mixed mode) javac -version javac 1.6.0_21 javaws Java(TM) Web Start 1.6.0_21 [...]
and writing about:plugins on address bar.
6. Swap between OpenJDK and Sun/Oracle JDK
versions
alternatives --config java # or javac or javaws or libjavaplugin.so There are 4 programs which provide 'java'. Selection Command ----------------------------------------------- 1 /usr/lib/jvm/jre-1.6.0-openjdk/bin/java 2 /usr/lib/jvm/jre-1.5.0-gcj/bin/java * 3 /usr/java/jdk1.6.0_18/jre/bin/java + 4 /usr/java/jdk1.6.0_21/jre/bin/java Enter to keep the current selection[+], or
type selection number:
Post-Installation Setup
Add JAVA_HOME environment variable to /etc/profile file or $HOME/.bash_profile file## export JAVA_HOME export JAVA_HOME="/usr/java/jdk1.6.0_21"
Setup D-Link DWA-140(Ralink 2870USB) on Fedora 13
1. Installing the Kernel Source via yum.
# yum install kernel-PAE-devel
(I'm currently using kernel 2.6.34 PAE)
2. Get the driver from Ralink Driver Download.
3. Extract the driver in some place.
# tar -jxvf 2010_0709_RT2870_Linux_STA_v2.4.0.1.tar.bz2 -C /tmp
# cd /tmp/2010_0709_RT2870_Linux_STA_v2.4.0.1
4. Configure the driver which can be controlled by WPA_SUPPLICANT
or NetworkManager.
# vi os/linux/config.mk
set
'HAS_WPA_SUPPLICANT=y'
and
'HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y'
5. build and install.
# make
# make install
(it will copies a firmware(RT2870STA.dat) in the /etc/Wireless directory
and a driver module(rt2870sta.ko) in /lib/modules/{kernel version}/kernel/
drivers/net/wireless directory. Subsequently regenerates modules.dep and
map files.)
6.Configure NIC to auto-load at boot time.
# echo "alias ra0 rt2870sta" >> /etc/modules.conf
# echo "DEVICE='ra0' >> /etc/sysconfig/network-scripts/ifcfg-ra0
# echo "ONBOOT='yes' >> /etc/sysconfig/network-scripts/ifcfg-ra0
7. Done.
# yum install kernel-PAE-devel
(I'm currently using kernel 2.6.34 PAE)
2. Get the driver from Ralink Driver Download.
3. Extract the driver in some place.
# tar -jxvf 2010_0709_RT2870_Linux_STA_v2.4.0.1.tar.bz2 -C /tmp
# cd /tmp/2010_0709_RT2870_Linux_STA_v2.4.0.1
4. Configure the driver which can be controlled by WPA_SUPPLICANT
or NetworkManager.
# vi os/linux/config.mk
set
'HAS_WPA_SUPPLICANT=y'
and
'HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y'
5. build and install.
# make
# make install
(it will copies a firmware(RT2870STA.dat) in the /etc/Wireless directory
and a driver module(rt2870sta.ko) in /lib/modules/{kernel version}/kernel/
drivers/net/wireless directory. Subsequently regenerates modules.dep and
map files.)
6.Configure NIC to auto-load at boot time.
# echo "alias ra0 rt2870sta" >> /etc/modules.conf
# echo "DEVICE='ra0' >> /etc/sysconfig/network-scripts/ifcfg-ra0
# echo "ONBOOT='yes' >> /etc/sysconfig/network-scripts/ifcfg-ra0
7. Done.
Labels:
linux
Friday, 1 October 2010
Short Tip: Get UUID of Hard Disks
Origin Post
The Universally Unique Identifier can be used to identify a device independent form its mount point or device name. This is more and more important as many devices today support hot-plugging or are external anyway. Therefore it makes sometimes sense to access a device (for example in
The Universally Unique Identifier can be used to identify a device independent form its mount point or device name. This is more and more important as many devices today support hot-plugging or are external anyway. Therefore it makes sometimes sense to access a device (for example in
fstab
) not by device name but by the UUID. There are several ways to get the UUID. The first one uses the /dev/
directory. While you are on is you might want to check other by-*
directories, I never knew of them.
| $ ls -l /dev/disk/by-uuid |
| lrwxrwxrwx 1 root root 10 11. Okt 18:02 53cdad3b-4b01-4a6c-a099-be1cdf1acf6d -> ../../sda2 |
Another way to get the uuid by usage of the tool blkid
:
| $ blkid /dev/sda1 |
| /dev/sda1: LABEL= "/" UUID= "ee7cf0a0-1922-401b-a1ae-6ec9261484c0" SEC_TYPE= "ext2" TYPE= "ext3" |
There you also get the label and other information. Quite usefule.
Btw., if you wonder how “unique” this unique is, here a quote from Wikipedia:
1 trillion UUIDs would have to be created every nanosecond for 10 billion years to exhaust the number of UUIDs.
Pretty unique.
QEMU-KVM에서 ISO 대신 실제 CDROM 디바이스로 OS 설치하기
/usr/bin/qemu-kvm -hda /mnt/shared/vdisks/fedora13.img -boot d -cdrom /dev/cdrom -m 2048
Subscribe to:
Posts (Atom)