<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7668992844234428865</id><updated>2026-08-30T08:46:05.950+01:00</updated><category term="linux"/><category term="opensuse"/><category term="debian"/><category term="linux tutorial"/><category term="nginx"/><category term="bash"/><category term="beginners linux"/><category term="centos"/><category term="debian squeeze"/><category term="easy linux"/><category term="linux for beginners"/><category term="tar"/><category term="tar backup"/><category term="unix"/><category term="wordpress"/><category term="11.4"/><category term="404"/><category term="64 bit flash firefox"/><category term="Android Studio"/><category term="FQDN"/><category term="WM_CLASS"/><category term="acpi"/><category term="all cron"/><category term="allow certain users ssh"/><category term="allowusers ssh"/><category term="alternate port apache"/><category term="apache"/><category term="apache indexes"/><category term="apache port 8080"/><category term="apache port 81"/><category term="apache status"/><category term="apache wordpress redirect"/><category term="apc"/><category term="april fool linux"/><category term="bad interpreter"/><category term="boost"/><category term="boot"/><category term="cahce yum"/><category term="cantebury distribution"/><category term="canterbury linux"/><category term="catch all"/><category term="catchall"/><category term="catchall emails"/><category term="centos dvd yum"/><category term="centos flash 64bit"/><category term="centos vlc"/><category term="cgi script"/><category term="change 22"/><category term="change apache port"/><category term="change bash"/><category term="change sh"/><category term="change shell"/><category term="change ssh port"/><category term="check battery linux"/><category term="check progress"/><category term="chrome linux"/><category term="command-line"/><category term="commandline"/><category term="compile"/><category term="compile linux program"/><category term="control panel virtualmin"/><category term="convert ext3"/><category term="convert ext3 to ext4"/><category term="convert ext4"/><category term="convert opensuse iso usb"/><category term="convert pdf linux"/><category term="cron"/><category term="cronjob"/><category term="crontab"/><category term="cups"/><category term="dd"/><category term="dd progress"/><category term="deb"/><category term="debian fqdn"/><category term="debian squeeze virtualmin"/><category term="debian ssh"/><category term="debian static ip"/><category term="delta rpm yum"/><category term="dev"/><category term="dhclient"/><category term="dhcp"/><category term="directory listing"/><category term="directoy size linux"/><category term="display pid file"/><category term="dmask"/><category term="dos2unix"/><category term="download manager for linux"/><category term="drpm"/><category term="drpm yum"/><category term="du linux"/><category term="du size"/><category term="dvd repo"/><category term="enable cache yum"/><category term="error"/><category term="ext3 to ext4"/><category term="ext4 performance"/><category term="fdm linux"/><category term="find kernel version"/><category term="firefox 4"/><category term="firefox 64bit java"/><category term="firefox button"/><category term="firefox linux"/><category term="firefox linux windows"/><category term="flashplayer firefox /opt"/><category term="fonts chrome"/><category term="free download manager linux"/><category term="freebsd"/><category term="freebsd and linux"/><category term="freebsd easy"/><category term="fstab"/><category term="fstab ntfs"/><category term="fuser"/><category term="fuser alternative"/><category term="g++"/><category term="gae"/><category term="gcc"/><category term="gnome"/><category term="gnome restore settings"/><category term="grml"/><category term="grml-rescueboot"/><category term="grub"/><category term="grub iso"/><category term="grub-imageboot"/><category term="harvester"/><category term="hosts FQDN"/><category term="httpd"/><category term="https redirect nginx"/><category term="i3"/><category term="i3wm"/><category term="id_dsa"/><category term="id_rsa to ppk"/><category term="idm linux"/><category term="increase adsl speed"/><category term="index"/><category term="indexes"/><category term="install java centos"/><category term="install linux"/><category term="install linux program"/><category term="install program in linux"/><category term="install skype centos"/><category term="install virtualmin"/><category term="install vlc centos"/><category term="install wordpress openshift"/><category term="intel active monitor linux"/><category term="iptables apache"/><category term="iso"/><category term="isohybrid"/><category term="jetbrains"/><category term="kernel module boot time"/><category term="kernel version"/><category term="kvm"/><category term="lagg"/><category term="laptop battery"/><category term="lemp"/><category term="lempstack"/><category term="libboost-dev"/><category term="linux backup"/><category term="linux battery"/><category term="linux can do"/><category term="linux chrome fonts"/><category term="linux directories"/><category term="linux kernel"/><category term="linux kernel version"/><category term="linux nepal"/><category term="linux print to pdf"/><category term="linux search"/><category term="linux vs freebsd"/><category term="linux vs windows"/><category term="linux wireless"/><category term="linux write ntfs"/><category term="linux write windows"/><category term="list all cron jobs"/><category term="liux status"/><category term="lmsensors"/><category term="lmsensors alternative"/><category term="log.io"/><category term="main.cf"/><category term="make"/><category term="make install"/><category term="messed gnome"/><category term="mjpeg-streamer"/><category term="modprobe persistent"/><category term="nat apache"/><category term="nginx status"/><category term="ninja-ide"/><category term="nsd"/><category term="nsd memory consumption"/><category term="nsd.conf"/><category term="ntfs"/><category term="octopress"/><category term="openshift"/><category term="openshift wordpress"/><category term="openssh to ppk"/><category term="opensuse 11.4"/><category term="opensuse 11.4 review"/><category term="opensuse linux"/><category term="opensuse linux review"/><category term="opensuse rewiew"/><category term="opensuse usb"/><category term="package not signed yum"/><category term="partition linux"/><category term="pdf"/><category term="pdf printer linux"/><category term="persistent kernel module"/><category term="pfsense"/><category term="php"/><category term="php nginx"/><category term="php status"/><category term="php syatem status"/><category term="php-fpm"/><category term="pid open file"/><category term="pid used file"/><category term="port 80 alternate"/><category term="postfix"/><category term="postmap"/><category term="ppk to id_rsa"/><category term="ppk to openssh"/><category term="print pdf"/><category term="pyqt4 ninja-ide"/><category term="rake"/><category term="raspberry"/><category term="raspberry pi"/><category term="rbenv"/><category term="read write ntfs"/><category term="readhat"/><category term="redirect loop nginx"/><category term="redirect nginx ssl"/><category term="redirect www nginx"/><category term="redirects"/><category term="repomd.xml"/><category term="review"/><category term="root id_rsa only"/><category term="root linux"/><category term="root login"/><category term="root password"/><category term="root user"/><category term="rpi"/><category term="rpmforge vlc"/><category term="ruby"/><category term="rvm"/><category term="scientific linux"/><category term="scp"/><category term="scponly"/><category term="script"/><category term="search file command"/><category term="sensors"/><category term="seo"/><category term="seo htaccess wordpress"/><category term="sftp"/><category term="sh"/><category term="shell"/><category term="shells"/><category term="sigusr dd"/><category term="sitemap"/><category term="skype centos"/><category term="skype static"/><category term="slow internet"/><category term="solusvm"/><category term="speed chrome"/><category term="speed firefox"/><category term="speed internet"/><category term="speed linux internet"/><category term="speedfan linux"/><category term="squid"/><category term="ssh 22"/><category term="ssh allowusers"/><category term="ssh port"/><category term="ssh root key only"/><category term="static ip"/><category term="static ip linux"/><category term="static skype"/><category term="static skype centos"/><category term="status"/><category term="status script"/><category term="su root"/><category term="sudo"/><category term="suitable linux"/><category term="system32 linux"/><category term="tar exclude"/><category term="tar exclude directory"/><category term="tar exclude file"/><category term="tar permissions"/><category term="temperature linux"/><category term="terminal search file"/><category term="tune2fs"/><category term="ubuntu"/><category term="ubuntu 11.04"/><category term="ubuntu battery"/><category term="ubuntu linux"/><category term="ubuntu review ubuntu 11.04 review"/><category term="ubuntu root"/><category term="ugly fonts chrome"/><category term="umask"/><category term="uname"/><category term="undate ext3"/><category term="unity"/><category term="unlocker alternative"/><category term="update ext4"/><category term="usb image syslinux"/><category term="useradd"/><category term="usr1"/><category term="virtualmin debian"/><category term="webcam stream"/><category term="wget"/><category term="wifi terminal"/><category term="windows cannot do"/><category term="windows linux difference"/><category term="windows partition"/><category term="wordpress cloud"/><category term="wordpress nginx htaccess"/><category term="wordpress nginx rules"/><category term="wpa supplicant"/><category term="wpa_supplicant"/><category term="yoast"/><category term="yum cannot retrieve repository metadata"/><category term="yum delta"/><category term="yum drpm"/><category term="yum dvd repo"/><category term="yum install from dvd"/><category term="yum install rpm"/><category term="yum presto"/><category term="yum rpm"/><category term="yum rpm download"/><category term="yum-presto"/><title type='text'>Linux Tutorials and Reviews</title><subtitle type='html'>linuxdo.blogspot.com</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://linuxdo.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7668992844234428865/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://linuxdo.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/7668992844234428865/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>74</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7668992844234428865.post-2122859663196437926</id><published>2015-06-10T12:20:00.000+01:00</published><updated>2015-06-10T12:20:07.754+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android Studio"/><category scheme="http://www.blogger.com/atom/ns#" term="i3"/><category scheme="http://www.blogger.com/atom/ns#" term="i3wm"/><category scheme="http://www.blogger.com/atom/ns#" term="jetbrains"/><category scheme="http://www.blogger.com/atom/ns#" term="WM_CLASS"/><title type='text'>i3: Launch Android Studio on specific workspace </title><content type='html'>i3 supports launching specific applications on specific workspace. The problem with Android Studio is that it displays a splash screen and loads the full program, matching applications by title doesn&#39;t work in this case.&lt;br /&gt;
&lt;br /&gt;
However, &lt;em&gt;WM_CLASS&lt;/em&gt; comes to rescue. Android Studio&#39;s &lt;em&gt;WM_CLASS&lt;/em&gt; is set to &quot;jetbrains-studio&quot; and we can match that. (This was gathered using &lt;em&gt;xprop&lt;/em&gt;.)&lt;br /&gt;
&lt;br /&gt;
Just add the following lines to the end of i3 config file at &lt;em&gt;~/.i3/config&lt;/em&gt;
&lt;br /&gt;
&lt;pre class=&quot;code&quot;&gt;
&lt;/pre&gt;
&lt;pre class=&quot;code&quot;&gt;assign [class=&quot;jetbrains-studio&quot;]  2&lt;/pre&gt;
&lt;br /&gt;
This makes Android Studio launch by default on Workspace &quot;2&quot;.&lt;br /&gt;
&lt;br /&gt;
Tested for : Android Studio 1.2</content><link rel='replies' type='application/atom+xml' href='http://linuxdo.blogspot.com/feeds/2122859663196437926/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxdo.blogspot.com/2015/06/i3-launch-android-studio-on-specific.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7668992844234428865/posts/default/2122859663196437926'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7668992844234428865/posts/default/2122859663196437926'/><link rel='alternate' type='text/html' href='http://linuxdo.blogspot.com/2015/06/i3-launch-android-studio-on-specific.html' title='i3: Launch Android Studio on specific workspace '/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7668992844234428865.post-7921046570793605859</id><published>2015-06-07T04:13:00.000+01:00</published><updated>2015-06-08T12:56:14.736+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="boot"/><category scheme="http://www.blogger.com/atom/ns#" term="grml"/><category scheme="http://www.blogger.com/atom/ns#" term="grml-rescueboot"/><category scheme="http://www.blogger.com/atom/ns#" term="grub"/><category scheme="http://www.blogger.com/atom/ns#" term="grub iso"/><category scheme="http://www.blogger.com/atom/ns#" term="grub-imageboot"/><category scheme="http://www.blogger.com/atom/ns#" term="iso"/><category scheme="http://www.blogger.com/atom/ns#" term="kvm"/><category scheme="http://www.blogger.com/atom/ns#" term="solusvm"/><title type='text'>Install Debian with Network Install ISO and Grub</title><content type='html'>What if you want to test an ISO without asking your VPS Provider to put the ISO in their control panel? This is one of the case where directly booting off an ISO image is a better option.&lt;br /&gt;
&lt;br /&gt;
So, let&#39;s assume we want to install Debian 8 (amd64) from network. First the server(or perhaps desktop) should have any kind of Linux preinstalled. I am assuming you have a flavor of Linux that is powered by &quot;apt&quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;
Step 1: Install Grub and grub-imageboot&lt;/h2&gt;
Grub supports booting from ISO images. And, &lt;em&gt;grub-rescueboot&lt;/em&gt; makes life easier. Issue the following commands as root:
&lt;br /&gt;
&lt;pre class=&quot;unix&quot;&gt;# apt-get install grub2 grub-imageboot&lt;/pre&gt;
This will create a new folder on &lt;em&gt;/boot/images&lt;/em&gt; where you can put any ISO files and it will be on the meny entry of Grub.
&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;
Step 2: Download ISO Image&lt;/h2&gt;
&lt;div&gt;
URL in command below points to minimal CD image (around ~21MB) that can be used to boot latest Debian installer.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre class=&quot;unix&quot;&gt;# mkdir /boot/images&lt;/pre&gt;
&lt;pre class=&quot;unix&quot;&gt;# wget -P /boot/images http://ftp.debian.org/debian/dists/stable/main/installer-amd64/current/images/netboot/mini.iso&lt;/pre&gt;
&lt;br /&gt;
This will download the ISO to &lt;em&gt;/boot/images&lt;/em&gt; .

