From 4e00b22c5802c320272959cc5151284a51cb0bc3 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 24 Sep 2008 18:33:42 -0700 Subject: [PATCH] IGN:... --- src/calibre/trac/plugins/download.py | 3 ++- .../trac/plugins/templates/distro.html | 27 +++---------------- 2 files changed, 5 insertions(+), 25 deletions(-) diff --git a/src/calibre/trac/plugins/download.py b/src/calibre/trac/plugins/download.py index af7f26fd3c..33049e9dc8 100644 --- a/src/calibre/trac/plugins/download.py +++ b/src/calibre/trac/plugins/download.py @@ -131,8 +131,9 @@ class Download(Component): return self.linux_distro(req, os) def linux_distro(self, req, os): + version = self.version_from_filename() distro = Distribution(os) - data = dict(distro=distro,title=distro.title) + data = dict(distro=distro,title=distro.title, version=version) return 'distro.html', data, None def top_level(self, req): diff --git a/src/calibre/trac/plugins/templates/distro.html b/src/calibre/trac/plugins/templates/distro.html index d05c758ed3..8d5c041cf3 100644 --- a/src/calibre/trac/plugins/templates/distro.html +++ b/src/calibre/trac/plugins/templates/distro.html @@ -35,10 +35,10 @@
  1. Make sure that your system has python >= 2.5
  2. -
  3. Install the various dependencies listed below: Make sure that any python packages are installed into python2.5 (e.g. setuptools, python-imaging, PyQt4, etc). You will also have to install the development versions of the packages (these packages usually have -dev added to their names.
  4. -
  5. Run the following commands in a terminal (replacing the version number with the latest calibre version): +
  6. Install the various dependencies listed below: Make sure that any python packages are installed into python2.5 (e.g. setuptools, python-imaging, PyQt4, etc). You will also have to install the development versions of the packages (these packages usually have -dev added to their names).
  7. +
  8. Run the following commands in a terminal:
    -wget -O- http://calibre.kovidgoyal.net/downloads/calibre-0.4.83.tar.bz2 | tar xvj 
    +wget -O- http://calibre.kovidgoyal.net/downloads/calibre-$version.tar.gz | tar xvz 
     cd calibre*
     python setup.py build && sudo python setup.py install
                 
  9. @@ -63,27 +63,6 @@ python setup.py build && sudo python setup.py install
-

Post Installation

- Connect the SONY Reader to the USB port. As root, test your installation by -
prs500 info
-

- This should return some miscellaneous information about your reader. If it works your reader is being recognized by calibre. - On some distributions, you have to give non-root users access to the reader devices. - First check what group the reader devices are assigned to by -

ls -l /dev/sd?
- If you've just plugged in your reader, the reader devices should be at the bottom of the list. On - my system I get -
-brw-r----- 1 root disk 8,  0 2008-05-27 13:50 /dev/sda
-brw-r----- 1 root disk 8, 16 2008-05-27 13:50 /dev/sdb
-brw-r----- 1 root disk 8, 32 2008-05-28 07:43 /dev/sdc
-brw-r----- 1 root disk 8, 48 2008-05-28 07:43 /dev/sdd
-brw-r----- 1 root disk 8, 64 2008-05-28 07:43 /dev/sde
-        
- Thus the group needed is disk. Add yourself to the group with the command -
gpasswd -a username groupname
-

- Now reboot and you're done!