<?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-3755314711921649990</id><updated>2025-06-06T18:53:24.283-10:00</updated><category term="linux"/><category term="windows"/><category term="software"/><category term="mingw"/><category term="tutorial"/><category term="open-source"/><category term="compile"/><category term="computer"/><category term="compiler"/><category term="cygwin"/><category term="p2p"/><category term="repair"/><category term="vista"/><category term="Debian"/><category term="gtk"/><category term="network"/><category term="technology"/><category term="movie"/><category term="music"/><category term="development"/><category term="download"/><category term="economy"/><category term="ripping"/><category term="cross-compiler"/><category term="administration"/><category term="tips"/><category term="codec"/><category term="multimedia"/><category term="porting"/><category term="book"/><category term="driver"/><category term="fonts"/><category term="windows 7"/><category term="how-to"/><category term="mplayer"/><category term="setup"/><category term="Internet"/><category term="bootloader"/><category term="bootstrap"/><category term="computing"/><category term="encoder"/><category term="installation"/><category term="kernel"/><category term="politics"/><category term="unix"/><category term="Ubuntu"/><category term="mencoder"/><category term="partition"/><category term="security"/><category term="web"/><category term="backup"/><category term="ebook"/><category term="mathematics"/><category term="windows me"/><category term="x-windows"/><category term="Hawaii"/><category term="Korean"/><category term="USA"/><category term="attachment"/><category term="bittorrent"/><category term="business"/><category term="desktop"/><category term="digital"/><category term="dvd"/><category term="energy"/><category term="film"/><category term="hard drive"/><category term="korea"/><category term="player"/><category term="psychology"/><category term="remote"/><category term="tip"/><category term="windows xp"/><category term="calculus"/><category term="finance"/><category term="hardware"/><category term="microsoft"/><category term="netbook"/><category term="openbsd"/><category term="reader"/><category term="russia"/><category term="usb 2.0"/><category term="vnc"/><category term="wireless"/><category term="acronis"/><category term="amule"/><category term="aria2"/><category term="bootcd"/><category term="china"/><category term="command"/><category term="configuration"/><category term="education"/><category term="filesystem"/><category term="fix"/><category term="free"/><category term="gnutella"/><category term="grub"/><category term="guide"/><category term="hacking"/><category term="history"/><category term="kungfu"/><category term="learning"/><category term="library"/><category term="mortgage"/><category term="ndiswrapper"/><category term="notebook"/><category term="officesuite"/><category term="openoffice.org"/><category term="policy"/><category term="search"/><category term="windows 98"/><category term="x11"/><category term="PortableApp"/><category term="Programming"/><category term="accounting"/><category term="apple"/><category term="arab"/><category term="asian"/><category term="blog"/><category term="browser"/><category term="cdrkit"/><category term="chinese"/><category term="coding"/><category term="compression"/><category term="conversion"/><category term="democrat"/><category term="distro"/><category term="format"/><category term="gas"/><category term="gnu"/><category term="google"/><category term="gpac"/><category term="gparted"/><category term="hongkong"/><category term="investment"/><category term="laptop"/><category term="law"/><category term="lender"/><category term="market"/><category term="news"/><category term="novel"/><category term="oil"/><category term="opec"/><category term="operating system"/><category term="portable"/><category term="postscript"/><category term="presidential"/><category term="reading"/><category term="renewable"/><category term="storage"/><category term="streaming"/><category term="sysadmin"/><category term="syslinux"/><category term="toshiba"/><category term="trueimage"/><category term="typography"/><category term="utility"/><category term="via"/><category term="video"/><category term="vietnamese"/><category term="world"/><category term="wpa"/><category term="x.org"/><category term="CDO"/><category term="FAT32"/><category term="Fedora"/><category term="IceWM"/><category term="Islam"/><category term="Lenny"/><category term="MP3"/><category term="MPEG"/><category term="PDF"/><category term="Pardus"/><category term="Samsung"/><category term="aac"/><category term="abdominal"/><category term="abs"/><category term="acrobat"/><category term="action"/><category term="adobe"/><category term="adwords"/><category term="agriculture"/><category term="alternative"/><category term="audacity"/><category term="banking"/><category term="bash"/><category term="behavior"/><category term="biodiesel"/><category term="biofuel"/><category term="blu-ray"/><category term="bond"/><category term="bookmark"/><category term="bsd"/><category term="bubble"/><category term="bush"/><category term="checksum"/><category term="cloud"/><category term="cmake"/><category term="cold"/><category term="compaq"/><category term="conflict"/><category term="console"/><category term="copyright"/><category term="craigslist"/><category term="design"/><category term="dictionary"/><category term="directory"/><category term="dllwrap"/><category term="document"/><category term="domain"/><category term="dos"/><category term="dreamlinux"/><category term="election"/><category term="embedded"/><category term="employment"/><category term="error404"/><category term="essay"/><category term="ethanol"/><category term="exercise"/><category term="ffmpeg"/><category term="financial"/><category term="flash"/><category term="forbes"/><category term="freedos"/><category term="freetype"/><category term="frontend"/><category term="ghostscript"/><category term="gnome"/><category term="graphics"/><category term="greenspan"/><category term="gtk-gnutella"/><category term="hard disk"/><category term="hash"/><category term="health"/><category term="housing"/><category term="ibm"/><category term="ideology"/><category term="ifoedit"/><category term="industry"/><category term="input"/><category term="insiderpages"/><category term="intel"/><category term="kde"/><category term="keyword"/><category term="lang:ko"/><category term="language"/><category term="lenovo"/><category term="life"/><category term="literature"/><category term="live555"/><category term="local"/><category term="log"/><category term="lotus"/><category term="lzo"/><category term="magnet"/><category term="maintenance"/><category term="marketing"/><category term="marriage"/><category term="mccain"/><category term="me"/><category term="media"/><category term="metatag"/><category term="millenium"/><category term="mingw64"/><category term="moblin"/><category term="mozilla"/><category term="mp4"/><category term="mp4box"/><category term="nano"/><category term="natural"/><category term="nvidia"/><category term="obama"/><category term="online"/><category term="opensolaris"/><category term="openssl"/><category term="overblog"/><category term="palin"/><category term="parenting"/><category term="parser"/><category term="patent"/><category term="personal"/><category term="picture"/><category term="plan"/><category term="posix"/><category term="power"/><category term="president"/><category term="printer"/><category term="prison"/><category term="problem"/><category term="psychiatry"/><category term="psychotherapy"/><category term="publishing"/><category term="putty"/><category term="recovery"/><category term="religion"/><category term="republican"/><category term="resource"/><category term="responsibility"/><category term="retirement"/><category term="seamonkey"/><category term="seo"/><category term="service"/><category term="shell"/><category term="shiller"/><category term="shopping"/><category term="six-pack"/><category term="smartphone"/><category term="social"/><category term="solution"/><category term="speed"/><category term="ssl"/><category term="statistics"/><category term="stock"/><category term="story"/><category term="subprime"/><category term="sugar"/><category term="symphony"/><category term="tablet"/><category term="taiwan"/><category term="techticker"/><category term="terminal"/><category term="theme"/><category term="tragedy"/><category term="trouble-shooting"/><category term="tweak"/><category term="unicode"/><category term="unionfs"/><category term="upgrade"/><category term="urimal"/><category term="usb"/><category term="virtual"/><category term="vlc"/><category term="war"/><category term="wdm"/><category term="weapon"/><category term="widget"/><category term="window manager"/><category term="windows 8"/><category term="windows7"/><category term="writer"/><category term="wuxia"/><category term="wxmsw"/><category term="wxwidgets"/><category term="x-terminal"/><category term="x11vnc"/><category term="xml"/><category term="yahoo"/><category term="yelp"/><title type='text'>Daily Report</title><subtitle type='html'>On Anything Interesting, New and Old</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://report5.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3755314711921649990/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://report5.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/3755314711921649990/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04046998319294818723</uri><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>314</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3755314711921649990.post-6574728701796937307</id><published>2017-01-28T15:20:00.001-10:00</published><updated>2017-01-28T15:20:21.620-10:00</updated><title type='text'>Temporary Post Used For Theme Detection (60e1939a-2979-48b7-9892-1855b83f8069 - 3bfe001a-32de-4114-a6b4-4005b770f6d7)</title><content type='html'>&lt;p&gt;This is a temporary post that was not deleted. Please delete this manually. (89a2fa30-3b9d-43f0-bf13-34e357c31505 - 3bfe001a-32de-4114-a6b4-4005b770f6d7)&lt;/p&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;a href=&quot;http://click.linksynergy.com/fs-bin/click?id=CCoBOfIP234&amp;offerid=145240.10000074&amp;subid=0&amp;type=4&quot;&gt;&lt;IMG border=&quot;0&quot;   alt=&quot;234X60&quot; src=&quot;http://ad.linksynergy.com/fs-bin/show?id=CCoBOfIP234&amp;bids=145240.10000074&amp;subid=0&amp;type=4&amp;gridnum=3&quot;/&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://report5.blogspot.com/feeds/6574728701796937307/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://report5.blogspot.com/2017/01/temporary-post-used-for-theme-detection.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3755314711921649990/posts/default/6574728701796937307'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3755314711921649990/posts/default/6574728701796937307'/><link rel='alternate' type='text/html' href='http://report5.blogspot.com/2017/01/temporary-post-used-for-theme-detection.html' title='Temporary Post Used For Theme Detection (60e1939a-2979-48b7-9892-1855b83f8069 - 3bfe001a-32de-4114-a6b4-4005b770f6d7)'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04046998319294818723</uri><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-3755314711921649990.post-2333609821275189560</id><published>2012-10-19T21:50:00.000-10:00</published><updated>2012-10-19T22:05:23.827-10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="apple"/><category scheme="http://www.blogger.com/atom/ns#" term="copyright"/><category scheme="http://www.blogger.com/atom/ns#" term="law"/><category scheme="http://www.blogger.com/atom/ns#" term="market"/><category scheme="http://www.blogger.com/atom/ns#" term="patent"/><category scheme="http://www.blogger.com/atom/ns#" term="Samsung"/><category scheme="http://www.blogger.com/atom/ns#" term="smartphone"/><category scheme="http://www.blogger.com/atom/ns#" term="tablet"/><category scheme="http://www.blogger.com/atom/ns#" term="technology"/><title type='text'>Apple Losing the Patent War Against Samsung In UK</title><content type='html'>&lt;img src=&quot;http://i.telegraph.co.uk/multimedia/archive/02319/apple_2319806b.jpg&quot; alt=&quot;Samsung smartphone and Apple iPhone&quot; width=300 style=&quot;float: right&quot; /&gt;