&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;
Step 3: Update Grub entry&lt;/h2&gt;
&lt;pre class=&quot;unix&quot;&gt;# update-grub&lt;/pre&gt;
&lt;h2&gt;
Step 4: Restart&lt;/h2&gt;
Now, restart your server and select the Grub entry. If you are doing this on a remote server or VPS, use VNC, it&#39;s available in most of the control panels.&lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;grml-rescueboot&lt;/em&gt; is an alternative similar to &lt;em&gt;grub-imageboot&lt;/em&gt; but it didn&#39;t work for me.</content><link rel='replies' type='application/atom+xml' href='http://linuxdo.blogspot.com/feeds/7921046570793605859/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxdo.blogspot.com/2015/06/install-kvm-vps-from-any-iso-in-solusvm.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7668992844234428865/posts/default/7921046570793605859'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7668992844234428865/posts/default/7921046570793605859'/><link rel='alternate' type='text/html' href='http://linuxdo.blogspot.com/2015/06/install-kvm-vps-from-any-iso-in-solusvm.html' title='Install Debian with Network Install ISO and Grub'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7668992844234428865.post-242652618254265674</id><published>2014-11-22T12:30:00.001+00:00</published><updated>2014-11-22T12:30:59.716+00:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="boost"/><category scheme="http://www.blogger.com/atom/ns#" term="compile"/><category scheme="http://www.blogger.com/atom/ns#" term="error"/><category scheme="http://www.blogger.com/atom/ns#" term="g++"/><category scheme="http://www.blogger.com/atom/ns#" term="gcc"/><category scheme="http://www.blogger.com/atom/ns#" term="libboost-dev"/><title type='text'>Undefined References to Boost Libraries - Solution</title><content type='html'>Yesterday, I was trying to compile a C++ source that uses Gnuplot-iostream interface. 
I issued the following compilation command:
&lt;pre class=&quot;unix&quot;&gt;
$ g++ -std=c++11 -lboost_iostreams -lboost_system -lboost_filesystem ProcessScheduler.cpp 
/tmp/cchNNC8H.o: In function `__static_initialization_and_destruction_0(int, int)&#39;:
ProcessScheduler.cpp:(.text+0xc52): undefined reference to `boost::system::generic_category()&#39;
ProcessScheduler.cpp:(.text+0xc5e): undefined reference to `boost::system::generic_category()&#39;
ProcessScheduler.cpp:(.text+0xc6a): undefined reference to `boost::system::system_category()&#39;
collect2: error: ld returned 1 exit status
&lt;/pre&gt;

I even had &lt;i&gt;libboost-system-dev&lt;/i&gt;, &lt;i&gt;libboost-filesystem-dev&lt;/i&gt; and &lt;i&gt;libboost-iostreams-dev&lt;/i&gt; installed. &lt;br/&gt;

