the fast, reliable localhost tunneling solution


PageKite and ownCloud

By Bjarni Rúnar Einarsson 2012-01-31, 11:39

ownCloud recently announced version 3 of their personal cloud system. It's pretty cool! Their installation process is relatively simple - it only takes a few minutes to get it up and running on localhost:80.

They kindly mentioned that PageKite might be useful for those who want to go a step further, and make their ownCloud visible to the public Internet.

So here is how to do just that, with automatic TLS encryption and the works:

# Install pagekite.py to /usr/local/bin:
$ curl -s https://pagekite.net/pk/ | sudo bash

# Fire it up!
$ pagekite.py 80 YOUR-NAME-HERE.pagekite.me

Voila! Your ownCloud will be publicly visible as: https://YOUR-NAME-HERE.pagekite.me/owncloud/.

Why is this cool?

  • As you can see, it's really quick and easy
  • You get true TLS encryption without any extra effort
  • You don't need to reconfigure any routers or DNS settings
  • Your ownCloud can be anywhere - at school, home, work - or even all of the above if you are mobile.

More info:


Note: although PageKite is free as in freedom, the PageKite service is not gratis - it costs money to run and we are trying to make a living here! The source is available, so if you don't want to pay us you can run your own private "pagekite service". But... our trial period is long and generous and there are no strings attached. So please feel free to give it a try.

Note 2: If you don't like our curl-to-bash installer, alternate instructions are on our downloads page.