&lt;p&gt;Apple (&lt;a href=&quot;https://www.google.com/finance?client=ob&amp;q=NASDAQ:AAPL&quot;&gt;AAPL&lt;/a&gt;) lost again in its epic war against Samsung (&lt;a href=&quot;http://www.bloomberg.com/quote/005930:KS&quot;&gt;005930&lt;/a&gt;) concerning the design and utility patents on its smartphone and tablet. The UK appeals court has upheld the previous ruling that Samsung did not infringe upon Apple&#39;s iPhone and iPad designs. In July, the UK judge Colin Birss made headlines around the world, saying Samsung products were &amp;ldquo;not as cool&amp;rdquo; as Apple&#39;s despite similarities, therefore no copyright infringement. Now, Apple has to publicly announce on select newspapers and its Web site that Samsung didn&#39;t copy its products.&lt;/p&gt;

&lt;p&gt;Apple publicly denouncing its previous claim that Samsung copied its designs would be quite humiliating and a blow to its reputation. Therefore, I think Apple will once again burn its huge cash to go all the way to the UK supreme court and avoid humiliation. To me, it&#39;s just an amusing circus that&#39;s meaningless to watch. Apple is desperate to keep its stronghold in the lucrative smartphone and tablet market that is rapidly taken over by Android appliances.&lt;/p&gt;

&lt;p&gt;I honestly hope Apple could put its ample cash to better uses, such as helping needy people around the world by donating its luxury iPhones and iPads. Perhaps, I am dreaming.&lt;/p&gt;

&lt;p&gt;via &lt;a href=&quot;http://news.yahoo.com/apple-loses-tablet-copyright-appeal-against-samsung-093634827--finance.html&quot;&gt;Reuters&lt;/a&gt;&lt;/p&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;a href=&quot;http://click.linksynergy.com/fs-bin/click?id=CCoBOfIP234&amp;offerid=145240.10000074&amp;subid=0&amp;type=4&quot;&gt;&lt;IMG border=&quot;0&quot;   alt=&quot;234X60&quot; src=&quot;http://ad.linksynergy.com/fs-bin/show?id=CCoBOfIP234&amp;bids=145240.10000074&amp;subid=0&amp;type=4&amp;gridnum=3&quot;/&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://report5.blogspot.com/feeds/2333609821275189560/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://report5.blogspot.com/2012/10/apple-losing-patent-war-against-samsung.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3755314711921649990/posts/default/2333609821275189560'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3755314711921649990/posts/default/2333609821275189560'/><link rel='alternate' type='text/html' href='http://report5.blogspot.com/2012/10/apple-losing-patent-war-against-samsung.html' title='Apple Losing the Patent War Against Samsung In UK'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04046998319294818723</uri><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-3755314711921649990.post-5989134100568496371</id><published>2012-10-17T22:15:00.000-10:00</published><updated>2012-10-18T18:20:57.132-10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Debian"/><category scheme="http://www.blogger.com/atom/ns#" term="installation"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="setup"/><category scheme="http://www.blogger.com/atom/ns#" term="sysadmin"/><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu"/><title type='text'>To Install the Same Set of Packages as Another Debian Machine</title><content type='html'>&lt;p&gt;I know this is a well-known trick with the Debian package system, but I&#39;m going to sum it up here. Suppose that you want to install the same set of packages on box A as box B. At box B, type the following command to get the list of installed packages.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;dpkg --get-selections &amp;gt; select.txt&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Then, take select.txt to box A and run on box A:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;apt-get update&lt;br /&gt;dpkg --set-selections &amp;lt; select.txt&lt;br /&gt;apt-get -u dselect-upgrade&lt;/pre&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;a href=&quot;http://click.linksynergy.com/fs-bin/click?id=CCoBOfIP234&amp;offerid=145240.10000074&amp;subid=0&amp;type=4&quot;&gt;&lt;IMG border=&quot;0&quot;   alt=&quot;234X60&quot; src=&quot;http://ad.linksynergy.com/fs-bin/show?id=CCoBOfIP234&amp;bids=145240.10000074&amp;subid=0&amp;type=4&amp;gridnum=3&quot;/&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://report5.blogspot.com/feeds/5989134100568496371/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://report5.blogspot.com/2012/10/to-install-same-set-of-packages-as.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3755314711921649990/posts/default/5989134100568496371'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3755314711921649990/posts/default/5989134100568496371'/><link rel='alternate' type='text/html' href='http://report5.blogspot.com/2012/10/to-install-same-set-of-packages-as.html' title='To Install the Same Set of Packages as Another Debian Machine'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04046998319294818723</uri><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-3755314711921649990.post-8716813697324190547</id><published>2012-10-16T16:05:00.000-10:00</published><updated>2012-10-18T18:20:57.159-10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="administration"/><category scheme="http://www.blogger.com/atom/ns#" term="computing"/><category scheme="http://www.blogger.com/atom/ns#" term="Debian"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="remote"/><category scheme="http://www.blogger.com/atom/ns#" term="sysadmin"/><category scheme="http://www.blogger.com/atom/ns#" term="technology"/><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu"/><category scheme="http://www.blogger.com/atom/ns#" term="unix"/><category scheme="http://www.blogger.com/atom/ns#" term="vnc"/><category scheme="http://www.blogger.com/atom/ns#" term="x11vnc"/><title type='text'>Share your Linux desktop with x11vnc</title><content type='html'>&lt;p&gt;&lt;a href=&quot;http://www.karlrunge.com/x11vnc/&quot;&gt;x11vnc&lt;/a&gt; is a pretty useful program that you can use to share your Linux desktop with someone far away. To start x11vnc while using X11 windows, issue the following command:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;x11vnc -display :0&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;This command will work in most cases, assuming there is only one instance of X11 Windows server running. However, the display number could be different. To be sure, type the following command:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;xdpyinfo | head&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;x11vnc will output a lot of information, including the port number it runs on:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;The VNC desktop is:      bootcd:2&lt;br /&gt;PORT=5902&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Subtracting 5900 from the port number (5902), you&#39;ll get the display number (2). Use this number to connect to your desktop remotely. I use gvncviewer.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;gvncviewer 192.168.200.83:2&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center&quot;&gt;&lt;img src=&quot;http://farm4.static.flickr.com/3587/3561174473_7904887953_o.jpg&quot; width=&quot;540px&quot; height=&quot;400px&quot; alt=&quot;TightVNC viewer on Windows Vista&quot;/&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Administrator To Monitor Someone&#39;s Desktop with X11VNC&lt;/h4&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Let&#39;s assume that you are a system administrator with root privilege and want to monitor a user&#39;s X11 Windows desktop. You can&#39;t just run &amp;ldquo;x11vnc -display :0&amp;rdquo; because you are not the user currently using display :0. In that case, you need access to the X11 Windows&#39; xauth file which is located at one of the following locations:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;/var/lib/gdm&lt;br /&gt;&lt;li&gt;/var/lib/kdm&lt;br /&gt;&lt;li&gt;/var/lib/xdm/authdir/authfiles&lt;br /&gt;&lt;li&gt;/home/USER/.Xauthority&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Once you locate the xauth file associated with the user&#39;s X11 desktop, you can use x11vnc to monitor his desktop activity.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;x11vnc -display :0 -auth /var/lib/gdm/\:0.Xauth&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Then, on your desktop as administrator, connect to the user&#39;s desktop with a vnc client.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;gvncviewer 192.168.200.83:2&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;h4&gt;x11vnc with SSL&lt;/h4&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;x11vnc supports various connection schemes, including SSL. On Debian and Ubuntu, type the following command to create a SSL certificate for use with x11vnc.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;cat /etc/ssl/private/ssl-cert-snakeoil.key /etc/ssl/certs/ssl-cert-snakeoil.pem &amp;gt; /tmp/x11vnc.pem&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Then, start x11vnc with -ssl option to run x11vnc in secure mode.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;x11vnc -display :0 -auth /var/lib/gdm/\:0.Xauth -ssl /tmp/x11vnc.pem&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;ssvnc and gvncviewer can be used to connect to x11vnc via SSL connection. The following example command starts x11vnc in anonymous SSL mode that doesn&#39;t require X509 exchange.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;x11vnc -display :0 -xauth /var/lib/xdm/authdir/authfiles/A\:0-R2x5Db -xkb -nopw -nc_cr -ssl /tmp/x11vnc.pem -vencrypt newdh:nox509:support&lt;/pre&gt;&lt;br /&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;a href=&quot;http://click.linksynergy.com/fs-bin/click?id=CCoBOfIP234&amp;offerid=145240.10000074&amp;subid=0&amp;type=4&quot;&gt;&lt;IMG border=&quot;0&quot;   alt=&quot;234X60&quot; src=&quot;http://ad.linksynergy.com/fs-bin/show?id=CCoBOfIP234&amp;bids=145240.10000074&amp;subid=0&amp;type=4&amp;gridnum=3&quot;/&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://report5.blogspot.com/feeds/8716813697324190547/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://report5.blogspot.com/2012/10/share-your-linux-desktop-with-x11vnc.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3755314711921649990/posts/default/8716813697324190547'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3755314711921649990/posts/default/8716813697324190547'/><link rel='alternate' type='text/html' href='http://report5.blogspot.com/2012/10/share-your-linux-desktop-with-x11vnc.html' title='Share your Linux desktop with x11vnc'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04046998319294818723</uri><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-3755314711921649990.post-8315696883592992563</id><published>2012-10-16T11:09:00.000-10:00</published><updated>2012-10-18T18:20:57.155-10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="configuration"/><category scheme="http://www.blogger.com/atom/ns#" term="Debian"/><category scheme="http://www.blogger.com/atom/ns#" term="guide"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="setup"/><category scheme="http://www.blogger.com/atom/ns#" term="tutorial"/><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu"/><category scheme="http://www.blogger.com/atom/ns#" term="unix"/><title type='text'>Setting Up XDM on Debian/Ubuntu Linux</title><content type='html'>&lt;p&gt;&lt;em&gt;XDM&lt;/em&gt;, short for X Display Manager, is my favorite login manager for its simplicity. Sure, gdm and kdm are visually pleasant, but why do I have to install all the dependencies if xdm provides the same functionality as them? After all, xdm can launch GNOME and KDE for you &amp;mdash; you just need to fix your ~/.xsession file. This post will serve as my notes on installation, configuration and customization of xdm.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;All configuration of xdm, except for distribution-specific settings, is done by modifying the files in the /etc/X11/xdm directory. For now, I&#39;ll just go over what I have in my xdm files.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;h4&gt;/etc/X11/xdm/Xaccess&lt;/h4&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;This file is used to tell xdm who can use xdm. Therefore, if you are happy to let anyone access the X-Windows desktop locally or remotely, then you would just put an asterisk (*) in Xaccess as I did.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;*&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;If you are very keen on security, you would put only the following in Xaccess. This only allows local users to have access to xdm.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;localhost&lt;br /&gt;127.0.0.1&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;However, even if Xaccess is set up as above, remote xdm login may still be possible with SSH X11 forwarding.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;h4&gt;/etc/X11/xdm/Xresources&lt;/h4&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;em&gt;Xresources&lt;/em&gt; file is used to fine-tune the behavior and appearance of XDM. Here is what I put in my Xresources file:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;Xcursor.theme: redglass&lt;br /&gt;&lt;br /&gt;xlogin*login.translations: #override \&lt;br /&gt; Ctrl&amp;lt;Key&amp;gt;R: abort-display()\n\&lt;br /&gt; &amp;lt;Key&amp;gt;F1: set-session-argument(failsafe) finish-field()\n\&lt;br /&gt; &amp;lt;Key&amp;gt;Delete: delete-character()\n\&lt;br /&gt; &amp;lt;Key&amp;gt;Left: move-backward-character()\n\&lt;br /&gt; &amp;lt;Key&amp;gt;Right: move-forward-character()\n\&lt;br /&gt; &amp;lt;Key&amp;gt;Home: move-to-begining()\n\&lt;br /&gt; &amp;lt;Key&amp;gt;End: move-to-end()\n\&lt;br /&gt; Ctrl&amp;lt;Key&amp;gt;KP_Enter: set-session-argument(failsafe) finish-field()\n\&lt;br /&gt; &amp;lt;Key&amp;gt;KP_Enter: set-session-argument() finish-field()\n\&lt;br /&gt; Ctrl&amp;lt;Key&amp;gt;Return: set-session-argument(failsafe) finish-field()\n\&lt;br /&gt; &amp;lt;Key&amp;gt;Return: set-session-argument() finish-field()&lt;br /&gt;&lt;br /&gt;xlogin*greeting: Welcome to CLIENTHOST&lt;br /&gt;xlogin*namePrompt: Login:\040&lt;br /&gt;xlogin*passwdPrompt: Password:\040&lt;br /&gt;xlogin*fail: Login incorrect&lt;br /&gt;&lt;br /&gt;xlogin*greetFace: Serif-21:bold:italic&lt;br /&gt;xlogin*face: Sans-15&lt;br /&gt;xlogin*promptFace: Sans-15:bold&lt;br /&gt;xlogin*failFace: Sans-16:bold&lt;br /&gt;&lt;br /&gt;xlogin*geometry: 600x400&lt;br /&gt;xlogin*borderWidth: 1&lt;br /&gt;xlogin*frameWidth: 5&lt;br /&gt;xlogin*innerFramesWidth: 2&lt;br /&gt;xlogin*shdColor: grey30&lt;br /&gt;xlogin*hiColor: grey90&lt;br /&gt;xlogin*background: grey&lt;br /&gt;xlogin*greetColor: Blue3&lt;br /&gt;xlogin*failColor: red&lt;br /&gt;*Foreground: black&lt;br /&gt;*Background: #fffff0&lt;br /&gt;&lt;br /&gt;xlogin*logoFileName: /usr/share/X11/xdm/pixmaps/penguin_doll_200x300.xpm&lt;br /&gt;xlogin*useShape: true&lt;br /&gt;xlogin*logoPadding: 10&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;I think the settings are self-explanatory. This is how xdm would look with the above settings. The penguin image was taken from &lt;a href=&quot;http://flowersforthoughts.deviantart.com/art/penguin-109271871&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://www.flickr.com/photos/29425593@N03/8094866016/&quot; title=&quot;xdm-screenshot by kenjoey, on Flickr&quot;&gt;&lt;img src=&quot;http://farm9.staticflickr.com/8334/8094866016_54ccaf2e23.jpg&quot; width=&quot;500&quot; height=&quot;375&quot; alt=&quot;xdm-screenshot&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;h4&gt;/etc/X11/xdm/Xresources&lt;/h4&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;The Xresources file allows you to specify how many X servers to run and their command arguments. In my case, I run Xorg and Xvfb. Xorg is the standard X server, and Xvfb is a server that runs totally in memory without depending on the video hardware. To see what&#39;s going on with Xvfb, I use x11vnc and gvncviewer.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;# Default X.org server&lt;br /&gt;:0 local /usr/bin/Xorg :0 vt7 -br -dpi 96 -nolisten TCP&lt;br /&gt;&lt;br /&gt;:1 local /usr/local/bin/Xvfb :1 -dpi 96 -screen 0 1024x768x16&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;h4&gt;/etc/X11/xdm/Xsetup&lt;/h4&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Xsetup allows you to write any command to run when xdm displays the login screen. In my case, I run gm to set up the background image and run x11vnc to remotely access Xvfb via VNC.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;#!/bin/sh&lt;br /&gt;#&lt;br /&gt;# This script is run as root before showing login widget.&lt;br /&gt;&lt;br /&gt;gm display -window root /usr/share/wallpapers/Board_Tile_Gray.jpg&lt;br /&gt;xkbcomp -dflts -I/usr/share/X11/xkb /etc/X11/xkb/server-0.xkm $DISPLAY&lt;br /&gt;&lt;br /&gt;PID_XVFB=$(pidof Xvfb)&lt;br /&gt;PID_X11VNC=$(pidof x11vnc)&lt;br /&gt;if [ -n &quot;$PID_XVFB&quot; -a -z &quot;$PID_X11VNC&quot; ]; then&lt;br /&gt;  x11vnc -display :1 -bg -xkb -nopw -nc_cr -forever -listen localhost -auth $(find /var/lib/xdm/authdir/authfiles -name \*:1\*) &amp;gt; /var/log/x11vnc.log 2&amp;gt;&amp;1&lt;br /&gt;fi&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;h4&gt;/etc/X11/xdm/xdm-config&lt;/h4&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;In xdm-config, there is only one line that I bother to change. This line enables remote xdm logins.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;! SECURITY: do not listen for XDMCP or Chooser requests&lt;br /&gt;! Comment out this line if you want to manage X terminals with xdm&lt;br /&gt;DisplayManager.requestPort:     177&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;h4&gt;/etc/X11/xdm/xdm-options&lt;/h4&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;I think xdm-options is Debian specific. I don&#39;t think I made any change in this file.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;# configuration options for xdm&lt;br /&gt;# See xdm.options(5) for an explanation of the available options.&lt;br /&gt;&lt;br /&gt;no-ignore-nologin&lt;br /&gt;no-restart-on-upgrade&lt;br /&gt;no-start-on-install&lt;br /&gt;use-sessreg&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Resetting XDM&lt;/h4&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;There are other files in /etc/X11/xdm directory that you can safely leave as is. After you make any change with the files, have xdm reread the config files.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;kill -1 $(pidof xdm)&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;If you want to force xdm to kill all running sessions and restart, enter the following command.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;/etc/init.d/xdm restart&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;That&#39;s all I have to write about xdm for now. In summary, xdm is a simple, yet functional login manager that is easy to set up.&lt;/p&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;a href=&quot;http://click.linksynergy.com/fs-bin/click?id=CCoBOfIP234&amp;offerid=145240.10000074&amp;subid=0&amp;type=4&quot;&gt;&lt;IMG border=&quot;0&quot;   alt=&quot;234X60&quot; src=&quot;http://ad.linksynergy.com/fs-bin/show?id=CCoBOfIP234&amp;bids=145240.10000074&amp;subid=0&amp;type=4&amp;gridnum=3&quot;/&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://report5.blogspot.com/feeds/8315696883592992563/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://report5.blogspot.com/2012/10/setting-up-xdm-on-debianubuntu-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3755314711921649990/posts/default/8315696883592992563'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3755314711921649990/posts/default/8315696883592992563'/><link rel='alternate' type='text/html' href='http://report5.blogspot.com/2012/10/setting-up-xdm-on-debianubuntu-linux.html' title='Setting Up XDM on Debian/Ubuntu Linux'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04046998319294818723</uri><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-3755314711921649990.post-391159967504843995</id><published>2012-10-15T14:01:00.000-10:00</published><updated>2012-10-18T18:20:57.118-10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="network"/><category scheme="http://www.blogger.com/atom/ns#" term="openssl"/><category scheme="http://www.blogger.com/atom/ns#" term="security"/><category scheme="http://www.blogger.com/atom/ns#" term="ssl"/><category scheme="http://www.blogger.com/atom/ns#" term="technology"/><category scheme="http://www.blogger.com/atom/ns#" term="tutorial"/><title type='text'>To Create SSL Certificates for Personal / Intranet Use</title><content type='html'>&lt;img src=&quot;http://farm9.staticflickr.com/8443/7975728802_2182b9c711_m.jpg&quot; style=&quot;float: right&quot; alt=&quot;lock&quot;/&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;I&#39;m not a security guru, but I&#39;m writing this as a personal note. Normally, I&#39;ll have to pay some company to have my SSL certificate digitally signed for commercial uses. That&#39;s because people and businesses won&#39;t acknowledge or recognize my SSL certificate in transactions unless it is signed by a reputable company. However, I can create SSL certificates myself for personal / intranet use.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;On Debian and Ubuntu systems, after the ssl-cert package is installed, a SSL certificate is automatically created at /etc/ssl/certs/ssl-cert-snakeoil.pem, and the corresponding key is created at /etc/ssl/private/ssl-cert-snakeoil.key. You can just distribute ssl-cert-snakeoil.pem to other peer machines to set up SSL connections. To manually create your own SSL certificates, follow these steps. In this guide, we will use the arbitrary filenames: my-site.key, my-site.crt and my-site.pem.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;br /&gt;&lt;li&gt;Generate a public/private key pair:&lt;br/&gt;&lt;br /&gt;&lt;pre&gt;openssl genrsa -out my-site.key 1024&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;Generate a self signed certificate:&lt;br/&gt;&lt;br /&gt;&lt;pre&gt;openssl req -new -key my-site.key -x509 -days 3653 -out my-site.crt&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;Generate the PEM file by just appending the key and certificate files:&lt;br/&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;cat my-site.key my-site.crt &amp;gt; my-site.pem&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;The private key should be kept secret, so change the file permission.&lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;chmod 600 my-site.key my-site.pem&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;You can distribute the trust certificate &lt;em&gt;server.crt&lt;/em&gt; to your SSL client hosts that will connect securely to the SSL-enabled server. The server may need *.crt files from clients for proper client authentication.&lt;/p&gt;&lt;br /&gt; &lt;br /&gt;&lt;/ol&gt;&lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Read Also:&lt;/h4&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;&lt;a href=&quot;http://kemovitra.blogspot.com/2012/09/build-openssl-with-mingw.html&quot;&gt;Build OpenSSL with MinGW&lt;/a&gt;&lt;br /&gt;&lt;li&gt;&lt;a href=&quot;http://kemovitra.blogspot.com/2009/06/building-gnutls-for-win32.html&quot;&gt;Building GNUTLS for Windows&lt;/a&gt;&lt;br /&gt;&lt;/ul&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;a href=&quot;http://click.linksynergy.com/fs-bin/click?id=CCoBOfIP234&amp;offerid=145240.10000074&amp;subid=0&amp;type=4&quot;&gt;&lt;IMG border=&quot;0&quot;   alt=&quot;234X60&quot; src=&quot;http://ad.linksynergy.com/fs-bin/show?id=CCoBOfIP234&amp;bids=145240.10000074&amp;subid=0&amp;type=4&amp;gridnum=3&quot;/&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://report5.blogspot.com/feeds/391159967504843995/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://report5.blogspot.com/2012/10/to-create-ssl-certificates-for-personal.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3755314711921649990/posts/default/391159967504843995'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3755314711921649990/posts/default/391159967504843995'/><link rel='alternate' type='text/html' href='http://report5.blogspot.com/2012/10/to-create-ssl-certificates-for-personal.html' title='To Create SSL Certificates for Personal / Intranet Use'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04046998319294818723</uri><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-3755314711921649990.post-7480235752804402201</id><published>2012-10-15T02:26:00.000-10:00</published><updated>2012-10-18T18:20:57.147-10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="administration"/><category scheme="http://www.blogger.com/atom/ns#" term="backup"/><category scheme="http://www.blogger.com/atom/ns#" term="command"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="network"/><category scheme="http://www.blogger.com/atom/ns#" term="tutorial"/><title type='text'>Linux: Transmitting a Bunch of Files using socat</title><content type='html'>&lt;img src=&quot;http://farm9.staticflickr.com/8475/8090243537_02d4b30f12.jpg&quot; width=&quot;256&quot; height=&quot;256&quot; alt=&quot;computer&quot; style=&quot;float: right&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;em&gt;socat&lt;/em&gt; is a nifty, versatile tool for establishing a secure data channel between two computers. To install socat on Debian, use apt-get:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;apt-get install socat&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;I was trying to use socat and tar to duplicate the contents of an entire filesystem securely between two computers. In this case, I copied all files in partition /dev/sda5 on box A to partition /dev/sdb6 on box B (IP 192.168.200.83).&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Using the SCTP protocol&lt;/h4&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;This method does not involve encryption, so it is relatively simple to follow.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;br /&gt;&lt;li&gt;&lt;p&gt;First, I opened a terminal at box B (192.168.200.83) and changed the current directory to /mnt/sdb6 where I will unpack the incoming stream of files.&lt;/p&gt;&lt;br /&gt;&lt;pre&gt;cd /mnt/sdb6&lt;/pre&gt;&lt;br /&gt;&lt;p&gt;Then, I typed the following command to have socat establish a SCTP connection listening on port 7749. tar would be expecting to receive incoming files.&lt;/p&gt;&lt;br /&gt;&lt;pre&gt;socat EXEC:&quot;tar xzf -&quot; SCTP4-LISTEN:7749&lt;/pre&gt;&lt;br /&gt;&lt;li&gt;&lt;p&gt;Then, I opened a terminal at box A. Here I would transmit a bunch of files to box B (192.168.200.83). I changed directory to /mnt/sda5 containing files to send.&lt;/p&gt;&lt;br /&gt;&lt;pre&gt;cd /mnt/sda5&lt;/pre&gt;&lt;br /&gt;&lt;p&gt;Then, I typed the following command to transmit all the files in the current directory.&lt;/p&gt;&lt;br /&gt;&lt;pre&gt;socat EXEC:&quot;tar czf - .&quot; SCTP4-CONNECT:192.168.200.83:7749&lt;/pre&gt;&lt;br /&gt;&lt;/ol&gt;&lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Using the SSL connection&lt;/h4&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;This method involves encrypted connection and requires SSL certicates on both sides of the link. Read &lt;a href=&quot;http://kemovitra.blogspot.com/2012/10/to-create-ssl-certificates-for-personal.html&quot;&gt;this post&lt;/a&gt; to learn how to create self-signed SSL certificates if you don&#39;t already have one.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;br /&gt;&lt;li&gt;Debian and Ubuntu automatically create a local SSL certificate at /etc/ssl/certs/ssl-cert-snakeoil.pem. Both parties of an SSL connection &amp;mdash; box A and box B &amp;mdash; should exchange each other&#39;s ssl-cert-snakeoil.pem in order to have SSL connections between them.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;On box B, I typed the following command to run socat in SSL listening mode at port 7749.&lt;br/&gt;&lt;br /&gt;&lt;pre&gt;cd /mnt/sdb6&lt;br /&gt;socat EXEC:&quot;tar xzf -&quot; OPENSSL-LISTEN:7749,reuseaddr,cert=/etc/ssl/certs/ssl-cert-snakeoil.pem,key=/etc/ssl/private/ssl-cert-snakeoil.key,cafile=box-A.pem&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;On box A, I typed the following command to run socat in SSL mode while running tar to pack all the files and send them through the pipeline.&lt;br/&gt;&lt;br /&gt;&lt;pre&gt;cd /mnt/sda5&lt;br /&gt;socat EXEC:&quot;tar czf - .&quot; OPENSSL:192.168.200.83:7749,cert=/etc/ssl/certs/ssl-cert-snakeoil.pem,key=/etc/ssl/private/ssl-cert-snakeoil.key,cafile=box-B.pem&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;/ol&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Thus I have duplicated the whole directory tree from Box A to Box B. Using socat and tar, I was able to mirror a filesystem over the network. As shown above, socat alone can be a good substitute in situations where ssh, scp and/or netcat are needed. socat has many other features I have yet to explore.&lt;/p&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;a href=&quot;http://click.linksynergy.com/fs-bin/click?id=CCoBOfIP234&amp;offerid=145240.10000074&amp;subid=0&amp;type=4&quot;&gt;&lt;IMG border=&quot;0&quot;   alt=&quot;234X60&quot; src=&quot;http://ad.linksynergy.com/fs-bin/show?id=CCoBOfIP234&amp;bids=145240.10000074&amp;subid=0&amp;type=4&amp;gridnum=3&quot;/&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://report5.blogspot.com/feeds/7480235752804402201/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://report5.blogspot.com/2012/10/linux-transmitting-bunch-of-files-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3755314711921649990/posts/default/7480235752804402201'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3755314711921649990/posts/default/7480235752804402201'/><link rel='alternate' type='text/html' href='http://report5.blogspot.com/2012/10/linux-transmitting-bunch-of-files-using.html' title='Linux: Transmitting a Bunch of Files using socat'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04046998319294818723</uri><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-3755314711921649990.post-304699722765819256</id><published>2012-10-11T21:45:00.000-10:00</published><updated>2012-10-18T18:20:57.109-10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="acronis"/><category scheme="http://www.blogger.com/atom/ns#" term="administration"/><category scheme="http://www.blogger.com/atom/ns#" term="backup"/><category scheme="http://www.blogger.com/atom/ns#" term="computing"/><category scheme="http://www.blogger.com/atom/ns#" term="technology"/><title type='text'>How to Extract Boot Images from Acronis Bootable CD </title><content type='html'>&lt;p&gt;&lt;em&gt;Acronis Backup and Restore&lt;/em&gt; is a great software to purchase for any business that wants to protect and preserve their digital assets from natural or accidental loss. After you purchase &lt;a href=&quot;http://www.acronis.com&quot;&gt;Acronis&lt;/a&gt; software and deploy it on your computers, you have a chance to create a bootable CD for emergency purpose. The Acronis boot CD will prove useful when you need to restore backups on a compromised or corrupted system.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;However, you may want to incorporate Acronis software into your own custom boot CD. The custom CD can be a live Linux CD or live Windows CD. In that case, your ideal CD will have a menu of choices to run Acronis in addition to booting Linux or Windows. To create such a disc, you need to extract boot images from Acronis Boot CD. This post illustrates the steps needed to creat a custom CD containing Acronis software.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;br /&gt;&lt;li&gt;&lt;p&gt;Bring your Acronis emergency CD and use the following command to create an ISO file. This assumes that you are using Linux. On Windows, you can use the readom program from &lt;a href=&quot;http://kemovitra.blogspot.com/2012/09/building-cdrkit-for-windows.html&quot;&gt;my cdrkit build&lt;/a&gt;.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;readom dev=/dev/sr0 f=ABR11.5AWUR_en-US.iso speed=8 retries=16 -nocorr -noerror&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;&lt;p&gt;Acronis uses a special bootloader called BootWiz. To extract the boot image, you need to find the location of area that begins with BOOTWIZ0 string inside the ISO file. This is a hit-or-miss process. &lt;a href=&quot;http://packages.debian.org/sid/hexedit&quot;&gt;hexedit&lt;/a&gt; can be used here.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;hexedit ABR11.5AWUR_en-US.iso&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;&lt;p&gt;In &lt;em&gt;hexedit&lt;/em&gt;, press Ctrl+S, then enter 424F4F5457495A30, which translates to BOOTWIZ0. Hit Enter.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://www.flickr.com/photos/29425593@N03/8077855212/&quot; title=&quot;hexedit by kenjoey, on Flickr&quot;&gt;&lt;img src=&quot;http://farm9.staticflickr.com/8323/8077855212_933aa951d2.jpg&quot; width=&quot;500&quot; height=&quot;351&quot; alt=&quot;hexedit&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;&lt;p&gt;Hexedit will find the given string (BOOTWIZ0). Note the address of the line&lt;br /&gt;(0x1A000). The address (0x1A000) is equivalent to 106496 in decimal, and 208 sectors. After you write down the address, quit Hexedit by pressing Ctrl+C.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://www.flickr.com/photos/29425593@N03/8077881758/&quot; title=&quot;hexedit by kenjoey, on Flickr&quot;&gt;&lt;img src=&quot;http://farm9.staticflickr.com/8332/8077881758_f8eb7e978b.jpg&quot; width=&quot;500&quot; height=&quot;351&quot; alt=&quot;hexedit&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;&lt;p&gt;Use dd to extract the FAT filesystem image.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;dd if=ABR11.5AWUR_en-US.iso of=abr11.bin skip=208&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;&lt;p&gt;Use &lt;a href=&quot;http://www.winimage.com&quot;&gt;WinImage&lt;/a&gt; to convert the image file (abr11.bin) &amp;mdash; actually a FAT filesystem image &amp;mdash; to a hard disk image format with MBR.&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://www.flickr.com/photos/29425593@N03/8080940933/&quot; title=&quot;winimage_export_to_image_mbr by kenjoey, on Flickr&quot;&gt;&lt;img src=&quot;http://farm9.staticflickr.com/8052/8080940933_cee26e633c.jpg&quot; width=&quot;500&quot; height=&quot;436&quot; alt=&quot;winimage_export_to_image_mbr&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Normally, you can just put the hard disk image on the CD and boot it using isolinux &amp; memdisk.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;LABEL abr11&lt;br /&gt;MENU LABEL Acronis Backup &amp; Restore 11&lt;br /&gt;KERNEL memdisk&lt;br /&gt;INITRD abr11.bin&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;&lt;p&gt;Alternatively, you can mount the image file (abr11.bin) and extract only the kernel and initramfs.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;mount -t msdos -o loop,ro abr11.bin /mnt&lt;br /&gt;cd /mnt&lt;br /&gt;cp dat*.dat /boot&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;The following is an example boot entry for isolinux that starts 64-bit Acronis Backup &amp; Restore.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;LABEL abr11x&lt;br /&gt;MENU LABEL Acronis Backup &amp; Restore 11 (64-bit)&lt;br /&gt;KERNEL dat5.dat&lt;br /&gt;INITRD dat4.dat&lt;br /&gt;APPEND video=vesa:mtrr vga=0x317 product=bootagent media_for_windows quiet&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;The kernel parameters to put as APPEND string can be taken from the efi/boot/bootx64.xml.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;/ol&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;a href=&quot;http://click.linksynergy.com/fs-bin/click?id=CCoBOfIP234&amp;offerid=145240.10000074&amp;subid=0&amp;type=4&quot;&gt;&lt;IMG border=&quot;0&quot;   alt=&quot;234X60&quot; src=&quot;http://ad.linksynergy.com/fs-bin/show?id=CCoBOfIP234&amp;bids=145240.10000074&amp;subid=0&amp;type=4&amp;gridnum=3&quot;/&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://report5.blogspot.com/feeds/304699722765819256/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://report5.blogspot.com/2012/10/how-to-extract-boot-images-from-acronis.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3755314711921649990/posts/default/304699722765819256'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3755314711921649990/posts/default/304699722765819256'/><link rel='alternate' type='text/html' href='http://report5.blogspot.com/2012/10/how-to-extract-boot-images-from-acronis.html' title='How to Extract Boot Images from Acronis Bootable CD '/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04046998319294818723</uri><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-3755314711921649990.post-6858662481986288943</id><published>2012-10-11T00:17:00.000-10:00</published><updated>2012-10-18T18:20:57.139-10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="aria2"/><category scheme="http://www.blogger.com/atom/ns#" term="bittorrent"/><category scheme="http://www.blogger.com/atom/ns#" term="download"/><category scheme="http://www.blogger.com/atom/ns#" term="p2p"/><category scheme="http://www.blogger.com/atom/ns#" term="software"/><category scheme="http://www.blogger.com/atom/ns#" term="tip"/><title type='text'>Aria2 shell script and batch file</title><content type='html'>&lt;p&gt;I wrote a BASH shell script and a DOS batch file that can be used to download files using aria2 &amp;mdash; &lt;a href=&quot;http://aria2.sourceforge.net&quot;&gt;Aria2&lt;/a&gt; is a command-line tool for downloading files. The script and the batch file take 2 arguments; the first one is for the bittorrent hash in 40-digit hexadecimal number and the second one is for arbitrary one-word description.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;&lt;a href=&quot;http://cfile228.uf.daum.net/attach/1555D84B507684E402C436&quot;&gt;aria2.bat&lt;/a&gt;&lt;br /&gt;&lt;li&gt;&lt;a href=&quot;http://cfile228.uf.daum.net/attach/1850174B507684E60A66BB&quot;&gt;aria2.sh&lt;/a&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;aria2.bat can be used on Windows, and aria2.sh can be used on Linux and *BSD. Make sure that aria2c is in PATH. For example, if you want to download an ISO file for the OpenSUSE DVD, you would type something like:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;aria2.bat 198472f5217d843cceb1a4c82233f009ed6608af opensuse-dvd-586&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;To find the value of a bittorrent hash (that long hex number), you can cut it from a magnet link you find on a Web site &amp;mdash; Magnet links allow you to download actual files without first having to download bittorrent files (*.torrent). When you see a magnet sign, right-click on it to display the shortcut menu and select &lt;em&gt;Copy Link Location&lt;/em&gt;.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://www.flickr.com/photos/29425593@N03/8076516674/&quot; title=&quot;btih-demo1 by kenjoey, on Flickr&quot;&gt;&lt;img src=&quot;http://farm9.staticflickr.com/8469/8076516674_d3383ff621.jpg&quot; width=&quot;500&quot; height=&quot;402&quot; alt=&quot;btih-demo1&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Then, paste it somewhere, for example, inside the URL address bar. The hash value comes after the &lt;code&gt;btih:&lt;/code&gt; string.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://www.flickr.com/photos/29425593@N03/8076524817/&quot; title=&quot;btih-demo2 by kenjoey, on Flickr&quot;&gt;&lt;img src=&quot;http://farm9.staticflickr.com/8043/8076524817_e7dc5b938f.jpg&quot; width=&quot;500&quot; height=&quot;25&quot; alt=&quot;btih-demo2&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;After you find the bittorrent hash, use it as the first argument to the script and make up anything for the second argument, as shown in the example above.&lt;/p&gt;&lt;br /&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;a href=&quot;http://click.linksynergy.com/fs-bin/click?id=CCoBOfIP234&amp;offerid=145240.10000074&amp;subid=0&amp;type=4&quot;&gt;&lt;IMG border=&quot;0&quot;   alt=&quot;234X60&quot; src=&quot;http://ad.linksynergy.com/fs-bin/show?id=CCoBOfIP234&amp;bids=145240.10000074&amp;subid=0&amp;type=4&amp;gridnum=3&quot;/&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://report5.blogspot.com/feeds/6858662481986288943/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://report5.blogspot.com/2012/10/aria2-shell-script-and-batch-file.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3755314711921649990/posts/default/6858662481986288943'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3755314711921649990/posts/default/6858662481986288943'/><link rel='alternate' type='text/html' href='http://report5.blogspot.com/2012/10/aria2-shell-script-and-batch-file.html' title='Aria2 shell script and batch file'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04046998319294818723</uri><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-3755314711921649990.post-4527259585422182392</id><published>2012-10-09T16:34:00.000-10:00</published><updated>2012-10-18T18:20:57.124-10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bootcd"/><category scheme="http://www.blogger.com/atom/ns#" term="bootloader"/><category scheme="http://www.blogger.com/atom/ns#" term="bootstrap"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="syslinux"/><title type='text'>isolinux.cfg for a live CD</title><content type='html'>&lt;p&gt;isolinux is a bootloader included in the syslinux package and is used to boot a CD or DVD. isolinux is one of several popular bootloaders used to create a bootable CD for open-source operating systems, including Linux and FreeDOS. Another bootloader is GRUB, which I rarely use except for booting Windows 7 with BIOS emulation.&lt;p&gt; &lt;br /&gt;&lt;br /&gt;&lt;p&gt;To create a bootable CD with isolinux, just copy the file isolinux.bin to a folder that will hold CD contents for ISO mastering. On Debian or Ubuntu, the file is located at the /usr/lib/syslinux folder.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://www.flickr.com/photos/29425593@N03/8073552063/&quot; title=&quot;ISOFS contents by kenjoey, on Flickr&quot;&gt;&lt;img src=&quot;http://farm9.staticflickr.com/8453/8073552063_b05ef39a74.jpg&quot; width=&quot;500&quot; height=&quot;393&quot; alt=&quot;ISOFS contents&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;A file named isolinux.cfg needs to be created in order to provide a menu or boot entries. A sample isolinux.cfg is shown below. It makes use of vesamenu.c32 which helps display a nice graphical menu with a background picture. Vesamenu.c32 is also located in /usr/lib/syslinux and needs to be copied too.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre style=&quot;height: 500px&quot;&gt;# isolinux.cfg&lt;br /&gt;# Configuration for ISOLINUX&lt;br /&gt;&lt;br /&gt;# Wait for 60 seconds before booting up the default entry.&lt;br /&gt;TIMEOUT 600&lt;br /&gt;F1 help.txt #ff702640&lt;br /&gt;&lt;br /&gt;UI vesamenu.c32&lt;br /&gt;MENU RESOLUTION 640 480&lt;br /&gt;MENU BACKGROUND back642.jpg&lt;br /&gt;MENU COLOR border 30;44 #40dfdfdf #00000000 std&lt;br /&gt;MENU COLOR title 1;36;43 #e0fdff49 #804206ef none&lt;br /&gt;MENU COLOR sel 7;37;40 #e0000000 #40ffffff all&lt;br /&gt;MENU COLOR hotsel 1;7;37;40 #e0af0000 #40ffffff all&lt;br /&gt;MENU COLOR disabled 1;30;44 #ffe4de6f #00000000 std&lt;br /&gt;MENU COLOR scrollbar 30;44 #40000000 #e0af0000 std&lt;br /&gt;MENU TITLE Boot Menu&lt;br /&gt;MENU CLEAR&lt;br /&gt;&lt;br /&gt;MENU ROWS 14&lt;br /&gt;MENU TABMSGROW 20&lt;br /&gt;MENU CMDLINEROW 20&lt;br /&gt;MENU TIMEOUTROW 22&lt;br /&gt;MENU HELPMSGROW 24&lt;br /&gt;MENU VSHIFT 1&lt;br /&gt;&lt;br /&gt;# The default is to boot the first hard drive.&lt;br /&gt;DEFAULT hd0&lt;br /&gt;ONERROR hd1&lt;br /&gt;&lt;br /&gt;MENU BEGIN livecd_menu&lt;br /&gt;&lt;br /&gt;  MENU TITLE Linux Live CD Menu&lt;br /&gt;&lt;br /&gt;  LABEL livecd_heading&lt;br /&gt;  MENU LABEL Boot Linux live CD&lt;br /&gt;  MENU DISABLE&lt;br /&gt;&lt;br /&gt;  LABEL livecd_640x480&lt;br /&gt;  MENU LABEL 640x480 screen&lt;br /&gt;  MENU INDENT 1&lt;br /&gt;  KERNEL 360.lnx&lt;br /&gt;  INITRD initram.lzm &lt;br /&gt;  APPEND root=/dev/sr0 edd=off vmode=640x480&lt;br /&gt;&lt;br /&gt;  LABEL livecd_800x600&lt;br /&gt;  MENU LABEL 800x600 screen&lt;br /&gt;  MENU INDENT 1&lt;br /&gt;  KERNEL 360.lnx&lt;br /&gt;  INITRD initram.lzm&lt;br /&gt;  APPEND root=/dev/sr0 edd=off vmode=800x600&lt;br /&gt;&lt;br /&gt;  LABEL livecd_1024x768&lt;br /&gt;  MENU LABEL 1024x768 screen&lt;br /&gt;  MENU INDENT 1&lt;br /&gt;  KERNEL 360.lnx&lt;br /&gt;  INITRD initram.lzm&lt;br /&gt;  APPEND root=/dev/sr0 edd=off vmode=1024x768&lt;br /&gt;&lt;br /&gt;  MENU SEPARATOR&lt;br /&gt;&lt;br /&gt;  LABEL livecd_console_heading&lt;br /&gt;  MENU LABEL Boot Linux live CD into text console&lt;br /&gt;  MENU DISABLE&lt;br /&gt;&lt;br /&gt;  LABEL livecd_console&lt;br /&gt;  MENU LABEL text-mode console&lt;br /&gt;  MENU INDENT 1&lt;br /&gt;  KERNEL 360.lnx&lt;br /&gt;  INITRD initram.lzm&lt;br /&gt;  APPEND root=/dev/sr0 nox&lt;br /&gt;&lt;br /&gt;  LABEL livecd_console_old&lt;br /&gt;  MENU LABEL text-mode console for an old computer&lt;br /&gt;  MENU INDENT 1&lt;br /&gt;  KERNEL 360.lnx&lt;br /&gt;  INITRD initram.lzm&lt;br /&gt;  APPEND root=/dev/sr0 acpi=off irqpoll nox&lt;br /&gt;&lt;br /&gt;  MENU SEPARATOR&lt;br /&gt;&lt;br /&gt;  LABEL exit0&lt;br /&gt;  MENU LABEL Return to the main menu.&lt;br /&gt;  MENU EXIT&lt;br /&gt;&lt;br /&gt;MENU END&lt;br /&gt;&lt;br /&gt;MENU BEGIN cdram_menu&lt;br /&gt;&lt;br /&gt;  MENU TITLE Linux on RAMdisk Menu&lt;br /&gt;&lt;br /&gt;  LABEL cdram_heading&lt;br /&gt;  MENU LABEL Boot Linux on RAMdisk&lt;br /&gt;  MENU DISABLE&lt;br /&gt;&lt;br /&gt;  LABEL cdram_640x480&lt;br /&gt;  MENU LABEL 640x480 screen&lt;br /&gt;  MENU INDENT 1&lt;br /&gt;  KERNEL 360.lnx&lt;br /&gt;  INITRD initram.lzm &lt;br /&gt;  APPEND boot=cdrom root=/dev/ram ramdisk_size=573440 edd=off vmode=640x480&lt;br /&gt;&lt;br /&gt;  LABEL cdram_800x600&lt;br /&gt;  MENU LABEL 800x600 screen&lt;br /&gt;  MENU INDENT 1&lt;br /&gt;  KERNEL 360.lnx&lt;br /&gt;  INITRD initram.lzm&lt;br /&gt;  APPEND boot=cdrom root=/dev/ram ramdisk_size=573440 edd=off vmode=800x600&lt;br /&gt;&lt;br /&gt;  LABEL cdram_1024x768&lt;br /&gt;  MENU LABEL 1024x768 screen&lt;br /&gt;  MENU INDENT 1&lt;br /&gt;  KERNEL 360.lnx&lt;br /&gt;  INITRD initram.lzm&lt;br /&gt;  APPEND boot=cdrom root=/dev/ram ramdisk_size=573440 edd=off vmode=1024x768&lt;br /&gt;&lt;br /&gt;  MENU SEPARATOR&lt;br /&gt;&lt;br /&gt;  LABEL cdram_console_heading&lt;br /&gt;  MENU LABEL Boot Linux RAMdisk into text console&lt;br /&gt;  MENU DISABLE&lt;br /&gt;&lt;br /&gt;  LABEL cdram_console&lt;br /&gt;  MENU LABEL text-mode console&lt;br /&gt;  MENU INDENT 1&lt;br /&gt;  KERNEL 360.lnx&lt;br /&gt;  INITRD initram.lzm&lt;br /&gt;  APPEND boot=cdrom root=/dev/ram ramdisk_size=573440 nox&lt;br /&gt;&lt;br /&gt;  LABEL cdram_console_old&lt;br /&gt;  MENU LABEL text-mode console for an old computer&lt;br /&gt;  MENU INDENT 1&lt;br /&gt;  KERNEL 360.lnx&lt;br /&gt;  INITRD initram.lzm&lt;br /&gt;  APPEND boot=cdrom root=/dev/ram ramdisk_size=573440 acpi=off irqpoll nox&lt;br /&gt;&lt;br /&gt;  MENU SEPARATOR&lt;br /&gt;&lt;br /&gt;  LABEL exit1&lt;br /&gt;  MENU LABEL Return to the main menu.&lt;br /&gt;  MENU EXIT&lt;br /&gt;&lt;br /&gt;MENU END&lt;br /&gt;&lt;br /&gt;LABEL hd0&lt;br /&gt;  MENU LABEL First Hard Drive&lt;br /&gt;  LOCALBOOT 0x80&lt;br /&gt;&lt;br /&gt;LABEL hd1&lt;br /&gt;  MENU LABEL Second Hard Drive&lt;br /&gt;  KERNEL chain.c32&lt;br /&gt;  APPEND hd1 swap&lt;br /&gt;&lt;br /&gt;MENU BEGIN hd0_menu&lt;br /&gt;&lt;br /&gt;  MENU TITLE Partition in First Hard Drive&lt;br /&gt;&lt;br /&gt;  LABEL hd0_part1&lt;br /&gt;  MENU LABEL 1st partition&lt;br /&gt;  KERNEL chain.c32&lt;br /&gt;  APPEND hd0 1&lt;br /&gt;&lt;br /&gt;  LABEL hd0_part2&lt;br /&gt;  MENU LABEL 2nd partition&lt;br /&gt;  KERNEL chain.c32&lt;br /&gt;  APPEND hd0 2&lt;br /&gt;&lt;br /&gt;  LABEL hd0_part3&lt;br /&gt;  MENU LABEL 3rd partition&lt;br /&gt;  KERNEL chain.c32&lt;br /&gt;  APPEND hd0 3&lt;br /&gt;&lt;br /&gt;  LABEL hd0_part4&lt;br /&gt;  MENU LABEL 4th partition&lt;br /&gt;  KERNEL chain.c32&lt;br /&gt;  APPEND hd0 4&lt;br /&gt;&lt;br /&gt;  LABEL hd0_part5&lt;br /&gt;  MENU LABEL 5th partition&lt;br /&gt;  KERNEL chain.c32&lt;br /&gt;  APPEND hd0 5&lt;br /&gt;&lt;br /&gt;  LABEL hd0_part6&lt;br /&gt;  MENU LABEL 6th partition&lt;br /&gt;  KERNEL chain.c32&lt;br /&gt;  APPEND hd0 6&lt;br /&gt;&lt;br /&gt;  LABEL hd0_part7&lt;br /&gt;  MENU LABEL 7th partition&lt;br /&gt;  KERNEL chain.c32&lt;br /&gt;  APPEND hd0 7&lt;br /&gt;&lt;br /&gt;  LABEL hd0_part8&lt;br /&gt;  MENU LABEL 8th partition&lt;br /&gt;  KERNEL chain.c32&lt;br /&gt;  APPEND hd0 8&lt;br /&gt;&lt;br /&gt;  LABEL hd0_part9&lt;br /&gt;  MENU LABEL 9th partition&lt;br /&gt;  KERNEL chain.c32&lt;br /&gt;  APPEND hd0 9&lt;br /&gt;&lt;br /&gt;  LABEL hd0_part10&lt;br /&gt;  MENU LABEL 10th partition&lt;br /&gt;  KERNEL chain.c32&lt;br /&gt;  APPEND hd0 10&lt;br /&gt;&lt;br /&gt;  MENU SEPARATOR&lt;br /&gt;&lt;br /&gt;  LABEL exit3&lt;br /&gt;  MENU LABEL Return to the main menu&lt;br /&gt;  MENU EXIT&lt;br /&gt;&lt;br /&gt;MENU END&lt;br /&gt;&lt;br /&gt;LABEL fd0&lt;br /&gt;  MENU LABEL Floppy Drive&lt;br /&gt;  LOCALBOOT 0x00&lt;br /&gt;&lt;br /&gt;LABEL next&lt;br /&gt;  MENU LABEL Next in boot sequence&lt;br /&gt;  LOCALBOOT -1&lt;br /&gt;&lt;br /&gt;LABEL memtest&lt;br /&gt;  MENU LABEL Test your computer memory&lt;br /&gt;  LINUX memtest.bin&lt;br /&gt;  TEXT HELP&lt;br /&gt;  Run Memtest86 to test your computer memory&lt;br /&gt;  ENDTEXT&lt;br /&gt;&lt;br /&gt;LABEL help&lt;br /&gt;  MENU LABEL Help&lt;br /&gt;  MENU HELP help.txt #ff702640&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://www.flickr.com/photos/29425593@N03/8073575852/&quot; title=&quot;isolinux boot menu by kenjoey, on Flickr&quot;&gt;&lt;img src=&quot;http://farm9.staticflickr.com/8312/8073575852_4ef70990be.jpg&quot; width=&quot;500&quot; height=&quot;375&quot; alt=&quot;isolinux boot menu&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;The example above is one that I use for my live CD, so some settings are specific to my situation. Thus, KERNEL and APPEND settings may have to be adapted for other users. However, all the keywords shown above is standard and acceptable.&lt;/p&gt;&lt;br /&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;a href=&quot;http://click.linksynergy.com/fs-bin/click?id=CCoBOfIP234&amp;offerid=145240.10000074&amp;subid=0&amp;type=4&quot;&gt;&lt;IMG border=&quot;0&quot;   alt=&quot;234X60&quot; src=&quot;http://ad.linksynergy.com/fs-bin/show?id=CCoBOfIP234&amp;bids=145240.10000074&amp;subid=0&amp;type=4&amp;gridnum=3&quot;/&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://report5.blogspot.com/feeds/4527259585422182392/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://report5.blogspot.com/2012/10/isolinuxcfg-for-live-cd.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3755314711921649990/posts/default/4527259585422182392'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3755314711921649990/posts/default/4527259585422182392'/><link rel='alternate' type='text/html' href='http://report5.blogspot.com/2012/10/isolinuxcfg-for-live-cd.html' title='isolinux.cfg for a live CD'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04046998319294818723</uri><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-3755314711921649990.post-7583274892899604338</id><published>2012-10-08T11:11:00.000-10:00</published><updated>2012-10-18T18:20:57.148-10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="compile"/><category scheme="http://www.blogger.com/atom/ns#" term="computer"/><category scheme="http://www.blogger.com/atom/ns#" term="Debian"/><category scheme="http://www.blogger.com/atom/ns#" term="embedded"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="open-source"/><category scheme="http://www.blogger.com/atom/ns#" term="software"/><category scheme="http://www.blogger.com/atom/ns#" term="technology"/><category scheme="http://www.blogger.com/atom/ns#" term="tutorial"/><category scheme="http://www.blogger.com/atom/ns#" term="x.org"/><category scheme="http://www.blogger.com/atom/ns#" term="x11"/><title type='text'>Linux: Building X.org Kdrive Server Xfbdev on Debian Wheezy</title><content type='html'>&lt;p&gt;Kdrive is a minimal X11 server that runs as a single executable with little dependencies. I use Kdrive for my Web-only/Rescue Linux systems. Before compiling Kdrive, I installed the following packages on my box running Debian Sid &amp;mdash; which will be eventually rolled into Wheezy release:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;bison &lt;/li&gt;&lt;br /&gt;&lt;li&gt;g++-4.7&lt;/li&gt;&lt;br /&gt;&lt;li&gt;libexpat1-dev &lt;/li&gt;&lt;br /&gt;&lt;li&gt;libpciaccess-dev &lt;/li&gt;&lt;br /&gt;&lt;li&gt;libpixman-1-dev&lt;/li&gt;&lt;br /&gt;&lt;li&gt;libssl-dev &lt;/li&gt;&lt;br /&gt;&lt;li&gt;libudev-dev&lt;br /&gt;&lt;li&gt;libxdamage-dev &lt;/li&gt;&lt;br /&gt;&lt;li&gt;libxfont-dev &lt;/li&gt;&lt;br /&gt;&lt;li&gt;libxi-dev &lt;/li&gt;&lt;br /&gt;&lt;li&gt;libxkbfile-dev &lt;/li&gt;&lt;br /&gt;&lt;li&gt;libxmu-dev &lt;/li&gt;&lt;br /&gt;&lt;li&gt;libxxf86vm-dev &lt;/li&gt;&lt;br /&gt;&lt;li&gt;make &lt;/li&gt;&lt;br /&gt;&lt;li&gt;pkg-config &lt;/li&gt;&lt;br /&gt;&lt;li&gt;x11proto-bigreqs-dev &lt;/li&gt;&lt;br /&gt;&lt;li&gt;x11proto-composite-dev &lt;/li&gt;&lt;br /&gt;&lt;li&gt;x11proto-randr-dev&lt;/li&gt;&lt;br /&gt;&lt;li&gt;x11proto-render-dev &lt;/li&gt;&lt;br /&gt;&lt;li&gt;x11proto-resource-dev &lt;/li&gt;&lt;br /&gt;&lt;li&gt;x11proto-scrnsaver-dev &lt;/li&gt;&lt;br /&gt;&lt;li&gt;x11proto-video-dev &lt;/li&gt;&lt;br /&gt;&lt;li&gt;x11proto-xcmisc-dev &lt;/li&gt;&lt;br /&gt;&lt;li&gt;x11proto-xf86dga-dev &lt;/li&gt;&lt;br /&gt;&lt;li&gt;x11proto-xinerama-dev &lt;/li&gt;&lt;br /&gt;&lt;li&gt;xkb-data &lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Installing X Protocol Headers&lt;/h4&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;The current RandR protocol headers from Debian didn&#39;t meet the required version, so I had to download the latest one from &lt;a href=&quot;http://xorg.freedesktop.org/archive/individual/lib/&quot;&gt;freedesktop.org&lt;/a&gt;. I installed randrproto like this.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;tar xjvf randrproto-1.4.0.tar.bz2&lt;br /&gt;cd randrproto-1.4.0&lt;br /&gt;./configure --prefix=/usr&lt;br /&gt;make install&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Compiling Xfbdev&lt;/h4&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;I got the latest X.org release from &lt;a href=&quot;http://xorg.freedesktop.org/archive/individual/xserver/&quot;&gt;freedesktop.org&lt;/a&gt;. The following commands will build Xfbdev:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;tar xjf xorg-server_1.13.0.tar.bz2&lt;br /&gt;&lt;br /&gt;cd xorg-server-1.13.0/&lt;br /&gt;&lt;br /&gt;./configure --prefix=/usr --disable-xorg --enable-kdrive --enable-kdrive-evdev --enable-config-udev --disable-aiglx --disable-glx --disable-dri --disable-dri2 --disable-drm --disable-record --with-xkb-path=/usr/share/X11/xkb --with-xkb-output=/var/lib/xkb --with-xkb-bin-directory=/usr/bin --with-default-xkb-rules=xorg --with-default-xkb-model=pc105 --with-default-xkb-layout=us &lt;br /&gt;&lt;br /&gt;make&lt;br /&gt;&lt;br /&gt;make install&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Installed Files&lt;/h4&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;The following files are installed after successfully building a Kdrive server.&lt;/p&gt;&lt;br /&gt;&lt;blockquote&gt;/usr/bin/Xfbdev&lt;br/&gt;&lt;br /&gt;/usr/bin/Xnest&lt;br/&gt;&lt;br /&gt;/usr/bin/Xvfb&lt;br/&gt;&lt;br /&gt;/usr/lib/xorg/protocol.txt&lt;br/&gt;&lt;br /&gt;/usr/share/man/man1/Xnest.1 &lt;br/&gt;&lt;br /&gt;/usr/share/man/man1/Xserver.1 &lt;br/&gt;&lt;br /&gt;/usr/share/man/man1/Xvfb.1 &lt;br/&gt;&lt;br /&gt;/var/lib/xkb/README.compiled&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;h4&gt;To Use Xfbdev&lt;/h4&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;An executable file &lt;i&gt;Xfbdev&lt;/i&gt; will be created in /usr/bin. To be able to use the Xfbdev server, framebuffer video must be enabled either in the kernel or as a module. If CONFIG_FB_VESA option was enabled in the kernel, you can use the syslinux bootloader in the following way to boot Linux into a framebuffer video mode:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;LABEL minimal&lt;br /&gt;KERNEL vmlinuz-2.6.31.5&lt;br /&gt;INITRD initramfs.lzma&lt;br /&gt;APPEND vga=0x314 video=vesafb:mtrr&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Once the framebuffer video has been activated, Xfbdev can be started in the following way:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;Xfbdev :0 vt7 dpms -ac -br +bs -dpi 96 -mouse evdev,5,device=/dev/input/event2 -2button -keybd evdev,,device=/dev/input/event3 -fp /usr/local/share/fonts,/usr/share/fonts/X11/Type1,/usr/share/fonts/truetype/ttf-dejavu -nolisten TCP&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Download my X.org build 1.13.0&lt;/h4&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXFQ1mBkEGbr1E7t54jXJQqmypS5NzPFimEhXNpgc7tFwuQpA-YySbPFOMd4-hB7zA4E-_v3Z5IiUVzxIEo9_GwGWYKKrMJhBpZbNd9i0De2yKBH8u5x78c59qF89XkBWuMEnYyLZ1MA/s144/download-Facebook-Font-Free.png&quot; alt=&quot;Download&quot; style=&quot;float: right;&quot;/&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Here you can obtain my compiled binaries Xfbdev, Xnest and Xvfb:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://cfile231.uf.daum.net/attach/19019C3B507356300DFE7B&quot;&gt;Xfbdev&lt;/a&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;a href=&quot;http://cfile215.uf.daum.net/attach/177EB743507356F00FE9BF&quot;&gt;Xnest&lt;/a&gt;&lt;br /&gt;&lt;li&gt;&lt;a href=&quot;http://cfile229.uf.daum.net/attach/012E2A365073551607489E&quot;&gt;Xvfb&lt;/a&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Also Read:&lt;/h4&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;&lt;a href=&quot;http://kemovitra.blogspot.com/2011/08/logging-into-linux-desktop-with-xming.html&quot;&gt;Logging Into Linux Desktop with Xming, Xnest and Putty&lt;/a&gt;&lt;br /&gt;&lt;li&gt;&lt;a href=&quot;http://kemovitra.blogspot.com/2009/10/linux-compiling-xorg-kdrive-server.html&quot;&gt;Linux: X.org Kdrive Server on Debian 6.0 Squeeze&lt;/a&gt;&lt;/ul&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;a href=&quot;http://click.linksynergy.com/fs-bin/click?id=CCoBOfIP234&amp;offerid=145240.10000074&amp;subid=0&amp;type=4&quot;&gt;&lt;IMG border=&quot;0&quot;   alt=&quot;234X60&quot; src=&quot;http://ad.linksynergy.com/fs-bin/show?id=CCoBOfIP234&amp;bids=145240.10000074&amp;subid=0&amp;type=4&amp;gridnum=3&quot;/&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://report5.blogspot.com/feeds/7583274892899604338/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://report5.blogspot.com/2012/10/linux-building-xorg-kdrive-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3755314711921649990/posts/default/7583274892899604338'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3755314711921649990/posts/default/7583274892899604338'/><link rel='alternate' type='text/html' href='http://report5.blogspot.com/2012/10/linux-building-xorg-kdrive-server.html' title='Linux: Building X.org Kdrive Server Xfbdev on Debian Wheezy'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04046998319294818723</uri><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><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXFQ1mBkEGbr1E7t54jXJQqmypS5NzPFimEhXNpgc7tFwuQpA-YySbPFOMd4-hB7zA4E-_v3Z5IiUVzxIEo9_GwGWYKKrMJhBpZbNd9i0De2yKBH8u5x78c59qF89XkBWuMEnYyLZ1MA/s72-c/download-Facebook-Font-Free.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3755314711921649990.post-8596841742495603049</id><published>2012-10-06T17:54:00.000-10:00</published><updated>2012-10-18T18:20:57.156-10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bootcd"/><category scheme="http://www.blogger.com/atom/ns#" term="bootloader"/><category scheme="http://www.blogger.com/atom/ns#" term="bootstrap"/><category scheme="http://www.blogger.com/atom/ns#" term="Debian"/><category scheme="http://www.blogger.com/atom/ns#" term="download"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="repair"/><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu"/><title type='text'>My Live CD based on Debian Linux Sid</title><content type='html'>&lt;p&gt;I created a &lt;a href=&quot;http://kemovitra.blogspot.com/2012/08/to-create-live-linux-cddvd.html&quot;&gt;Live CD&lt;/a&gt; from my &lt;a href=&quot;http://www.debian.org/&quot;&gt;Debian Linux&lt;/a&gt; installation. It is based on the unstable version (Sid). However, the live CD still lacks the capability to automatically configure X-Windows and the network, and uses IceWM for minimalist desktop. It can be downloaded from &lt;a href=&quot;https://docs.google.com/open?id=0B9TV-o5ulRtcRUkwMFh5bUR3Y00&quot;&gt;Google Drive&lt;/a&gt;. This Live CD has many uses, such as:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;To troubleshoot and fix computer problems&lt;br /&gt;&lt;li&gt;To create backups and restore them&lt;br /&gt;&lt;li&gt;To partition a hard drive before installing Windows or Linux&lt;br /&gt;&lt;li&gt;To set up GRUB bootloader or enter boot commands&lt;br /&gt;&lt;li&gt;To install Debian, Ubuntu or Fedora&lt;br /&gt;&lt;li&gt;To access a Windows partition when it is unbootable&lt;br /&gt;&lt;li&gt;To survey and diagnose wireless and wired networks&lt;br /&gt;&lt;li&gt;To enjoy the Internet with the Web, IM, IRC and VoIP&lt;br /&gt;&lt;li&gt;To run a simple FTP or HTTP server&lt;br /&gt;&lt;li&gt;To participate in peer-to-peer networks&lt;br /&gt;&lt;li&gt;To do basic word processing and spreadsheet&lt;br /&gt;&lt;li&gt;To listen to music or watch movies&lt;br /&gt;&lt;li&gt;To rip CD&#39;s and DVD&#39;s&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://www.flickr.com/photos/29425593@N03/8061437046/&quot; title=&quot;livecd-001 by kenjoey, on Flickr&quot;&gt;&lt;img src=&quot;http://farm9.staticflickr.com/8453/8061437046_a48f2fcb06.jpg&quot; width=&quot;500&quot; height=&quot;375&quot; alt=&quot;livecd-001&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;The snapshot above shows &lt;a href=&quot;http://idesk.sourceforge.net&quot;&gt;idesk&lt;/a&gt; icons on the desktop. Idesk is a neat application that displays icons on the desktop for you to quickly launch. Currently, I use &lt;a href=&quot;http://www.icewm.org/&quot;&gt;IceWM&lt;/a&gt; instead of &lt;a href=&quot;http://www.gnome.org&quot;&gt;GNOME&lt;/a&gt; or &lt;a href=&quot;http://www.kde.org&quot;&gt;KDE&lt;/a&gt; desktop to save space on the CD. So idesk is used to provide desktop icons for IceWM.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://www.flickr.com/photos/29425593@N03/8061434881/&quot; title=&quot;livecd-002 by kenjoey, on Flickr&quot;&gt;&lt;img src=&quot;http://farm9.staticflickr.com/8458/8061434881_e3e410eca5.jpg&quot; width=&quot;500&quot; height=&quot;375&quot; alt=&quot;livecd-002&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;The snapshot above shows &lt;a href=&quot;http://mlterm.sourceforge.net&quot;&gt;mlterm&lt;/a&gt; running. mlterm is my favorite terminal application. It allows me to use many languages.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://www.flickr.com/photos/29425593@N03/8061434613/&quot; title=&quot;livecd-003 by kenjoey, on Flickr&quot;&gt;&lt;img src=&quot;http://farm9.staticflickr.com/8450/8061434613_6950a52230.jpg&quot; width=&quot;500&quot; height=&quot;375&quot; alt=&quot;livecd-003&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href=&quot;http://gparted.sourceforge.net&quot;&gt;Gparted&lt;/a&gt; is a cool application to have on a live CD. It lets you divide the hard drive into many partitions so you can run multiple operating systems.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://www.flickr.com/photos/29425593@N03/8061434413/&quot; title=&quot;livecd-004 by kenjoey, on Flickr&quot;&gt;&lt;img src=&quot;http://farm9.staticflickr.com/8178/8061434413_832dc7b9a2.jpg&quot; width=&quot;500&quot; height=&quot;375&quot; alt=&quot;livecd-004&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;IceWeasel is rebranded &lt;a href=&quot;http://www.mozilla.org/en-US/firefox/&quot;&gt;Firefox&lt;/a&gt; from Debian. Sorry, &lt;a href=&quot;http://www.google.com/chrome&quot;&gt;Chrome&lt;/a&gt; is not included.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://www.flickr.com/photos/29425593@N03/8061436048/&quot; title=&quot;livecd-005 by kenjoey, on Flickr&quot;&gt;&lt;img src=&quot;http://farm9.staticflickr.com/8454/8061436048_4ea6dc05a2.jpg&quot; width=&quot;500&quot; height=&quot;375&quot; alt=&quot;livecd-005&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href=&quot;http://www.libreoffice.org&quot;&gt;LibreOffice&lt;/a&gt; is a fork of &lt;a href=&quot;http://www.openoffice.org&quot;&gt;OpenOffice.org&lt;/a&gt; suite. I use it to create documents or read Microsoft Office documents.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Specifying the locale at boot time&lt;/h4&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;To see your own language with the live CD, select an entry from the menu, click Tab and append LANG= option to the command line. For example, if you speak French, append LANG=fr_FR.UTF-8.&lt;/p&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;a href=&quot;http://click.linksynergy.com/fs-bin/click?id=CCoBOfIP234&amp;offerid=145240.10000074&amp;subid=0&amp;type=4&quot;&gt;&lt;IMG border=&quot;0&quot;   alt=&quot;234X60&quot; src=&quot;http://ad.linksynergy.com/fs-bin/show?id=CCoBOfIP234&amp;bids=145240.10000074&amp;subid=0&amp;type=4&amp;gridnum=3&quot;/&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://report5.blogspot.com/feeds/8596841742495603049/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://report5.blogspot.com/2012/10/my-live-cd-based-on-debian-linux-sid.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3755314711921649990/posts/default/8596841742495603049'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3755314711921649990/posts/default/8596841742495603049'/><link rel='alternate' type='text/html' href='http://report5.blogspot.com/2012/10/my-live-cd-based-on-debian-linux-sid.html' title='My Live CD based on Debian Linux Sid'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04046998319294818723</uri><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-3755314711921649990.post-271100205476256247</id><published>2012-10-05T23:44:00.000-10:00</published><updated>2012-10-18T18:20:57.107-10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="tutorial"/><category scheme="http://www.blogger.com/atom/ns#" term="unix"/><category scheme="http://www.blogger.com/atom/ns#" term="x-windows"/><title type='text'>Using GraphicsMagick to Set the Background</title><content type='html'>&lt;p&gt;&lt;em&gt;GraphicsMagick&lt;/em&gt; is a powerful graphics tool that can be used to set the background on Linux. I&#39;ve been using &lt;code&gt;xsetbg&lt;/code&gt; from the &lt;em&gt;xloadimage&lt;/em&gt; package to set X-Windows background. However, I realized that GraphicsMagick can replace xloadimage and netpbm that I&#39;ve used for setting background and converting images.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;So far I just learned a few tricks for setting background with GraphicsMagick. To tile an image on the background, type a command like this:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;gm display -window root background.jpg&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;To fill the background with an image smaller than the screen size, use the -geometry option:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;gm display -window root -geometry 1440x960 Background.jpg&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;You can also use the percentage (%) sign to zoom in or out the image and place it on the background.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;gm display -window root -geometry 300x200% background.jpg&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;You can add the -gamma option to darken or brighten the image. If gamma is less than 1, the output image will be darker. If gamma is greater than 1, the image will be brighter.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;gm display -window root -gamma 0.5 BG_pix.jpg&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;There are many more options that you can use with GraphicsMagick, for example, -crop, -dither, -trim etc. Read the manual page of GraphicsMagick and documentation for further information.&lt;/p&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;a href=&quot;http://click.linksynergy.com/fs-bin/click?id=CCoBOfIP234&amp;offerid=145240.10000074&amp;subid=0&amp;type=4&quot;&gt;&lt;IMG border=&quot;0&quot;   alt=&quot;234X60&quot; src=&quot;http://ad.linksynergy.com/fs-bin/show?id=CCoBOfIP234&amp;bids=145240.10000074&amp;subid=0&amp;type=4&amp;gridnum=3&quot;/&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://report5.blogspot.com/feeds/271100205476256247/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://report5.blogspot.com/2012/10/using-graphicsmagick-to-set-background.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3755314711921649990/posts/default/271100205476256247'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3755314711921649990/posts/default/271100205476256247'/><link rel='alternate' type='text/html' href='http://report5.blogspot.com/2012/10/using-graphicsmagick-to-set-background.html' title='Using GraphicsMagick to Set the Background'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04046998319294818723</uri><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-3755314711921649990.post-3915012404410974841</id><published>2012-10-05T12:48:00.000-10:00</published><updated>2012-10-18T18:20:57.119-10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="administration"/><category scheme="http://www.blogger.com/atom/ns#" term="language"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="setup"/><category scheme="http://www.blogger.com/atom/ns#" term="unix"/><title type='text'>Setting the Locale on Linux</title><content type='html'>&lt;p&gt;A locale is a system setting that allows users to configure the operating system for their own language, date, currency, etc. on Linux. There are slightly different ways to set up locales on different Linux distributions. Here I write how I would normally set up locales on Linux.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;To set the system-wide default locale, I would append the LANG= variable to the Linux kernel. The kernel will happily accept the LANG= variable and pass it to the operating system. With &lt;em&gt;syslinux&lt;/em&gt;, I would have an entry in syslinux.cfg as follows.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;LABEL debian&lt;br /&gt;KERNEL vmlinuz-3.6.0&lt;br /&gt;INITRD /boot/initramfs.lzma&lt;br /&gt;APPEND LANG=en_US.UTF-8 TERM=vt100 root=/dev/sda9&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;On Debian, Ubuntu, Mint and MEPIS, the system-wide locale may be specified in /etc/environment or /etc/default/locale.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;LANG=C.UTF-8&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;To set your own locale different from the system-wide locale, just add a line to your .bashrc or .xsession:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;export LANG=zh_CN.UTF-8&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Generating locale-archive Again&lt;/h4&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;The number of locales available on the system may be incomplete in order to save disk space. To see which locales are available, run the following command:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;locale -a&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;If you want to add or remove locales, edit /etc/locale.gen. The following is a sample locale.gen.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;ar_SA.UTF-8 UTF-8&lt;br /&gt;bn_IN UTF-8&lt;br /&gt;de_DE.UTF-8 UTF-8&lt;br /&gt;en_US ISO-8859-1&lt;br /&gt;en_US.UTF-8 UTF-8&lt;br /&gt;es_MX.UTF-8 UTF-8&lt;br /&gt;fa_IR UTF-8&lt;br /&gt;fr_FR.UTF-8 UTF-8&lt;br /&gt;gu_IN UTF-8&lt;br /&gt;hi_IN UTF-8&lt;br /&gt;id_ID.UTF-8 UTF-8&lt;br /&gt;it_IT.UTF-8 UTF-8&lt;br /&gt;ja_JP.UTF-8 UTF-8&lt;br /&gt;kn_IN UTF-8&lt;br /&gt;ko_KR.UTF-8 UTF-8&lt;br /&gt;ml_IN UTF-8&lt;br /&gt;mr_IN UTF-8&lt;br /&gt;or_IN UTF-8&lt;br /&gt;pa_PK UTF-8&lt;br /&gt;pt_BR.UTF-8 UTF-8&lt;br /&gt;ru_RU.UTF-8 UTF-8&lt;br /&gt;ta_IN UTF-8&lt;br /&gt;te_IN UTF-8&lt;br /&gt;th_TH.UTF-8 UTF-8&lt;br /&gt;tr_TR.UTF-8 UTF-8&lt;br /&gt;vi_VN UTF-8&lt;br /&gt;zh_CN.UTF-8 UTF-8&lt;br /&gt;zh_TW.UTF-8 UTF-8&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;After changing the file &lt;em&gt;locale.gen&lt;/em&gt;, you need to run &lt;code&gt;locale-gen&lt;/code&gt; to regenerate the file /usr/lib/locale/locale-archive.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;locale-gen&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Enabling All Possible Locales&lt;/h4&gt;&lt;br /&gt;&lt;p&gt;If you have plenty disk space, then you can enable all locales supported by the current glibc implementation. The list of supported locales is at /usr/share/i18n/SUPPORTED. Just copy it to /etc/locale.gen and rebuild the locales. It will regenerate the file /usr/lib/locale/locale-archive to about 100MB.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;cp /usr/share/i18n/SUPPORTED /etc/locale.gen&lt;br /&gt;locale-gen&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Running Applications In Different Locales&lt;/h4&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Use the env command to run an application in a different locale. For example, to run pidgin in Chinese on an English desktop, I would issue:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;env LANG=zh_CN.UTF-8 pidgin&lt;/pre&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;a href=&quot;http://click.linksynergy.com/fs-bin/click?id=CCoBOfIP234&amp;offerid=145240.10000074&amp;subid=0&amp;type=4&quot;&gt;&lt;IMG border=&quot;0&quot;   alt=&quot;234X60&quot; src=&quot;http://ad.linksynergy.com/fs-bin/show?id=CCoBOfIP234&amp;bids=145240.10000074&amp;subid=0&amp;type=4&amp;gridnum=3&quot;/&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://report5.blogspot.com/feeds/3915012404410974841/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://report5.blogspot.com/2012/10/setting-locale-on-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3755314711921649990/posts/default/3915012404410974841'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3755314711921649990/posts/default/3915012404410974841'/><link rel='alternate' type='text/html' href='http://report5.blogspot.com/2012/10/setting-locale-on-linux.html' title='Setting the Locale on Linux'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04046998319294818723</uri><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-3755314711921649990.post-1523841368714277751</id><published>2012-10-04T15:27:00.000-10:00</published><updated>2012-10-18T18:20:57.101-10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="administration"/><category scheme="http://www.blogger.com/atom/ns#" term="backup"/><category scheme="http://www.blogger.com/atom/ns#" term="computer"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="technology"/><category scheme="http://www.blogger.com/atom/ns#" term="unix"/><title type='text'>Disk Cloning / Imaging over Network with SSH, Netcat, DD and XZ</title><content type='html'>&lt;p&gt;Today we have affordable, ample storage and faster bandwidth to facilitate &lt;em&gt;partition imaging&lt;/em&gt; and &lt;em&gt;disk cloning&lt;/em&gt; over network. Nowadays, it&#39;s common and feasible to take the image of a whole partition for various reasons. Compared to file-based backups using &lt;em&gt;tar&lt;/em&gt;, disk imaging provides the following advantages.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;The boot sector is preserved so that it&#39;s easy to make it bootable after the restore.&lt;br /&gt;&lt;li&gt;Information such as UUID and LABEL is presered, which helps identify the partition in booting and mounting.&lt;br /&gt;&lt;li&gt;Information such as ACL and XATTR is preserved, which helps restrict file access and secure the system.&lt;br /&gt;&lt;li&gt;Every bit in the unused sectors is preserved, which may assist in digital forensics to uncover deleted or hidden information.&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;There are commercial programs for disk imaging and backup (&lt;a href=&quot;http://www.symantec-norton.com/Ghost&quot;&gt;Norton Ghost&lt;/a&gt;, &lt;a href=&quot;http://www.acronis.com&quot;&gt;Acronis True Image&lt;/a&gt;). However, Linux users can use readily available tools to get things done. For disk cloning/imaging, we can use ssh, netcat, dd and xz.  Note that dd will fail on physically damaged disks. For such disks, use &lt;a href=&quot;http://www.gnu.org/software/ddrescue/ddrescue.html&quot;&gt;ddrescue&lt;/a&gt; instead.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;For security and compression, we are going to use ssh and xz in this tutorial. If you don&#39;t like xz, feel free to substitute xz with gzip, bzip2 or lzop. Also, netcat is used to stream the dd output over the network. On Debian and Ubuntu derivatives, you need the following packages.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;bzip2, gzip, lzop, lzma OR xz-utils&lt;br /&gt;&lt;li&gt;dd&lt;br /&gt;&lt;li&gt;netcat&lt;br /&gt;&lt;li&gt;ssh&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;We are making these assumptions in the following scenarios.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;Sending computer S&lt;br/&gt;&lt;br /&gt;This computer has IP address 192.168.1.1 and needs to back up partition /dev/sda1.&lt;br /&gt;&lt;li&gt;Sending Port&lt;br/&gt;&lt;br /&gt;We&#39;ll send using port 5525.&lt;br /&gt;&lt;li&gt;Receiving computer T&lt;br/&gt;&lt;br /&gt;This computer has IP address 192.168.1.2 and needs to restore partition /dev/sda2.&lt;br /&gt;&lt;li&gt;Receiving Port&lt;br/&gt;&lt;br /&gt;We&#39;ll receive at port 7749.&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Disk Cloning using dd, xz, netcat and ssh&lt;/h4&gt;&lt;br /&gt;&lt;p&gt;In this scenario, we will clone a disk partition, simultaneously sending an image of the source partition /dev/sda1 from computer S (192.168.1.1) and restoring it at /dev/sda2 on computer T (192.168.1.2). Make sure that the source partition is not mounted or is mounted read-only. Also, make sure that the target partition size is greater than or equal to the source partition size.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;br /&gt;&lt;li&gt;At the sending computer, compress the source partition /dev/sda1 with xz and set up netcat to send it at port 5525:&lt;br/&gt;&lt;br /&gt;&lt;pre&gt;dd if=/dev/sda1 bs=16M | xz | nc -l 5525&lt;/pre&gt;&lt;br /&gt;&lt;li&gt;At the receiving computer, set up a SSH tunnel to the sending computer (192.168.1.1):&lt;br/&gt;&lt;br /&gt;&lt;pre&gt;ssh -f -N -L 7749:127.0.0.1:5525 username@192.168.1.1&lt;/pre&gt;&lt;br /&gt;&lt;li&gt;At the receiving computer, type the following command to receive the partition image and restore it at /dev/sda2:&lt;br/&gt;&lt;br /&gt;&lt;pre&gt;nc 127.0.0.1 7749 | xz -d | dd of=/dev/sda2 bs=16M&lt;/pre&gt;&lt;br /&gt;&lt;/ol&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Alternatively, we could take the following steps to achieve the same thing. However, we start at the receiving computer.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;br /&gt;&lt;li&gt;At the receiving computer with the target partition /dev/sda2, type the following command to receive the partition image:&lt;br/&gt;&lt;br /&gt;&lt;pre&gt;nc -l 7749 | xz -d | dd of=/dev/sda2 bs=16M&lt;/pre&gt;&lt;br /&gt;&lt;li&gt;At the sending computer with the source partition /dev/sda1, set up a SSH tunnel to the receiving computer (192.168.1.2):&lt;br/&gt;&lt;br /&gt;&lt;pre&gt;ssh -f -N -L 5525:127.0.0.1:7749 username@192.168.1.2&lt;/pre&gt;&lt;br /&gt;&lt;li&gt;At the sending computer, type the following command to compress the source partition /dev/sda1 and transmit it over the SSH tunnel:&lt;br/&gt;&lt;br /&gt;&lt;pre&gt;dd if=/dev/sda1 bs=16M | xz | nc 127.0.0.1 5525&lt;/pre&gt;&lt;br /&gt;&lt;p&gt;Note that the transfer may take many hours for a large partition.&lt;/p&gt;&lt;br /&gt;&lt;/ol&gt;&lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Disk Imaging using dd, xz, netcat and ssh&lt;/h4&gt;&lt;br /&gt;&lt;p&gt;In this scenario, we will just send an image of the source partition /dev/sda1 to the receiving computer T (192.168.1.2) without restoring it. Make sure that the source partition is not mounted or is mounted read-only. A question remains whether to compress the image at the sending or receiving computer. The answer depends on which computer is more powerful. For this example, we&#39;ll compress at the sending computer (for network bandwidth reason).&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;br /&gt;&lt;li&gt;At the sending computer, compress the source partition /dev/sda1 with xz and stream it using netcat:&lt;br/&gt;&lt;br /&gt;&lt;pre&gt;dd if=/dev/sda1 bs=16M | xz | nc -l 5525&lt;/pre&gt;&lt;br /&gt;&lt;li&gt;At the receiving computer, set up a SSH tunnel to the sending computer (192.168.1.1):&lt;br/&gt;&lt;br /&gt;&lt;pre&gt;ssh -f -N -L 7749:127.0.0.1:5525 username@192.168.1.1&lt;/pre&gt;&lt;br /&gt;&lt;li&gt;At the receiving computer, type the following command to receive the file:&lt;br/&gt;&lt;br /&gt;&lt;pre&gt;nc 127.0.0.1 7749 &amp;gt; partimg.xz&lt;/pre&gt;&lt;br /&gt;&lt;/ol&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Alternatively, we could take the following steps to achieve the same thing.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;br /&gt;&lt;li&gt;At the receiving computer, set up netcat to listen at port 7749 and save the incoming data to a file partimg.xz.&lt;br/&gt;&lt;br /&gt;&lt;pre&gt;nc -l 7749 | dd of=partimg.xz bs=16M&lt;/pre&gt;&lt;br /&gt;&lt;li&gt;At the sending computer, establish a SSH tunnel to the receiving computer (192.168.1.2) first:&lt;br/&gt;&lt;br /&gt;&lt;pre&gt;ssh -f -N -L 5525:192.168.1.2:7749 username@192.168.1.2&lt;/pre&gt;&lt;br /&gt;&lt;li&gt;At the sending computer, type the following command to compress the source partition /dev/sda1 and transmit it over the SSH tunnel:&lt;br/&gt;&lt;br /&gt;&lt;pre&gt;dd if=/dev/sda1 bs=16M | xz | nc 127.0.0.1 5525&lt;/pre&gt;&lt;br /&gt;&lt;p&gt;Note that the transfer may take many hours for a large partiiton.&lt;/p&gt;&lt;br /&gt;&lt;/ol&gt;&lt;br /&gt;&lt;br /&gt;&lt;h3&gt;Alternative Simple Commands for Disk Cloning / Imaging&lt;/h3&gt;&lt;br /&gt;&lt;p&gt;I don&#39;t like these methods for some reason, but here I show the simpler methods where netcat is not needed. For disk cloning, type something like this:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;dd if=/dev/sda1 bs=16M | xz | ssh username@192.168.1.2 &quot;xz -d | dd of=/dev/sda2 bs=16M&quot;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Just to send an image file, run a command as follows:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;dd if=/dev/sda1 bs=16M | xz | ssh username@192.168.1.2 &quot;dd of=partimg.xz bs=16M&quot;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Also Read:&lt;/h4&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;&lt;a href=&quot;http://kemovitra.blogspot.com/2010/07/linux-using-dd-to-back-up-and-restore.html&quot;&gt;Linux: Using dd To Back Up Hard Drive Partitions&lt;/a&gt;.&lt;br /&gt;&lt;li&gt;&lt;a href=&quot;http://kemovitra.blogspot.com/2008/12/backing-up-hard-drive-partitions-in.html&quot;&gt;Backing up Hard Disk Partitions in Linux&lt;/a&gt;&lt;br /&gt;&lt;/ul&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;a href=&quot;http://click.linksynergy.com/fs-bin/click?id=CCoBOfIP234&amp;offerid=145240.10000074&amp;subid=0&amp;type=4&quot;&gt;&lt;IMG border=&quot;0&quot;   alt=&quot;234X60&quot; src=&quot;http://ad.linksynergy.com/fs-bin/show?id=CCoBOfIP234&amp;bids=145240.10000074&amp;subid=0&amp;type=4&amp;gridnum=3&quot;/&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://report5.blogspot.com/feeds/1523841368714277751/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://report5.blogspot.com/2012/10/disk-cloning-imaging-over-network-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3755314711921649990/posts/default/1523841368714277751'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3755314711921649990/posts/default/1523841368714277751'/><link rel='alternate' type='text/html' href='http://report5.blogspot.com/2012/10/disk-cloning-imaging-over-network-with.html' title='Disk Cloning / Imaging over Network with SSH, Netcat, DD and XZ'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04046998319294818723</uri><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-3755314711921649990.post-5885033903038754680</id><published>2012-10-01T00:33:00.000-10:00</published><updated>2012-10-18T18:20:57.130-10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bittorrent"/><category scheme="http://www.blogger.com/atom/ns#" term="checksum"/><category scheme="http://www.blogger.com/atom/ns#" term="download"/><category scheme="http://www.blogger.com/atom/ns#" term="hash"/><category scheme="http://www.blogger.com/atom/ns#" term="magnet"/><category scheme="http://www.blogger.com/atom/ns#" term="p2p"/><category scheme="http://www.blogger.com/atom/ns#" term="software"/><category scheme="http://www.blogger.com/atom/ns#" term="technology"/><category scheme="http://www.blogger.com/atom/ns#" term="windows"/><category scheme="http://www.blogger.com/atom/ns#" term="windows 8"/><title type='text'>Bittorrent Info Hash Values for Windows 8 ISO</title><content type='html'>&lt;p&gt;Windows 8 ISO files have the following BTIH hash values. Use them with &lt;a href=&quot;http://kemovitra.blogspot.com/2012/10/aria2-shell-script-and-batch-file.html&quot;&gt;my aria2 script&lt;/a&gt; to download Windows 8.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;br /&gt;&lt;li&gt;en_windows_8_x86_dvd_915417.iso&lt;br/&gt;&lt;br /&gt;C5D92B32277685436DEDE9957B80083D26062C03&lt;br /&gt;&lt;li&gt;en_windows_8_x64_dvd_915440.iso&lt;br/&gt;&lt;br /&gt;144C7E2B46103FF84F83A1E6A12D66B740F00CF6&lt;br /&gt;&lt;/ol&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;a href=&quot;http://click.linksynergy.com/fs-bin/click?id=CCoBOfIP234&amp;offerid=145240.10000074&amp;subid=0&amp;type=4&quot;&gt;&lt;IMG border=&quot;0&quot;   alt=&quot;234X60&quot; src=&quot;http://ad.linksynergy.com/fs-bin/show?id=CCoBOfIP234&amp;bids=145240.10000074&amp;subid=0&amp;type=4&amp;gridnum=3&quot;/&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://report5.blogspot.com/feeds/5885033903038754680/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://report5.blogspot.com/2012/10/bittorrent-info-hash-values-for-windows.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3755314711921649990/posts/default/5885033903038754680'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3755314711921649990/posts/default/5885033903038754680'/><link rel='alternate' type='text/html' href='http://report5.blogspot.com/2012/10/bittorrent-info-hash-values-for-windows.html' title='Bittorrent Info Hash Values for Windows 8 ISO'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04046998319294818723</uri><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-3755314711921649990.post-3595616520657603710</id><published>2012-09-30T22:37:00.000-10:00</published><updated>2012-10-18T18:20:57.114-10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="download"/><category scheme="http://www.blogger.com/atom/ns#" term="kernel"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><title type='text'>Download Linux Kernel 3.5.4 / 3.6.0</title><content type='html'>&lt;IFRAME SRC=&quot;http://ad.doubleclick.net/adi/N7433.148119.BLOGGEREN/B6534883.633;sz=200x200;ord=[timestamp]?;lid=41000000000342669;pid=549441;usg=AFHzDLuuQx-f9uoPAcrJGlWFJuOQ4ShrLw;adurl=http%253A%252F%252Fwww.kohls.com%252Fupgrade%252Fwebstore%252Fproduct_page.jsp%253FPRODUCT%25253C%25253Eprd_id%253D845524892561167%2526mr%253AtrackingCode%253DB36735FA-D87E-DF11-BC8B-0019B9C043EB%2526mr%253AreferralID%253DNA;pubid=575763;imgsrc=http%3A%2F%2Fmedia.kohls.com.edgesuite.net%2Fis%2Fimage%2Fkohls%2F549441%3Fwid%3D500%26hei%3D500%26op_sharpen%3D1;width=200;height=200&quot; WIDTH=200 HEIGHT=200 MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 FRAMEBORDER=0 SCROLLING=no BORDERCOLOR=&#39;#000000&#39; style=&#39;float: right&#39;&gt;&lt;/IFRAME&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;I am sharing my kernel builds for Linux 3.5.4 and 3.6.0. Hope it works for everyone.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;&lt;a href=&quot;https://docs.google.com/open?id=0B9TV-o5ulRtcUEhNNFhiYUQwMGM&quot;&gt;linux360-586mmx.zip&lt;/a&gt;&lt;br /&gt;&lt;li&gt;&lt;a href=&quot;https://docs.google.com/open?id=0B9TV-o5ulRtcNjRtbFBBMWgyR00&quot;&gt;linux354-586mmx.zip&lt;/a&gt;&lt;br /&gt;&lt;/ul&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;a href=&quot;http://click.linksynergy.com/fs-bin/click?id=CCoBOfIP234&amp;offerid=145240.10000074&amp;subid=0&amp;type=4&quot;&gt;&lt;IMG border=&quot;0&quot;   alt=&quot;234X60&quot; src=&quot;http://ad.linksynergy.com/fs-bin/show?id=CCoBOfIP234&amp;bids=145240.10000074&amp;subid=0&amp;type=4&amp;gridnum=3&quot;/&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://report5.blogspot.com/feeds/3595616520657603710/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://report5.blogspot.com/2012/09/download-linux-kernel-354-360.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3755314711921649990/posts/default/3595616520657603710'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3755314711921649990/posts/default/3595616520657603710'/><link rel='alternate' type='text/html' href='http://report5.blogspot.com/2012/09/download-linux-kernel-354-360.html' title='Download Linux Kernel 3.5.4 / 3.6.0'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04046998319294818723</uri><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-3755314711921649990.post-8148673777565695081</id><published>2012-09-30T13:24:00.000-10:00</published><updated>2012-10-18T18:20:57.153-10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="compile"/><category scheme="http://www.blogger.com/atom/ns#" term="driver"/><category scheme="http://www.blogger.com/atom/ns#" term="hardware"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="ndiswrapper"/><category scheme="http://www.blogger.com/atom/ns#" term="network"/><category scheme="http://www.blogger.com/atom/ns#" term="software"/><category scheme="http://www.blogger.com/atom/ns#" term="windows"/><title type='text'>To Compile ndiswrapper 1.58rc1 for Linux 3.5.4</title><content type='html'>&lt;p&gt;&lt;a href=&quot;http://sourceforge.net/apps/mediawiki/ndiswrapper/index.php&quot;&gt;ndiswrapper&lt;/a&gt; allows &lt;a href=&#39;http://gan.doubleclick.net/gan_click?lid=41000000028007181&amp;amp;pid=UBM9780470770191&amp;amp;adurl=http%3A%2F%2Fwww.cdsbooksdvds.com%2Fproduct.jhtm%3Fsku%3DUBM9780470770191&amp;amp;usg=AFHzDLslxOv061JCv7nUhfzO4gp7RUHmwQ&amp;amp;pubid=575763&#39; rel=&#39;nofollow&#39; title=&#39;Linux All-in-One for Dummies By Dulaney, Emmett (Google Affiliate Ad)&#39;&gt;Linux&lt;/a&gt; users to use Windows drivers for &lt;a href=&#39;http://gan.doubleclick.net/gan_click?lid=41000000024781945&amp;amp;pid=sku6654069&amp;amp;adurl=http%3A%2F%2Fwww.samsclub.com%2Fsams%2Fnetgear-n600-wireless-dual-band-usb-adapter%2Fprod6190037.ip%3Fpid%3D_DoubleClick_Affiliates%26ci_src%3D15781033%26ci_sku%3Dsku6654069&amp;amp;usg=AFHzDLvyaIZYWBJ_agj2s2Vz3IxyA95nPg&amp;amp;pubid=575763&#39; rel=&#39;nofollow&#39; title=&#39;Netgear N600 Wireless Dual Band USB Adapter - Networking (Google Affiliate Ad)&#39;&gt;PCI/USB network adapters&lt;/a&gt; on Linux. If you own a network device for which Linux support is still absent or premature, then you need to compile ndiswrapper yourself and install &lt;a href=&#39;http://gan.doubleclick.net/gan_click?lid=41000000024781945&amp;amp;pid=sku120405&amp;amp;adurl=http%3A%2F%2Fwww.samsclub.com%2Fsams%2Fwindows-7-home-premium-upgrade%2Fprod460533.ip%3Fpid%3D_DoubleClick_Affiliates%26ci_src%3D15781033%26ci_sku%3Dsku120405&amp;amp;usg=AFHzDLtgqyOfEJ_epwEGY3VIA-TMr62hAA&amp;amp;pubid=575763&#39; rel=&#39;nofollow&#39; title=&#39;Windows 7 Home Premium Upgrade - Last Chance Buys Computers &amp;amp; Software (Google Affiliate Ad)&#39;&gt;Windows&lt;/a&gt; driver for your network device. Fortunately, today&#39;s Linux supports most network devices out-of-box, so most distributions don&#39;t bother to include ndiswrapper. However, I am compiling ndiswrapper believing that Windows NDIS drivers would outperform native &lt;a href=&#39;http://gan.doubleclick.net/gan_click?lid=41000000028007181&amp;amp;pid=UBM9780132396554&amp;amp;adurl=http%3A%2F%2Fwww.cdsbooksdvds.com%2Fproduct.jhtm%3Fsku%3DUBM9780132396554&amp;amp;usg=AFHzDLsa3csRjBMvfbLnf8Z9dydpZi_DdA&amp;amp;pubid=575763&#39; rel=&#39;nofollow&#39; title=&#39;Essential Linux Device Drivers By Venkateswaran, Sreekrishnan (Google Affiliate Ad)&#39;&gt;Linux drivers&lt;/a&gt;.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;IFRAME SRC=&quot;http://ad.doubleclick.net/adi/N7433.148119.BLOGGEREN/B6533661.486;sz=320x320;ord=[timestamp]?;lid=41000000026530730;pid=61456;usg=AFHzDLsNnVU4WO2QMh0Hf7rK8XlZdPpYpg;adurl=http%253A%252F%252Fwww.abt.com%252Fproduct%252F61456%252FSamsung-WIS12ABGNX.html;pubid=575763;imgsrc=http%3A%2F%2Fcontent.abt.com%2Fmedia%2Fimages%2Fproducts%2FBDP_Images%2Fbig_WIS12ABGNX.jpg;width=320;height=196&quot; WIDTH=320 HEIGHT=240 MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 FRAMEBORDER=0 SCROLLING=no BORDERCOLOR=&#39;#000000&#39; style=&#39;float: right&#39;&gt;&lt;/IFRAME&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;To my surprise, building the latest version of ndiswrapper (1.58rc1) did not require any patch. After &lt;a href=&quot;http://kemovitra.blogspot.com/2012/09/to-compile-linux-kernel-353.html&quot;&gt;compiling Linux 3.5.4&lt;/a&gt;, I downloaded the ndiswrapper source from the &lt;a href=&quot;http://sourceforge.net/projects/ndiswrapper/files/&quot;&gt;sourceforge site&lt;/a&gt;. I chose the &lt;a href=&quot;http://sourceforge.net/projects/ndiswrapper/files/testing/&quot;&gt;testing&lt;/a&gt; version because I thought it would work better with Linux 3.5.x. I unpacked the source.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;tar xzvf ndiswrapper-1.58rc1.tar.gz&lt;br /&gt;cd ndiswrapper-1.58rc1&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;I typed the following commands to compile and install ndiswrapper.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;KVERS=3.5.4 make uninstall&lt;br /&gt;KVERS=3.5.4 make&lt;br /&gt;KVERS=3.5.4 make install&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Then, I generated modules.* files again.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;depmod -e -m -F /boot/System.map-3.5.4 3.5.4&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;The following files were installed by ndiswrapper.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;/lib/modules/3.5.4/misc/ndiswrapper.ko&lt;br /&gt;/sbin/loadndisdriver&lt;br /&gt;/usr/sbin/ndiswrapper&lt;br /&gt;/usr/sbin/ndiswrapper-buginfo&lt;br /&gt;/usr/share/man/man8/loadndisdriver.8&lt;br /&gt;/usr/share/man/man8/ndiswrapper.8&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Also read:&lt;/h4&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;&lt;a href=&quot;http://kemovitra.blogspot.com/2009/09/linux-installing-windows-xpvista7.html&quot;&gt;Linux: Installing Windows Vista/7 Wireless Driver for use with ndiswrapper&lt;/a&gt;&lt;br /&gt;&lt;li&gt;&lt;a href=&quot;http://kemovitra.blogspot.com/2009/12/linux-to-compile-wpasupplicant-on.html&quot;&gt;Linux: To Compile wpa_supplicant on Debian 3.1 Sarge&lt;/a&gt;&lt;br /&gt;&lt;/ul&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;a href=&quot;http://click.linksynergy.com/fs-bin/click?id=CCoBOfIP234&amp;offerid=145240.10000074&amp;subid=0&amp;type=4&quot;&gt;&lt;IMG border=&quot;0&quot;   alt=&quot;234X60&quot; src=&quot;http://ad.linksynergy.com/fs-bin/show?id=CCoBOfIP234&amp;bids=145240.10000074&amp;subid=0&amp;type=4&amp;gridnum=3&quot;/&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://report5.blogspot.com/feeds/8148673777565695081/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://report5.blogspot.com/2012/09/to-compile-ndiswrapper-158rc1-for-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3755314711921649990/posts/default/8148673777565695081'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3755314711921649990/posts/default/8148673777565695081'/><link rel='alternate' type='text/html' href='http://report5.blogspot.com/2012/09/to-compile-ndiswrapper-158rc1-for-linux.html' title='To Compile ndiswrapper 1.58rc1 for Linux 3.5.4'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04046998319294818723</uri><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-3755314711921649990.post-3923327851018884099</id><published>2012-09-30T01:33:00.000-10:00</published><updated>2012-10-18T18:20:57.121-10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="asian"/><category scheme="http://www.blogger.com/atom/ns#" term="film"/><category scheme="http://www.blogger.com/atom/ns#" term="Korean"/><category scheme="http://www.blogger.com/atom/ns#" term="movie"/><title type='text'>Happiness the Movie 2007</title><content type='html'>&lt;p&gt;&lt;em&gt;Happiness&lt;/em&gt; is a Korean movie that makes you think seriously about the true meaning of happiness in life. It tells a story of two terminal patients who met at a remote nursing home and fell in love with each other. However, the guy leaves the girl for a careless, material life in the city. In the end, he comes back to the girl only to find her dying and regrets having left her. The movie tries to teach us that true happiness is about being close to someone you care about no matter how sick or poor he/she is.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;iframe width=&quot;560&quot; height=&quot;315&quot; src=&quot;http://www.youtube.com/embed/khgXONJ6MNc&quot; frameborder=&quot;0&quot; allowfullscreen&gt;&lt;/iframe&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;a href=&quot;http://click.linksynergy.com/fs-bin/click?id=CCoBOfIP234&amp;offerid=145240.10000074&amp;subid=0&amp;type=4&quot;&gt;&lt;IMG border=&quot;0&quot;   alt=&quot;234X60&quot; src=&quot;http://ad.linksynergy.com/fs-bin/show?id=CCoBOfIP234&amp;bids=145240.10000074&amp;subid=0&amp;type=4&amp;gridnum=3&quot;/&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://report5.blogspot.com/feeds/3923327851018884099/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://report5.blogspot.com/2012/09/happiness-movie-2007.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3755314711921649990/posts/default/3923327851018884099'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3755314711921649990/posts/default/3923327851018884099'/><link rel='alternate' type='text/html' href='http://report5.blogspot.com/2012/09/happiness-movie-2007.html' title='Happiness the Movie 2007'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04046998319294818723</uri><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><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/khgXONJ6MNc/default.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3755314711921649990.post-5497344231495611981</id><published>2012-09-29T22:18:00.000-10:00</published><updated>2012-10-18T18:20:57.128-10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bootstrap"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="technology"/><title type='text'>My All-Purpose Init Script for initrd / initramfs Boot Images</title><content type='html'>&lt;p&gt;Here I post my init script. It is used in my initrd/initramfs boot images for the following purposes.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;Boot from a live CD / DVD&lt;br /&gt;&lt;li&gt;Boot from a read-only filesystem image, compressed in SquashFS&lt;br /&gt;&lt;li&gt;Copy the filesystem image to a RAM disk and run Linux entirely on memory&lt;br /&gt;&lt;li&gt;Boot Linux from a USB flash drive&lt;br /&gt;&lt;li&gt;Boot Linux from a local disk partition&lt;br /&gt;&lt;li&gt;Run a rescue shell without booting Linux &lt;br /&gt;&lt;/ul&gt; &lt;br /&gt;&lt;br /&gt;&lt;p&gt;I have yet to implement network booting. Right now it is good enough for my current needs. It takes the following boot parameters.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;root=&lt;br/&gt;&lt;br /&gt;Specifies the root partition to boot Linux from. For example, /dev/sda2.&lt;br /&gt;&lt;li&gt;label=&lt;br/&gt;&lt;br /&gt;Specifies the label of the device to boot from. For example, label=DEBIAN.&lt;br /&gt;&lt;li&gt;uuid=&lt;br/&gt;&lt;br /&gt;Specifies the UUID of the device to boot from. For example, uuid=dcfd6a0a-2a0f-4b3d-8a1a-5e7d642ebfbd&lt;br /&gt;&lt;li&gt;boot=&lt;br/&gt;&lt;br /&gt;Can be cdrom, loop, ram, usb or ata.&lt;br /&gt;&lt;li&gt;vmode=&lt;br/&gt;&lt;br /&gt;Specifies the screen resolution of the framebuffer video. For example, vmode=640x480&lt;br /&gt;&lt;li&gt;single&lt;/br/&gt;&lt;br /&gt;Boot into the single-user mode.&lt;br /&gt;&lt;li&gt;nox&lt;br/&gt;&lt;br /&gt;Boot into the console mode in runlevel 2&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;#!/bin/dash&lt;br /&gt;&lt;br /&gt;# Define a function to parse kernel command line options.&lt;br /&gt;get_opt() {&lt;br /&gt;  echo $@ | cut -d &quot;=&quot; -f 2&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;# Define a function to load drivers.&lt;br /&gt;loadmod() {&lt;br /&gt;  for i in $@ ; do&lt;br /&gt;    for j in $(grep $i /tmp/pcimodules.txt); do&lt;br /&gt;      modprobe $j&lt;br /&gt;    done&lt;br /&gt;  done&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;# Define a function to guess the partition type.&lt;br /&gt;gpart() {&lt;br /&gt;  for i in $(blkid | grep $1); do&lt;br /&gt;    case $i in&lt;br /&gt;      *\=*)&lt;br /&gt;        eval $i&lt;br /&gt;        ;;&lt;br /&gt;      *)&lt;br /&gt;        true&lt;br /&gt;        ;;&lt;br /&gt;    esac&lt;br /&gt;  done&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;# Define a function for mounting the root partition.&lt;br /&gt;mountr() {&lt;br /&gt;  if [ $uuid ]; then&lt;br /&gt;    if [ $# = 2 ]; then&lt;br /&gt;      mount -r -U $uuid $2&lt;br /&gt;    elif [ $# = 1 ]; then&lt;br /&gt;      mount -r -U $uuid $1&lt;br /&gt;    else mount -r -U $uuid /mnt&lt;br /&gt;    fi&lt;br /&gt;  elif [ $label ]; then&lt;br /&gt;    if [ $# = 2 ]; then&lt;br /&gt;      mount -r -L $label $2&lt;br /&gt;    elif [ $# = 1 ]; then&lt;br /&gt;      mount -r -L $label $1&lt;br /&gt;    else mount -r -L $label /mnt&lt;br /&gt;    fi&lt;br /&gt;  else&lt;br /&gt;    gpart $1&lt;br /&gt;    case $TYPE in&lt;br /&gt;      ext*)&lt;br /&gt;        e2fsck -p $1&lt;br /&gt;        [ $# = 2 ] &amp;&amp; mount $1 $2 || mount $1 /mnt&lt;br /&gt;        ;;&lt;br /&gt;      jfs)&lt;br /&gt;        jfs_fsck $1&lt;br /&gt;        if [ $# = 2 ]; then&lt;br /&gt;          mount -t jfs -o ro,iocharset=utf8 $1 $2&lt;br /&gt;        else mount -t jfs -o ro,iocharset=utf8 $1 /mnt&lt;br /&gt;        fi&lt;br /&gt;        ;;&lt;br /&gt;      vfat)&lt;br /&gt;        if [ $# = 2 ]; then&lt;br /&gt;          mount -t vfat -o ro,gid=100,dmask=2,fmask=113 $1 $2&lt;br /&gt;        else mount -t vfat -o ro,gid=100,dmask=2,fmask=113 $1 /mnt&lt;br /&gt;        fi&lt;br /&gt;        ;;&lt;br /&gt;      *)&lt;br /&gt;        [ $# = 2 ] &amp;&amp; mount -r $1 $2 || mount -r $1 /mnt&lt;br /&gt;        ;;&lt;br /&gt;    esac&lt;br /&gt;  fi&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;# Create a union filesystem&lt;br /&gt;union() {&lt;br /&gt;  mount -t tmpfs none /opt/tmp&lt;br /&gt;  modinfo unionfs &gt; /dev/null 2&gt;&amp;1 &amp;&amp;&lt;br /&gt;  mount -t unionfs -o dirs=/opt/tmp=rw:/opt=ro none /mnt ||&lt;br /&gt;  ( mkdir /opt/tmp/.change&lt;br /&gt;    modprobe fuse&lt;br /&gt;    unionfs-fuse -o allow_other,use_ino,suid,dev,nonempty,kernel_cache \&lt;br /&gt;     -o cow,chroot=/opt,max_files=32768 /tmp/.change=RW:/=RO /mnt )&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;# Mount proc and sysfs.&lt;br /&gt;mount -t proc none /proc&lt;br /&gt;mount -t sysfs none /sys&lt;br /&gt;&lt;br /&gt;# Find the available PCI hardware&lt;br /&gt;mount -t tmpfs none /tmp&lt;br /&gt;pcimodules &gt; /tmp/pcimodules.txt&lt;br /&gt;&lt;br /&gt;# Populate /dev (Needs kernel &gt;= 2.6.32)&lt;br /&gt;mount -t devtmpfs none /dev&lt;br /&gt;mkdir -m 755 /dev/pts&lt;br /&gt;mount -t devpts -o gid=5,mode=620 none /dev/pts&lt;br /&gt;&lt;br /&gt;# Set default values&lt;br /&gt;boot=ata&lt;br /&gt;root=/dev/sda6&lt;br /&gt;&lt;br /&gt;# Find the root=, label=, uuid= and boot= values on kernel command line.&lt;br /&gt;for i in $(cat /proc/cmdline); do&lt;br /&gt;  case $i in&lt;br /&gt;    root\=*)&lt;br /&gt;        root=$(get_opt $i)&lt;br /&gt;        case $root in&lt;br /&gt;          /dev/cdr* | /dev/dvd* | /dev/sr* | /dev/scd*)&lt;br /&gt;            boot=cdrom&lt;br /&gt;            ;;&lt;br /&gt;          0x200)&lt;br /&gt;            root=/dev/fd0&lt;br /&gt;            ;;&lt;br /&gt;        esac&lt;br /&gt;        ;;&lt;br /&gt;    label\=* | uuid\=* | boot\=* | vmode\=* )&lt;br /&gt;        eval $i&lt;br /&gt;        ;;&lt;br /&gt;    single)&lt;br /&gt;        RUNLEVEL=single&lt;br /&gt;        ;;&lt;br /&gt;    nox)&lt;br /&gt;        RUNLEVEL=2&lt;br /&gt;        ;;&lt;br /&gt;  esac&lt;br /&gt;done&lt;br /&gt;&lt;br /&gt;# Activate framebuffer display devices.&lt;br /&gt;if [ $vmode ]; then&lt;br /&gt;  if [ $boot = cdrom ]; then&lt;br /&gt;    modprobe uvesafb scroll=ywrap mode_option=$vmode-16&lt;br /&gt;  else for i in $(grep fb /tmp/pcimodules.txt); do&lt;br /&gt;    case $i in&lt;br /&gt;      atyfb)&lt;br /&gt;        modprobe $i mode=$vmode-16&lt;br /&gt;        ;;&lt;br /&gt;      nvidiafb | rivafb)&lt;br /&gt;        modprobe nvidiafb mode_option=$vmode bpp=16 hwcur=1&lt;br /&gt;        ;;&lt;br /&gt;      radeonfb | savagefb)&lt;br /&gt;        modprobe $i mode_option=$vmode-16&lt;br /&gt;        ;;&lt;br /&gt;      sisfb)&lt;br /&gt;        modprobe $i mode=$vmodex16 mem=12288 font=SUN12x22&lt;br /&gt;        ;;&lt;br /&gt;      viafb | vt8623fb)&lt;br /&gt;        modprobe viafb viafb_mode=$vmode viafb_bpp=16&lt;br /&gt;        ;;&lt;br /&gt;      *)&lt;br /&gt;        modprobe $i&lt;br /&gt;        ;;&lt;br /&gt;    esac&lt;br /&gt;  done&lt;br /&gt;    if grep -q i915 /tmp/pcimodules.txt; then true&lt;br /&gt;    else [ -c /dev/fb0 ] || modprobe uvesafb scroll=ywrap mode_option=$vmode-16&lt;br /&gt;    fi&lt;br /&gt;  fi&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;case $boot in&lt;br /&gt;    cdrom)&lt;br /&gt;        # Boot Linux from a live CD.&lt;br /&gt;        loadmod ata_ ahci pdc_adma ^.hci-hcd&lt;br /&gt;        modprobe usb-storage &amp;&amp;&lt;br /&gt;        modprobe sr_mod &amp;&amp;&lt;br /&gt;        sleep 7&lt;br /&gt;        modprobe isofs&lt;br /&gt;        mount -t iso9660 /dev/sr0 /media&lt;br /&gt;        [ -d /media/isolinux -o -d /media/boot/isolinux ] || &lt;br /&gt;          mount -t iso9660 /dev/sr1 /media&lt;br /&gt;        if [ -f /media/*.[Ss][Qq]* ]; then&lt;br /&gt;          SQF=$(ls -t /media/*.[Ss][Qq]* | head -n 1)&lt;br /&gt;          if [ $root = /dev/ram ]; then &lt;br /&gt;               echo &quot;Please wait until the RAM disk is ready.&quot;&lt;br /&gt;               dd if=$SQF of=/dev/ram1 bs=2048 &amp;&amp;&lt;br /&gt;               mount -t squashfs /dev/ram1 /opt&lt;br /&gt;          else modprobe loop&lt;br /&gt;               mount -t squashfs -o loop $SQF /opt&lt;br /&gt;          fi&lt;br /&gt;        else&lt;br /&gt;          mount --move /media /opt&lt;br /&gt;        fi&lt;br /&gt;        union&lt;br /&gt;        ;;&lt;br /&gt;    loop)&lt;br /&gt;        # Boot Linux from an image file.&lt;br /&gt;        loadmod ata_ ahci pdc_adma ^.hci-hcd&lt;br /&gt;        modprobe usb-storage &amp;&amp;&lt;br /&gt;        modprobe sd_mod &amp;&amp;&lt;br /&gt;        sleep 7&lt;br /&gt;        mountr $root /media&lt;br /&gt;        modprobe loop&lt;br /&gt;        if [ -f /media/*.[Ss][Qq]* ]; then&lt;br /&gt;          SQF=$(ls -t /media/*.[Ss][Qq]* | head -n 1)&lt;br /&gt;          mount -t squashfs -o loop $SQF /opt&lt;br /&gt;        elif [ -f /media/*.[Ii][Ss][Oo] ]; then&lt;br /&gt;          ISO=$(ls -t /media/*.[Ii][Ss][Oo] | head -n 1)&lt;br /&gt;          modprobe isofs&lt;br /&gt;          mount -t iso9660 -o loop $ISO /opt&lt;br /&gt;        fi&lt;br /&gt;        union&lt;br /&gt;        ;;&lt;br /&gt;    ram)&lt;br /&gt;        # Boot Linux from ramdisk.&lt;br /&gt;        loadmod ata_ ahci pdc_adma ^.hci-hcd&lt;br /&gt;        modprobe usb-storage &amp;&amp;&lt;br /&gt;        modprobe sd_mod &amp;&amp;&lt;br /&gt;        sleep 7&lt;br /&gt;        mountr $root /media&lt;br /&gt;        echo &quot;Please wait until the RAM disk is ready.&quot;&lt;br /&gt;        if [ -f /media/*.[Ss][Qq]* ]; then&lt;br /&gt;          SQF=$(ls -t /media/*.[Ss][Qq]* | head -n 1)&lt;br /&gt;          dd if=$SQF of=/dev/ram1 &amp;&amp;&lt;br /&gt;          mount -t squashfs /dev/ram1 /opt&lt;br /&gt;        elif [ -f /media/*.[Ii][Ss][Oo] ]; then&lt;br /&gt;          ISO=$(ls -t /media/*.[Ii][Ss][Oo] | head -n 1)&lt;br /&gt;          dd if=$ISO of=/dev/ram1 bs=2048 &amp;&amp;&lt;br /&gt;          modprobe isofs&lt;br /&gt;          mount -t iso9660 /dev/ram1 /opt&lt;br /&gt;        fi&lt;br /&gt;        union&lt;br /&gt;        ;;&lt;br /&gt;    usb*)&lt;br /&gt;        # Boot Linux from a USB drive.&lt;br /&gt;        loadmod ^.hci-hcd&lt;br /&gt;        modprobe usb-storage &amp;&amp;&lt;br /&gt;        modprobe sd_mod &amp;&amp;&lt;br /&gt;        sleep 7&lt;br /&gt;        mountr $root&lt;br /&gt;        ;;&lt;br /&gt;    ata*)&lt;br /&gt;        loadmod ata_ ahci pdc_adma &amp;&amp;&lt;br /&gt;        modprobe sd_mod &amp;&amp;&lt;br /&gt;        mountr $root&lt;br /&gt;        ;;&lt;br /&gt;esac&lt;br /&gt;&lt;br /&gt;# Make sure that init exists and is executable.&lt;br /&gt;if [ -x /mnt/sbin/init ]; then&lt;br /&gt;  mount --move /dev /mnt/dev&lt;br /&gt;  mount --move /proc /mnt/proc&lt;br /&gt;  mount --move /sys /mnt/sys&lt;br /&gt;  umount /tmp&lt;br /&gt;&lt;br /&gt;# Start init from the root filesystem.&lt;br /&gt;  cd /mnt&lt;br /&gt;  [ -f /media/updates.zip ] &amp;&amp; unzip -o /media/updates.zip&lt;br /&gt;  case $boot in&lt;br /&gt;    cdrom)&lt;br /&gt;      [ $root = /dev/ram ] &amp;&amp; umount /media&lt;br /&gt;      [ $RUNLEVEL ] || RUNLEVEL=3&lt;br /&gt;      ;;&lt;br /&gt;    loop | ram)&lt;br /&gt;      umount /media&lt;br /&gt;      [ $RUNLEVEL ] || RUNLEVEL=3&lt;br /&gt;      ;;&lt;br /&gt;    *)&lt;br /&gt;      [ $RUNLEVEL ] || RUNLEVEL=5&lt;br /&gt;      ;;&lt;br /&gt;  esac&lt;br /&gt;  [ -d initrd ] &amp;&amp; pivot_root . initrd&lt;br /&gt;  exec chroot . /sbin/init $RUNLEVEL&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;# Start a shell as a last resort.&lt;br /&gt;echo &quot;Error booting from the root filesystem. Starting a shell.&quot;&lt;br /&gt;exec /bin/dash&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;The following are examples of boot parameters that can be used with my init script.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;Boot Linux from the local hard drive partition /dev/sda8&lt;br/&gt;&lt;br /&gt;&lt;pre&gt;boot=ata root=/dev/sda8&lt;/pre&gt;&lt;br /&gt;&lt;li&gt;Boot Linux from the latest squashfs file (*.sq*) on /dev/sda1&lt;br/&gt;&lt;br /&gt;&lt;pre&gt;boot=loop root=/dev/sda1&lt;/pre&gt;&lt;br /&gt;&lt;li&gt;Boot Linux from the CD-ROM with 1024x768 video resolution&lt;br/&gt;&lt;br /&gt;&lt;pre&gt;boot=cdrom vmode=1024x768&lt;/pre&gt;&lt;br /&gt;&lt;li&gt;Copy the squashfs image from CD-ROM into memory and run Linux on memory&lt;/br&gt;&lt;br /&gt;&lt;pre&gt;boot=cdrom root=/dev/ram ramdisk_size=573440 vmode=800x600&lt;/pre&gt;&lt;br /&gt;&lt;li&gt;Boot Linux from the second partition of a USB drive&lt;br/&gt;&lt;br /&gt;&lt;pre&gt;boot=usb root=/dev/sda2&lt;/pre&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Also read:&lt;/h4&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;&lt;a href=&quot;http://kemovitra.blogspot.com/2012/08/how-to-create-initramfs-images-to-boot.html&quot;&gt;Manually Creating initrd / initramfs to Boot Linux&lt;/a&gt;&lt;br /&gt;&lt;li&gt;&lt;a href=&quot;http://kemovitra.blogspot.com/2012/08/to-create-live-linux-cddvd.html&quot;&gt;To Create a Live Linux CD/DVD&lt;/a&gt;&lt;br /&gt;&lt;li&gt;&lt;a href=&quot;http://kemovitra.blogspot.com/2012/09/using-unionfsfuse-on-debianubuntu-linux.html&quot;&gt;Using UnionfsFuse on Debian/Ubuntu Linux&lt;/a&gt;&lt;br /&gt;&lt;/ul&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;a href=&quot;http://click.linksynergy.com/fs-bin/click?id=CCoBOfIP234&amp;offerid=145240.10000074&amp;subid=0&amp;type=4&quot;&gt;&lt;IMG border=&quot;0&quot;   alt=&quot;234X60&quot; src=&quot;http://ad.linksynergy.com/fs-bin/show?id=CCoBOfIP234&amp;bids=145240.10000074&amp;subid=0&amp;type=4&amp;gridnum=3&quot;/&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://report5.blogspot.com/feeds/5497344231495611981/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://report5.blogspot.com/2012/09/my-all-purpose-init-script-for-initrd.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3755314711921649990/posts/default/5497344231495611981'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3755314711921649990/posts/default/5497344231495611981'/><link rel='alternate' type='text/html' href='http://report5.blogspot.com/2012/09/my-all-purpose-init-script-for-initrd.html' title='My All-Purpose Init Script for initrd / initramfs Boot Images'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04046998319294818723</uri><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-3755314711921649990.post-5149875171757898534</id><published>2012-09-26T22:29:00.000-10:00</published><updated>2012-10-18T18:20:57.127-10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bootstrap"/><category scheme="http://www.blogger.com/atom/ns#" term="guide"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="unionfs"/><title type='text'>Using UnionfsFuse on Debian/Ubuntu Linux</title><content type='html'>&lt;p&gt;&lt;a href=&quot;http://podgorny.cz/moin/UnionFsFuse&quot;&gt;Unionfs-fuse&lt;/a&gt; is a user-space implementation of unionfs that makes it possible to run Linux over a read-only medium, such as CD-ROM. &lt;em&gt;Unionfs-fuse&lt;/em&gt; is a convenient alternative to kernel implementations (&lt;a href=&quot;http://unionfs.filesystems.org/&quot;&gt;unionfs&lt;/a&gt;, &lt;a href=&quot;http://aufs.sourceforge.net/&quot;&gt;aufs&lt;/a&gt; and overlayfs), so users don&#39;t have to patch the kernel in order to try unionfs. There are many possible uses of unionfs:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;Create a live CD&lt;br /&gt;&lt;li&gt;Run Linux from a read-only filesystem image, such as a squashfs file&lt;br /&gt;&lt;li&gt;Freeze an existing Linux system and save all changes in the memory&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Unionfs achieves all this by merging a read-only filesystem and a writeable filesystem into a single virtual filesystem and mount it at a certain mount point. Let&#39;s try and apply unionfs-fuse to the third situation above. Basically, we need to create an initramfs file containing unionfs-fuse and a custom init script. The basic procedure is like this:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;br /&gt;&lt;li&gt;Load kernel drivers necessary to access the underlying storage device&lt;br /&gt;&lt;li&gt;Mount the read-only filesystem image at /opt &lt;br /&gt;&lt;li&gt;Mount tmpfs at /opt/tmp and create a directory /opt/tmp/.change&lt;br /&gt;&lt;li&gt;Use unionfs-fuse to merge the two and mount it at /mnt&lt;br /&gt;&lt;li&gt;Use chroot and start /sbin/init to boot the new unionfs filesystem&lt;br /&gt;&lt;/ol&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;To carry about the above steps, an init script might look like this:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;#!/bin/dash&lt;br /&gt;# Use the small but functional dash to process this script&lt;br /&gt;&lt;br /&gt;# Mount /proc, /sys, /dev and /dev/pts just in case&lt;br /&gt;mount -t proc none /proc&lt;br /&gt;mount -t sysfs none /sys&lt;br /&gt;mount -t devtmpfs none /dev&lt;br /&gt;mkdir -m 755 /dev/pts&lt;br /&gt;mount -t devpts -o gid=5,mode=620 none /dev/pts&lt;br /&gt;&lt;br /&gt;# Write commands here to load modules necessary to access a hard drive&lt;br /&gt;modprobe pata_via&lt;br /&gt;modprobe sd_mod&lt;br /&gt;&lt;br /&gt;# Mount the Linux filesystem read-only at /opt&lt;br /&gt;mount -r /dev/sda6 /opt&lt;br /&gt;&lt;br /&gt;# Mount tmpfs at /opt/tmp&lt;br /&gt;mount -t tmpfs none /opt/tmp&lt;br /&gt;mkdir /opt/tmp/.change&lt;br /&gt;&lt;br /&gt;# Create a unionfs mount at /mnt&lt;br /&gt;modprobe fuse&lt;br /&gt;unionfs-fuse -o allow_other,use_ino,suid,dev,nonempty,kernel_cache \&lt;br /&gt;   -o cow,chroot=/opt,max_files=32768 /tmp/.change=RW:/=RO /mnt&lt;br /&gt;&lt;br /&gt;# Make sure that init exists and is executable&lt;br /&gt;if [ -x /mnt/sbin/init ]; then&lt;br /&gt;  mount --move /dev /mnt/dev&lt;br /&gt;  mount --move /proc /mnt/proc&lt;br /&gt;  mount --move /sys /mnt/sys&lt;br /&gt;&lt;br /&gt;# Start init from the root filesystem with runlevel 5.&lt;br /&gt;  exec chroot /mnt /sbin/init 5&lt;br /&gt;fi&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;The computer will boot into a virtual unionfs, consisting of writable tmpfs on top of read-only root filesystem. Make sure to modify /etc/rc.local so that it contains the following snippet of code.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;for i in `ps ax | grep unionfs | grep -v grep | awk &#39;{print $1}&#39;`; do&lt;br /&gt;  echo $i &amp;gt; /var/run/sendsigs.omit.d/unionfs.$i;&lt;br /&gt;done&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;This prevents Linux from killing unionfs-fuse during shutdown so the system will properly shut down.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Related Posts&lt;/h4&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://kemovitra.blogspot.com/2012/08/how-to-create-initramfs-images-to-boot.html&quot;&gt;Manually Creating initrd / initramfs to Boot Linux &lt;/a&gt;&lt;/ul&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;a href=&quot;http://click.linksynergy.com/fs-bin/click?id=CCoBOfIP234&amp;offerid=145240.10000074&amp;subid=0&amp;type=4&quot;&gt;&lt;IMG border=&quot;0&quot;   alt=&quot;234X60&quot; src=&quot;http://ad.linksynergy.com/fs-bin/show?id=CCoBOfIP234&amp;bids=145240.10000074&amp;subid=0&amp;type=4&amp;gridnum=3&quot;/&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://report5.blogspot.com/feeds/5149875171757898534/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://report5.blogspot.com/2012/09/using-unionfsfuse-on-debianubuntu-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3755314711921649990/posts/default/5149875171757898534'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3755314711921649990/posts/default/5149875171757898534'/><link rel='alternate' type='text/html' href='http://report5.blogspot.com/2012/09/using-unionfsfuse-on-debianubuntu-linux.html' title='Using UnionfsFuse on Debian/Ubuntu Linux'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04046998319294818723</uri><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-3755314711921649990.post-8878535819488629015</id><published>2012-09-26T13:22:00.000-10:00</published><updated>2012-10-18T18:20:57.160-10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bittorrent"/><category scheme="http://www.blogger.com/atom/ns#" term="cygwin"/><category scheme="http://www.blogger.com/atom/ns#" term="download"/><category scheme="http://www.blogger.com/atom/ns#" term="open-source"/><category scheme="http://www.blogger.com/atom/ns#" term="software"/><title type='text'>To Build Transmission-Daemon for Windows</title><content type='html'>&lt;img src=&quot;http://farm9.staticflickr.com/8319/8028156029_579fcca959_q_d.jpg&quot; alt=&quot;transmission-bittorrent icon&quot; style=&quot;float: right&quot; /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href=&quot;http://www.transmissionbt.com/&quot;&gt;Transmission&lt;/a&gt; is a free bittorrent application available on Linux. It is a pretty neat tool compared to other bittorrent software. It is possible to compile and use &lt;i&gt;Transmission&lt;/i&gt; on Windows, thanks to Cygwin. First, install Cygwin using the Cygwin installer(&lt;a href=&quot;http://cygwin.com/setup.exe&quot;&gt;setup.exe&lt;/a&gt;). I set the Root directory to &lt;code&gt;C:\Cygwin&lt;/code&gt; and chose to install the following packages in addition to base packages.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;bison&lt;br /&gt;&lt;li&gt;gettext-devel&lt;br /&gt;&lt;li&gt;libtool&lt;br /&gt;&lt;li&gt;make&lt;br /&gt;&lt;li&gt;binutils&lt;br /&gt;&lt;li&gt;gcc4-g++&lt;br /&gt;&lt;li&gt;patch&lt;br /&gt;&lt;li&gt;pkg-config&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Compile zlib.&lt;/p&gt;&lt;br /&gt;&lt;pre&gt;./configure --prefix=/usr --static&lt;br /&gt;make&lt;br /&gt;cp -iv zconf.h zlib.h /usr/include&lt;br /&gt;cp -iv libz.a /usr/lib&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Build OpenSSL.&lt;/p&gt;&lt;br /&gt;&lt;pre&gt;./Configure -DHAVE_STRUCT_TIMESPEC -lz -lpthread threads zlib --prefix=/usr cygwin&lt;br /&gt;make&lt;br /&gt;make install&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Build CURL.&lt;/p&gt;&lt;br /&gt;&lt;pre&gt;./configure --prefix=/usr --disable-shared --with-ssl --with-ca-bundle=ca-bundle.crt&lt;br /&gt;make&lt;br /&gt;make install&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Compile libevent.&lt;/p&gt;&lt;br /&gt;&lt;pre&gt;./configure --prefix=/usr --disable-shared&lt;br /&gt;make &lt;br /&gt;make install&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Lastly, build transmission.&lt;/p&gt;&lt;br /&gt;&lt;pre style=&quot;overflow: scroll;&quot;&gt;./configure --prefix=/usr --disable-shared --enable-static --disable-nls --without-gtk CPPFLAGS=-DHAVE_STRUCT_TIMESPEC&lt;br /&gt;make&lt;br /&gt;make install&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;If you get snprintf error with libutp, insert the following line into utp.cpp:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;extern int snprintf(char *, size_t, const char *, ...);&lt;/pre&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;a href=&quot;http://click.linksynergy.com/fs-bin/click?id=CCoBOfIP234&amp;offerid=145240.10000074&amp;subid=0&amp;type=4&quot;&gt;&lt;IMG border=&quot;0&quot;   alt=&quot;234X60&quot; src=&quot;http://ad.linksynergy.com/fs-bin/show?id=CCoBOfIP234&amp;bids=145240.10000074&amp;subid=0&amp;type=4&amp;gridnum=3&quot;/&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://report5.blogspot.com/feeds/8878535819488629015/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://report5.blogspot.com/2012/09/to-build-transmission-daemon-for-windows.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3755314711921649990/posts/default/8878535819488629015'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3755314711921649990/posts/default/8878535819488629015'/><link rel='alternate' type='text/html' href='http://report5.blogspot.com/2012/09/to-build-transmission-daemon-for-windows.html' title='To Build Transmission-Daemon for Windows'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04046998319294818723</uri><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-3755314711921649990.post-7161693098956297034</id><published>2012-09-22T23:26:00.000-10:00</published><updated>2012-10-18T18:20:57.143-10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="compile"/><category scheme="http://www.blogger.com/atom/ns#" term="Debian"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="open-source"/><category scheme="http://www.blogger.com/atom/ns#" term="software"/><title type='text'>To Compile UnionFS-fuse 0.26 on Debian Linux</title><content type='html'>&lt;p&gt;I am trying to switch to &lt;a href=&quot;http://podgorny.cz/moin/UnionFsFuse&quot;&gt;unionfs-fuse&lt;/a&gt; for my live CD, but so far I haven&#39;t much success yet. Debian&#39;s unionfs-fuse package in Sid is outdated (version 0.24), so I compiled version 0.26. I had to install &lt;em&gt;libfuse-dev&lt;/em&gt; in order to be able to build UnionFS-fuse. I probably needed cmake too, but I didn&#39;t choose to install cmake.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;cmake&lt;br /&gt;&lt;li&gt;gcc&lt;br /&gt;&lt;li&gt;libfuse-dev&lt;br /&gt;&lt;li&gt;make&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;I edited Makefile to change PREFIX.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;PREFIX=/usr&lt;br /&gt;BINDIR=/bin&lt;br /&gt;SBINDIR=/sbin&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;I just typed &lt;em&gt;make&lt;/em&gt; to begin compilation.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;make&lt;br /&gt;make install&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;The following files are installed.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;/usr/bin/unionfs&lt;br /&gt;/usr/sbin/mount.unionfs&lt;br /&gt;/usr/share/man/man8/unionfs-fuse.8&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;To make it compatible with Debian and derivatives, I renamed unionfs.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;mv /usr/bin/unionfs /usr/bin/unionfs-fuse&lt;/pre&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;a href=&quot;http://click.linksynergy.com/fs-bin/click?id=CCoBOfIP234&amp;offerid=145240.10000074&amp;subid=0&amp;type=4&quot;&gt;&lt;IMG border=&quot;0&quot;   alt=&quot;234X60&quot; src=&quot;http://ad.linksynergy.com/fs-bin/show?id=CCoBOfIP234&amp;bids=145240.10000074&amp;subid=0&amp;type=4&amp;gridnum=3&quot;/&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://report5.blogspot.com/feeds/7161693098956297034/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://report5.blogspot.com/2012/09/to-compile-unionfs-fuse-026-on-debian.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3755314711921649990/posts/default/7161693098956297034'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3755314711921649990/posts/default/7161693098956297034'/><link rel='alternate' type='text/html' href='http://report5.blogspot.com/2012/09/to-compile-unionfs-fuse-026-on-debian.html' title='To Compile UnionFS-fuse 0.26 on Debian Linux'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04046998319294818723</uri><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-3755314711921649990.post-3471579404185831421</id><published>2012-09-21T14:45:00.000-10:00</published><updated>2012-10-18T18:20:57.110-10:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="chinese"/><category scheme="http://www.blogger.com/atom/ns#" term="film"/><category scheme="http://www.blogger.com/atom/ns#" term="kungfu"/><category scheme="http://www.blogger.com/atom/ns#" term="movie"/><category scheme="http://www.blogger.com/atom/ns#" term="wuxia"/><title type='text'>Reign of Assassins 劍雨 2010</title><content type='html'>&lt;p&gt;&lt;em&gt;Reign of Assassins&lt;/em&gt; (劍雨) is a Chinese wuxia (武俠) film starring Michelle Yeoh. In my opinion, it&#39;s a pretty enjoyable movie. The following clip has both English and Vietnamese subtitles.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;iframe width=&quot;560&quot; height=&quot;315&quot; src=&quot;http://www.youtube.com/embed/mvoPuxF_8yI&quot; frameborder=&quot;0&quot; allowfullscreen&gt;&lt;/iframe&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;a href=&quot;http://click.linksynergy.com/fs-bin/click?id=CCoBOfIP234&amp;offerid=145240.10000074&amp;subid=0&amp;type=4&quot;&gt;&lt;IMG border=&quot;0&quot;   alt=&quot;234X60&quot; src=&quot;http://ad.linksynergy.com/fs-bin/show?id=CCoBOfIP234&amp;bids=145240.10000074&amp;subid=0&amp;type=4&amp;gridnum=3&quot;/&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://report5.blogspot.com/feeds/3471579404185831421/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://report5.blogspot.com/2012/09/reign-of-assassins-2010.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3755314711921649990/posts/default/3471579404185831421'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3755314711921649990/posts/default/3471579404185831421'/><link rel='alternate' type='text/html' href='http://report5.blogspot.com/2012/09/reign-of-assassins-2010.html' title='Reign of Assassins 劍雨 2010'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04046998319294818723</uri><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><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/mvoPuxF_8yI/default.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3755314711921649990.post-6287657443192981735</id><published>2012-09-20T11:32:00.000-10:00</published><updated>2012-10-18T18:20:57.135-10:00</updated><title type='text'>Download Aria2 1.15.2</title><content type='html'>&lt;img src=&quot;http://farm9.staticflickr.com/8037/7965725160_f8b554a12e_m_d.jpg&quot; alt=&quot;Download to folder&quot; style=&quot;float: right;&quot; /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Here you can download my Windows builds of &lt;a href=&quot;http://aria2.sourceforge.net&quot;&gt;aria2&lt;/a&gt;. This is the result of my previous post on &lt;a href=&quot;http://kemovitra.blogspot.com/2009/09/compiling-aria2c-with-mingw.html&quot;&gt;how to build aria2 for Windows&lt;/a&gt;.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;&lt;a href=&quot;http://cfile227.uf.daum.net/attach/17551E3F505BAAAB22B299&quot;&gt;aria2c.exe version 1.15.2 for 32-bit Windows&lt;/a&gt;&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;I didn&#39;t expect my Windows build to depend on libstdc++-6.dll. I think that&#39;s because I used Cygwin&#39;s mingw64 compiler. It still works, though.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;h3&gt;Aria2c Usage&lt;/h3&gt;&lt;br /&gt;&lt;pre&gt;aria2c --file-allocation=prealloc ftp://192.168.1.64/pardus.iso&lt;/pre&gt;&lt;br /&gt;&lt;p&gt;If aria2 aborts a download due to a connection error, you can resume the download any time using aria2c like this:&lt;/p&gt;&lt;br /&gt;&lt;pre&gt;aria2c -c ftp://192.168.1.64/pardus.iso&lt;/pre&gt;&lt;br /&gt;&lt;p&gt;To download files from URL&#39;s written in a file &lt;code&gt;urls.txt&lt;/code&gt; to a folder &lt;code&gt;Downloads&lt;/code&gt;, run aria2 as follows. The urls.txt should contain one download per line with URL&#39;s seperated by a tab:&lt;/p&gt;&lt;br /&gt;&lt;pre&gt;aria2c -i urls.txt -d Downloads&lt;/pre&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;a href=&quot;http://click.linksynergy.com/fs-bin/click?id=CCoBOfIP234&amp;offerid=145240.10000074&amp;subid=0&amp;type=4&quot;&gt;&lt;IMG border=&quot;0&quot;   alt=&quot;234X60&quot; src=&quot;http://ad.linksynergy.com/fs-bin/show?id=CCoBOfIP234&amp;bids=145240.10000074&amp;subid=0&amp;type=4&amp;gridnum=3&quot;/&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://report5.blogspot.com/feeds/6287657443192981735/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://report5.blogspot.com/2012/09/download-aria2-1152.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3755314711921649990/posts/default/6287657443192981735'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3755314711921649990/posts/default/6287657443192981735'/><link rel='alternate' type='text/html' href='http://report5.blogspot.com/2012/09/download-aria2-1152.html' title='Download Aria2 1.15.2'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/04046998319294818723</uri><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>