After searching for over an hour, I found that the problem was with how new &lt;i&gt;g++&lt;/i&gt; treated the command-line options.&lt;br/&gt;
&lt;br/&gt;
The &lt;b&gt;solution&lt;/b&gt; was to change the position of arguments.
&lt;pre code=&quot;unix&quot;&gt;
$ g++ -std=c++11  ProcessScheduler.cpp  -lboost_iostreams -lboost_system -lboost_filesystem
&lt;/pre&gt;

So, adding linker parameters after source file worked. &lt;br/&gt;

The page at &lt;a href=&quot;https://gcc.gnu.org/onlinedocs/gcc/Link-Options.html&quot;&gt;Link Options - GCC&lt;/a&gt; states that:
&lt;blockquote&gt;
-l library
[...]
It makes a difference where in the command you write this option; the linker searches and processes libraries and object files in the order they are specified. Thus, ‘foo.o -lz bar.o’ searches library ‘z’ after file foo.o but before bar.o. If bar.o refers to functions in ‘z’, those functions may not be loaded.
[...]
&lt;/blockquote&gt;


</content><link rel='replies' type='application/atom+xml' href='http://linuxdo.blogspot.com/feeds/242652618254265674/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxdo.blogspot.com/2014/11/undefined-references-to-boost-libraries.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7668992844234428865/posts/default/242652618254265674'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7668992844234428865/posts/default/242652618254265674'/><link rel='alternate' type='text/html' href='http://linuxdo.blogspot.com/2014/11/undefined-references-to-boost-libraries.html' title='Undefined References to Boost Libraries - Solution'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7668992844234428865.post-1868863451742995950</id><published>2014-06-28T13:32:00.000+01:00</published><updated>2014-06-28T13:35:05.269+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="mjpeg-streamer"/><category scheme="http://www.blogger.com/atom/ns#" term="raspberry"/><category scheme="http://www.blogger.com/atom/ns#" term="raspberry pi"/><category scheme="http://www.blogger.com/atom/ns#" term="rpi"/><category scheme="http://www.blogger.com/atom/ns#" term="webcam stream"/><title type='text'>Streaming USB webcam on Raspberry PI</title><content type='html'>I had a USB webcam lying around and a Raspberry Pi. And, I wanted to stream it over my local WiFi network. To do this, I picked up MJPEG-Streamer.

Connecting the webcam and issuing &#39;lsmod&#39; showed this:
&lt;br /&gt;
&lt;pre class=&quot;codeblock&quot;&gt;$ lsmod
.
.
Bus 001 Device 004: ID 0ac8:3420 Z-Star Microelectronics Corp. Venus USB2.0 Camera
&lt;/pre&gt;

The device is supported by UVC driver. 
&lt;pre class=&quot;codeblock&quot;&gt;
ls /dev/vid*
/dev/video0
&lt;/pre&gt;

So, we have &#39;/dev/video0&#39; as our webcam.
&lt;br/&gt;
&lt;b&gt;Let&#39;s install some required packages.&lt;/b&gt;&lt;br/&gt;
On a RPi, I have faced multiple issues trying to install packages without first upgrading the system to the latest state. So, let&#39;s upgrade the system first.
&lt;pre class=&quot;unix&quot;&gt;
$ sudo apt-get update &amp;amp;&amp;amp; sudo apt-get upgrade
&lt;/pre&gt;
And, some requirements for MJPEG-Streamer
&lt;pre class=&quot;unix&quot;&gt;
$ sudo apt-get install subversion imagemagick libjpeg8-dev
&lt;/pre&gt;
Now, let&#39;s download the latest source
&lt;pre class=&quot;unix&quot;&gt;
$ svn co https://svn.code.sf.net/p/mjpg-streamer/code/mjpg-streamer/ mjpg-streamer
$ make
&lt;/pre&gt;
When it finishes, it leaves &quot;mjpeg-streamer&quot; binary to the folder. This may be added to path variable.

Now, let&#39;s stream.

15fps with hardware MJPEG Compression
&lt;pre class=&quot;unix&quot;&gt;
$ ./mjpg_streamer -i &quot;./input_uvc.so -d /dev/video0 -f 15 &quot; -o &quot;./output_http.so -w ./www&quot;
&lt;/pre&gt;
If you get the error like this:
&lt;pre class=&quot;codeblock&quot;&gt;
The input device does not supports MJPEG mode
You may also try the YUV mode (-yuv option), but it requires a much more CPU power
 Init v4L2 failed !! exit fatal 
 i: init_VideoIn failed
&lt;/pre&gt;

Then we need to add &#39;-y&#39; argument to fallback to software mode.
&lt;pre class=&quot;unix&quot;&gt;
$ ./mjpg_streamer -i &quot;./input_uvc.so -d /dev/video0 -y -f 15&quot; -o &quot;./output_http.so -w ./www&quot;
&lt;/pre&gt;

You can access the web interface at &lt;strong&gt;http://&amp;lt;ip&amp;gt;:8080/&lt;/strong&gt; where &#39;ip&#39; is the IP of the Raspberry Pi server.

The frame rate can also be changed by specifying the custom value instead of 15.
To stream at different resolution with 30fps:
&lt;pre class=&quot;unix&quot;&gt;
$ ./mjpg_streamer -i &quot;./input_uvc.so -d /dev/video0 -f 15 -r 960x720&quot; -o &quot;./output_http.so -w ./www&quot;
&lt;/pre&gt;


The best part of MJPEG-Streamer is that you can also use VLC or any other streaming player to watch the stream and you are not limited to a web interface.
&lt;br /&gt;
Happy streaming.</content><link rel='replies' type='application/atom+xml' href='http://linuxdo.blogspot.com/feeds/1868863451742995950/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxdo.blogspot.com/2014/06/streaming-usb-webcam-on-raspberry-pi.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7668992844234428865/posts/default/1868863451742995950'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7668992844234428865/posts/default/1868863451742995950'/><link rel='alternate' type='text/html' href='http://linuxdo.blogspot.com/2014/06/streaming-usb-webcam-on-raspberry-pi.html' title='Streaming USB webcam on Raspberry PI'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7668992844234428865.post-5268488256337363801</id><published>2013-01-05T04:09:00.000+00:00</published><updated>2013-01-05T04:09:28.708+00:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="404"/><category scheme="http://www.blogger.com/atom/ns#" term="nginx"/><category scheme="http://www.blogger.com/atom/ns#" term="seo"/><category scheme="http://www.blogger.com/atom/ns#" term="sitemap"/><category scheme="http://www.blogger.com/atom/ns#" term="yoast"/><title type='text'>WordPress SEO by Yoast and Nginx</title><content type='html'>&lt;a href=&quot;http://wordpress.org/extend/plugins/wordpress-seo/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;Wordpress-SEO by Yoast &lt;/a&gt; is a great plugin for search engine optimization. It can generate XML sitemaps on the fly. While on Nginx, I found that I was getting 404 errors when trying to load the sitemap.&lt;br /&gt;
&lt;br /&gt;
The solution was simple. We just need to pass the &quot;sitemap name&quot; as a URI to &quot;index.php&quot; which can be done by simply adding this to &quot;server block&quot;:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;codeblock&quot;&gt;
rewrite ^/sitemap_index\.xml$ /index.php?sitemap=1 last;
rewrite ^/([^/]+?)-sitemap([0-9]+)?\.xml$ /index.php?sitemap=$1&amp;sitemap_n=$2 last;
&lt;/pre&gt;

