<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>I am Om</title>
	<atom:link href="http://omps.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://omps.wordpress.com</link>
	<description>Om Prakash Singh is Here</description>
	<lastBuildDate>Sat, 21 Apr 2007 04:38:21 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>hi</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='omps.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/58ad18195d40564004928d463d349a30?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>I am Om</title>
		<link>http://omps.wordpress.com</link>
	</image>
			<item>
		<title>Building DVD Images Of Ubuntu Repositories</title>
		<link>http://omps.wordpress.com/2007/04/21/building-dvd-images-of-ubuntu-repositories/</link>
		<comments>http://omps.wordpress.com/2007/04/21/building-dvd-images-of-ubuntu-repositories/#comments</comments>
		<pubDate>Sat, 21 Apr 2007 04:38:21 +0000</pubDate>
		<dc:creator>omps</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://omps.wordpress.com/2007/04/21/building-dvd-images-of-ubuntu-repositories/</guid>
		<description><![CDATA[1 Preliminary Note
This tutorial was inspired by an articles I read at http://cargol.net/~ramon/ubuntu-dvd-en. So many thanks to Ramon Acedo (the one who made this HowTo, originally)
The pages are not reachable from some weeks, now. I saved the page to read it off-line. So&#8230;
I found it useful. I hope it will be the same for you.
2 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=omps.wordpress.com&blog=733713&post=27&subd=omps&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><h3>1 Preliminary Note</h3>
<p>This tutorial was inspired by an articles I read at http://cargol.net/~ramon/ubuntu-dvd-en. So many thanks to Ramon Acedo (the one who made this HowTo, originally)</p>
<p>The pages are not reachable from some weeks, now. I saved the page to read it off-line. So&#8230;</p>
<p>I found it useful. I hope it will be the same for you.</p>
<h3>2 Introduction</h3>
<p>This howto offers a simple way of creating DVD images of Debian or Ubuntu http/ftp repositories.</p>
<p>Ubuntu doesn&#8217;t offer DVDs ready to download with its <span class="system">main</span>, <span class="system">universe</span>, <span class="system">multiverse</span> and/or <span class="system">restricted</span> repositories. With the contents of this howto you can do it yourself.</p>
<p>Having the Ubuntu or Debian repositories on DVD can be useful for those users who don&#8217;t have access to the Internet where they have their Ubuntu installed but have access somewhere else to download the repository and build and burn the DVDs.</p>
<h3>3 Building a local mirror</h3>
<p>We have to install <span class="system">debmirror</span>:</p>
<p style="position:absolute;"><img src="http://red.as-us.falkag.net/dat/bgf/trpix.gif?&amp;rdm=23128538&amp;dlv=175,14986,152419,125563,345868&amp;kid=125563&amp;chw=9125563-&amp;tcs=&amp;bls3=111000A&amp;bls4=010003152420&amp;uid=1&amp;dmn=.kotak.com&amp;scx=1152&amp;scy=864&amp;scc=32&amp;jav=1&amp;sta=,,,1,,,,,,,0,0,0,32257,32253,10976,12620,0&amp;iid=152419&amp;bid=345868" height="1" width="1" /></p>
<p><!-- END:AdSolution-Tag 4.3 --></p>
<p class="command">sudo apt-get install debmirror</p>
<p>Now we get the Ubuntu repositories in a local directory. In the example below we get main, universe and multiverse sections of the repository in the i386 architecture.</p>
<p class="command">debmirror &#8211;nosource -m &#8211;passive &#8211;host=archive.ubuntulinux.org &#8211;root=ubuntu/ &#8211;method=ftp &#8211;progress &#8211;dist=dapper &#8211;section=main,multiverse,universe &#8211;arch=i386 ubuntu/ &#8211;ignore-release-gpg</p>
<p>You could change the options below as you prefer:</p>
<ul>
<li><strong>&#8211;host</strong> &#8211; the URL of the repository.</li>
<li><strong>&#8211;dist</strong> &#8211; the distro of your OS (dapper, edgy, sarge, &#8230; ).</li>
<li><strong>&#8211;section</strong> &#8211; the section you want to mirror locally.</li>
<li><strong>&#8211;arch</strong> &#8211; the architecture of your box.</li>
</ul>
<h3>4 Separating the archive into DVD-sized directories</h3>
<p>The repositories we got are too big (about 30Gb) to burn them to a DVD so we have to separate them into volumes.</p>
<p>The tool <span class="system">debpartial</span> will do it for us.</p>
<p class="command">sudo apt-get install debpartial</p>
<p>We make the directory where the volumes will reside.</p>
<p class="command">mkdir ubuntu-dvd</p>
<p>and we make it to construct the package descriptors to every volume.</p>
<p class="command">debpartial &#8211;nosource &#8211;dirprefix=ubuntu &#8211;section=main,universe,multiverse &#8211;dist=dapper &#8211;size=DVD ubuntu/ ubuntu-dvd/</p>
<p>Now we have to put the packages into the directories debpartial has just created. The script <span class="system">debcopy</span> which also comes with the debpartial package will do it. The script needs <span class="system">ruby</span>.</p>
<p class="command">sudo apt-get install ruby</p>
<p>If everything is ok&#8230;</p>
<p class="command">ruby debcopy ubuntu/ ubuntu-dvd/ubuntu0<br />
ruby debcopy ubuntu/ ubuntu-dvd/ubuntu1<br />
ruby debcopy ubuntu/ ubuntu-dvd/ubuntu2</p>
<p>Where <span class="system">ubuntu/</span> is the directory with the complete repository created with <span class="system">debmirror</span> and <span class="system">ubuntu-dvd/*</span> are the directories ready to host the new DVD-ready repository.<br />
If we want to make soft links from the complete repository instead of copying the packages we can call <span class="system">debcopy</span> with the option <span class="system">-l</span>:</p>
<p class="command">ruby -l debcopy ubuntu/ ubuntu-dvd/ubuntu0<br />
ruby -l debcopy ubuntu/ ubuntu-dvd/ubuntu1<br />
ruby -l debcopy ubuntu/ ubuntu-dvd/ubuntu2</p>
<p>Now every directory <span class="system">(ubuntu0</span>, <span class="system">ubuntu1</span> and <span class="system">ubuntu2</span>) fits on one DVD.</p>
<h3>5 Making iso images</h3>
<p>To get the directories <span class="system">ubuntu0</span>, <span class="system">ubuntu1</span>, <span class="system">ubuntu2</span> into an iso image ready to burn we can use <span class="system">mkisofs</span>:</p>
<p class="command">mkisofs -f -J -r -o ubuntu-dvd-0.iso ubuntu-dvd/ubuntu0<br />
mkisofs -f -J -r -o ubuntu-dvd-1.iso ubuntu-dvd/ubuntu1<br />
mkisofs -f -J -r -o ubuntu-dvd-2.iso ubuntu-dvd/ubuntu2</p>
<p>Now you can burn the iso images or mount them. Add them to the <span class="system">/etc/apt/source.list</span> with the command:</p>
<p class="command">sudo apt-cdrom add</p>
<p>Now we can verify the new repositories&#8230;</p>
<p class="command">sudo apt-get update<br />
sudo apt-get upgrade</p>
<p>&#8230; and, if I explain in the right way, you should have your box upgraded.</p>
<h3>6 About the script &#8216;debcopy&#8217;</h3>
<p>I heard about someone who can not find the script debcopy, above described.<br />
In that case, create a new file called <span class="system">debcopy</span> where you want:</p>
<p class="command">gedit /your_path_to/debcopy</p>
<p>and copy the lines below inside it:</p>
<pre>#!/usr/bin/ruby
#
# debcopy - Debian Packages/Sources partial copy tool
#
# Usage: debcopy [-l]
#
#  where  is a top directory of a debian archive,
#  and  is a top directory of a new debian partial archive.
#
#  debcopy searches all Packages.gz and Sources.gz under /dists
#  and copies all files listed in the Packages.gz and Sources.gz
#  files into  from . -l creates symbolic links
#  instead of copying files.
#
# Copyright (C) 2002  Masato Taruishi
#
#  This program is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation; either version 2 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License with
#  the Debian GNU/Linux distribution in file /usr/share/common-licenses/GPL;
#  if not, write to the Free Software Foundation, Inc., 59 Temple Place,
#  Suite 330, Boston, MA  02111-1307  USA
#
require 'getoptlong'
require 'zlib'
require 'ftools'
$link = false
def usage
  $stderr.puts "Usage: #{__FILE__} [-l]  "
   exit 1
end
def each (file, &amp;block)
  fin = Zlib::GzipReader.open(file)
  fin.each do |line|
    yield line
  end
  fin.close
end
def each_file (file, &amp;block)
  each(file) do |line|
    if /Filename: (.*)/ =~ line
      yield $1
    end
  end
end
def each_sourcefile (file, &amp;block)
  dir = nil
  each(file) do |line|
    case line
    when /^Directory: (.*)$/
      dir = $1
    when /^ \S+ \d+ (\S+)$/
      yield dir + "/" + $1
    end
  end
end
def calc_relpath (source, dest)
  pwd = Dir::pwd
  Dir::chdir source
  source = Dir::pwd
  Dir::chdir pwd
  Dir::chdir dest
  dest = Dir::pwd
  Dir::chdir pwd
  src_ary = source.split("/")
  src_ary.shift
  dest_ary = dest.split("/")
  dest_ary.shift
  return dest if src_ary[0] != dest_ary[0]
  src_ary.clone.each_index do |i|
    break if src_ary[0] != dest_ary[0]
    src_ary.shift
    dest_ary.shift
  end
  src_ary.size.times do |i|
    dest_ary.unshift("..")
  end
  dest_ary.join("/")
end
def do_copy(path)
  if $link
    pwd=calc_relpath(File.dirname($dest_dir + "/" + path), $source_dir)
    File.symlink(pwd + "/" + path, $dest_dir + "/" + path)
  else
    File.copy($source_dir + "/" + path, $dest_dir + "/" + path)
  end
end
def copy(path)
  s=$source_dir + "/" + path
  d=$dest_dir + "/" + path
  if FileTest.exist?(d)
    $stats["ignore"] += 1
    return
  end
  if FileTest.exist?(s)
    File.mkpath(File.dirname(d))
    do_copy(path)
    $stats["copy"] += 1
  else
    $stats["notfound"] += 1
    $stderr.puts s + " not found."
  end
end
opts = GetoptLong.new(["--symlink", "-l", GetoptLong::NO_ARGUMENT],
		      ["--help", "-h", GetoptLong::NO_ARGUMENT])
opts.each do |opt,arg|
  case opt
  when "--symlink"
    $link = true
  when "--help"
    usage
  end
end
usage if ARGV.size != 2
$source_dir = ARGV.shift
$dest_dir = ARGV.shift
if $link
  $source_dir = Dir::pwd + "/" + $source_dir unless $source_dir =~ /\A\//
  $dest_dir = Dir::pwd + "/" + $dest_dir unless $dest_dir =~ /\A\//
end
$stats = {}
$stats["ignore"] = 0
$stats["copy"] = 0
$stats["notfound"] = 0
open("|find #{$dest_dir}/dists -name Packages.gz") do |o|
  o.each_line do |file|
    file.chomp!
    print "Processing #{file}... "
    $stdout.flush
    each_file(file) do |path|
      copy(path)
    end
    puts "done"
  end
end
open("|find #{$dest_dir}/dists -name Sources.gz") do |o|
  o.each_line do |file|
    file.chomp!
    print "Processing #{file}... "
    $stdout.flush
    each_sourcefile(file.chomp) do |path|
      copy(path)
    end
    puts "done"
  end
end
puts "Number of Copied Files: " + $stats["copy"].to_s
puts "Number of Ignored Files: " + $stats["ignore"].to_s
puts "Number of Non-existence File: " + $stats["notfound"].to_s
</pre>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/omps.wordpress.com/27/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/omps.wordpress.com/27/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/omps.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/omps.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/omps.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/omps.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/omps.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/omps.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/omps.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/omps.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/omps.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/omps.wordpress.com/27/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=omps.wordpress.com&blog=733713&post=27&subd=omps&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://omps.wordpress.com/2007/04/21/building-dvd-images-of-ubuntu-repositories/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3f6e34f191fecf56d95f0297fbb5b705?s=96&#38;d=identicon" medium="image">
			<media:title type="html">omps</media:title>
		</media:content>

		<media:content url="http://red.as-us.falkag.net/dat/bgf/trpix.gif?&#38;rdm=23128538&#38;dlv=175,14986,152419,125563,345868&#38;kid=125563&#38;chw=9125563-&#38;tcs=&#38;bls3=111000A&#38;bls4=010003152420&#38;uid=1&#38;dmn=.kotak.com&#38;scx=1152&#38;scy=864&#38;scc=32&#38;jav=1&#38;sta=,,,1,,,,,,,0,0,0,32257,32253,10976,12620,0&#38;iid=152419&#38;bid=345868" medium="image" />
	</item>
		<item>
		<title>miserable</title>
		<link>http://omps.wordpress.com/2005/09/15/miserable/</link>
		<comments>http://omps.wordpress.com/2005/09/15/miserable/#comments</comments>
		<pubDate>Thu, 15 Sep 2005 18:14:19 +0000</pubDate>
		<dc:creator>omps</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://omps.wordpress.com/2005/09/15/miserable/</guid>
		<description><![CDATA[
To, The woman I loved the most
I dedicate this blog to you 
. I feel distressful, hateful, infamous, enormous, counter, reprehensible,distressing, rank, noisome, hopeless, dirty, lumpen, blameworthy,measly, egregious,meretricious, harmful, sore, foul, dismaying, out of humor, in bad humor, cut up, dismal, arrant, ruthful,petty, moving, schlock, disconsolate, cheap, slummy,mournful, horrible, gimcracky, squalid, opposing, pitiful, low-down, sharp, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=omps.wordpress.com&blog=733713&post=11&subd=omps&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p class="Section1">
<p class="MsoNormal"><font face="Georgia" size="1"><span style="font-size:8.5pt;font-family:Georgia;">To, <span class="GramE">The</span> woman I loved the most</span></font></p>
<p class="MsoNormal"><font face="Georgia" size="1"><span style="font-size:8.5pt;font-family:Georgia;">I dedicate this <span class="SpellE">blog</span> to you </span></font></p>
<p class="MsoNormal"><font face="Georgia" size="1"><span style="font-size:8.5pt;font-family:Georgia;">. I feel </span></font><font color="#333333" face="Georgia" size="1"><span style="font-size:8.5pt;font-family:Georgia;color:#333333;">distressful, hateful, infamous, enormous, counter, reprehensible,distressing, rank, noisome, hopeless, dirty, lumpen, blameworthy,measly, egregious,meretricious, harmful, sore, foul, dismaying, out of humor, in bad humor, cut up, dismal, arrant, ruthful,petty, moving, schlock, disconsolate, cheap, slummy,mournful, horrible, gimcracky, squalid, opposing, pitiful, low-down, sharp, uncheerful, dreadful, trashy, indolent, out of sorts,woeful, shameful, cheesy, contemptible, despairing, depraved, untoward,trying, scruffy, comfortless,sorrowful,unsmiling, joyless,unmirthful, painful, cheerless, atrocious, common, despicable, depressing, slumlike, bitter, deep-troubled, unmentionable, lamentable, valueless, afflictive, detestable, unclean, stressful, rubbishy, uncheery, touching, woebegone, scuzzy,sinister,heart-struck,filthy, opposite, base, execrable, desolate, detrimental, unjoyful, opposed, afflicted, grim, mean, flagrant, forlorn, heartsick, discomforting, uncomfortable,terrible, grave, loathsome, gross, nasty, worst, sad, scrubby, worthless, sorry,sorryish,miserable, scurvy, nefarious,rigorous, shabby, beneath contempt, pitiable, difficult, inimical, odious, vile, adverse,grievous, conflicting, beggarly, mangy, paltry,melancholy, pathetic, fetid, repulsive, lousy, saddening, counteractive, abominable, hard, little, gaudy, brutal,unfavorable,scabby, in opposition, beastly, horrid, offensive, shocking, dolorific, rueful, bleak, awful, scandalous, monstrous, poky, twopenny, notorious, obnoxious,antagonistic, trumpery, troublous, despondent, too bad, deplorable,contrary, heinous, sordid,mirthless, humorless, low, stricken, pleasureless, ignoble, rotten, disgusting, debased,abject, heart-stricken,dolorous,poor, discontented, crushed, dire, depressive, villainous, small, fulsome, servile, infestive,troublesome, dolorogenic, outrageous, degraded, crummy, suicidal, scummy,hostile,regrettable, piteous, unhappy, reptilian, dreary, poignant, doleful,affecting, shoddy.</span></font></p>
<p class="MsoNormal"><font face="Georgia" size="1"><span style="font-size:8.5pt;font-family:Georgia;"> </span></font></p>
<p class="MsoNormal"><font face="Georgia" size="1"><span style="font-size:8.5pt;font-family:Georgia;">God bless her</span></font></p>
<p class="MsoNormal"><font face="Georgia" size="1"><span style="font-size:8.5pt;font-family:Georgia;"> </span></font></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/omps.wordpress.com/11/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/omps.wordpress.com/11/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/omps.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/omps.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/omps.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/omps.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/omps.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/omps.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/omps.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/omps.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/omps.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/omps.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=omps.wordpress.com&blog=733713&post=11&subd=omps&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://omps.wordpress.com/2005/09/15/miserable/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3f6e34f191fecf56d95f0297fbb5b705?s=96&#38;d=identicon" medium="image">
			<media:title type="html">omps</media:title>
		</media:content>
	</item>
	</channel>
</rss>