Archive for May, 2006

Update or Install Applications on Debian/Ubuntu Without an Internet Connection

27

Update: There is a simpler way for the Ubuntu 6.10(Edgy Eft) users:
Simple Way to Update Ubuntu Edgy With Slow/No Internet Connection

If you use a Debian based system(Ubuntu etc) with a slow/no Internet connection, you will be limited to installing only those applications that come with the installation CD/DVD set. The issue is more serious with Ubuntu like operating systems where there is only one installation CD/DVD. But there is a way in which the required files can be downloaded on a machine with fast Internet connection and then copied over to your local machine(using a media like CD etc) and make them available to the Advanced Package Manager(apt). Below is the complete procedure to do the same.

Note to Ubuntu users: You need to add “sudo” before all the commands specified below.

  1. On your local machine, run the following command to generate a list of files needed for the application(s) you wish to install:
    sh# apt-get –qq ––print-uris install {packagelist} | awk -F\‘ ‘{ print $2}‘ > get.lst
  2. The URIs from where to download all the files needed to install the packages listed in {packagelist} will be added to the get.lst file. Copy this file over to the machine with fast Internet connection and run the following commnad there:
    sh# wget -c -i get.lst

    This will download all the .deb files listed in get.lst file in the current directory. Copy all these .deb files to your local machine in a directory, say /root/sharedebs.

  3. Move to /root directory and run the following command:
    sh# dpkg-scanpackages sharedebs /dev/null | gzip > sharedebs/Packages.gz
  4. Now add the following line to your /etc/apt/sources.list file:

    deb file:/root sharedebs/

    Run the command ‘apt-get update’ once to update the apt cache.

Now you can install the applications in the normal way by running the
‘apt-get install’ command or using Synaptic Package Manager like tools.

You can also use the above procedure to share the .deb files that you have downloaded on your machine to install any applications with another machine(say your friend’s machine) if you want to install the same applications on it without having to download the same .deb files again. Just copy all your .deb files from /var/cache/apt/archives/partial/ to your friend’s machine(in /root/sharedebs directory) and follow the steps from Step 3 on your friend’s machine.

Here is an example of how you can install the package lynx on your local machine using the above procedure:

  1. On local machine:
    sh# apt-get -qq ––print-uris install lynx | awk -F\‘ ‘{ print $2 }‘ > get.lst
    sh# cp get.lst /media/cdrom
    sh# umount /media/cdrom
  2. Update: If you are getting errors with the above awk command, you can try with a perl script. More details in this comment.

  3. Copy the file get.lst to the machine with fast Internet connection(using a CD etc):
    sh# mkdir /home/user/debs
    sh# cp /media/cdrom/get.lst /home/user/debs
    sh# cd /home/user/debs
    sh# wget -c -i get.lst
    sh# cp *.deb /media/cdrom
    sh# umount /media/cdrom
  4. Copy all the .deb files to the local machine(again, using CD etc) in
    /root/debshare directory:

    sh# mkdir /root/debshare
    sh# cp /media/cdrom/*.deb /root/debshare
    sh# cd /root
    sh# dpkg-scanpackages sharedebs /dev/null | gzip > sharedebs/Packages.gz
  5. Add a line in the /etc/sources.list file and install the application using apt-get:
    sh# emacs -nw /etc/apt/sources.list

    deb file:/root sharedebs/

    sh# apt-get update
    sh# apt-get install lynx

Update or Install Applications on a Gentoo Machine Without an Internet Connection

2