If you are already using Nginx with Wordpress friendly URLs, these steps are not necessary and redundant.</content><link rel='replies' type='application/atom+xml' href='http://linuxdo.blogspot.com/feeds/5268488256337363801/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxdo.blogspot.com/2013/01/wordpress-seo-by-yoast-and-nginx.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7668992844234428865/posts/default/5268488256337363801'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7668992844234428865/posts/default/5268488256337363801'/><link rel='alternate' type='text/html' href='http://linuxdo.blogspot.com/2013/01/wordpress-seo-by-yoast-and-nginx.html' title='WordPress SEO by Yoast and Nginx'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7668992844234428865.post-4546787891995790625</id><published>2012-08-22T01:53:00.003+01:00</published><updated>2012-08-22T01:53:42.957+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="scp"/><category scheme="http://www.blogger.com/atom/ns#" term="scponly"/><category scheme="http://www.blogger.com/atom/ns#" term="sftp"/><category scheme="http://www.blogger.com/atom/ns#" term="shell"/><title type='text'>Allow only SCP/SFTP transfers with &#39;scponly&#39;</title><content type='html'>scponly restricts users to SCP and SFTP logins by acting itself as a shell and this disables SSH logins. This allows using Filezilla or &#39;scp&#39; tool to transfer files but restrict SSH logins via SSH clients.

Debian has this package as &#39;scponly&#39;. TO install it:
&lt;pre class=unix&gt;
# apt-get install scponly
&lt;/pre&gt;
Since, we will not be chrooting users, suid binary is not required. So, select no to:
&lt;i&gt;Install the chrooted binary /usr/sbin/scponlyc SUID root? &lt;-- No&lt;/i&gt;

For existing users, do:
&lt;pre class=unix&gt;
# usermod -s /usr/bin/scponly username
&lt;/pre&gt;

To create a new user with scponly:
&lt;pre class=unix&gt;
# useradd -m -s /usr/bin/scponly username
# passwd username
&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxdo.blogspot.com/feeds/4546787891995790625/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxdo.blogspot.com/2012/08/allow-only-scpsftp-transfers-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7668992844234428865/posts/default/4546787891995790625'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7668992844234428865/posts/default/4546787891995790625'/><link rel='alternate' type='text/html' href='http://linuxdo.blogspot.com/2012/08/allow-only-scpsftp-transfers-with.html' title='Allow only SCP/SFTP transfers with &#39;scponly&#39;'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7668992844234428865.post-1230709696132821903</id><published>2012-08-01T13:01:00.001+01:00</published><updated>2014-11-15T11:33:53.675+00:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="apc"/><category scheme="http://www.blogger.com/atom/ns#" term="deb"/><category scheme="http://www.blogger.com/atom/ns#" term="debian"/><category scheme="http://www.blogger.com/atom/ns#" term="lemp"/><category scheme="http://www.blogger.com/atom/ns#" term="lempstack"/><category scheme="http://www.blogger.com/atom/ns#" term="nginx"/><category scheme="http://www.blogger.com/atom/ns#" term="php nginx"/><category scheme="http://www.blogger.com/atom/ns#" term="php-fpm"/><category scheme="http://www.blogger.com/atom/ns#" term="script"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>Optimized LEMP Installer for Debian/Ubuntu with Virtual Hosts Automator.</title><content type='html'>LAMP stacks are used widely but they are notorious for being less resource friendly and in the same time, incredibly attracting to script kiddies and part time crackers.&lt;br /&gt;
&lt;br /&gt;&lt;strike&gt;
There&#39;s a tradition to play with most popular toys rather than one which was designed to be small and less expensive. As a kid, what would you like to steal in a kindergarten: a Spider-Man toy or a small spider miniature?&lt;br /&gt;
Leaving aside these arguments, let&#39;s move on to the real-valued part. I wrote this script which I think, has the following featured jobs:&lt;/strike&gt;(Some literary art)&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Configures Nginx for performance and static file caching as well as gzipping the output.&lt;/li&gt;
&lt;li&gt;Installs and PHP-FPM as well as PHP-APC for Opcode Caching&lt;/li&gt;
&lt;li&gt;Optimizes MySQL for caching queries, while being light on resources.&lt;/li&gt;
&lt;li&gt;Facilitates&amp;nbsp;interactive virtual hosts creation with dedicated PHP-FPM pool for each user so that each PHP process runs as the owner. This eliminates the need to install FTP server for updating Wordpress or installing plugins. Since, PHP runs as the user owning the script, &quot;wp-config&quot; can be set to very strict permissions like &lt;b&gt;700&lt;/b&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
There&#39;s even more...&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Virtual hosts generation script also has the ability to create MySQL user and database as well as allowing user to import SQL file onto the newly created database for easy migration.&lt;/li&gt;
&lt;li&gt;PHPMyAdmin installer is also built-in which allows PHPMyAdmin to be installed on specified domain or sub-domain.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;This script uses unix sockets instead of TCP which promises some more improvement and lowers TCP overhead within the system.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;I have implemented some security practices like &quot;&lt;b&gt;cgi.fixpath_info=0&lt;/b&gt;&quot;.&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
Download the script here and run it as &lt;b&gt;root&lt;/b&gt;:&lt;br /&gt;
&lt;pre class=&quot;unix&quot;&gt;
wget https://raw.github.com/aatishnn/lempstack/master/lemp-debian.sh
chmod +x lemp-debian.sh
./lemp-debian.sh
&lt;/pre&gt;
This script works for me but I cannot&amp;nbsp;guarantee&amp;nbsp;that it will work for you too. I am not a Bash expert. Please  add some&amp;nbsp;regexp&amp;nbsp;to your brain to ignore my &lt;b&gt;scripting laziness&lt;/b&gt;.
This is designed to work with Debian and Ubuntu. You may freely use it to suit your needs under the condition that you will thank me.
I would be glad if you can share something about this script, test it, debug it or just scold, rebuke or&amp;nbsp;criticize.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxdo.blogspot.com/feeds/1230709696132821903/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxdo.blogspot.com/2012/08/optimized-lemp-installer-for.html#comment-form' title='10 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7668992844234428865/posts/default/1230709696132821903'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7668992844234428865/posts/default/1230709696132821903'/><link rel='alternate' type='text/html' href='http://linuxdo.blogspot.com/2012/08/optimized-lemp-installer-for.html' title='Optimized LEMP Installer for Debian/Ubuntu with Virtual Hosts Automator.'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>10</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7668992844234428865.post-1126960492115213777</id><published>2012-06-04T02:08:00.000+01:00</published><updated>2012-06-04T02:08:53.716+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="command-line"/><category scheme="http://www.blogger.com/atom/ns#" term="commandline"/><category scheme="http://www.blogger.com/atom/ns#" term="dhclient"/><category scheme="http://www.blogger.com/atom/ns#" term="linux wireless"/><category scheme="http://www.blogger.com/atom/ns#" term="wifi terminal"/><category scheme="http://www.blogger.com/atom/ns#" term="wpa supplicant"/><category scheme="http://www.blogger.com/atom/ns#" term="wpa_supplicant"/><title type='text'>Using WiFi just from Linux Terminal</title><content type='html'>Are you tired of Network Managers that try to reduce pain regarding Wireless connections and end up with unstable or never-connecting Wireless problems? Then, command line comes to the rescue and `&lt;b&gt;wpa_supplicant&lt;/b&gt;` as our weapon.

Throughout the tutorial, I will be using these random access point details with WPA-PSK:
&lt;pre class=codeblock&gt;
SSID: linuxdo
Passphrase: myphrase
&lt;/pre&gt;
And, `&lt;b&gt;wlan0&lt;/b&gt;` is the wireless interface. Find the one corresponding in your system using `&lt;b&gt;iwconfig&lt;/b&gt;`.&lt;br /&gt;

Install `&lt;b&gt;wpa_supplicant&lt;/b&gt;` for your distro if not installed.&lt;br /&gt;
&lt;b&gt;For CentOS/RedHat and other Yum based systems:&lt;/b&gt;
&lt;pre class=unix&gt;
# yum install wpa_supplicant
&lt;/pre&gt;
&lt;br /&gt;
&lt;b&gt;For Debian based systems including Ubuntu:&lt;/b&gt;
&lt;pre class=unix&gt;
# apt-get update &amp;&amp; apt-get install wpa_supplicant
&lt;/pre&gt;

Now, we need to create the configuration file for `wpa_supplicant`. There is an easy way out using:
&lt;pre class=unix&gt;
# wpa_passphrase linuxdo myphrase &gt;/root/linuxdo.conf
&lt;/pre&gt;

It&#39;s the time to connect now. Run `wpa_supplicant` as:
&lt;pre class=unix&gt;
# wpa_supplicant -iwlan0 -c/root/linuxdo.conf
&lt;/pre&gt;

