Archive for September, 2009

Upgrading Fedora - plugins (part a)

Posted in How To's by Shafkat Shahzad, M.Sc - Senior Technical Content Manager on September 4th, 2009

Welcome to the tutorial guide. The guide will provide instructions and advise to the user about how to install browser plugins for firefox which is the default browser in Fedora 7.

Welcome to the tutorial guide. The guide will provide instructions and advise to the user about how to install browser plugins for firefox which is the default browser in Fedora 7.

Flash
Please note if you are planning to install flash plugin, then first of all you need to install #Adobe repository. After Adobe repository is installed, you can now install the Flash Plugin by running following command:
su -c ‘yum install flash-plugin’

If you are facing difficulties regarding hearing audio during playback of flash video, then you need to install packet called libflashsupport. This can be installed by running following command:
su -c ‘yum install libflashsupport’

If you would like to install Flash without #Adobe repository, then simply install Flash Player 10 by running following command:
su -c ‘rpm -ivh http://fpdownload.macromedia.com/get/flashplayer/current/flash-plugin-10.0.12.36-release.i386.rpm’

Please note that there is no 64 bit flash so to enable flash in a 64 bit machine you will need a program called nsplugininwrapper to finish off the install. This nsplugininwrapper can be installed by running following command:

su -c ‘yum install nspluginwrapper’
Now, in order to enable it, please run the following command.
mozilla-plugin-config

Istallating Sun Java
There are several methods to install the Sun Java Runtime Environment. Let’s go through first method that we will be taking into account to install Sun Java.It has not been completely open sourced so it is not included in Fedora at this stage. This will change in the future when Sun has completely open sourced this package.
Some packages need to be installed initially to complement the installation. Please run following command as below:
su -c ‘yum install compat-libstdc++-33 compat-libstdc++-296′
After that, you will then need to update the library links by running following command:
su -c ‘/sbin/ldconfig’
You will need to
- download the Java Package
- download the *.bin file
- You will need to be root
su –login
- switch to the correct directory
cd /opt
- run the binary file.
sh /home/marc/Desktop/jre-6u3-linux-i586.bin
- link the plugins into the browser directory
ln -s /opt/jre1.6.0_04/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins/libjavaplugin_oji.so
- create a java.sh script.
/etc/profile.d/java.sh
======================
export JAVA_HOME=/opt/jre1.6.0_04
export PATH=$JAVA_HOME/bin:$PATH
in the terminal:
source /etc/profile.d/java.sh
- type the following
/usr/sbin/alternatives –install /usr/bin/java java /opt/jre1.6.0_04/bin/java 2
- configure the java version
/usr/sbin/alternatives –config java
- enable the Sun JRE as the default package
There are 2 programs which provide ‘java’.
Selection Command
———————————————–
*+ 1 /usr/lib/jvm/jre-1.4.2-gcj/bin/java
2 /opt/jre1.6.0_04/bin/java
Enter to keep the current selection[+], or type selection number:
- type the following:
2
- test to see if it is enabled you should see it installed.
/usr/sbin/alternatives –display java
- restart firefox

Sun Java (Method 2 - jdk-6u4-linux-i586.bin version)
This is the second method for installing Sun Java.
- Before we go ahead with installing Sun Java, we need to ensure that we have the #Jpackage. This is because some packages need to be installed initially to complement the installation.
su -c ‘yum install compat-libstdc++-33 compat-libstdc++-296′
- After that, we have to update the library links, by running following command:
su -c ‘/sbin/ldconfig’
- then we will download the Java package from Sun.
- during download, we need to ensure that we download the *bin file NOT the *rpm file. Please note that the current version is jdk-6u4-linux-i586.bin
- We also need to install some pre-requisite packages by running following command:
su -c ‘yum install rpm-build yum-utils’
- after that we will then switch to root
su –login
- now we will move the files to the appropriate directory and create the directories.
rpmdev-setuptree
mv /home/desktop/YourUsername/jdk* /usr/src/redhat/SOURCES/
- please switch to the directory
cd /usr/src/redhat/SRPMS/
- after switching successfully to the directory, we will then get the Source RPM
wget http://mirrors.dotsrc.org/jpackage/1.7/generic/non-free/SRPMS/java-1.6.0-sun-1.6.0.4-1jpp.nosrc.rpm
- now, please rebuild the RPM
setarch i586 rpmbuild –rebuild java-1.6.0-sun-1.6.0.4-1jpp.nosrc.rpm
- You can delete some files that can’t be installed on Fedora
rm -f /usr/src/redhat/RPMS/i586/java-1.6.0-sun-fonts* /usr/src/redhat/RPMS/i586/java-1.6.0-sun-jdbc*
- You can iInstall the rpm’s
yum –nogpgcheck localinstall /usr/src/redhat/RPMS/i586/java-1.6.0-sun-*
- also, create the link so that it works in Firefox
ln -s /usr/lib/jvm/jre/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins/
- you can check to see if it is functioning at java if it shows the wrong version, then please following steps as below:
- enable the Sun JRE as the default package
There are 2 programs which provide ‘java’.
Selection Command
———————————————–
*+ 1 /usr/lib/jvm/jre-1.4.2-gcj/bin/java
2 /opt/jre1.6.0_04/bin/java
Enter to keep the current selection[+], or type selection number:
Type the following:
2
Test to see if it is enabled you should see it installed.

