mirror of
https://github.com/CoderSherlock/CoderSherlock.github.io.git
synced 2026-06-13 08:08:10 -07:00
New_Post_Rsync
This commit is contained in:
@@ -0,0 +1,159 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="generator" content="Hugo 0.16" />
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
|
||||
<link rel='stylesheet' href='//fonts.googleapis.com/css?family=Open+Sans|Marcellus+SC'>
|
||||
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
|
||||
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/styles/solarized_dark.min.css">
|
||||
<link rel="stylesheet" href="https://codersherlock.github.io/css/styles.css">
|
||||
<link rel="stylesheet" href="https://codersherlock.github.io/css/custom.css">
|
||||
<link rel="alternate" type="application/rss+xml" title="RSS" href="https://codersherlock.github.io//index.xml">
|
||||
|
||||
|
||||
<title>2016_08 - Mil años de solitario</title>
|
||||
<meta property='og:title' content="2016_08 - Mil años de solitario">
|
||||
<meta property="og:type" content="article">
|
||||
|
||||
|
||||
<meta property="og:url" content="https://CoderSherlock.github.io/categories/2016_08/">
|
||||
|
||||
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<header class="site">
|
||||
<nav class="navbar navbar-default">
|
||||
<div class="container">
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<a class="navbar-brand" href="https://codersherlock.github.io/">Mil años de solitario</a>
|
||||
</div>
|
||||
|
||||
<div id="navbar" class="collapse navbar-collapse">
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<div class="site">
|
||||
<div class="container">
|
||||
|
||||
|
||||
<div class="list">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<header class="page-title">2016_08</header>
|
||||
|
||||
|
||||
<article class="li">
|
||||
<header>
|
||||
<div class="date">Mon, Aug 15, 2016</div>
|
||||
<div class="title"><a href="https://codersherlock.github.io/post/Cross-Compile-RSync-ARM/">Cross Compile RSync ARM</a></div>
|
||||
</header>
|
||||
<div class="body">Cross Compile Rsync to ARM platform As always, feel free to ask. // Sherlock Motivation I got some issues about compile seafile to android, so instead of doing so, I start to figure out some other synchronize workflow. Rsync is one of the most mature synchronization solution. So I made the decision on planting rsync to android. Pre-work Rsync is a sync program with delta sync feature and based on SSH connection.</div>
|
||||
|
||||
|
||||
<footer>
|
||||
<a href="https://codersherlock.github.io/post/Cross-Compile-RSync-ARM/" class="btn btn-default">Read More…</a>
|
||||
</footer>
|
||||
|
||||
</article>
|
||||
<hr>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
|
||||
<aside class="site">
|
||||
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<h2 class="panel-title">LatestPosts</h2>
|
||||
</div>
|
||||
<div class="list-group">
|
||||
|
||||
<a href="https://codersherlock.github.io/post/Cross-Compile-RSync-ARM/" class="list-group-item">Cross Compile RSync ARM</a>
|
||||
|
||||
<a href="https://codersherlock.github.io/post/Pokemon-Go-Hack/" class="list-group-item">Pokemon Go Hack</a>
|
||||
|
||||
<a href="https://codersherlock.github.io/post/Cross-Compile-Seafile-2-ARM/" class="list-group-item">Cross Compile Seafile 2 ARM</a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<h2 class="panel-title">category</h2>
|
||||
</div>
|
||||
<div class="list-group">
|
||||
|
||||
<a href="https://codersherlock.github.io/categories/2016_07" class="list-group-item">2016_07</a>
|
||||
|
||||
<a href="https://codersherlock.github.io/categories/2016_08" class="list-group-item">2016_08</a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<h2 class="panel-title">tag</h2>
|
||||
</div>
|
||||
<div class="list-group">
|
||||
|
||||
<a href="https://codersherlock.github.io/tags/android" class="list-group-item">android</a>
|
||||
|
||||
<a href="https://codersherlock.github.io/tags/arm" class="list-group-item">arm</a>
|
||||
|
||||
<a href="https://codersherlock.github.io/tags/github" class="list-group-item">github</a>
|
||||
|
||||
<a href="https://codersherlock.github.io/tags/hack" class="list-group-item">hack</a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</aside>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<footer class="site">
|
||||
<div class="container">
|
||||
<p>© 2016 Mil años de solitario</p>
|
||||
<p>Powered by <a href="http://gohugo.io" target="_blank" rel="nofollow">Hugo</a>, Theme <a href="https://github.com/dim0627/hugo_theme_beg" target="_blank" rel="nofollow">beg</a> designed by <a href="http://yet.unresolved.xyz" target="_blank" rel="nofollow">Daisuke Tsuji</a></p>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<script src="//code.jquery.com/jquery-2.2.1.min.js"></script>
|
||||
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/highlight.min.js"></script>
|
||||
<script>hljs.initHighlightingOnLoad();</script>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -0,0 +1,66 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<title>2016_08 on Mil años de solitario</title>
|
||||
<link>https://CoderSherlock.github.io/categories/2016_08/</link>
|
||||
<description>Recent content in 2016_08 on Mil años de solitario</description>
|
||||
<generator>Hugo -- gohugo.io</generator>
|
||||
<language>en-us</language>
|
||||
<lastBuildDate>Mon, 15 Aug 2016 15:44:05 -0400</lastBuildDate>
|
||||
<atom:link href="https://CoderSherlock.github.io/categories/2016_08/index.xml" rel="self" type="application/rss+xml" />
|
||||
|
||||
<item>
|
||||
<title>Cross Compile RSync ARM</title>
|
||||
<link>https://codersherlock.github.io/post/Cross-Compile-RSync-ARM/</link>
|
||||
<pubDate>Mon, 15 Aug 2016 15:44:05 -0400</pubDate>
|
||||
|
||||
<guid>https://codersherlock.github.io/post/Cross-Compile-RSync-ARM/</guid>
|
||||
<description>
|
||||
|
||||
<h1 id="cross-compile-rsync-to-arm-platform">Cross Compile Rsync to ARM platform</h1>
|
||||
|
||||
<p>As always, feel free to ask. // Sherlock</p>
|
||||
|
||||
<h2 id="motivation">Motivation</h2>
|
||||
|
||||
<p>I got some issues about compile seafile to android, so instead of doing so, I start to figure out some other synchronize workflow. <a href="https://rsync.samba.org/">Rsync</a> is one of the most mature synchronization solution. So I made the decision on planting rsync to android.</p>
|
||||
|
||||
<h2 id="pre-work">Pre-work</h2>
|
||||
|
||||
<p>Rsync is a sync program with delta sync feature and based on SSH connection. So all we need to do is SSH support and cross compile tool-chain. Similar to what I mentioned in <a href="https://codersherlock.github.io/post/Cross-Compile-Seafile-2-ARM/">previews blog</a>, Android NDK and environment export need to be done before compilation.
|
||||
To enable normally use of compiled program, we need to make android support SSH. My solution is just install <a href="https://play.google.com/store/apps/details?id=berserker.android.apps.sshdroid&amp;hl=en">SSHDroid</a> from Google Play Store.</p>
|
||||
|
||||
<h2 id="cross-compile-rsync">Cross-Compile Rsync</h2>
|
||||
|
||||
<p>Running following script to build rsync. It will generate a executable file named rsync in the root directory.</p>
|
||||
|
||||
<pre><code>$ ./configure --build=${BUILD_SYS} --host=${TOOLCHAIN}
|
||||
$ make
|
||||
</code></pre>
|
||||
|
||||
<h2 id="push-rsync-to-android">Push RSync to Android.</h2>
|
||||
|
||||
<p>After installing SSHDroid, we can now push our arm-version-rsync to target machine.</p>
|
||||
|
||||
<pre><code>$ adb push rsync /data/local/tmp
|
||||
$ adb shell
|
||||
|
||||
# cd /data/data/berserker.android.apps.sshdroid/dropbear
|
||||
# mv ../../../local/tmp/rsync .
|
||||
</code></pre>
|
||||
|
||||
<h2 id="run-rsync-with-argument">Run Rsync with argument</h2>
|
||||
|
||||
<p>Now we can easily use rsync in android shell. Similar to what we use on PC.</p>
|
||||
|
||||
<pre><code># ./rsync -e &quot;./ssh&quot; {target-data} {target-location}:{target-directory}
|
||||
</code></pre>
|
||||
|
||||
<h2 id="references">References</h2>
|
||||
|
||||
<p><a href="http://stackoverflow.com/questions/8130889/build-rsync-for-android">Build Rsync for Android</a></p>
|
||||
</description>
|
||||
</item>
|
||||
|
||||
</channel>
|
||||
</rss>
|
||||
@@ -0,0 +1 @@
|
||||
<!DOCTYPE html><html><head><link rel="canonical" href="https://CoderSherlock.github.io/categories/2016_08/"/><meta http-equiv="content-type" content="text/html; charset=utf-8" /><meta http-equiv="refresh" content="0;url=https://CoderSherlock.github.io/categories/2016_08/" /></head></html>
|
||||
Reference in New Issue
Block a user