After you get `CTRL-EVENT-CONNECTED`, you should run `dhclient` as:
&lt;pre class=unix&gt;
# dhclient wlan0
&lt;/pre&gt;
This way, you will get a dynamic IP from the router.&lt;br /&gt;

Test your internet connection by opening a web browser and loading `&lt;b&gt;linuxdo.blogspot.com&lt;/b&gt;`. You will get it.&lt;br /&gt;
Since, we are now familiar with `wpa_supplicant` now, disable Wireless in NetworkManager interface to avoid conflicts.</content><link rel='replies' type='application/atom+xml' href='http://linuxdo.blogspot.com/feeds/1126960492115213777/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxdo.blogspot.com/2012/06/using-wifi-just-from-linux-terminal.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7668992844234428865/posts/default/1126960492115213777'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7668992844234428865/posts/default/1126960492115213777'/><link rel='alternate' type='text/html' href='http://linuxdo.blogspot.com/2012/06/using-wifi-just-from-linux-terminal.html' title='Using WiFi just from Linux Terminal'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7668992844234428865.post-843592752741843264</id><published>2012-05-27T13:22:00.000+01:00</published><updated>2012-05-28T02:09:33.968+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="centos"/><category scheme="http://www.blogger.com/atom/ns#" term="gae"/><category scheme="http://www.blogger.com/atom/ns#" term="octopress"/><category scheme="http://www.blogger.com/atom/ns#" term="rake"/><category scheme="http://www.blogger.com/atom/ns#" term="rbenv"/><category scheme="http://www.blogger.com/atom/ns#" term="readhat"/><category scheme="http://www.blogger.com/atom/ns#" term="ruby"/><category scheme="http://www.blogger.com/atom/ns#" term="rvm"/><category scheme="http://www.blogger.com/atom/ns#" term="scientific linux"/><title type='text'>Installing Octopress on CentOS 6/RedHat/Scientific Linux</title><content type='html'>Official Octopress website have user-specific installation procedure prone to many errors due to &#39;rvm&#39; and &#39;rbenv&#39;. This is the mostly foolproof method to set-up Octopress correctly on Redhat based distros.&lt;br /&gt;&lt;br /&gt;
&lt;b&gt;Run these as root:&lt;/b&gt;
&lt;pre class=unix&gt;
# yum groupinstall &#39;Development Tools&#39;
# yum install readline-devel zlib zlib-devel openssl openssl-devel libyaml git python-setuptools
&lt;strike&gt;# easy_install Pygments&lt;/strike&gt;
&lt;/pre&gt;
Pygments is not necessary as it uses pygments.rb. (Thanks to @octopress)&lt;br /&gt;&lt;br /&gt;
&lt;b&gt;Now, run these as normal user:&lt;/b&gt;
&lt;pre class=unix&gt;
$ wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p320.zip
$ unzip ruby-1.9.2-p320.zip 
$ cd ruby-1.9.2-p320
$ ./configure --prefix=/usr --with-openssl-include=/usr/include/openssl --with-openssl-lib=/usr/lib64/openssl/engines --disable-option-checking --disable-pthread
$ make
&lt;/pre&gt;
If you are using 32-bit, then replace &#39;&lt;b&gt;--with-openssl-lib=/usr/lib64/openssl/engines&lt;/b&gt;&#39; to &#39;&lt;b&gt;--with-openssl-lib=/usr/lib/openssl/engines&lt;/b&gt;&#39;.&lt;br /&gt;&lt;br /&gt;
&lt;b&gt;Again, run these as root:&lt;/b&gt;
&lt;pre class=unix&gt;
# make install
&lt;/pre&gt;
&lt;b&gt;Again, run these as normal user:&lt;/b&gt;
&lt;pre class=unix&gt;
$ git clone git://github.com/imathis/octopress.git octopress
$ cd octopress
&lt;/pre&gt;
&lt;b&gt;Now, as root:&lt;/b&gt;
&lt;pre class=unix&gt;
# gem install bundler
# bundle install
# rake install
&lt;/pre&gt;
&lt;b&gt;Lastly, as normal user:&lt;/b&gt;
&lt;pre class=unix&gt;
$ rake install
&lt;/pre&gt;

Now, follow &lt;a href=&quot;http://octopress.org/docs/configuring/&quot;&gt;Configuring Octopress.&lt;/a&gt; That&#39;s it. You have installed Octopress on your system. 
Leak: I will soon be moving this blog to Octopress and will be hosting it on GAE.</content><link rel='replies' type='application/atom+xml' href='http://linuxdo.blogspot.com/feeds/843592752741843264/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxdo.blogspot.com/2012/05/installing-octopress-on-centos.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7668992844234428865/posts/default/843592752741843264'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7668992844234428865/posts/default/843592752741843264'/><link rel='alternate' type='text/html' href='http://linuxdo.blogspot.com/2012/05/installing-octopress-on-centos.html' title='Installing Octopress on CentOS 6/RedHat/Scientific Linux'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7668992844234428865.post-6165463053196596295</id><published>2012-05-26T16:25:00.000+01:00</published><updated>2012-05-26T16:25:31.008+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="chrome linux"/><category scheme="http://www.blogger.com/atom/ns#" term="fonts chrome"/><category scheme="http://www.blogger.com/atom/ns#" term="linux chrome fonts"/><category scheme="http://www.blogger.com/atom/ns#" term="ugly fonts chrome"/><title type='text'>Better fonts in Chrome For Linux</title><content type='html'>Make a file .fonts.conf in your home directory and add this to it:
&lt;pre class=codeblock&gt;
&amp;lt;match target=&amp;quot;font&amp;quot;&amp;gt;
  &amp;lt;edit name=&amp;quot;autohint&amp;quot; mode=&amp;quot;assign&amp;quot;&amp;gt;
      &amp;lt;bool&amp;gt;true&amp;lt;/bool&amp;gt;
    &amp;lt;/edit&amp;gt;
    &amp;lt;edit name=&amp;quot;hinting&amp;quot; mode=&amp;quot;assign&amp;quot;&amp;gt;
      &amp;lt;bool&amp;gt;true&amp;lt;/bool&amp;gt;
    &amp;lt;/edit&amp;gt;
    &amp;lt;edit mode=&amp;quot;assign&amp;quot; name=&amp;quot;hintstyle&amp;quot;&amp;gt;
      &amp;lt;const&amp;gt;hintslight&amp;lt;/const&amp;gt;
   &amp;lt;/edit&amp;gt;
&amp;lt;/match&amp;gt;
&lt;/pre&gt;