If you followed instructions as provided in this tutorial guide then you would have successfully installed the plugins.

Bookmark Us
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • MisterWong
  • Netvouz
  • Reddit
  • Slashdot
  • Spurl
  • StumbleUpon
  • Technorati
  • Wists

Upgrading Fedora - Bash tips and searching with Google

Posted in How To's by Shafkat Shahzad, M.Sc - Senior Technical Content Manager on September 4th, 2009

Welcome to the tutorial guide. The guide will provide you with information on how to search with Google in Konqueror/run and bash tips.

Searching with Google in Konqueror/Run
If you would like to search using Konqueror/Run using google you can simple type:
gg:yoursearch
for example if you are searching for fedora guide then you simply type:
gg:fedoraguide
This can be done by using Konqueror or Run (by pushing Alt+F2)

-If you would like to alter the standard search engine used Konqueror go to,then simply go to:
- settings
-configure konqueror
-Web Shortcuts

Bash tips
There are several benefits provided by Bash. Some of them are provided below:
- Bash has a build in command called shopt which helps to find errors this may be helpful. If you would like to enable it, then please start the following command
shopt -s cdspell

- If you would like to test it, then please enter following command:
cd /hme/marc
/home/marc

- Bash can be changed to search ignoring case for programs. This is done by typing following:
shopt -s nocaseglob

When you push tab to find a filename bash will carry out a case insensitive search

- If you would like to make a file completely safe even as the root user run the following command:
su -c ‘chattr +i myfile’

This command will make the file secure. If you want to remove it, then simply type in following command:
su -c ‘chattr -i myfile’

- If you are interested in running old commands then just type in following command:
history | grep -i “searchvalue”

- If you want to rename files then simply type in following command:

rename file newfile file
rename ipw3945howto ipw3945howto.txt ipw3945howto

- If you would like to delete files securely in Fedora, the simply run following command:
shred -z -u yourfile

- If you would like to watch logs, then you can use the program watch:
su -c ‘watch /var/log/messages’

You can also use another command called tail command which is:
su -c ‘tail -f /var/log/messages’

- If you would like to see any updates to the messages log file then -f command is very helpful.

I hope that the tips as mentioned in this tutorial guide prove useful for you.

Bookmark Us
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • MisterWong
  • Netvouz
  • Reddit
  • Slashdot
  • Spurl
  • StumbleUpon
  • Technorati
  • Wists

Upgrading Fedora - recommended points (part b)

Posted in How To's by Shafkat Shahzad, M.Sc - Senior Technical Content Manager on September 4th, 2009

Welcome to the tutorial guide. The guide will provide a user with recommendations on different aspects associated with Fedora.
Speed improvements using tmpfs
If you would like to speed improvements using tmpfs then simply add the following to /etc/fstab
#### RAM Drives ####
tmpfs /tmp tmpfs defaults 0 0
tmpfs /var/tmp tmpfs defaults 0 0

How to speed up Gnome
If you would like to speed up Gnome, then simply run following command:
echo “gtk-menu-popup-delay = 0″ >> ~/.gtkrc-2.0

