the fast, reliable localhost tunneling solution


automatic startup on Raspberry Pi

2013-09-22, 14:21

I installed Pagekite, set up ssh connectivity and let it fly by entering "pagekite" when logged in as a regular user. I can access my pi via SSh by configuring Putty as explained in the how to page. However this only works when starting pagekite manually. Since the Raspberry Pi is running unattendedly, I need to start te kite automatically after reboot.

I checked the active processes - no pagekite listed

I checked the /etc/rc3.d directory, where it says lrwxrwxrwx 1 root root 18 Sep 21 19:51 S03pagekite -> ../init.d/pagekite

in the /etc/init.d directory, pagekite is avaliable: -rwxr-xr-x 1 root root 4941 Aug 21 2011 pagekite

I added @reboot /usr/bin/python /usr/bin/pagekite to crontab - to no avail

Do you have any hint how the pagekite autostart can be accomplished? thanks a million Chris

Comments

  1. ChrisK said on 2013-09-22, 15:02
    problem is soveld. I somehow forgot to edit the file /etc/pagekite.d/10_account.rc: acording to the page "Configure Your GNU/Linux System for use with Pagekite". all is well now.
    Chris
    Permalink
  2. Michael Lavelle said on 2015-04-10, 14:50
    My distribution did not provide the file: 10_account.rc. Suggestions?
    Permalink
  3. Matt said on 2016-01-13, 00:24
    10_account.rc is missing on mine too. Very frustrating trying to do the most basic thing of starting pagekite in linux on boot! Why isnt there a setup asking for this? Took me all night to find this page and still no success. Ive given up now. This should be in the setup procedure. or on the front page faq somewhere between how to download pagekite and how to install pagekyte: 'how to start pagekyte on boot'
    Permalink
  4. Tyler said on 2019-04-04, 04:01
    I created a file in /home/pi called "startupscript.sh" containing the following:

    #! /bin/sh
    python pagekite.py --clean --frontend=DOMAIN:PORT --service_on=http:DOMAIN:localhost:PORT:SECRET

    I then just entered the following in Pi's crontab:

    @reboot /home/pi/startupscript.sh

    It's not a perfect solution by any means, but it seems to actually work!
    Permalink
  5. Asimuz said on 2020-07-08, 14:24
    I got autostart of Pagekite on Raspberry working by following:
    https://www.linuxbabe.com/linux-server/expose-localhost-to-internet-pagekite-ubuntu
    Section: Create a Systemd Service Unit for PageKite Server & Configure Pagekite Client to Use Your Own Server
    Permalink

Leave a comment

( (Please leave these blank: )

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