http://openmoko.org/index.php?title=USB_Networking/zh_tw&feed=atom&action=history
USB Networking/zh tw - Revision history
2024-03-28T17:57:09Z
Revision history for this page on the wiki
MediaWiki 1.19.24
http://openmoko.org/index.php?title=USB_Networking/zh_tw&diff=88182&oldid=prev
Julian chu: /* SSH Extras */
2011-11-22T13:52:46Z
<p><span dir="auto"><span class="autocomment">SSH Extras</span></span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 13:52, 22 November 2011</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 246:</td>
<td colspan="2" class="diff-lineno">Line 246:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>要避免 ssh 為每個已知的hostsssh host-key加入新的一行,你可以加下下列的內容到~/.ssh/config</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>要避免 ssh 為每個已知的hostsssh host-key加入新的一行,你可以加下下列的內容到~/.ssh/config</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>   <del class="diffchange diffchange-inline">UserKnownHostsFile /dev/null</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>   <ins class="diffchange diffchange-inline">StrictHostKeyChecking no</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>你可能想要使用 key 跳過這個過程。</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>你可能想要使用 key 跳過這個過程。</div></td></tr>
</table>
Julian chu
http://openmoko.org/index.php?title=USB_Networking/zh_tw&diff=47666&oldid=prev
Dolfje at 20:19, 20 August 2008
2008-08-20T20:19:49Z
<p></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 20:19, 20 August 2008</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 297:</td>
<td colspan="2" class="diff-lineno">Line 297:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>對我來講,它是行的通的。  I ripped off these instructions from: [[http://forum.openwrt.org/viewtopic.php?pid=53705]]</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>對我來講,它是行的通的。  I ripped off these instructions from: [[http://forum.openwrt.org/viewtopic.php?pid=53705]]</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del style="color: red; font-weight: bold; text-decoration: none;"></del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del style="color: red; font-weight: bold; text-decoration: none;">[[Category:Hardware]]</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del style="color: red; font-weight: bold; text-decoration: none;">[[Category:USB| ]]</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>===透過桌面的GUI SSH===</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>===透過桌面的GUI SSH===</div></td></tr>
<tr><td colspan="2" class="diff-lineno">Line 331:</td>
<td colspan="2" class="diff-lineno">Line 328:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>[[Category:Hardware/zh tw]]</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>[[Category:Hardware/zh tw]]</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>[[Category:Implemented/zh tw]]</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>[[Category:Implemented/zh tw]]</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">[[Category:USB/zh tw|USB/zh tw]]</ins></div></td></tr>
</table>
Dolfje
http://openmoko.org/index.php?title=USB_Networking/zh_tw&diff=47624&oldid=prev
Dolfje at 20:01, 20 August 2008
2008-08-20T20:01:48Z
<p></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 20:01, 20 August 2008</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 329:</td>
<td colspan="2" class="diff-lineno">Line 329:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>{{Languages|USB Networking}}</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>{{Languages|USB Networking}}</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>[[Category:Hardware]]</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>[[Category:Hardware<ins class="diffchange diffchange-inline">/zh tw</ins>]]</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>[[Category:Implemented]]</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>[[Category:Implemented<ins class="diffchange diffchange-inline">/zh tw</ins>]]</div></td></tr>
</table>
Dolfje
http://openmoko.org/index.php?title=USB_Networking/zh_tw&diff=35087&oldid=prev
Coolcat: /* NEO上的遠端程式 */
2008-06-24T11:03:24Z
<p><span dir="auto"><span class="autocomment">NEO上的遠端程式</span></span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 11:03, 24 June 2008</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 311:</td>
<td colspan="2" class="diff-lineno">Line 311:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>===NEO上的遠端程式===</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>===NEO上的遠端程式===</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">To get desktop apps to show up on your neo, first log in to the phone</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">要讓桌面上的程式能在你的NEO上顯示,請登入手機:</ins></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div> </div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>   ssh -l root 192.168.0.202</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>   ssh -l root 192.168.0.202</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">Then once inside, run:</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">執行:</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>   DISPLAY=:0 xhost +192.168.0.200</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>   DISPLAY=:0 xhost +192.168.0.200</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">After this you can close the ssh session. Back on the desktop computer, run:</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">之後,你可以關閉ssh session。回到桌上型電腦,執行:</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>   DISPLAY=moko:0 xclock</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>   DISPLAY=moko:0 xclock</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">Note that the xhost command will allow remote applications on </del>192.168.0.200 <del class="diffchange diffchange-inline">to access the </del>X <del class="diffchange diffchange-inline">server. It will allow anyone on the desktop machine to access the X server of the neo, including snooping anything you type on it. To disallow remote applications again, run this in the neo:</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">請注意xhost 指令只會允許遠端應用程式在 </ins>192.168.0.200 <ins class="diffchange diffchange-inline">存取X server。它允許任何人用桌上型機器存取neo </ins>X <ins class="diffchange diffchange-inline">server。要停用遠端應用程式,在NEO上執行:</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>   DISPLAY=:0 xhost -192.168.0.200</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>   DISPLAY=:0 xhost -192.168.0.200</div></td></tr>
</table>
Coolcat
http://openmoko.org/index.php?title=USB_Networking/zh_tw&diff=35086&oldid=prev
Coolcat: /* Remote apps on neo */
2008-06-24T10:59:03Z
<p><span dir="auto"><span class="autocomment">Remote apps on neo</span></span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 10:59, 24 June 2008</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 309:</td>
<td colspan="2" class="diff-lineno">Line 309:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>如登入,並且執行openmoko-finger-demo ,它會在桌面開啟。要取得橫式的檢視,請變更桌面的GUI視窗。</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>如登入,並且執行openmoko-finger-demo ,它會在桌面開啟。要取得橫式的檢視,請變更桌面的GUI視窗。</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>===<del class="diffchange diffchange-inline">Remote apps on neo</del>===</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>===<ins class="diffchange diffchange-inline">NEO上的遠端程式</ins>===</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>To get desktop apps to show up on your neo, first log in to the phone</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>To get desktop apps to show up on your neo, first log in to the phone</div></td></tr>
</table>
Coolcat
http://openmoko.org/index.php?title=USB_Networking/zh_tw&diff=35085&oldid=prev
Coolcat: /* GUI on desktop through SSH */
2008-06-24T10:58:28Z
<p><span dir="auto"><span class="autocomment">GUI on desktop through SSH</span></span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 10:58, 24 June 2008</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 301:</td>
<td colspan="2" class="diff-lineno">Line 301:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>[[Category:USB| ]]</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>[[Category:USB| ]]</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>===<del class="diffchange diffchange-inline">GUI on desktop through </del>SSH===</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>===<ins class="diffchange diffchange-inline">透過桌面的GUI </ins>SSH===</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">If you need to get the GUI on the phone onto the desktop via usb, you can use ssh as follows</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">如果你必須方過USB取得手機上的GUI,你可以用下面的方式使用SSH:</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>   ssh -l root -X -v 192.168.0.202</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>   ssh -l root -X -v 192.168.0.202</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">Login, and run openmoko</del>-finger-demo <del class="diffchange diffchange-inline">for example, and it will open up on the desktop. To get landscape view, just resize the GUI window on the desktop.</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">如登入,並且執行openmoko</ins>-finger-demo <ins class="diffchange diffchange-inline">,它會在桌面開啟。要取得橫式的檢視,請變更桌面的GUI視窗。</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>===Remote apps on neo===</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>===Remote apps on neo===</div></td></tr>
</table>
Coolcat
http://openmoko.org/index.php?title=USB_Networking/zh_tw&diff=35084&oldid=prev
Coolcat: /* Connecting to phone */
2008-06-24T10:43:54Z
<p><span dir="auto"><span class="autocomment">Connecting to phone</span></span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 10:43, 24 June 2008</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 222:</td>
<td colspan="2" class="diff-lineno">Line 222:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>在這裡<tt>192.168.0.1</tt> 是你的gateway的IP。它是最簡單的方法,但是不建議這樣做。但假設你有像ISP DNS服務一樣直接連到網路,則建議這樣做,但它無法做到流量調節。</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>在這裡<tt>192.168.0.1</tt> 是你的gateway的IP。它是最簡單的方法,但是不建議這樣做。但假設你有像ISP DNS服務一樣直接連到網路,則建議這樣做,但它無法做到流量調節。</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>= <del class="diffchange diffchange-inline">Connecting to phone </del>=</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>= <ins class="diffchange diffchange-inline">連接到電話 </ins>=</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">Then </del><tt>ssh root@192.168.0.202</tt> <del class="diffchange diffchange-inline">with empty password to get into phone</del>.</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">接著以空白密碼連接到 </ins><tt>ssh root@192.168.0.202</tt> <ins class="diffchange diffchange-inline">電話。</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div> </div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">注意: 在Openmoko上的ssh daemon (dropbear 0</ins>.<ins class="diffchange diffchange-inline">49) 的程式在傳現及離開客端狀態有 bug。你會收到的離開狀態為255。</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del style="color: red; font-weight: bold; text-decoration: none;">NOTE: the ssh daemon (dropbear 0.49) on the OpenMoko appears to have a bug when sending the exit status back to the client. From time to time you receive an exit status of 255.</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>===SSH Extras===</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>===SSH Extras===</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">If you get fed up with typing root</del>@192.168.0.<del class="diffchange diffchange-inline">202, on your PC edit </del>/etc/hosts <del class="diffchange diffchange-inline">and add an entry for </del>'phone'</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">I如果你在PC上鍵入root</ins>@192.168.0.<ins class="diffchange diffchange-inline">202,編輯 </ins>/etc/hosts <ins class="diffchange diffchange-inline">並加入一個輸入</ins>'phone'</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>  192.168.0.202 phone</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>  192.168.0.202 phone</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">then </del>edit ~/.ssh/config (<del class="diffchange diffchange-inline">or create it</del>) <del class="diffchange diffchange-inline">and add</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">接著編輯 </ins>edit ~/.ssh/config (<ins class="diffchange diffchange-inline">或建立它</ins>) <ins class="diffchange diffchange-inline">並加入</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>  host phone</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>  host phone</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>  user root</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>  user root</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">then all you need to do is type </del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">你必須做的工作是 </ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>  # ssh phone</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>  # ssh phone</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">To avoid ssh added a new line for every </del>ssh host-<del class="diffchange diffchange-inline">key to you known_hosts you can add the following to the phone section in </del>~/.ssh/config</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">要避免 </ins>ssh <ins class="diffchange diffchange-inline">為每個已知的hostsssh </ins>host-<ins class="diffchange diffchange-inline">key加入新的一行,你可以加下下列的內容到</ins>~/.ssh/config</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>   UserKnownHostsFile /dev/null</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>   UserKnownHostsFile /dev/null</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">You might want to use keys to bypass the login prompt too.</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">你可能想要使用 key 跳過這個過程。</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>===SSH Keys===</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>===SSH Keys===</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>====<del class="diffchange diffchange-inline">From host to phone</del>====</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>====<ins class="diffchange diffchange-inline">從主機到手機</ins>====</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">To generate </del>ssh <del class="diffchange diffchange-inline">keys for use as a login mechanism type</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">要產生可以用的 </ins>ssh <ins class="diffchange diffchange-inline">key 做為登入之用,請輸入:</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>  ssh-keygen -t rsa</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>  ssh-keygen -t rsa</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">when prompted for a password either hit enter for no password </del>(''<del class="diffchange diffchange-inline">not really a good idea</del>'') <del class="diffchange diffchange-inline">or enter a password for this key. ssh into the phone and create </del>~/.ssh</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">在出現鍵入密碼時,請鍵入ENTER</ins>(''<ins class="diffchange diffchange-inline">雖然它不是個好主意</ins>'')<ins class="diffchange diffchange-inline">或者是以這個KEY做為密碼輸入。ssh到手機,並且建立</ins>~/.ssh</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>  # mkdir ~/.ssh</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>  # mkdir ~/.ssh</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">then from your PC copy the </del>'''.pub''' <del class="diffchange diffchange-inline">file to the phone.</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">接著,從你的電腦上複製 </ins>'''.pub'''<ins class="diffchange diffchange-inline">檔案到手機上</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>  # scp ~/.ssh/id_rsa.pub phone:.ssh/authorized_keys</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>  # scp ~/.ssh/id_rsa.pub phone:.ssh/authorized_keys</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">You should now be able to </del>ssh <del class="diffchange diffchange-inline">directly into the phone.</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">你現在應該可以直接 </ins>ssh <ins class="diffchange diffchange-inline">到手機上</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">To disable password logins </del>('''<del class="diffchange diffchange-inline">after setting up key access</del>''') <del class="diffchange diffchange-inline">edit </del>/etc/init.d/dropbear <del class="diffchange diffchange-inline">and change the following line:</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">要停用登入密碼 </ins>('''<ins class="diffchange diffchange-inline">在設定完KEY存取之後</ins>''') <ins class="diffchange diffchange-inline">編輯 </ins>/etc/init.d/dropbear <ins class="diffchange diffchange-inline">並且變更下列的內容</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>  DROPBEAR_EXTRA_ARGS=</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>  DROPBEAR_EXTRA_ARGS=</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">to </del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">為</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>  DROPBEAR_EXTRA_ARGS="-s"</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>  DROPBEAR_EXTRA_ARGS="-s"</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">You will need to restart dropbear for this to take effect.</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">你必須重新啟動,以讓設定生效。</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>====<del class="diffchange diffchange-inline">From phone to host</del>====</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>====<ins class="diffchange diffchange-inline">從手機到主機</ins>====</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">Generate the key</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">產生key</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>   dropbearkey -t rsa -f id_rsa</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>   dropbearkey -t rsa -f id_rsa</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">The output will look something like this:</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">輸出內容將如下:</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>   Will output 1024 bit rsa secret key to 'id_rsa'</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>   Will output 1024 bit rsa secret key to 'id_rsa'</div></td></tr>
<tr><td colspan="2" class="diff-lineno">Line 289:</td>
<td colspan="2" class="diff-lineno">Line 290:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>   Fingerprint: md5 ca:e8:f0:b7:f6:7b:c2:b6:b9:71:e4:45:86:a9:ff:b8</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>   Fingerprint: md5 ca:e8:f0:b7:f6:7b:c2:b6:b9:71:e4:45:86:a9:ff:b8</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">Copy and paste the one line </del>(<del class="diffchange diffchange-inline">in this example, starting with </del>'ssh-rsa' <del class="diffchange diffchange-inline">onto the end of the host's </del>authorized_keys <del class="diffchange diffchange-inline">file </del>(<del class="diffchange diffchange-inline">often in </del>~/.ssh/).</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">複製並貼上以下的內容 </ins>(<ins class="diffchange diffchange-inline">在這個範例當中,以</ins>'ssh-rsa' <ins class="diffchange diffchange-inline">開始,到主機的 </ins>authorized_keys <ins class="diffchange diffchange-inline">檔案為止 </ins>(<ins class="diffchange diffchange-inline">通常是在 </ins>~/.ssh/).</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">From the phone, ssh with </del>-i:</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">從手機,ssh  </ins>-i:</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>   ssh -i id_rsa user@host</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>   ssh -i id_rsa user@host</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">This works for me. </del> I ripped off these instructions from: [[http://forum.openwrt.org/viewtopic.php?pid=53705]]</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">對我來講,它是行的通的。 </ins> I ripped off these instructions from: [[http://forum.openwrt.org/viewtopic.php?pid=53705]]</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>[[Category:Hardware]]</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>[[Category:Hardware]]</div></td></tr>
</table>
Coolcat
http://openmoko.org/index.php?title=USB_Networking/zh_tw&diff=35083&oldid=prev
Coolcat: /* Proxying with a UDP forwarder */
2008-06-24T10:28:12Z
<p><span dir="auto"><span class="autocomment">Proxying with a UDP forwarder</span></span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 10:28, 24 June 2008</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 207:</td>
<td colspan="2" class="diff-lineno">Line 207:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>這個 script 被設定為使用 [http://dnrd.sourceforge.net/ dnrd] 做為 dns proxy。[http://buildhost.automated.it/gta01 script] 及 [http://buildhost.automated.it/dnrd-2.20.3.tar.gz dnrd]的複本可以自我的網站取得。這個 script也可以執行上列的[[USB_Networking#Manual_method]]初始安裝。</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>這個 script 被設定為使用 [http://dnrd.sourceforge.net/ dnrd] 做為 dns proxy。[http://buildhost.automated.it/gta01 script] 及 [http://buildhost.automated.it/dnrd-2.20.3.tar.gz dnrd]的複本可以自我的網站取得。這個 script也可以執行上列的[[USB_Networking#Manual_method]]初始安裝。</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>=== <del class="diffchange diffchange-inline">Proxying with a UDP forwarder </del>===</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>=== <ins class="diffchange diffchange-inline">以UDP forwarder代管 </ins>===</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">Another easy setup is using a udp forwarder like the one from http</del>://www.tapor.com/udpf/ <del class="diffchange diffchange-inline">- is use it with the command</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">另一個簡單的安裝是使用來自http</ins>://www.tapor.com/udpf/<ins class="diffchange diffchange-inline"> 的udp forwarder,它可以用下列指令操作:</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>  udpf-elf\</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>  udpf-elf\</div></td></tr>
</table>
Coolcat
http://openmoko.org/index.php?title=USB_Networking/zh_tw&diff=35082&oldid=prev
Coolcat: /* Mobile開發 */
2008-06-24T10:09:15Z
<p><span dir="auto"><span class="autocomment">Mobile開發</span></span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 10:09, 24 June 2008</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 202:</td>
<td colspan="2" class="diff-lineno">Line 202:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>我的電腦將只會依的 /etc/resolv.conf 代管DNS</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>我的電腦將只會依的 /etc/resolv.conf 代管DNS</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>'''<del class="diffchange diffchange-inline">note that we only run the dns </del>proxy <del class="diffchange diffchange-inline">on the usb0 interface so that we don't break any other networking</del>'''</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>'''<ins class="diffchange diffchange-inline">請注意我們只會在usb0界面上執行dns </ins>proxy <ins class="diffchange diffchange-inline">,因此我們並不會破壞其它的網路連線</ins>'''</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>=== <del class="diffchange diffchange-inline">Proxying with </del>dnrd ===</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>=== <ins class="diffchange diffchange-inline">使用 </ins>dnrd <ins class="diffchange diffchange-inline">代管</ins>===</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div> </div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">The script is designed to use [http://dnrd.sourceforge.net/ dnrd] as the dns proxy. The [http://buildhost.automated.it/gta01 script] and a copy of [http://buildhost.automated.it/dnrd-2.20.3.tar.gz dnrd] are available from my site. The script also performs the initial setup of the connection as per the [[USB_Networking#Manual_method]] above.</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">這個 script 被設定為使用 [http://dnrd.sourceforge.net/ dnrd] 做為 dns proxy。[http://buildhost.automated.it/gta01 script] 及 [http://buildhost.automated.it/dnrd-2.20.3.tar.gz dnrd]的複本可以自我的網站取得。這個 script也可以執行上列的[[USB_Networking#Manual_method]]初始安裝。</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=== Proxying with a UDP forwarder ===</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=== Proxying with a UDP forwarder ===</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Another easy setup is using a udp forwarder like the one from http://www.tapor.com/udpf/ - is use it with the command</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Another easy setup is using a udp forwarder like the one from http://www.tapor.com/udpf/ - is use it with the command</div></td></tr>
</table>
Coolcat
http://openmoko.org/index.php?title=USB_Networking/zh_tw&diff=35081&oldid=prev
Coolcat: /* Proxying DNS requests */
2008-06-24T10:05:12Z
<p><span dir="auto"><span class="autocomment">Proxying DNS requests</span></span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 10:05, 24 June 2008</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 193:</td>
<td colspan="2" class="diff-lineno">Line 193:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>= Mobile開發=</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>= Mobile開發=</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>== <del class="diffchange diffchange-inline">Proxying DNS requests </del>==</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>== <ins class="diffchange diffchange-inline">代管DNS請求</ins>==</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>若你是像我一樣,常常搬家,必須透過DHCP連接到不同的網路,你可能會因為經常性的更新Neo 1973的resolv.conft而感到煩惱。</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>若你是像我一樣,常常搬家,必須透過DHCP連接到不同的網路,你可能會因為經常性的更新Neo 1973的resolv.conft而感到煩惱。</div></td></tr>
<tr><td colspan="2" class="diff-lineno">Line 221:</td>
<td colspan="2" class="diff-lineno">Line 221:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>  iptables -t nat -A PREROUTING -p udp -s 192.168.0.202 -d 192.168.0.200 --dport domain -j DNAT --to-destination 192.168.0.1</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>  iptables -t nat -A PREROUTING -p udp -s 192.168.0.202 -d 192.168.0.200 --dport domain -j DNAT --to-destination 192.168.0.1</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">where </del><tt>192.168.0.1</tt> <del class="diffchange diffchange-inline">is the IP of your residential gateway (router). This is the easiest method, but its not recommended if you have a direct connection to the Internet as ISP DNS servers can change, and this does no load-balancing.</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins class="diffchange diffchange-inline">在這裡</ins><tt>192.168.0.1</tt> <ins class="diffchange diffchange-inline">是你的gateway的IP。它是最簡單的方法,但是不建議這樣做。但假設你有像ISP DNS服務一樣直接連到網路,則建議這樣做,但它無法做到流量調節。</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>= Connecting to phone =</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>= Connecting to phone =</div></td></tr>
</table>
Coolcat