Comments

  1. Wae said on 2011-10-28, 05:40
    Ok, I got a stupid question... Anybody who knows my username can have access to my data in ownCloud???
    Permalink
  2. Sam Tuke said on 2011-10-28, 14:33
    @Wae: No, following these instructions will only give you access to the OwnCloud login page. OwnCloud has its own security, user authentication and permissions system. PageKite simply allows you to access the OwnCloud web interface.
    Permalink
  3. DFles said on 2012-01-11, 21:51
    This works great! I installed Ubuntu 11.10 desktop on an old Dell. Installed Owncloud 2 and got in running. Setup my account with Pagekite and followed instructions above and now I have my own personal cloud on my own machine! Rebooting the machine does kill pagekite.py process but I am sure there is a way to auto start after rebooting - I just haven't found it yet. Pagekite and Owncloud make a great couple! Novice (but still learning) linux user; no guru here!
    Permalink
  4. Bjarni Rúnar Einarsson said on 2012-01-17, 11:35
    Hey DFIes! Since you are running Ubuntu, you should take a look at our Debian package. It integrates with the operating system, turning PageKite into a system daemon much like Apache or Cron. It will start up automatically on system boot.
    Permalink
  5. procato said on 2012-02-12, 01:15
    I have this error!
    I use Arch Linux

    @myhost ~]$ pagekite.py 80 procato.pagekite.me/
    File "/usr/local/bin/pagekite.py", line 1172
    exec __FILES[".SELF/sockschain/__init__.py"] in sys.modules["sockschain"].__dict__
    ^
    SyntaxError: invalid syntax
    Permalink
  6. Bjarni Rúnar Einarsson said on 2012-02-13, 16:15
    Hey procato! Could it be that you have Python 3 installed, not Python 2.x?

    Pagekite.py only works with version 2 at the moment, but it's been tested on most versions from 2.2 up to 2.7 without problems.
    Permalink
  7. Ilda said on 2012-02-14, 20:03
    J'ai la bonne version de python 2.7.2+ et j'ai installé le script dans / usr / local / bin et même sur le bureau mais je n'arrive pas à le lancer, en root ou non. Les propriétés sont bonnes.
    Je cale
    Permalink
  8. Bjarni Rúnar Einarsson said on 2012-02-14, 20:15
    Hi Ilda - what error message do you see? Please email us more details!

    Google-translate: Quel message d'erreur voyez vous? Envoyez-nous (email) plus de détails, s'il vous plaît? ;-)
    Permalink
  9. Ilda said on 2012-02-14, 23:05
    Aië je ne sais plus, je suis désolée. C'est bien passé en réinstallant mais en cette fois çi en ligne de commande. Je teste owncloud. En fait j'ai pas trop compris car je téléchargeais le script mais sans réussir l'installation. En passant avec le terminal j'ai téléchargé le script avec un mode graphique et ca a fonctionné. Merci
    Permalink
  10. Sumudu said on 2012-04-01, 10:28
    Its Greate its work thanks lot
    Permalink
  11. Ted said on 2013-07-08, 23:49
    No luck so far. Trying to use with owncloud. Can access owncloud from WAN by using my router's WAN ip but if I substitute my kites name connection times out. In my account info I see an IP address under visibility that does not match my router's WAN address. Is that the problem? Thanks.
    Permalink
  12. Alessandro said on 2014-08-22, 17:02
    @procato and Bjarni: yes, in Archlinux you need to change the header of the script from

    #!/usr/bin/python

    to

    #!/usr/bin/python2
    Permalink
  13. Mark said on 2014-09-16, 09:18
    this is free or not ? coz i don't have a credit card and paypal
    Permalink
  14. akhan said on 2014-11-08, 02:18
    how and where do i change the path so i can get to my own cloud page?
    Permalink
  15. antonio morataya said on 2015-02-12, 19:27
    It Works!
    Thanks it worked like a charm, i'm publishing a osticket page on my Ubuntu Webserver and runs very nice.
    I just have a question, does it have a caducity date?
    Permalink
  16. Paolo Angulo said on 2015-04-14, 13:24
    Is there a way to disable the http:// and only maintain the https:// link to owncloud through pagekites native SSL connection? Thank you
    Permalink
  17. levent said on 2015-11-24, 23:11
    I get an error

    Unknown problem!
    Error code: (<class 'sockschain.GeneralProxyError'>, GeneralProxyError((0, 'connection closed unexpectedly'),), <traceback object at 0x7f00b049bfc8>)
    Try again later?
    Permalink
  18. ALe said on 2016-01-29, 13:49
    That's a great combo pagekite + ownCloud!

    Congrats!!!
    Permalink
  19. Bhaskar said on 2016-06-09, 20:08
    I have entered many many names. But it saying unavailable. But when I checked those names in internet, unable to find them.
    https://YOUR-NAME-HERE.pagekite.me/ow...
    Why it saying unavailable even those names are not visible on the internet.
    Permalink
  20. Bhaskar said on 2016-06-09, 20:49
    I am able to solve the issue. But I tried the link from other Laptop, it ends up with my server ip ( https://w.x.y.z/owncloud) and nothing come. Some time it shows try again ..
    Environment .. Raspberry pi 2 with owncloud 8
    Permalink
  21. Deyan said on 2016-06-29, 15:39
    I have a Raspberry Pi 3 home server running Ubuntu MATE 16.04, Apache and the latest version of Nextcloud 9.0.51. Connecting to my Nextcloud account from within the local network works fine. Now I installed PageKite because I wanted to be able to access it externally. When I first tried to connect to my-domain.pagekite.me, my Nextcloud announced that my-domain.pagekite.me is not in the list of trusted domains and offered me to add it which I did using the respective button. Now when I try to connect to my-domain.pagekite.me, I am presented with a log-in page with fields for the user name and the password but there is no button for signing in. Pressing Enter doesn't work either. I can just type in my user name and password but can't log in. Also the log-in page looks a little bit different compared to the one I get from within the local network, namely the standard background image (some mountain peaks in clouds) is replaced by a solid blue background. I tried using 4 different browsers but it's always the same. What could be the reason for this strange behaviour? Logging in from within the local network still works normally.
    Permalink
  22. Deyan said on 2016-07-03, 00:48
    By looking into the browser console during loading the page (see my comment above) I found that a significant part of the js files are not served. If I open the log-in page by pointing the browser to the local network address, all js files are delivered and everything is normal. When I try to access the log-in page through my-domain.pagekite.me, about 60-70% of the js files are not delivered which results in missing log-in button and other elements on the page. Interestingly, the js files that don't get delivered are not constant, I mean by repeatedly reloading the page sometimes a given js file is delivered and sometimes it's not. Does anyone have an idea how to overcome this problem? https://help.nextcloud.com/t/nextclou...
    Permalink
  23. ANGELI said on 2016-08-08, 19:44
    I'd experimented a similar problem (see https://pagekite.net/support/forum/; item "Loading ressource page link with https failed") ; it's appeared to be related with the Python installation on my ubuntu 16.4.1 server (is this problem linked with Ubuntu 16.4.*).

    I fixe it by creating a python virtual environment (see virtual env) and running pagekite on it.
    Permalink
  24. osilvab said on 2017-01-03, 12:15
    has anyone tried this in Owncloud 9.1? or any alternative solution to it?
    Permalink
  25. Carlos said on 2017-09-16, 20:28
    Fedora 26 owncloud 10 (http://manjaro.site/install-owncloud-...), and pagekite running like a boss!
    Permalink
  26. itsmi said on 2019-05-27, 13:00
    -bash: /usr/local/bin/pagekite.py: /usr/bin/python: bad interpreter: No such file or directory
    im using ubuntu 18.04 server
    I followed instructions as displayed and pagekite.py has no directory
    Permalink
  27. SampER said on 2019-07-14, 10:15
    "-bash: /usr/local/bin/pagekite.py: /usr/bin/python: bad interpreter: No such file or directory
    im using ubuntu 18.04 server
    I followed instructions as displayed and pagekite.py has no directory"

    same problem here :/ please help!
    Permalink
  28. SampER said on 2019-07-14, 10:29
    apt install python
    is the solution
    Permalink

Leave a comment

( (Please leave these blank: )

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