Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts

Wednesday, August 11, 2010

Installing Sun Java Plugin for Firefox 3 on Fedora 13

There are quite a few sources on the net on how to install the sun java plugin on firefox 3. What happened to me was that I already installed Sun's JDK and JRE but it seems that the java plugin was not properly installed on my firefox 3.6.7, even if I look at Tools -> Add-Ons -> Plugins , the JAVA plugin is not visible there, so I had no idea on how I can enable it or something. The articles that I found on the net are only for firefox 3.5 and below.
So here's how to install Sun's Java Plugin for Firefox 3.6.x and above.

1. First, install Sun's JDK.
2. After installing the JDK successfully, try to locate the file libnpjp2.so , by using the locate command:
[rhythm@mybox ~]$ locate libnpjp2.so
/usr/java/jdk1.6.0_20/jre/lib/i386/libnpjp2.so

Take note of the result of the command, in this case, it's /usr/java/jdk1.6.0_20/jre/lib/i386/libnpjp2.so
3. Become root by executing the following command.
su
4. Make a link to the libnpjp2.so file on the mozilla plugins folder using the following command, please replace the text "location of the libnpjp2.so file" with the result of the command executed on step 2.
ln -s "location of the libnpjp2.so file" /usr/lib/mozilla/plugins/libjavaplugin.so

In my case, since the result of the command on step 2 is /usr/java/jdk1.6.0_20/jre/lib/i386/libnpjp2.so , the command will be:

ln -s /usr/java/jdk1.6.0_20/jre/lib/i386/libnpjp2.so /usr/lib/mozilla/plugins/libjavaplugin.so

5. Restart Firefox.

There you have it, now, the java plugin should be available on the list of plugins when you access Tools -> Add-Ons -> Plugins. Enable it if it's still disabled, and you should be ready to go! Please comment if you encounter any problems with this. Thanks to wenlong for the info!

Monday, July 26, 2010

How to install AR8151 v1.0 Gigabit Ethernet driver on Fedora 13


UPDATE!
I upgraded my kernel version to 2.6.33.6-147.2.4.fc13.i686, if you upgraded yours too, you'll have to repeat the process above all over again, I'll try to find a way so we can avoid that, but for the meantime, repeating the process above will solve the problem.
END UPDATE

Ive spent at least a month, just trying to get my wired connection work on an ACER Aspire 4745G running on Fedora 13. The linux driver for my AR8151 v1.0 Gigabit Ethernet LAN card was giving me nightmares! It was always telling me that the driver cannot be built since I was using an old version of the linux kernel (which was really annoying, mind you, since I was running the latest version of the linux kernel (2.6.33.6-147.fc13.i686)). So here's how I made it work, with lots of help from my colleagues.

Prerequisites (Thanks to Nikhil Pawar for this info):
1. Install kernel-devel and kernel-headers. Do this using the following command:
yum install kernel-devel kernel-headers
2. Install compilers. Do this using the following command:
yum install make automake autoconf gcc gcc-c++

Installation Steps:

1. Download the Atheros ethernet driver for linux from here. Download the file named AR81Family-Linux-v1.0.1.9.tar.gz
2. Extract the contents of the gzip file using the following command
tar zxvf AR81Family-Linux-v1.0.1.9.tar.gz
3. Become root using the following command
su
4. Enter the root password.
5. Navigate to the src directory of the extracted files by executing the following command.
cd src
6. Build the driver from source by executing the following command.
make
NOTE: If it complains about your kernel version being outdated / and / or not being the latest version, do the following:
6.a) Edit the MakeFile. (the one inside the src folder from the file that you extracted on step 2) Comment out the following lines by adding a # sign before all of the lines.
ifeq ($(KKVER), 0)
$(error *** Aborting the build.
*** This driver is not supported on kernel versions older than 2.4.0)
endif
After editing, the said lines should look like the following:
# ifeq ($(KKVER), 0)
# $(error *** Aborting the build.
# *** This driver is not supported on kernel versions older than 2.4.0)
# endif
6.b) Save the MakeFile.
6.c) Execute the make command again. Ignore the warnings that you see, they're annoying.
make
7. Install the driver by executing the following command.
make install
8. Inside the src folder. Find the file atl1e.ko. Copy it to the following folder.
/lib/modules/"your kernel version"/kernel/drivers/net/atl1e/
NOTE: Replace the text "your kernel version" with the version of your kernel. You can find that out by executing the following command:
uname -r
For example, in my machine:
[root@mybox src]$ uname -r

2.6.33.6-147.fc13.i686
So the command to copy my .ko file to the proper folder will be:
cp ./atl1e.ko /lib/modules/2.6.33.6-147.fc13.i686/kernel/drivers/net/atl1e/
9. Make your system automatically load the driver modules during system boot by executing the following command.
modprobe atl1e
NOTE: After executing the command above and you got an error that looks like the following:
[root@mybox ~]$ modprobe atl1e

FATAL: Module atl1e not found.
Do the following:
9.a) Execute the following command.
depmod -a
9.b) Create a .module file inside /etc/sysconfig/modules by executing the following command.
echo /sbin/modprobe atl1e >> /etc/sysconfig/modules/local.modules
9.c) Chmod the newly created module file to 755 by executing the following command
chmod 755 /etc/sysconfig/modules/local.modules
10. Restart your machine.

Thats it! That should do it! It worked on my machine, I hope it will work on yours too!
Please comment on this post for any questions!


For Fedora 14, please refer to Patrik Martinsson's blog post.

Tuesday, June 15, 2010

"Permissions 0664" error when using a ssh private key file

I tried to migrate my ssh private key (which was generated using cygwin on a windows box) to my Fedora 13 box, but I got a "Permissions 0664" error. Here's how I was able to resolve it:

1. Open a terminal.
2. Navigate to the .ssh folder. Mostly located under your home directory.
3. Make sure that your private key file is located under the .ssh directory.
4. Type in the following command
chmod 0400 id_dsa
NOTE: Where id_dsa is the filename of your private key file.

That's it! You're all done!

Monday, June 14, 2010

Fedora 13: Playing MP3 Files

To play MP3 files on Fedora 13, execute the following commands on a terminal as root
rpm -ivh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm
yum install gstreamer-plugins-bad gstreamer-ffmpeg gstreamer-plugins-ugly -y

Taken from http://www.linuxreaders.com/2010/05/28/play-divx-mp3-on-fedora-13