Viewing info pages in Konqueror/Run
If you would like to view an info/man page in Konqueror, just follow the steps as below:
- info:progname (where progname is the program name such as: info:bash)
- now you need to put this in the address bar of Konqueror and for that, please change the line to the following: man:progname

Please note that the progname is the program name such as: man:yum
This can be done by using Konqurero or Run (pushing Alt+F2)

Bookmark Us
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • MisterWong
  • Netvouz
  • Reddit
  • Slashdot
  • Spurl
  • StumbleUpon
  • Technorati
  • Wists

Upgrading Fedora - recommended points (part a)

Posted in How To's by Shafkat Shahzad, M.Sc - Senior Technical Content Manager on September 4th, 2009

Welcome to the tutorial guide. The guide will provide a user with recommendations on different aspects associated with Fedora.

How to improve the bandwidth
If you would like to improve the bandwidth, then please follow the steps as mentioned in this guide.

- Please open the sysctl.conf file for editing and backup the previous sysctl.conf file
su -c ‘cp /etc/syctl.conf /etc/sysctl.conf.backup’
su -c ‘gedit /etc/sysctl.conf/
- Now please add the following lines
## increase TCP max buffer size setable using setsockopt()
net.core.rmem_max = 16777216
net.core.wmem_max = 16777216
## increase Linux autotuning TCP buffer limits
## min, default, and max number of bytes to use
## set max to at least 4MB, or higher if you use very high BDP paths
net.ipv4.tcp_rmem = 4096 87380 16777216
net.ipv4.tcp_wmem = 4096 65536 16777216
## don’t cache ssthresh from previous connection
net.ipv4.tcp_no_metrics_save = 1
net.ipv4.tcp_moderate_rcvbuf = 1
## recommended to increase this for 1000 BT or higher
net.core.netdev_max_backlog = 2500
## for 10 GigE, use this, uncomment below
## net.core.netdev_max_backlog = 30000
## Turn off timestamps if you’re on a gigabit or very busy network
## Having it off is one less thing the IP stack needs to work on
## net.ipv4.tcp_timestamps = 0
## disable tcp selective acknowledgements.
net.ipv4.tcp_sack = 0
##enable window scaling
net.ipv4.tcp_window_scaling = 1
- In the end, please save it and close it.
- Now please run the following command
su -c ‘/sbin/sysctl -p’

Changing the Swap space
If a user wants to change the swap space for the Fedora, then he/she simply needs to go through following steps:
- please add the following line with the number between 0-100.
- now open the sysctl.conf file for editing and backup the previous sysctl.conf file
su -c ‘cp /etc/sysctl.conf /etc/sysctl.conf.backup’
su -c ‘gedit /etc/sysctl.conf’
- please add the following line
vm.swappiness = 0
- in the end please reboot the computer

Noatime
It is good to know what role Noatime plays for Fedora. Noatime affects how often the system updates the time in the computer. If you would like to speed it up, please follow the steps as below to do the modifications.
- please edit the fstab file and back it up by running following command:
su -c ‘cp /etc/fstab /etc/fstab.backup’
su -c ‘gedit /etc/fstab’
- please add more text where the mount option says defaults

- You need to add following text before:
UUID=5f7e8362-66d0-4806-b2cf-61eb74200001 / ext3 defaults 1 1
UUID=5f7e8362-66d0-4806-b2cf-61eb74200022 /home ext3 defaults 1 2
UUID=5f7e8362-66d0-4806-b2cf-61eb74200333 /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
UUID=5f7e8362-66d0-4806-b2cf-61eb74204444 swap swap defaults 0 0

- You can add the following text after:
UUID=5f7e8362-66d0-4806-b2cf-61eb74200001 / ext3 defaults,noatime,nodiratime 1 1
UUID=5f7e8362-66d0-4806-b2cf-61eb74200022 /home ext3 defaults,noatime,nodiratime 1 2
UUID=5f7e8362-66d0-4806-b2cf-61eb74200333 /boot ext3 defaults,noatime,nodiratime 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
UUID=5f7e8362-66d0-4806-b2cf-61eb74204444 swap swap defaults 0 0

In order to ensure that changes are implemented, you need to do a reboot to the computer.

Bookmark Us
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • MisterWong
  • Netvouz
  • Reddit
  • Slashdot
  • Spurl
  • StumbleUpon
  • Technorati
  • Wists

Next entries »