Now, restart Chrome to see the changes.</content><link rel='replies' type='application/atom+xml' href='http://linuxdo.blogspot.com/feeds/6165463053196596295/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxdo.blogspot.com/2012/05/better-fonts-in-chrome-for-linux.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7668992844234428865/posts/default/6165463053196596295'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7668992844234428865/posts/default/6165463053196596295'/><link rel='alternate' type='text/html' href='http://linuxdo.blogspot.com/2012/05/better-fonts-in-chrome-for-linux.html' title='Better fonts in Chrome For Linux'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7668992844234428865.post-7388301195217280087</id><published>2012-05-26T14:18:00.000+01:00</published><updated>2012-05-26T14:18:23.972+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="firefox 64bit java"/><category scheme="http://www.blogger.com/atom/ns#" term="install java centos"/><title type='text'>Install Java Browser plugin for Firefox 64-Bit in CentOS/Redhat</title><content type='html'>Download the latest 64-bit RPM package from main Java homepage.
Install it as:
&lt;pre class=unix&gt;
rpm -ivh &amp;lt;package-name&amp;gt;.rpm
&lt;/pre&gt;
And, add the plugin to Firefox with:
&lt;pre class=unix&gt;
# cd /usr/lib64/mozilla/plugins
# ln -s $(find / -mount -name libnpjp2.so)
&lt;/pre&gt;
If &#39;ln -s $(find / -mount -name libnpjp2.so)&#39; fails, then, first find the file &#39;libnpjp2.so&#39; and supply the path as:
&lt;pre class=unix&gt;
# ln -s &amp;lt;path-to-libnpjp2.so&amp;gt;
&lt;/pre&gt;
&lt;br /&gt;
Restart your browser and you will have the working Java plugin for Firefox.</content><link rel='replies' type='application/atom+xml' href='http://linuxdo.blogspot.com/feeds/7388301195217280087/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxdo.blogspot.com/2012/05/install-java-browser-plugin-for-firefox.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7668992844234428865/posts/default/7388301195217280087'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7668992844234428865/posts/default/7388301195217280087'/><link rel='alternate' type='text/html' href='http://linuxdo.blogspot.com/2012/05/install-java-browser-plugin-for-firefox.html' title='Install Java Browser plugin for Firefox 64-Bit in CentOS/Redhat'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7668992844234428865.post-5872789927797947863</id><published>2012-05-26T05:22:00.001+01:00</published><updated>2012-05-27T08:28:22.026+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="centos"/><category scheme="http://www.blogger.com/atom/ns#" term="harvester"/><category scheme="http://www.blogger.com/atom/ns#" term="log.io"/><category scheme="http://www.blogger.com/atom/ns#" term="useradd"/><title type='text'>Install Log.io on CentOS</title><content type='html'>Searching for a simple online log viewer, I found log.io. Documentation has a recipe to install log.io on Ubuntu 11.10 but it doesn&#39;t match uniformly for CentOS. Seems like many things are hard-coded. So, I began to hack into it to make it working and I succeeded.&lt;br /&gt;&lt;br /&gt;
&lt;b&gt;Installation Procedure:&lt;/b&gt;
&lt;pre class=unix&gt;
# yum install gcc make openssl-devel git
# mkdir ~/downloads 
# cd downloads 
# wget &quot;http://nodejs.org/dist/v0.6.11/node-v0.6.11.tar.gz&quot; 
# tar -xzvf node-v0.6.11.tar.gz
# cd node-v0.6.11/ 
# ./configure
&lt;/pre&gt;
If it complains about missing libraries or anything else and doesn&#39;t succeeds, install the required libraries using Yum.
&lt;pre class=unix&gt;
# make
# make install
# ln -s /usr/local/bin/node /usr/local/bin/nodejs
# wget http://npmjs.org/install.sh
# chmod +x install.sh
# ./install.sh
# PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin
# rm -f /usr/bin/npm
# ln -s /usr/local/bin/npm /usr/bin/npm
# useradd -d /home/logio logio
# usermod -G adm logio
# npm config set unsafe-perm true
# npm install -g --prefix=/usr/local git://github.com/NarrativeScience/Log.io.git
# chmod -R 777 /var/log/log.io/
&lt;/pre&gt;
&lt;br /&gt;
It&#39;s done. Now, start the server using:
&lt;pre class=unix&gt;
# log.io server start
&lt;/pre&gt;
&lt;br /&gt;
The server is now started. Allow access to port 8993 as:
&lt;pre class=unix&gt;
# iptables -A INPUT -p tcp --dport 8993 -j ACCEPT
&lt;/pre&gt;
&lt;br /&gt;
Hurray!. Head over to http://&lt;your-ip&gt;:8993 and see the power of &lt;b&gt;nodejs&lt;/b&gt;.&lt;br /&gt;
Similarly, install &lt;b&gt;Log.io&lt;/b&gt; on another machine and start the &lt;b&gt;harvester&lt;/b&gt; with:
&lt;pre class=unix&gt;
# log.io harvester start
&lt;/pre&gt;

Tested on CentOS 6.</content><link rel='replies' type='application/atom+xml' href='http://linuxdo.blogspot.com/feeds/5872789927797947863/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxdo.blogspot.com/2012/05/install-logio-on-centos.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7668992844234428865/posts/default/5872789927797947863'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7668992844234428865/posts/default/5872789927797947863'/><link rel='alternate' type='text/html' href='http://linuxdo.blogspot.com/2012/05/install-logio-on-centos.html' title='Install Log.io on CentOS'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7668992844234428865.post-8761101769385824432</id><published>2012-05-26T03:00:00.001+01:00</published><updated>2012-05-26T03:00:14.165+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="install skype centos"/><category scheme="http://www.blogger.com/atom/ns#" term="skype centos"/><category scheme="http://www.blogger.com/atom/ns#" term="skype static"/><category scheme="http://www.blogger.com/atom/ns#" term="static skype"/><category scheme="http://www.blogger.com/atom/ns#" term="static skype centos"/><title type='text'>Install latest Skype on CentOS</title><content type='html'>Download static archive of Skype from main skype website.The latest version while writing this tutorial was skype_staticQT-2.2.0.99.To download, you can do:
&lt;pre class=unix&gt;
# cd /tmp
# wget http://www.skype.com/go/getskype-linux-beta-static
# cd /opt
# tar jxf /tmp/skype_static-2.2.0.99.tar.bz2
# rm /tmp/skype_static-2.2.0.99.tar.bz2
# ln -s skype_staticQT-2.2.0.99 skype
&lt;/pre&gt;
To make it easy to launch Skype and remove shared library related errors, do this:
&lt;pre class=unix&gt;
# ln -s /opt/skype /usr/share/skype
# ln -s /opt/skype/skype /usr/bin/skype
# ln -s /usr/lib/libtiff.so.3 /usr/lib/libtiff.so.4
&lt;/pre&gt;

Even if you are running 64 bit CentOS version, you should install some 32 bit libraries as:
&lt;pre class=unix&gt;
# yum install glibc.i686 alsa-lib.i686 libXv.i686 libXScrnSaver.i686 libSM.i686 libXi.i686 libXrender.i686 libXrandr.i686 freetype.i686 fontconfig.i686 zlib.i686 glib2.i686 libstdc++.i686 libtiff.i686 qt.i686 qt-x11.i686 pulseaudio-libs.i686 pulseaudio-libs-glib2.i686 alsa-plugins-pulseaudio.i686 
&lt;/pre&gt;
And, if you have CentOS media available:
&lt;pre class=unix&gt;
# yum --disablerepo=\* --enablerepo=c6-media install glibc.i686 alsa-lib.i686 libXv.i686 libXScrnSaver.i686 libSM.i686 libXi.i686 libXrender.i686 libXrandr.i686 freetype.i686 fontconfig.i686 zlib.i686 glib2.i686 libstdc++.i686 libtiff.i686 qt.i686 qt-x11.i686 pulseaudio-libs.i686 pulseaudio-libs-glib2.i686 alsa-plugins-pulseaudio.i686 
&lt;/pre&gt;
&lt;br /&gt;
Now, you should have a working Skype. Run it as:
&lt;pre class=unix&gt;
# skype
&lt;/pre&gt;
Tested on CentOS 6.2</content><link rel='replies' type='application/atom+xml' href='http://linuxdo.blogspot.com/feeds/8761101769385824432/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxdo.blogspot.com/2012/05/install-latest-skype-on-centos.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7668992844234428865/posts/default/8761101769385824432'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7668992844234428865/posts/default/8761101769385824432'/><link rel='alternate' type='text/html' href='http://linuxdo.blogspot.com/2012/05/install-latest-skype-on-centos.html' title='Install latest Skype on CentOS'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7668992844234428865.post-3478649248499149736</id><published>2012-05-25T15:45:00.000+01:00</published><updated>2012-05-25T15:45:30.900+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="delta rpm yum"/><category scheme="http://www.blogger.com/atom/ns#" term="drpm"/><category scheme="http://www.blogger.com/atom/ns#" term="drpm yum"/><category scheme="http://www.blogger.com/atom/ns#" term="yum delta"/><category scheme="http://www.blogger.com/atom/ns#" term="yum drpm"/><category scheme="http://www.blogger.com/atom/ns#" term="yum presto"/><category scheme="http://www.blogger.com/atom/ns#" term="yum-presto"/><title type='text'>Delta RPMs on Yum</title><content type='html'>Delta, in sense of file, refers to the difference between two versions of the file. So, if you have a file and its delta, you can create a new file with all the changes included. &lt;br /&gt;&lt;br /&gt;