If you use Gentoo on a computer that doesn’t has a fast Internet connection, you can still update it or install new applications on it, by downloading files on a different system that has a fast Internet connection and then copying them to your machine using media like CD, DVD or a USB Pen Drive. The complete procedure is given below.

  1. Download the following shell script and copy it to the home directory of the local machine:
    shotsync.sh
    If the browser displays the contents of the file, use File->Save As… menu item to save the file. Or right-click on the link and select “Save Target/Link as…” from the context menu.
    We’ll need this script in Step 4.
  2. Also download the following file on the machine with fast Internet connection:
    dist-grabber.py

    Make the file executable and place it in a directory that is in the system PATH.

    sh# chmod +x distfile-grabber.py
    sh# mv distfile-grabber.py /usr/bin

    We’ll need this script file in Step 6.

  3. On the machine that has a fast Internet connection, download the latest snapshot of the portage tree from:
    Gentoo Portage Snapshots

    Let’s call this file ‘snapshot.tar.bzip’.

  4. Copy this file in the home directory of the local machine. From the home directory on the local machine, run the following command:
    sh# shotsync.sh snapshot.tar.bzip

    (we had downloaded the shotsync.sh file in Step 1)

  5. On the local machine, create a list of files to be downloaded on the other machine using the following command:
    sh# emerge -uDp –fetchonly world 2> /tmp/distfiles.txt

    (that’s two hyphens(-) for ‘fetchonly’ option)

    (replace ‘world’ with a package name if you don’t want to do a complete upgrade: sh# emerge -uDp –fetchonly lynx 2> /tmp/distfiles.txt )

  6. Copy the file generated in the above step(distfile.txt) to the machine with good Internet connection. Run the following command to download all the packages specified in the distfile.txt file:
    sh# distfile-grabber distfiles.txt

    (we had downloaded distfile-grabber.py script in Step 2)

  7. Copy all the above downloaded files into the /usr/portage/distfiles directory of the local machine. Then perform the final installation using the following command:
    sh# emerge -uD world

    (If you had used a package name in Step 5, use the same here too: sh# emerge -uD lynx)

Repeat Steps 3-7 at regular intervals to keep your Gentoo system updated. If you only want to install applications without doing a complete update of the portage tree(eg. its already updated), you can just follow Steps 5-7 by replacing ‘world’ with the name of the package.

Whenever you need to copy a file from local machine to the machine with fast Internet connection or vice versa, you can use any suitable media like CD, DVD, USB Pen Drive, Portable Hard disk etc.

More info: Gentoo Wiki
All the scripts mentioned in this post are taken from this source.

NOTE 1:
If the machine with fast Internet connection uses the Windows operating system, you can still use the dist-grabber.py script to download the packages, provided you have Python installed on that system(and is in the environment path). If you instead have Perl installed on the system, you can make use of the following perl script for the same job:
dist-grabber.pl

NOTE 2:
If you would rather use wget to download the package files, then get the required URLs, convert the URL list to wget format & then get the package files:

sh# emerge –pretend –fetchonly –update world 2> list.txt
sh# cat list.txt | sed ‘s/\shttp:/\nhttp:/gi’ | sed ‘s/\sftp:/\nftp:/gi’ > wgetlist.txt
sh# wget -i wgetlist.txt -nc

(that’s two hyphens(-) for ‘pretend’ and ‘fetchonly’ options)

Why I Moved My Blog From WordPress.com

0

Finally I had decided to move my WordPress.com blog to my own domain a couple of weeks ago. My reasons for taking up this decision were as follows:

  1. No direct access to the theme/template files in WordPress.com. After some time, it started to look very restrictive not to be able to add even a single line to customize the look and feel of the blog(though the customization of the sidebar through widgets was a welcome addition). Only a few themes were available and either they didn’t have the colours that I like or they did not utilize the screen space efficiently. I love the theme(clasikue) you currently see on this blog very much and I can apply whatever customizations I like to it!
  2. Upload limitations. Total storage available is around 20MB, only files under 1.5MB size can be uploaded and files of many types(eg:mp3) cannot be uploaded at all!!
  3. Poor statistics. I did not like the default visitor tracking software of WordPress.com – it always showed more number of hits than what was suggested by the referral list. Either the hit count was wrong or the referral list did not show all the referrals.
  4. Ability to add one’s own plugins. Not that I missed the functionality of a lot of plugins at WordPress.com, as I prefer to travel as light as possible anyway, still I would have loved to install some of my favourite ones. Like a syntax highlighter, comment quoter, related posts link generator, recent posts in the sidebar, random quote generator etc.
  5. No way to backup the entire database of my posts. I could only export the feeds in RSS format(for posts and the comments). How to restore them if I ever want to go back to a previous state?

And many other similar restrictions prompted me to finally take the blog to my own domain, which will allow me to have more control over it. It also means that I have to take care of everything now – installations, maintenance, backup, restore etc. I will miss the community feel of the WordPress.com too!!

What I had thought as a simple enough procedure turned out to be slightly more work for me in the end. The installation of WordPress itself, and the task of importing the posts into the new blog went like a breeze. Had to manually move the comments by copying and pasting and then editing the time stamps by hand. Even for ~10 comments it looked like a huge task!! Adding the tag line to the header in clasikue theme wasn’t straightforward either. Because clasikue converts every first letter of a word/sentence to lower case, titles of all the recent posts read more like a single paragraph; after a lot of experiments, I had to add the ~ character to separate one title from the other.

The final task was to create a styling for the programming language code and the shell commands: the first of these tasks was made simpler by the excellent plugin called iG:Syntax Hiliter and I had to add a new style manually to make shell commands standout. Installation of StatCounter and Google Analytics code was made simpler by the plugins created for the same purpose. I am yet to decide whether or not I need the WP-Cache plugin and also something to manage the uploaded images and other such files.

buy prednisone medication COD purchase prednisone without prescription needed purchase prednisone prescription online prednisone no prior script prednisone no rx needed order prednisone usa cod buy prednisone without rx from us pharmacy buy prednisone online without rx purchase prednisone without prescription order prednisone saturday delivery buy prednisone amex online without prescription ordering prednisone over the counter buy prednisone amex online without rx where can i buy Prednisone ordering Paxil over the counter order Paxil without rx needed order Paxil pharmacy Paxil overnight delivery fed ex ordering Paxil without a script order Paxil order amex order Paxil amex online without prescription buy Paxil pay pal without prescription order rx free Paxil cheapest Paxil available online purchase Paxil without purchase Paxil without prescription how to order Paxil online without a prescription purchase Paxil cod next day delivery buy discount Paxil online buy Paxil no visa online without rx where to buy accutane buy frontpage software cheap mortgage application software buy autocad software best price for final draft 7 software iphone software download plagiarism software to buy for parents Crestor side effects buy masterwriter software discount bmi sesac microsoft software downloads wm5 software download treo software download cheap discount software xxasdf discount trellian software best antivirus software download cheap microsoft word software buy software for mac software discounts for educators microsoft office purchase Prednisone online no membership buy windows xp oem software buy flash cs3 software photoshop cs 5 full fashion conference italy buy Orlistat with amex ordering Lasix over the counter purchase online prescription Lasix without windows 7 product key purchase online cheapest xenical available online prescription xenical online online Maxalt achat Maxalt Valtrex with repronex where to buy Valtrex by cod where to purchase generic valtrex online without a prescription quality generic valtrex cheap valtrex usa (no prescriptions needed for Buspar|buy Buspar with no prescription|online pharmacies Buspar|Buspar cheap|buy Buspar without rx|purchase rx Buspar without|Buspar purchase online|purchase Buspar online without rx|purchase Buspar free consultation|buy Buspar Online|buy Buspar american express|buy Buspar Online|buy cheap Buspar with dr. prescription|Buspar side effects|fedex Buspar without priscription|overnight Buspar without a rx|order cheap overnight Buspar|Buspar toronto|uk order Buspar|Buspar no doctors prescription|Buspar mexico|Buspar order|no prescription Buspar with fedex|order generic Buspar|buy Buspar without rx from us pharmacy|prezzo Buspar|Buspar 10mg|Buspar from canada|purchasing Buspar without a script|buy Buspar australia|purchase Buspar visa without prescription|online purchase Buspar|buy Buspar no perscription cod|buy Buspar drugs|buy Buspar with visa|buy Buspar without rx needed|buy Buspar without prescription|buy Buspar no prescription low cost|purchase purchase Buspar no prescription cheap buy cheap Nolvadex cod buy Nolvadex infertility in internet visa at Wisconsin Ontario omicrosoft office 2003 megaupload online purchase Lasix Buy genuine accutane online buy nolvadex amex online where to buy synthroid in germany where to buy synthroid pills cheap discount Nolvadex overnight Accutane 20mg mexico order Lasix usa Lasix overnight delivery fed ex buy zithromax overnight purchase online prescription zithromax without buy Nolvadex cheap cheapest Nolvadex available online buy Nolvadex without rx from us pharmacy buy Nolvadex without a prescription overnight delivery buy 20mg Nolvadex free shipping buy Nolvadex no prescription order zithromax overnight delivery buy zithromax 100 mg visa Valtrex without doctor prescription buying zithromax over the counter order zithromax with no prescription order zithromax 250mg mastercard order zithromax 250 mg visa order zithromax 500mg amex buy mail order Orlistat buy Valtrex online now Orlistat tablets purchase cheap Maxalt onlinebuy generic Maxalt pills free fedex delivery Buspar buy cheap Finpecia under without rx purchase online finpecia without rx finpecia fedex no prescription buy line finpecia fedex Valtrex overnight without a rx Buspar u.p.s shipping cod order cheap overnight Buspar free fedex delivery prednisone prednisone no script fedex buy valtrex cheap without prescription generic Valtrex fedex Online overnight shipping Valtrex purchase Zithromax without purchase Zithromax no scams Arimidex delivered overnight order cheap overnight Arimidex purchase Cytotec over the counter fedex buy Cytotec online overnight adobe financial results microsoft office professional 2007 upgrade download microsoft office professional 2007 cheap Buspar by money order how to buy Valtrex without a prescription cheap valtrex uk buy Flomax in the uk purchase Proscar usa cod adobe lm service adobe after effects simple creativity latest adobe flash download buy Crestor amex measurement software Photoshop For Sale buy discount Tamsulosin line Autocad 2010 Review download adobe premiere complete removal of office 2003 adobe indesign cs2 photoshop lightroom 3 cheap where can i buy herbal Crestor where to buy Crestor buy Crestor online cod Buy Fincar online 5 mg mastercard cheapest price for microsoft office vio software discount coupon purchase Orlistat amex online without prescription buy maxalt online without a prescription adobe photoshop 6 cd key Cheap Software Buy Downloads For Photoshop flash catalyst sql ms office 2010 enterprise windows 7 upgrade oem Windows Server 2003 Standard Edition Downloads For Windows 7 Ultimate buy Valtrex no prescriptions application free download office microcoft2007 buy Crestor drugs Valtrex no prescription purchase Valtrex amex online without prescription Xenical Orlistat Flomax buy on line boilsoft viseo create new instrument logic studio 9 cheap purchase finpecia Flomax best buy buy cheap oem software formica countertop cyberlink power dvd 9 download buy Prednisone no prescriptions cheap indesign cs android acdsee buy Flomax australia generic Valtrex online lightroom license .txt download de driver para corel windvd buy microsoft office online cheap generic Valtrex online buy Flomax online no prescription buy pharmacy Flomax waterview cheap Valtrex by money order ifinance price price of valtrex buy valtrex doctor prescription buy generic Crestor order generic Tamsulosin imtoo dvd ripper serial look like buy Buspar without a rx cheap digital video buy Prednisone amex want to buy Buspar in malaysia Bupropion buy Bupropion buy no perscription Amitriptyline buy discount Zithromax cheapest Zithromax available online how to order Buspar online without a rx purchase prednisone cod next day delivery where can i purchase prednisone online prednisone online cash on delivery microsoft office 2010 3 user license cheap mac desktops no prescription Orlistat cod delivery Work Order Tracking System Acrobat 6.0 Professional Oem Version Windows 7 buy Valtrex where order Orlistat no rx cheap proffes Microsoft Windows Xp Purchase buy Valtrex legally Windows Xp Server buy cheap online pharmacy Buspar buy Prednisone online now generic Zithromax usa accutane 40 mg delivered overnight buy accutane 40 mg with no prescription media 8 oline cheap cs software Discount Microsoft WindowsLightroom 2 Windows 7Ms Office StandardPhotoshop Cs5 UpgradeComputer Monitors For SaleWindows Xp InstallSuite Microsoft OfficeAutocad Version 2007Adobe Acrobat 9.0 Standard DownloadIe8 Download For Windows 7Adobe Paint ShopMicrosoft Service Pack 2Free Download Adobe AcrobatStudent And Teacher EditionManage ImageAdobe Acrobat 7 Pro DownloadVista Home Premium To Windows 7 UltimateWindows 7 Home Premium Upgrade OemAdobe Creative Suite 5 Master Collection Student And Teacher EditionBuy Adobe Photoshop Lightroom 3Ms Office 2010 Home And StudentCompare Photo SoftwareMicrosoft Office Word Viewer 2010Windows 7 Upgrade Student Discount ProfessionalWindows 7 Updates DownloadCreative Suite WebAdobe Reader VistaMicrosoft Windows 7 Home Premium Upgrade 64 BitPhotoshop 2Ie8 Download For Windows 7Photoshop 2009Suite Microsoft OfficeMicrosoft Office 2007 VersionUpgrade Windows Vista To 7Autocad Lt 2010Autocad 2010 Best PriceDownload Acrobat Reader 8 buy Flomax online us pharmacy cheapest Buspar available online where can i purchase Buspar without a prescription sony oem software Valtrex from india Prednisone prescription order Buspar shipped by cash on delivery buy Valtrex with no prescription prezzo Valtrex buy Valtrex shipped cod Proscar no prescription overnight Proscar overnight no consult where to purchase cheap Cytotec no rx Cytotec to buy is it legal to buy Cytotec online in australia buy Cytotec cheapest buy finpecia without prescription finpecia buy cod want to buy finpecia in malaysia buy finpecia with mastercard Buy Finpecia 1 mg online microsoft onenote and educator discount window mirror film charset windows 1252 reinstal windows finpecia overdose excel new window windows for loop microsoft office 2008 for mac home student cheap collection software virtual dj software web design software mac cheap or discount photoshop software load windows xp buy Orlistat legally Rosuvastatin generic order buspar pharmacy buy Flomax in mo dreamweaver cs4 windows mobile opera adobe photoshop price epson creativity suite
Go to Top