internal error from PackageKit — packagekit Error Type: <type 'exceptions.TypeError'>

2009-11-25 1 min read Fedora

If you get the below error then there is a bug files <a href="https://bugzilla.redhat.com/show_bug.cgi?id=476352" target="_blank">here.

Error Type:
Error Value: &#8217;NoneType&#8217; object is unsubscriptable
File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 2280, in

main()
File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 2277, in main
backend.dispatcher(sys.argv[1:])
File : /usr/lib/python2.5/site-packages/packagekit/backend.py, line 600, in
dispatcher
self.dispatch_command(args[0], args[1:])
File : /usr/lib/python2.5/site-packages/packagekit/backend.py, line 526, in
dispatch_command
self.refresh_cache()
File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 1130, in
refresh_cache
self.yumbase.repos.populateSack(which=[repo.id], mdtype=&#8217;metadata&#8217;,
cacheonly=1)
File : /usr/lib/python2.5/site-packages/yum/repos.py, line 223, in
populateSack
self.doSetup()
File : /usr/lib/python2.5/site-packages/yum/repos.py, line 71, in doSetup
self.ayum.plugins.run(&#8217;postreposetup&#8217;)
File : /usr/lib/python2.5/site-packages/yum/plugins.py, line 178, in run
func(conduitcls(self, self.base, conf, **kwargs))
File : /usr/lib/yum-plugins/rpm-warm-cache.py, line 31, in postreposetup_hook
if commands[0] in (&#8217;upgrade&#8217;, &#8217;install&#8217;, &#8217;remove&#8217;):

Continue reading

feh – versatile image viewer works from command line too.

2009-11-21 2 min read Fedora Linux

To install :

sudo yum install feh

From the info for the feh package:

feh – versatile image viewer works from command line too
premier image file handling library. feh has many features,
from simple single file viewing, to multiple file modes using
a slideshow or multiple windows. feh supports the creation of
montages as index prints with many user-configurable options.

One of the reasons, I install feh as one of the first packages on any installation is the reason that it can open multiple images like in stack. To make things even more simpler I create a alias like this:

Continue reading

Calculations

2009-11-17 1 min read Fedora Learning Linux

<img src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/perl-one-liners.jpg" alt="Perl One Liners" align="bottom" />This is the third part of a seven-part article on famous Perl one-liners. In this part I will create various one-liners for calculations. See <a href="http://www.catonmat.net/blog/perl-one-liners-explained-part-one/">part one for introduction of the series.

Famous Perl one-liners is my attempt to create “perl1line.txt” that is similar to “<a href="http://www.catonmat.net/blog/awk-one-liners-explained-part-one/">awk1line.txt” and “<a href="http://www.catonmat.net/blog/sed-one-liners-explained-part-one/">sed1line.txt” that have been so popular among Awk and Sed programmers.

The article on famous Perl one-liners will consist of at least seven parts:

Continue reading

Access the disk image created by Qemu using guestfish in Fedora.

2009-11-11 1 min read Fedora

If you are used to using Qemu for doing some experiments with different distro&#8217;s then you would also understand the problem of having to do ftp/ssh to copy the files from virtual machine to local machine. Also you have to run the machine to do that. How would you like to have a application that can help you copy the files to and from the  image without having to run the VM. That&#8217;s exactly what the guestfish does. How to do it, quick demo here:

Continue reading

Linux xdg-open — replacement for start in windows

2009-11-05 1 min read Fedora Linux

if you want to open any document with the default document handler from the bash prompt or command prompt in linux then the simplest way to do that is use &#8221;xdg-open&#8221;.

This can also be used in bash scripts to allow users to select which document to open without worrying about if a particular application is installed or not. Example could be where you have list of documents in the current directory (same kind or of different format.) and you want the user to select the document. In such a scenario you can take the user input for the filename and user &#8221;xdg-open filename&#8221; to open the file irrespective of the file type or worrying about if xpdf is installed or abiword is installed or not.

Continue reading

rebuild rpm from installed rpm with rpmrebuild

2009-10-22 1 min read Fedora Linux

Ever happened to you that you downloaded and installed  a rpm and then deleted the package? If your answer is yes, then there is a solution.

Come to the fairyland of rpmrebuild. Create the rpm from the installed files  and give a new number if required.

sudo yum install rpmrebuild

Simplest use is to

rpmrebuild

but I personally like the one mentioned below:

rpmrebuild -R -v -P –pug-from-db

Continue reading
Older posts Newer posts