Delta RPMs are exactly the same. Consider a package &#39;yum-1.2.30-x86-64.rpm&#39; and another updated package &#39;yum-1.2.31-x86-64&#39;. A delta RPM of this package will be able to recreate the new updated Yum package from the older package available in the system. Since Delta RPMs are just the difference in two packages, they are small in size(in most cases). So, delta RPMs are useful if you have a congested, slow or limited bandwidth. &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Enabling the use of Delta RPM in Yum:&lt;/b&gt;&lt;br /&gt;
We need &#39;yum-presto&#39; plugin to enable delta RPMs. Install it as:
&lt;pre class=unix&gt;
# yum install yum-presto
&lt;/pre&gt; 

Now, try updating your system as:
&lt;pre class=unix&gt;
# yum update
&lt;/pre&gt;

You will see that the download size &lt;b&gt;will reduce dramatically&lt;/b&gt; and updates will be faster. That&#39;s how Delta RPM works.
&lt;br /&gt;
&lt;br /&gt;
Tested on CentOS 6.2.
&lt;br /&gt;
&lt;br /&gt;
Zypper implements delta RPMs by default. So, openSUSE users need not to be worry and there is nothing to enable for openSUSE systems.</content><link rel='replies' type='application/atom+xml' href='http://linuxdo.blogspot.com/feeds/3478649248499149736/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxdo.blogspot.com/2012/05/delta-rpms-on-yum.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7668992844234428865/posts/default/3478649248499149736'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7668992844234428865/posts/default/3478649248499149736'/><link rel='alternate' type='text/html' href='http://linuxdo.blogspot.com/2012/05/delta-rpms-on-yum.html' title='Delta RPMs on Yum'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7668992844234428865.post-5055101418250284780</id><published>2012-05-25T07:50:00.000+01:00</published><updated>2012-05-25T07:51:16.018+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="allow certain users ssh"/><category scheme="http://www.blogger.com/atom/ns#" term="allowusers ssh"/><category scheme="http://www.blogger.com/atom/ns#" term="ssh allowusers"/><title type='text'>SSH : Allow only certain users to log in</title><content type='html'>There are numerous user accounts that exist in a Linux system. You will not want to allow every user to log in via SSH. &lt;br /&gt;

Let&#39;s talk about the scenario: I have many users in my Linux box but real person-related users are root, alice and bob. So, to allow only them to connect via SSH, edit &#39;/etc/ssh/sshd.conf&#39; and add the following line at the end of the file:
&lt;pre class=codeblock&gt;
AllowUsers root alice bob
&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxdo.blogspot.com/feeds/5055101418250284780/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxdo.blogspot.com/2012/05/ssh-allow-only-certain-users-to-log-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7668992844234428865/posts/default/5055101418250284780'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7668992844234428865/posts/default/5055101418250284780'/><link rel='alternate' type='text/html' href='http://linuxdo.blogspot.com/2012/05/ssh-allow-only-certain-users-to-log-in.html' title='SSH : Allow only certain users to log in'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7668992844234428865.post-4225563752493647934</id><published>2012-05-25T07:41:00.000+01:00</published><updated>2012-05-25T07:41:15.458+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="root id_rsa only"/><category scheme="http://www.blogger.com/atom/ns#" term="ssh root key only"/><title type='text'>Allow Root Login by SSH Keys only</title><content type='html'>IF you want to allow root login via SSH keys only while disabling password-based login, edit /etc/ssh/sshd.conf to reflect following change:&lt;br /&gt;
&lt;b&gt;Original:&lt;/b&gt;
&lt;pre class=codeblock&gt;
PermitRootLogin yes
&lt;/pre&gt;
&lt;b&gt;Change:&lt;/b&gt;
&lt;pre class=codeblock&gt;
PermitRootLogin without-password
&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxdo.blogspot.com/feeds/4225563752493647934/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxdo.blogspot.com/2012/05/allow-root-login-by-ssh-keys-only.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7668992844234428865/posts/default/4225563752493647934'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7668992844234428865/posts/default/4225563752493647934'/><link rel='alternate' type='text/html' href='http://linuxdo.blogspot.com/2012/05/allow-root-login-by-ssh-keys-only.html' title='Allow Root Login by SSH Keys only'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7668992844234428865.post-4429610671135231857</id><published>2012-05-24T10:58:00.000+01:00</published><updated>2012-05-24T10:58:28.633+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="64 bit flash firefox"/><category scheme="http://www.blogger.com/atom/ns#" term="centos flash 64bit"/><category scheme="http://www.blogger.com/atom/ns#" term="flashplayer firefox /opt"/><title type='text'>Install Flash Plugin for Firefox installed from tar.bz2 archive</title><content type='html'>If you have installed Firefox from the official download (firefox--.tar.bz2) at /opt or similar location and if you are using 64bit version of Linux, then the 64 bit version of Flash Player will not work with Firefox. The solution is to use 32bit version of flash plugin. 
Here is how you do in Yum based systems:

&lt;pre class=unix&gt;
# rpm -ivh http://linuxdownload.adobe.com/linux/i386/adobe-release-i386-1.0-1.noarch.rpm 
# yum remove flash-plugin
# yum --disablerepo=adobe-linux-x86_64 --enablerepo=adobe-linux-i386  install flash-plugin
&lt;/pre&gt; 

If you have a running Firefox window, restart it and you will get your flash plugin back.

