SparkleShare and host (my) your own git server

  • user warning: Table './u2001_drupal/v_cache_captcha' is marked as crashed and last (automatic?) repair failed query: SELECT data, created, headers, expire FROM v_cache_captcha WHERE cid = '6j5avjhak9hodfa5l103cmadk7:a3058b411fdff67b36a35f67c6bd6554' in /htdocs/OLD_velt.de/includes/database.mysqli.inc on line 156.
  • user warning: Table './u2001_drupal/v_cache_captcha' is marked as crashed and last (automatic?) repair failed query: LOCK TABLES v_cache_captcha WRITE in /htdocs/OLD_velt.de/includes/database.mysqli.inc on line 156.
  • user warning: Table './u2001_drupal/v_cache_captcha' is marked as crashed and last (automatic?) repair failed query: UPDATE v_cache_captcha SET data = 'a:3:{s:8:\"question\";s:63:\"<img src=\"/mycaptcha/image/a3058b411fdff67b36a35f67c6bd6554\" />\";s:6:\"answer\";s:5:\"83QBP\";s:11:\"description\";s:51:\"To combat spam, please enter the code in the image.\";}', created = 1490624566, expire = 1490631766, headers = '' WHERE cid = '6j5avjhak9hodfa5l103cmadk7:a3058b411fdff67b36a35f67c6bd6554' in /htdocs/OLD_velt.de/includes/database.mysqli.inc on line 156.
  • user warning: Table './u2001_drupal/v_sessions' is marked as crashed and last (automatic?) repair failed query: SELECT COUNT(sid) AS count FROM v_sessions WHERE timestamp >= 1490623666 AND uid = 0 in /htdocs/OLD_velt.de/includes/database.mysqli.inc on line 156.
  • user warning: Table './u2001_drupal/v_sessions' is marked as crashed and last (automatic?) repair failed query: SELECT DISTINCT u.uid, u.name, s.timestamp FROM v_users u INNER JOIN v_sessions s ON u.uid = s.uid WHERE s.timestamp >= 1490623666 AND s.uid > 0 ORDER BY s.timestamp DESC in /htdocs/OLD_velt.de/includes/database.mysqli.inc on line 156.

This is not a complete tutorial but a list of steps (I hope all needed) to get it working

  1. Install SparkleShare on client
    Download source from http://www.sparkleshare.org/ (look at the news!) Look at the README for required packages!
    tar xzf sparkleshare-0.2-beta1.tar.gz
    cd sparkleshare-0.2-beta1
    ./configure --prefix=/opt/sparkleshare
    make
    sudo make install
  2. Prepare directories and start SparkeShare
    As user:
    % cd
    % mkdir -p SparkleShare/.tmp
    % /opt/sparkleshare/bin/sparkleshare &

    Let it create a new SSH key for you.
  3. Stop SparkleShare
    There's a menu for it... ;-) You don't need to add a remote repository here.
  4. Find your SparkeShare-SSH-Public-Key
    % cd ~/.config/sparkleshare
    % cat *.pub ### You need the contents for the next step
  5. On your own SparkleShare-Git-Server
    % sudo adduser --disabled-password USERNAME
    % cd ~USERNAME
    % sudo mkdir .ssh
    % sudo vi .ssh/authorized_keys ### Copy&Paste your SparkleShare-SSH-Public-Key
    % sudo mkdir FooBar.git
    % sudo cd FooBar.git
    % sudo git init .
    % sudo touch README
    % sudo git add README
    % sudo git commit -m "Initial commit"
    % cd ..
    % sudo chown -R USERNAME .
  6. Clone your git repository on the client
    As user:
    % cd ~/SparkleShare
    % git clone USERNAME@SERVER:FooBar.git
  7. Start SparkleShare
    % /opt/sparkleshare/bin/sparkleshare &
  8. Trackback URL for this post:

    http://velt.de/trackback/277

Snow Leopard

Just got it to work with Snow Leopard 10.6.7 and 10.6.8. I hope it helps.

http://www.instructables.com/id/SparkleShare-for-OSX-a-Dropbox-alternative/

Endlich eine freie Alternative für Dropbox

Darauf habe ich schon lange gewartet. Endlich eine Alternative zu Dropbox.

initialisieren des git repository

Nach ein paar Versuchen habe ich festgestellt, dass man das git repo auf dem Server mit git init --bare initialisieren sollte, da sonst beim pushen (also synchronisieren von änderungen vom client auf den server) immer ein Fehler auftritt.

Gruss

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.
  • You may link to Gallery2 items on this site using a special syntax.

Weitere Informationen über Formatierungsoptionen

To combat spam, please enter the code in the image.
Inhalt abgleichen
Powered by Olark