<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Linux and Virtualization &#187; Linux</title>
	<atom:link href="http://fclose.com/b/linux/topic/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://fclose.com/b/linux</link>
	<description>Clear solutions, tutorials and tips on Linux and virtualization from the author&#039;s experience with clusters.</description>
	<lastBuildDate>Thu, 09 Feb 2012 14:49:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Converting JPG Images to EPS</title>
		<link>http://fclose.com/b/linux/3549/converting-jpg-images-to-eps/</link>
		<comments>http://fclose.com/b/linux/3549/converting-jpg-images-to-eps/#comments</comments>
		<pubDate>Thu, 09 Feb 2012 14:49:48 +0000</pubDate>
		<dc:creator>Zhiqiang Ma</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[convert]]></category>
		<category><![CDATA[eps]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[jpg]]></category>
		<category><![CDATA[Latex]]></category>

		<guid isPermaLink="false">http://fclose.com/b/linux/?p=3549</guid>
		<description><![CDATA[I write a lot latex documents and most of the documents have images in it. Latex deals EPS very well, while sometimes we need to add JPG / PNG images to it. I find converting the JPG images to EPS ones is the most convenient way to embed JPG images to latex documents. On Linux, [...]]]></description>
			<content:encoded><![CDATA[<p>I write a lot latex documents and most of the documents have images in it. Latex deals EPS very well, while sometimes we need to add JPG / PNG images to it. I find converting the JPG images to EPS ones is the most convenient way to embed JPG images to latex documents. On Linux, this is quit easy with ImageMagick.</p>
<p>You need to install ImageMagick if it is not already installed in the system:</p>
<pre># yum install ImageMagick</pre>
<p>Convert image image.jpg from JPG to EPS format:</p>
<pre>$ convert image.jpg image.eps</pre>
<p>For other image formats, the command is similar.</p>
]]></content:encoded>
			<wfw:commentRss>http://fclose.com/b/linux/3549/converting-jpg-images-to-eps/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Converting Video Files for iPod/iPhone/iPad</title>
		<link>http://fclose.com/b/linux/3540/converting-video-files-for-ipod-iphone-ipad/</link>
		<comments>http://fclose.com/b/linux/3540/converting-video-files-for-ipod-iphone-ipad/#comments</comments>
		<pubDate>Sat, 04 Feb 2012 04:40:21 +0000</pubDate>
		<dc:creator>Zhiqiang Ma</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[ffmpeg]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[ipod]]></category>
		<category><![CDATA[mp4]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[wmv]]></category>

		<guid isPermaLink="false">http://fclose.com/b/linux/?p=3540</guid>
		<description><![CDATA[We usually have video files in .wmv .mpg .rmvb or .mkv formats. The iPod, iPhone or iPad only accept a limited number of video file types, such as .mov and .mp4. To play these video files in .wmv .mpg or .rmvb format, we should first convert them to .mov or .mp4 files that can played [...]]]></description>
			<content:encoded><![CDATA[<p>We usually have video files in .wmv .mpg .rmvb or .mkv formats. The iPod, iPhone or iPad only accept a limited number of video file types, such as .mov and .mp4. To play these video files in .wmv .mpg or .rmvb format, we should first convert them to .mov or .mp4 files that can played by iTune or other video players on these Apple devices that use the same codec engine. We may possibly convert video files for iPod or iPhone with <a href="http://fclose.com/b/linux/1671/useful-mplayermencoder-commands/">mplayer/mencoder</a> but it may have some problems, such as the audio and video do not synchronize very well for some videos.ffmpeg can convert video files from various formats to others and most of the time ffmpeg works very well. This post introduces how to convert the video files in common formats (.wmv, .mpg, .rmvb, .mkv, .etc.) to .mp4 format for iPod/iPhone/iPad.</p>
<h3>Install ffmpeg</h3>
<p>First, we should install the ffmpeg package. The Fedora Linux does not include ffmpeg in its repository for some reasons but the RPM Fusion repository provides it for us. To install the ffmpeg package, <a href="http://fclose.com/t/go/enable-rpmfusion/">add RPM Fusion repository first</a>.</p>
<p>The install the ffmpeg package:</p>
<pre># yum install ffmpeg</pre>
<p>Convert video file format with ffmpeg</p>
<p>The basic command to convert video file input.wmv to onput.mp4 is as follows.</p>
<pre># ffmpeg -i input.wmv output.mp4</pre>
<p>Or other format (such as .mov) by:</p>
<pre># ffmpeg -i input.wmv output.mov</pre>
<p>ffmpeg determines the output video&#8217;s format by its file name extersion.</p>
<h3>Convert video file format with ffmpeg for iPod/iPhone/iPad</h3>
<p>The files in .mp4 format can be played on Apples devices. The iPod/iPhone/iPad have specific resolution, so we need to to convert the video files to a very high resolution since the devices can only display a limited one. We use the iPod generation 2 as the example, its screen resolution is 480&#215;320. Hence, we can only convert the video to this resolution for smaller video file size. Similarly, the bitrate can also be set accordingly. The default one of ffmpeg (200 kb/s) is too low. To improve the quality of the converted video, we can set it to a larger one.</p>
<p>One good configuration for me is:</p>
<pre># ffmpeg -i input.wmv -s 480x320 -b 1000k output.mp4</pre>
<p>-s sets the frame size of the video. -b sets the bitrate of the video.</p>
<h3>Convert video file format with ffmpeg for iPod/iPhone/iPad in one command</h3>
<p>More conveniently, we can form this command to a script convert2mp4.sh:</p>
<pre>#!/bin/bash
ffmpeg -i $1 -s 480x320 -b 1000k /tmp/$1.mp4</pre>
<p>Each time to convert a video file video.wmv, we can simply run:</p>
<pre>$ convert2mp4.sh video.wmv</pre>
<p>and the converted file is /tmp/video.wmv.mp4 after the script finishes.</p>
]]></content:encoded>
			<wfw:commentRss>http://fclose.com/b/linux/3540/converting-video-files-for-ipod-iphone-ipad/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrading Fedora to Newer Version with Yum</title>
		<link>http://fclose.com/b/linux/3429/upgrading-fedora-to-newer-version-with-yum/</link>
		<comments>http://fclose.com/b/linux/3429/upgrading-fedora-to-newer-version-with-yum/#comments</comments>
		<pubDate>Mon, 21 Nov 2011 13:16:21 +0000</pubDate>
		<dc:creator>Zhiqiang Ma</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Command line]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Server config]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://fclose.com/b/linux/?p=3429</guid>
		<description><![CDATA[Please consider PreUpgrade for upgrading Fedora. This is the recommended method. This post makes a list of actions should be done to upgrade Fedora using yum. Please note that this is for experienced users only, if you are not sure what you are doing and what do these commands mean, please stop here and read [...]]]></description>
			<content:encoded><![CDATA[<p>Please consider <a href="http://fclose.com/t/go/preupgrade-fedora/" rel="nofollow">PreUpgrade</a> for upgrading Fedora. This is the recommended method.</p>
<hr />
<p>This post makes a list of actions should be done to upgrade Fedora using yum. Please note that this is for experienced users only, if you are not sure what you are doing and what do these commands mean, please stop here and read the manuals first, or go to Fedora&#8217;s Wiki about <a href="http://fclose.com/t/go/upgrading_fedora_using_yum/" rel="nofollow">upgrading Fediora using yum</a>.</p>
<p>This post aims to be a general method, although we use Fedora 15 to Fedora 16 as the example. We configure and install grub2 as the bootloader.</p>
<h3>Clean Stuff</h3>
<p>It is a good time to remove packages we don&#8217;t use. These packages could be candidates for removal, but check to see whether you use them directly or if they are used by applications not backed by rpm packages.</p>
<pre># package-cleanup --leaves</pre>
<p>You can find orphaned packages (i.e. packages not in the repositories anymore). This will also show packages which have been partially uninstalled but where the &#8220;%postun&#8221; script failed.</p>
<pre># package-cleanup --orphans</pre>
<h3>Do the upgrade</h3>
<h4>Go to a text console and run in level 3</h4>
<pre>ctrl + alt + F2</pre>
<pre>init 3</pre>
<h4>Update yum first</h4>
<pre>yum update yum</pre>
<h4>Clean all cached meta data and packages</h4>
<pre>yum clean all</pre>
<h4>Import the key for the newer version&#8217;s repository</h4>
<p>For Fedora 16, it is</p>
<pre>rpm --import https://fedoraproject.org/static/A82BA4B7.txt</pre>
<h4>Synchronizes the installed package set with the latest packages available</h4>
<pre>yum --releasever=&lt;release_number_you_want_to_sync_to&gt; distro-sync</pre>
<p>For upgrading Fedora 15 to Fedora 16:</p>
<pre>yum --releasever=16 --disableplugin=presto  distro-sync</pre>
<p>Double check the updated repositories after distro-sync</p>
<pre>yum repolist</pre>
<h4>Update groups</h4>
<pre>yum groupupdate Base</pre>
<p>List all other groups</p>
<pre>yum grouplist</pre>
<p>and also update them</p>
<pre>yum groupupdate ALL GROUPS LISTED</pre>
<h4>Use grub2 instead of grub</h4>
<p>Make configuration for grub2</p>
<pre>/sbin/grub2-mkconfig -o /boot/grub2/grub.cfg</pre>
<p>Install grub2</p>
<pre>/sbin/grub2-install BOOTDEVICE</pre>
<p>For example, to install grub2 on sda:</p>
<pre>/sbin/grub2-install /dev/sda</pre>
<h4>Reset services start/stop priorities</h4>
<pre>cd /etc/rc.d/init.d; for f in *; do /sbin/chkconfig $f resetpriorities; done</pre>
<h4>Reboot the system now</h4>
<p>After reboot, you may see new kernel version on new Fedora version. For example, kernel 3.1.1 on Fedora 16</p>
<pre>[root@localhost ~]# uname -a
Linux localhost.localdomain 3.1.1-1.fc16.x86_64 #1 SMP Fri Nov 11 21:47:56 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux</pre>
]]></content:encoded>
			<wfw:commentRss>http://fclose.com/b/linux/3429/upgrading-fedora-to-newer-version-with-yum/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Additional Repositories for Fedora Linux</title>
		<link>http://fclose.com/b/linux/3471/additional-repositories-for-fedora-linux/</link>
		<comments>http://fclose.com/b/linux/3471/additional-repositories-for-fedora-linux/#comments</comments>
		<pubDate>Fri, 18 Nov 2011 03:32:19 +0000</pubDate>
		<dc:creator>Zhiqiang Ma</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Client config]]></category>
		<category><![CDATA[Command line]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[rpmfusion]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://fclose.com/b/linux/?p=3471</guid>
		<description><![CDATA[Fedora&#8217;s repositories provide most of the software packages needed when using Linux. However, for various consideration, they do not provide some packages, such as MPlayer, ffmpeg. Fortunately, some community maintained repository provides these software. And they may also package propriety software, , such as ATI fglrx dive, NVIDIA driver, into rpm packages. In this post, we [...]]]></description>
			<content:encoded><![CDATA[<p>Fedora&#8217;s repositories provide most of the software packages needed when using Linux. However, for various consideration, they do not provide some packages, such as MPlayer, ffmpeg. Fortunately, some community maintained repository provides these software. And they may also package propriety software, , such as ATI fglrx dive, NVIDIA driver, into rpm packages. In this post, we introduce theses additional repositories and how to install them into Fedora.</p>
<h3 id="rpmfusion">RPM Fusion</h3>
<p>&#8220;RPM Fusion provides software that the Fedora Project or Red Hat doesn&#8217;t want to ship. That software is provided as precompiled RPMs for all current Fedora versions and Red Hat Enterprise Linux 5 and 6; you can use the RPM Fusion repositories with tools like yum and PackageKit.&#8221;</p>
<p>RPM Fusion has two separate software repositories<strong>. </strong>The<strong> free</strong> for Open Source Software (as defined by the Fedora Licensing Guidelines) which the Fedora project cannot ship due to other reasons. The <strong>nonfree</strong> for redistributable software that is not Open Source Software (as defined by the Fedora Licensing Guidelines); this includes software with publicly available source-code that has &#8220;no commercial use&#8221;-like restrictions.</p>
<p>To enable access to both the <strong>free</strong> and the <strong>nonfree</strong> repository use the following command.</p>
<p>Released and currently supported Fedora versions:</p>
<pre># yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm
# yum localinstall --nogpgcheck http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm</pre>
<p>Fedora Rawhide and what will become the next Fedora version (Alpha, Beta and snapshots):</p>
<pre># yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-rawhide.noarch.rpm
# yum localinstall --nogpgcheck http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-rawhide.noarch.rpm</pre>
]]></content:encoded>
			<wfw:commentRss>http://fclose.com/b/linux/3471/additional-repositories-for-fedora-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Install, Run and Uninstall VMware Player and VirtualBox on Fedora Linux</title>
		<link>http://fclose.com/b/linux/3460/how-to-install-run-and-uninstall-vmware-player-and-virtualbox-on-fedora-linux/</link>
		<comments>http://fclose.com/b/linux/3460/how-to-install-run-and-uninstall-vmware-player-and-virtualbox-on-fedora-linux/#comments</comments>
		<pubDate>Fri, 18 Nov 2011 00:46:13 +0000</pubDate>
		<dc:creator>Zhiqiang Ma</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[Command line]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Full Virtualization]]></category>
		<category><![CDATA[Server config]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[VirtualBox]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://fclose.com/b/linux/?p=3460</guid>
		<description><![CDATA[VMware Player and VirtualBox are two cool and free full virtualization solutions and both can run on top of a Linux host. In this post, we introduces how to install, run, and uninstall VMware Player and VirtualBox on Fedora Linux. VMware Player Install VMware Player Download the installation bundle from VMware&#8217;s website. For example, the [...]]]></description>
			<content:encoded><![CDATA[<p>VMware Player and VirtualBox are two cool and free full virtualization solutions and both can run on top of a Linux host. In this post, we introduces how to install, run, and uninstall VMware Player and VirtualBox on Fedora Linux.</p>
<h3>VMware Player</h3>
<h4>Install VMware Player</h4>
<p>Download the installation bundle from <a href="http://fclose.com/t/go/vmware-player/" rel="nofollow">VMware&#8217;s website</a>. For example, the file we download is: VMware-Player-4.0.0-471780.x86_64.bundle .</p>
<p>Install needed kernel header and devel packages</p>
<pre># yum install kernel-headers kernel-devel</pre>
<p>Run the bundle file</p>
<pre># sh VMware-Player-4.0.0-471780.x86_64.bundle</pre>
<p>Then just follow the instruction of the GUI of the VMware installer, and you can finish the installation.</p>
<p>For Fedora 16 with kernel 3.1.0 or 3.1.1 with VMware Player 4.0.0, the vmnet module can not compile vmnet module. The VMware-Player-4.0.1-528992.x86_64 fixes this problem and works well with 3.1 kernel. If you want to run VMware Player 4.0.0, the community give patches to it so that it works with kernel 3.1. The <a href="http://fclose.com/t/go/angeleri-patch-vmplayer-4.0.0-kernel-3.1/" rel="nofollow">patch and script given by Stefano Angeleri</a> works well for me. You may use it quickly by the following commands.</p>
<pre>$ wget http://weltall.heliohost.org/wordpress/wp-content/uploads/2011/09/vmware8linux31fix.tar.gz
$ tar xf vmware8linux31fix.tar.gz
# sh ./patch-modules_3.1.0.sh</pre>
<p>systemctl prints a &#8220;[FAILED]&#8221; message. But you can ignore it and VMware Player works.</p>
<h4>Run VMware Player</h4>
<p>Just execute</p>
<pre>$ vmplayer</pre>
<p>Start a virtual machine just by one command</p>
<pre>$ vmplayer /path/to/virtual/machine/config.vmx &amp;</pre>
<p>Give the path to the virtual machine configuration file (a .vmx file under the virtual machine&#8217;s directory) to vmplayer as its parameter.</p>
<h4>Uninstall VMware Player</h4>
<p>VMware installer provides the method to uninstall VMware products. We can use this tool</p>
<pre># vmware-installer  --uninstall-product vmware-player</pre>
<p>It has a GUI and just follow its instruction to finish the uninstallation.</p>
<h3>VirtualBox</h3>
<h4>Install VirtualBox</h4>
<p>We use VirtualBox&#8217;s repository for Fedora here. We use VirtualBox-4.1 as the example.</p>
<p>Download the repository file.</p>
<pre># cd /etc/yum.repos.d
# wget http://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo</pre>
<p>Install VirtualBox using yum</p>
<pre># yum install VirtualBox-4.1</pre>
<h4>Run VirtualBox</h4>
<p>Just execute</p>
<pre>$ virtualbox</pre>
<p>Start a virtual machine just by one command</p>
<pre># VBoxManage startvm name_of_the_virtual_machine</pre>
<p>VBoxManager use the virtual machine&#8217;s name as its parameter. The name can be found from VirtualBox&#8217;s virtual machine list.</p>
<h4>Uninstall VirtualBox</h4>
<p>As installing VirtualBox, we can uninstall (erase) it using yum</p>
<pre># yum erase VirtualBox-4.1</pre>
]]></content:encoded>
			<wfw:commentRss>http://fclose.com/b/linux/3460/how-to-install-run-and-uninstall-vmware-player-and-virtualbox-on-fedora-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing ns-2 and ns-3 on Fedora Linux</title>
		<link>http://fclose.com/b/linux/3376/install-ns-2-and-ns-3-on-fedora-linux/</link>
		<comments>http://fclose.com/b/linux/3376/install-ns-2-and-ns-3-on-fedora-linux/#comments</comments>
		<pubDate>Tue, 15 Nov 2011 07:53:22 +0000</pubDate>
		<dc:creator>Zhiqiang Ma</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Bash]]></category>
		<category><![CDATA[Client config]]></category>
		<category><![CDATA[Command line]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[nam]]></category>
		<category><![CDATA[ns-2]]></category>
		<category><![CDATA[ns-3]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://fclose.com/b/linux/?p=3376</guid>
		<description><![CDATA[ns is a discrete-event network simulator targeted primarily for research and educational use. There are two version of ns, ns-2 and ns-3, which are quite different with each other in the implementation and method to use them. In this post, we introduce how to install ns-2 and ns-3 on Fedora Linux 15. Install ns-2.34 on [...]]]></description>
			<content:encoded><![CDATA[<p>ns is a discrete-event network simulator targeted primarily for research and educational use. There are two version of ns, <a href="http://fclose.com/t/go/ns-2/" rel="nofollow">ns-2</a> and <a href="http://fclose.com/t/go/ns-3/" rel="nofollow">ns-3</a>, which are quite different with each other in the implementation and method to use them. In this post, we introduce how to install ns-2 and ns-3 on Fedora Linux 15.</p>
<h3>Install ns-2.34 on Fedora</h3>
<p>Download the allinone package</p>
<pre>$ wget http://downloads.sourceforge.net/project/nsnam/allinone/ns-allinone-2.34/ns-allinone-2.34.tar.gz</pre>
<p>Uncompress the pacakge</p>
<pre>$ tar xf ns-allinone-2.34.tar.gz</pre>
<p>Install needed pacakges</p>
<pre># yum install gcc make libX11-devel libXt-devel libXmu-devel</pre>
<p>Ns-2 requires older version of gcc. So we install gcc-34 and gcc-34-c++ for it</p>
<pre># yum install compat-gcc-34 compat-gcc-34-c++</pre>
<p>Install the allinon package of ns-2. During the install process, specify the CXX compiler we use</p>
<pre>$ cd ns-allinone-2.34
$ CXX=g++34 ./install</pre>
<p>Configure the environmental variables for ns-2 and nam, and add the executables to the PATH so that we can use ns and nam directly.</p>
<p>Add to <em>~/.bashrc</em> if you use bash</p>
<pre>NS_HOME=/full/path/to/ns-allinone-2.34
PATH=$NS_HOME/bin:$NS_HOME/tcl8.4.18/unix:$NS_HOME/tk8.4.18/unix:$PATH
export PATH</pre>
<p>or</p>
<p>Add to <em>~/.cshrc_user</em> if you use c shell</p>
<pre>setenv NS_HOME "/full/path/to/ns-allinone-2.34"
setenv PATH "${PATH}:${NS_HOME}/bin:${NS_HOME}/tcl8.4.18/unix:${NS_HOME}/tk8.4.18/unix"
setenv LD_LIBRARY_PATH "${NS_HOME}/otcl-1.13:${NS_HOME}/ns-2.34/lib:/usr/local/lib"
setenv TCL_LIBRARY "${NS_HOME}/tcl8.4.18/library"</pre>
<p>The installation is done by this step. Open another shell and try our installation:</p>
<pre>$ nam</pre>
<p>and</p>
<pre>$ ns</pre>
<h3>Install ns-3.12.1 on Fedora</h3>
<p>Install needed packages</p>
<pre># yum install libxml2 libxml2-devel gcc gcc-c++ make automake \
autoconf binutils openssh-server openssh-clients openssl python \
python-devel mercurial bzr scons flex bison tcpdump valgrind gdb</pre>
<p>Download the allinone pacakge for ns-3</p>
<pre>$ mkdir tarballs
$ cd tarballs
$ wget http://www.nsnam.org/release/ns-allinone-3.12.1.tar.bz2
$ tar xjf ns-allinone-3.12.1.tar.bz2</pre>
<p>Build ns-3</p>
<pre>$ cd ns-allinone-3.12.1/
$ ./build.py</pre>
<p>We will now interact directly with Waf in the ns-3.12.1 directory</p>
<pre>$ cd ns-3.12.1</pre>
<p>Configuration with Waf</p>
<pre>$ ./waf -d optimized configure --enable-examples; ./waf</pre>
<p>Validate our installation by running one example</p>
<pre>$ ./waf shell
$ cd build/optimized/examples/
$ udp/udp-echo</pre>
<p>Use tcpdump to display the simulation result</p>
<pre>$ tcpdump -tt -r udp-echo-0-1.pcap</pre>
]]></content:encoded>
			<wfw:commentRss>http://fclose.com/b/linux/3376/install-ns-2-and-ns-3-on-fedora-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing and Configuring 32-bit Firefox on 64-bit Linux (Fedora)</title>
		<link>http://fclose.com/b/linux/3092/installing-and-configuring-32bit-firefox-on-64bit-linux-fedora/</link>
		<comments>http://fclose.com/b/linux/3092/installing-and-configuring-32bit-firefox-on-64bit-linux-fedora/#comments</comments>
		<pubDate>Mon, 31 Oct 2011 03:56:20 +0000</pubDate>
		<dc:creator>Zhiqiang Ma</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Client config]]></category>
		<category><![CDATA[Command line]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[x86]]></category>

		<guid isPermaLink="false">http://fclose.com/b/linux/?p=3092</guid>
		<description><![CDATA[On a x86-64 64 bit Linux system, sometimes we may want to use the 32 bit Firefox, although the support to 64 bit Firefox is getting much better. Just for needed ones, this post introduces how to install 32 bit Firefox on 64 bit Linux (Fedora as the example). Install 32-bit firefox First, install firfox.i686 [...]]]></description>
			<content:encoded><![CDATA[<p>On a x86-64 64 bit Linux system, sometimes we may want to use the 32 bit Firefox, although the support to 64 bit Firefox is getting much better. Just for needed ones, this post introduces how to install 32 bit Firefox on 64 bit Linux (Fedora as the example).</p>
<h3>Install 32-bit firefox</h3>
<p>First, install firfox.i686 package.</p>
<pre># linux32
# yum install firefox.i686</pre>
<p>Firefox can simply run now. But we still need to fix some issues.</p>
<p>When run firefox, we may get these warnings:</p>
<p><span style="font-family: courier new,courier; font-size: small;">(firefox:4860): Gtk-WARNING **: Unable to locate theme engine in module_path: &#8220;clearlooks&#8221;,</span><br />
<span style="font-family: courier new,courier; font-size: small;"> Gtk-Message: Failed to load module &#8220;pk-gtk-module&#8221;: libpk-gtk-module.so: cannot open shared object file: No such file or directory</span><br />
<span style="font-family: courier new,courier; font-size: small;"> Gtk-Message: Failed to load module &#8220;canberra-gtk-module&#8221;: libcanberra-gtk-module.so: cannot open shared object file: No such file or directory</span></p>
<p>To fix these warnings, install needed packages:</p>
<pre># yum install libcanberra-gtk2.i686 \
 gtk2-engines.i686 \
 PackageKit-gtk-module.i686</pre>
<p>However, there is no input method. To enable ibus-gtk2 input method in 32bit Firefox, install the ibus-gtk2 package</p>
<pre># yum install ibus-gtk2.i686</pre>
<h3>Install the flash-plugin</h3>
<p>Enable rpmfusion repository: <a href="http://fclose.com/t/go/enable-rpmfusion/">Enable RPM Fusion repositories</a></p>
<p>Install flash plugin</p>
<pre># yum install flash-plugin.i386</pre>
<p>Set up flash plugin</p>
<pre># /usr/lib/flash-plugin/setup</pre>
<p>There is no sound in flash. For sound support and curl support, install</p>
<pre># yum install alsa-plugins-pulseaudio.i686 curl.i686</pre>
<p>You should have sound. flash-plugin works.</p>
<p>Firefox should complain nothing and work well now. Enjoy it.</p>
<p>Additional gift:</p>
<p>Force to run firefox in 32-bit mode:</p>
<pre>#!/bin/bash

setarch i686 firefox -new-tab $*</pre>
]]></content:encoded>
			<wfw:commentRss>http://fclose.com/b/linux/3092/installing-and-configuring-32bit-firefox-on-64bit-linux-fedora/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to Set Up and Configure NFS Server and Clients</title>
		<link>http://fclose.com/b/linux/3396/how-to-set-up-and-configure-nfs-server-and-clients/</link>
		<comments>http://fclose.com/b/linux/3396/how-to-set-up-and-configure-nfs-server-and-clients/#comments</comments>
		<pubDate>Sun, 30 Oct 2011 15:42:09 +0000</pubDate>
		<dc:creator>Zhiqiang Ma</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Client config]]></category>
		<category><![CDATA[Command line]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[NFS]]></category>
		<category><![CDATA[Server config]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://fclose.com/b/linux/?p=3396</guid>
		<description><![CDATA[NFS is widely deployed and used even after more than twenty year. NFS is easy to set up and easy to use. This introduces how to set up the NFS server and clients. We use the Fedora system as the example. Set up a NFS Server Configure /etc/exports to give clients the permission to use [...]]]></description>
			<content:encoded><![CDATA[<p>NFS is widely deployed and used even after more than twenty year. NFS is easy to set up and easy to use. This introduces how to set up the NFS server and clients. We use the Fedora system as the example.</p>
<h3>Set up a NFS Server</h3>
<p>Configure /etc/exports to give clients the permission to use the NFS directories.</p>
<h4>Edit /etc/exports</h4>
<p>For example, to allow the servers inside subnet 10.0.0.1/24 to mount the /home directory with read/write permission. Add this line to /etc/exports:</p>
<pre>/home 10.0.0.1/24(rw)</pre>
<p>For details of the exports functions, please refer to <a href="http://fclose.com/p/linux/man/5-exports/">export manual</a>.</p>
<h4>Start up the NFS service</h4>
<p>Enable nfs service on the NFS server so that the NFS service daemon automatically starts each time the server starts:</p>
<pre># /sbin/chkconfig nfs on</pre>
<p>You may also manually start it</p>
<pre># service nfs start</pre>
<h3>Client-slide configuration</h3>
<h4>Package installation</h4>
<pre># yum nfs-utils</pre>
<h4>Start the rpcbind service</h4>
<pre># service rpcbind restart</pre>
<p>You may also set it to start automatically</p>
<p># chkconfig rpcbind on</p>
<h4>Mount the NFS directory</h4>
<pre># mount NFS_SERVER:/lhome/userdir MOUNT_POINT</pre>
<p>where NFS_SERVER is the NFS server&#8217;s address, and MOUNT_POINT is the local mount point on the client side for the NFS directory.</p>
<p>You may also consider using autofs on top of NFS as described in <a href="/281/unified-linux-login-and-home-directory-using-openldap-and-nfsautomount/">Unified Linux Login and Home Directory Using OpenLDAP and NFS/automount</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://fclose.com/b/linux/3396/how-to-set-up-and-configure-nfs-server-and-clients/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Howto for New Git Users</title>
		<link>http://fclose.com/b/linux/3358/howto-for-new-git-user/</link>
		<comments>http://fclose.com/b/linux/3358/howto-for-new-git-user/#comments</comments>
		<pubDate>Thu, 13 Oct 2011 07:54:03 +0000</pubDate>
		<dc:creator>Zhiqiang Ma</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Client config]]></category>
		<category><![CDATA[Command line]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Git]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://fclose.com/b/linux/?p=3358</guid>
		<description><![CDATA[This post is a tutorial for new users to set up git and clone and use the first repository. This post introduces how to start using git for new users. This post does not introduce details of how to use git commands. Please refer to the git manual or other tutorials for how to commit, [...]]]></description>
			<content:encoded><![CDATA[<p>This post is a tutorial for new users to set up git and clone and use the first repository. This post introduces how to start using git for new users. This post does not introduce details of how to use git commands. Please refer to the <a href="http://fclose.com/p/linux/man/1-git/">git manual </a>or other tutorials for how to commit, push, etc.</p>
<p>In this post, we introduce how to set up keys for git, how to configure non-standard SSH port for git, and how to use the first git repository.</p>
<h3>Users’ SSH private/public key pairs</h3>
<p>Every user of git, administrator or a normal user, need to have a private/public SSH key pairs in ~/.ssh.</p>
<p>New users need to generate the key pairs (if they don’t have one) by executing this command:</p>
<pre>$ ssh-keygen -t rsa</pre>
<p>After generating the key pairs, the user can give the public key (~/.ssh/id_rsa.pub) to the git server administrator and ask he/she to create a account and repository.</p>
<p>After the git server administrator adds the new user by its public key to the git server, the user can starts to use git.</p>
<h3>Non-standard SSH port</h3>
<p>This section only for the git servers that use non-stardard SSH port, i.e. other than 22.</p>
<p>If sshd is listening on non-standard port(s) on the git server, for example 22111, the user should set SSH to use the special port. We use example.org:22111 as the example here.</p>
<p>Put these two lines in your <em>~/.ssh/config</em> file:</p>
<pre>Host example.org
  Port 22111</pre>
<p>If this <em>~/.ssh/config</em> file doesn’t exist, you should create it first and set it’s mod to 744:</p>
<pre>$ chmod 744 ~/.ssh/config</pre>
<h3>Create the new repository</h3>
<p>This section only for users to create new repository. If the user is to use an already exist repository, please skip this section. Besides, the steps in this section only need to be done once for one repository.</p>
<p>We use the example that the administrator create repository <em>repo1</em> for <em>user1</em> and give <em>user1</em> write privilege to this repository. We assume the address for this repository is <em>git@example.org:repo1.git</em> . Now we introduce how does <em>user1</em> create the new repository <em>repo1</em>.</p>
<p>As <em>user1</em> has the write privilege on the <em>repo1</em> repository, it can create this repository on it’s local machine first and then push it to the git server. After pushing it to the git server.</p>
<p>These operations are done by <em>user1 </em>on its local machine:</p>
<pre>$ mkdir repo1
$ cd repo1
$ git init
$ touch README
$ git add README
$ git commit -a -m 'first commit'
$ git remote add origin git@example.org:repo1.git
$ git push origin master</pre>
<p>If it successes, the new repository is created on the git server.</p>
<h3>Use the repository</h3>
<p>Please note that step 1 only need to be done for the first time. After getting the repository to a local directory on the user&#8217;s local machine, the user only need to follow step 2 to step 5.</p>
<p>1. Clone the repository for the first-time. You only need to do it once for the first time, for the later usage of this repository, you continue use this local directory.</p>
<pre>$ git clone git@example.org:repo1.git</pre>
<p>A directory named repo1 will be created in the current directory.</p>
<p>If you want to use the repository directory in the previous section, just add these line to the end of <em>.git/config</em>:</p>
<pre>[branch "master"]
remote = origin
merge = refs/heads/master</pre>
<p>2. Pull the updates made before by you or the others. Use <em>&#8220;git pull&#8221;</em> command in the repository’s directory.</p>
<pre>$ cd repo1
$ git pull</pre>
<p>Then you can work on this updated copy of the repository by editing the files.</p>
<p>If you add a file or directory (for example, add directory a/b and file a/t.txt), you can add it to the repository by:</p>
<pre>$ git add a/b a/t.txt</pre>
<p>3. Commit the changes made by you with a message</p>
<pre>$ git commit -a -m 'update the files'</pre>
<p>4. Push it to the git server</p>
<pre>$ git push</pre>
<p>By now, your changes have been pushed to the git server. When the others use &#8220;<em>git pull&#8221;</em> command, they will get the new version of the source codes that have changed by you.</p>
<p>You can use <em>&#8220;git log&#8221;</em> to see the logs of all the commits of this repository.</p>
<p>You may be also interested in more <a href="http://fclose.com/b/linux/2481/git-solutions/">git solutions</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://fclose.com/b/linux/3358/howto-for-new-git-user/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Installing the Flash Plugin for 64-bit Firefox in Linux x86-64</title>
		<link>http://fclose.com/b/linux/3185/installing-the-flash-plugin-for-64-bit-firefox-in-linux-x86-64/</link>
		<comments>http://fclose.com/b/linux/3185/installing-the-flash-plugin-for-64-bit-firefox-in-linux-x86-64/#comments</comments>
		<pubDate>Wed, 28 Sep 2011 17:20:49 +0000</pubDate>
		<dc:creator>Zhiqiang Ma</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Client config]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://fclose.com/b/linux/?p=3185</guid>
		<description><![CDATA[This post introduces how to install flash plugin to 64-bit firefox on a x86-64 Linux (Fedora as the example). Both 64-bit and 32-bit plugin are available. 64-bit flash plugin for Firefox on Linux First, download Flash Player Release for 64-bit Linux from Adobe Labs. Then, unpack the package: $ tar xf flashplayer.tar.gz Check whether all [...]]]></description>
			<content:encoded><![CDATA[<p>This post introduces how to install flash plugin to 64-bit firefox on a x86-64 Linux (Fedora as the example). Both 64-bit and 32-bit plugin are available.</p>
<h3>64-bit flash plugin for Firefox on Linux</h3>
<p>First, download <a href="http://fclose.com/t/go/linux/flashplayer-64-linux/" rel="nofollow">Flash Player Release </a> for 64-bit Linux from Adobe Labs.</p>
<p>Then, unpack the package:</p>
<pre>$ tar xf flashplayer.tar.gz</pre>
<p>Check whether all needed library is ready for it. If not, install the needed packages.</p>
<pre>$ ldd libflashplayer.so</pre>
<p>Give it executable attribute:</p>
<pre>$ chmod +x libflashplayer.so</pre>
<p>Copy the plugin to the plugin directory so that Firefox can use it:</p>
<pre>$ cp libflashplayer.so ~/.mozilla/plugins/</pre>
<h3>32-bit flash plugin for Firefox on Linux</h3>
<p>32-bit flash plugin can also work well for 64-bit firefox on 64-bit Linux. We can use the rpm packages from adobe&#8217;s repository.</p>
<p>First, install adobe release repository:</p>
<pre># rpm -Uvh http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm</pre>
<p>Install nspluginwrapper so that 32-bit plugins can run on 64-bit system, and 32-bit alsa plugin for pulseaudio so that the 32-bit flash plugin can play sound on the 64-bit system.</p>
<pre># yum install nspluginwrapper.{x86_64,i686} \
 alsa-plugins-pulseaudio.i686 --disablerepo=adobe-linux-i386</pre>
<p>Install the 32-bit flash plugin:</p>
<pre># su -c 'yum install flash-plugin'</pre>
]]></content:encoded>
			<wfw:commentRss>http://fclose.com/b/linux/3185/installing-the-flash-plugin-for-64-bit-firefox-in-linux-x86-64/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