Tested on CentOS 6.2.</content><link rel='replies' type='application/atom+xml' href='http://linuxdo.blogspot.com/feeds/4429610671135231857/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxdo.blogspot.com/2012/05/install-flash-plugin-for-firefox.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7668992844234428865/posts/default/4429610671135231857'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7668992844234428865/posts/default/4429610671135231857'/><link rel='alternate' type='text/html' href='http://linuxdo.blogspot.com/2012/05/install-flash-plugin-for-firefox.html' title='Install Flash Plugin for Firefox installed from tar.bz2 archive'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7668992844234428865.post-8393166626962816141</id><published>2012-05-23T12:04:00.001+01:00</published><updated>2012-05-23T12:05:04.684+01:00</updated><title type='text'>Gtk-WARNING in Firefox: Unable to locate theme engine</title><content type='html'>If you are getting warnings like these:
&lt;pre class=unix&gt;
(firefox:4486): Gtk-WARNING **: Unable to locate theme engine in module_path: &quot;clearlooks&quot;
&lt;/pre&gt;
Install package &#39;gtk2-engines.i686&#39;.</content><link rel='replies' type='application/atom+xml' href='http://linuxdo.blogspot.com/feeds/8393166626962816141/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxdo.blogspot.com/2012/05/gtk-warning-in-firefox-unable-to-locate.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7668992844234428865/posts/default/8393166626962816141'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7668992844234428865/posts/default/8393166626962816141'/><link rel='alternate' type='text/html' href='http://linuxdo.blogspot.com/2012/05/gtk-warning-in-firefox-unable-to-locate.html' title='Gtk-WARNING in Firefox: Unable to locate theme engine'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7668992844234428865.post-5887129585397289062</id><published>2012-05-22T06:17:00.000+01:00</published><updated>2012-05-22T06:17:03.369+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="cahce yum"/><category scheme="http://www.blogger.com/atom/ns#" term="enable cache yum"/><category scheme="http://www.blogger.com/atom/ns#" term="yum rpm download"/><title type='text'>Enable Caching in Yum</title><content type='html'>It is a good idea to enable caching in Yum as it keeps downloaded packages locally and is useful if you have slow connections. The default behavior is to delete downloaded packages. To enable caching, turn &#39;keepcache=0&#39; into &#39;keepcache=1&#39; in /etc/yum/yum.conf as:
&lt;pre class=codeblock&gt;
[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=1
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
...
...
&lt;/pre&gt;

So, all the downloaded data will reside in &#39;cachedir&#39; location.</content><link rel='replies' type='application/atom+xml' href='http://linuxdo.blogspot.com/feeds/5887129585397289062/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxdo.blogspot.com/2012/05/enable-caching-in-yum.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7668992844234428865/posts/default/5887129585397289062'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7668992844234428865/posts/default/5887129585397289062'/><link rel='alternate' type='text/html' href='http://linuxdo.blogspot.com/2012/05/enable-caching-in-yum.html' title='Enable Caching in Yum'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7668992844234428865.post-4335434231511889877</id><published>2012-05-22T04:13:00.000+01:00</published><updated>2012-05-22T04:13:36.990+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="centos vlc"/><category scheme="http://www.blogger.com/atom/ns#" term="install vlc centos"/><category scheme="http://www.blogger.com/atom/ns#" term="rpmforge vlc"/><title type='text'>Install latest VLC on CentOS 6</title><content type='html'>RPMForge provides latest VLC version for CentOS system. Install corresponding RPMForge repository as:&lt;br /&gt;&lt;br /&gt;
64-bit:
&lt;pre class=unix&gt;
rpm -ivh http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
&lt;/pre&gt;
32-bit:
&lt;pre class=unix&gt;
rpm -ivh http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm
&lt;/pre&gt;

Now, install VLC as:
&lt;pre class=unix&gt;
yum install vlc
&lt;/pre&gt;

Hurrah! You have a working best media player.</content><link rel='replies' type='application/atom+xml' href='http://linuxdo.blogspot.com/feeds/4335434231511889877/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxdo.blogspot.com/2012/05/install-latest-vlc-on-centos-6.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7668992844234428865/posts/default/4335434231511889877'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7668992844234428865/posts/default/4335434231511889877'/><link rel='alternate' type='text/html' href='http://linuxdo.blogspot.com/2012/05/install-latest-vlc-on-centos-6.html' title='Install latest VLC on CentOS 6'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7668992844234428865.post-8396645877157543102</id><published>2012-05-22T04:04:00.000+01:00</published><updated>2012-05-22T04:04:14.074+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="package not signed yum"/><category scheme="http://www.blogger.com/atom/ns#" term="yum install rpm"/><category scheme="http://www.blogger.com/atom/ns#" term="yum rpm"/><title type='text'>Install RPM with Yum</title><content type='html'>You can install RPM packages with &#39;rpm&#39; command but it doesn&#39;t resolve dependencies. So, to automatically install dependencies with the package, yum can be used as:
&lt;pre class=unix&gt;
yum install package_name.rpm
&lt;/pre&gt;
If you are getting errors like &quot;Package is not signed&quot;, do this:
&lt;pre class=unix&gt;
yum --nogpgcheck install package_name.rpm
&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxdo.blogspot.com/feeds/8396645877157543102/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxdo.blogspot.com/2012/05/install-rpm-with-yum.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7668992844234428865/posts/default/8396645877157543102'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7668992844234428865/posts/default/8396645877157543102'/><link rel='alternate' type='text/html' href='http://linuxdo.blogspot.com/2012/05/install-rpm-with-yum.html' title='Install RPM with Yum'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7668992844234428865.post-7626827122827221851</id><published>2012-05-22T04:00:00.000+01:00</published><updated>2012-05-22T04:00:19.677+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="repomd.xml"/><category scheme="http://www.blogger.com/atom/ns#" term="yum cannot retrieve repository metadata"/><title type='text'>Fix: &quot;Cannot retrieve repository metadata&quot; for Yum</title><content type='html'>&lt;pre class=unix&gt;
# yum provides system-config-network
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
 * base: centos.vr-zone.com
 * extras: centos.vr-zone.com
 * updates: centosz4.centos.org
Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again
&lt;/pre&gt;

This problem can be fixed by uncommenting &#39;baseurl&#39; in repository configuration file. For example:
File:CentOS-Base.repo
Original:
&lt;pre class=codeblock&gt;
[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&amp;arch=$basearch&amp;repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
..
..
..
&lt;/pre&gt;
Change to:
&lt;pre class=codeblock&gt;
[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&amp;arch=$basearch&amp;repo=os
baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
..
..
..
&lt;/pre&gt;

If this doesn&#39;t solve the problem, then it is something to do with network connection.</content><link rel='replies' type='application/atom+xml' href='http://linuxdo.blogspot.com/feeds/7626827122827221851/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxdo.blogspot.com/2012/05/fix-cannot-retrieve-repository-metadata.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7668992844234428865/posts/default/7626827122827221851'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7668992844234428865/posts/default/7626827122827221851'/><link rel='alternate' type='text/html' href='http://linuxdo.blogspot.com/2012/05/fix-cannot-retrieve-repository-metadata.html' title='Fix: &quot;Cannot retrieve repository metadata&quot; for Yum'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7668992844234428865.post-2763246103263172992</id><published>2012-05-22T01:45:00.000+01:00</published><updated>2012-05-22T01:45:19.200+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="kernel module boot time"/><category scheme="http://www.blogger.com/atom/ns#" term="modprobe persistent"/><category scheme="http://www.blogger.com/atom/ns#" term="persistent kernel module"/><title type='text'>Enabling kernel modules at boot time</title><content type='html'>To maintain persistent kernel module, create a file called &#39;modulename.modules&#39; in /etc/sysconfig/modules/ and insert corresponding command. For example, to load &#39;rt3070sta&#39; module, I need to find the location of device &#39;ra0&#39;. Find it using:
&lt;pre class=unix&gt;
# find / -name &#39;ra0&#39;
/sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.3/net/ra0
&lt;/pre&gt;

Now, I will add this to rt3070sta.modules:
&lt;pre class=codeblock&gt;
#!/bin/sh

if [ ! -c /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.3/net/ra0 ] ; then
        exec /sbin/modprobe rt3070sta &gt;/dev/null 2&gt;&amp;1
fi
&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxdo.blogspot.com/feeds/2763246103263172992/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxdo.blogspot.com/2012/05/enabling-kernel-modules-at-boot-time.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7668992844234428865/posts/default/2763246103263172992'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7668992844234428865/posts/default/2763246103263172992'/><link rel='alternate' type='text/html' href='http://linuxdo.blogspot.com/2012/05/enabling-kernel-modules-at-boot-time.html' title='Enabling kernel modules at boot time'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7668992844234428865.post-6028336947115256128</id><published>2012-05-21T14:02:00.000+01:00</published><updated>2012-05-21T14:05:39.301+01:00</updated><title type='text'>bash: cd:  Input/output error</title><content type='html'>I was trying to mount a partition on folder &#39;localdisk&#39;. It mounted successfully but on &#39;cd&#39;ing to the folder, it said:
&lt;pre class=unix&gt;
bash: cd: localdisk: Input/output error
&lt;/pre&gt;

I found that &#39;localdisk&#39; was a file and not a directory. I wonder why &#39;mount&#39; was accepting file as mount point.</content><link rel='replies' type='application/atom+xml' href='http://linuxdo.blogspot.com/feeds/6028336947115256128/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxdo.blogspot.com/2012/05/i-was-trying-to-mount-partition-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7668992844234428865/posts/default/6028336947115256128'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7668992844234428865/posts/default/6028336947115256128'/><link rel='alternate' type='text/html' href='http://linuxdo.blogspot.com/2012/05/i-was-trying-to-mount-partition-on.html' title='bash: cd:  Input/output error'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7668992844234428865.post-5255489195349729302</id><published>2012-05-21T13:47:00.000+01:00</published><updated>2012-05-21T13:47:50.301+01:00</updated><title type='text'>Mounting NTFS partitions in CentOS 6</title><content type='html'>Install fuse-ntfs-3g from RPMForge as:
&lt;pre class=unix&gt;
wget http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/RPMS/fuse-ntfs-3g-2010.10.2-1.el6.rf.x86_64.rpm
rpm -ivh fuse-ntfs-3g-2010.10.2-1.el6.rf.x86_64.rpm
&lt;/pre&gt;

Now, NTFS partitions can be mounted using &#39;mount&#39;. For example:
&lt;pre class=unix&gt;
mount -t ntfs-3g /dev/disk/by-label/blahblahblah /windows/e
&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxdo.blogspot.com/feeds/5255489195349729302/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://linuxdo.blogspot.com/2012/05/mounting-ntfs-partitions-in-centos-6.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7668992844234428865/posts/default/5255489195349729302'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7668992844234428865/posts/default/5255489195349729302'/><link rel='alternate' type='text/html' href='http://linuxdo.blogspot.com/2012/05/mounting-ntfs-partitions-in-centos-6.html' title='Mounting NTFS partitions in CentOS 6'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>