the fast, reliable localhost tunneling solution


Debian package of pagekite.py

2012-01-12, 15:50

NOTE: This page is obsolete, please see DebianPackage instead.

A debian package of pagekite.py is being developed on Github.

Using an apt repo

The pagekite debian package is hosted in an unoffical apt package repository. You can add

deb http://apt.he.pagekite.me/ pagekite main

to your /etc/apt/sources.list. Ubuntu users can do the same through the graphical Synaptic package manager.

You will need to add a GPG key to the package manager so it can verify the package. This can be done by issuing:

sudo apt-key adv --recv-keys --keyserver keys.gnupg.net 6F95480C

Then refresh your package sources by issuing

sudo apt-get update

and the install pagekite

sudo apt-get install pagekite

Installing manually

If you don't want to use apt or similar package managers to keep your system up to date you can always install the package manually

The latest .deb package can be found https://github.com/hrafnkelle/PyPagekite/downloads

Debian and Ubuntu users should be able to install it by dowloading the package and then install it

sudo dpkg -i pagekite_0.3.12-1_all.deb

(replace version number with the one you downloaded, hopefully the latest!)

How this is different

Using the Debian package is a fair bit different from using the stand-alone pagekite.py as distributed by pagekite.net.

The main differences are that the Debian package will integrate pagekite.py into your system so that it starts up automatically and runs in the background, and it will ignore the .pagekite.rc file in your home directory and use files from /etc/ instead (see below for details).

Since it runs in the background, debugging and other log output is not sent to the console, but written to files in /var/log/pagekite/.

Configuration

The configuration can then be found in the directory /etc/pagekite/. Backend definitions should be placed in /etc/pagekite/local.rc, changing /etc/pagekite/pagekite.rc is not recommended.

pagekite.py will be started automatically on install. Manual starting and stopping of pagekite can be done with

sudo invoke-rc.d pagekite start/stop

If you wish to run your own frontend, please look at the example in /usr/share/doc/pagekite/examples/frontend.rc

Intent to Package

Hopefully this package will be accepted into the Debian repositories. An Intent to Package has been filed, bugnr #610358.

[ Back to How-Tos ]

Comments

  1. Lane Lester said on 2011-08-02, 11:42
    I added the Debian repository, but apt-get update generated this:

    W: Failed to fetch http://pagekite.net/pk/deb/dists/page... Unable to find expected entry 'main/binary-amd64/Packages' in Release file (Wrong sources.list entry or malformed file)
    Permalink
  2. Bjarni Rúnar Einarsson said on 2011-08-02, 12:00
    Thanks for the comment Lane. I've added the amd64 architecture, if you try again it should work.
    Permalink
  3. Freedombox said on 2011-08-02, 12:32
    W: Failed to fetch http://pagekite.net/pk/deb/dists/page... Unable to find expected entry main/binary-armel/Packages in Meta-index file (malformed Release file?)
    Permalink
  4. Bjarni Rúnar Einarsson said on 2011-08-02, 12:41
    Architecture armel added as well! I wonder where I can find a comprehensive list of all architectures...
    Permalink
  5. Freedombox said on 2011-08-02, 13:22
    apt on armel complains about:
    The following packages have unmet dependencies:
    pagekite : Depends: python-socksipychain (>= 2.0) but it is not installable
    E: Broken packages

    a list of debian architectures is a work in progress on http://www.debian.org/ports/
    Permalink
  6. Freedombox said on 2011-08-02, 13:23
    apt on armel complains about:
    The following packages have unmet dependencies:
    pagekite : Depends: python-socksipychain (>= 2.0) but it is not installable
    E: Broken packages

    a list of debian architectures is a work in progress on http://www.debian.org/ports/
    Permalink
  7. Bjarni Rúnar Einarsson said on 2011-08-02, 16:03
    Freedombox: Interesting. I've rebuilt the repo, does it see the python-pysocksipychain package now? If not, are you able to install it directly if you use the download link at the top of the page?
    Permalink
  8. Freedombox said on 2011-08-03, 14:35
    Thanks, now it almost works ootb:
    Setting up python-socksipychain (2.0.1-0pagekite) ...
    Setting up pagekite (0.4.4c-0pagekite) ...
    Traceback (most recent call last):
    File "/usr/bin/pagekite", line 3, in <module>
    import pagekite as pk
    ImportError: No module named pagekite

    After that i had to start pagekite myself.

    Direct installation worked too of course.
    Permalink

Leave a comment

( (Please leave these blank: )

We use Gravatar for commenter's photos. Get your own, it's free!