【警告】このページの情報は過去のものとなっており、未完成のままです。/Christian

ミラーには以下の3種類があります。

  • WWWミラー
  • FTPミラー(ユーザー用及び/または開発用)
  • SVNミラー

1.  ウェブページのミラー

WWWページのミラーを以下のような方法で作ることができます。

  • anon svnを使用
  • rsyncを使用
  • wget(あるいは別の吸い上げソフトウェア)を使用

WWWミラーを立てるには、WWWサーバーにphpがなくてはなりません(国別LyXミラーにはこれを要請したいと思います)。もしphpがなければ、wgetその他を使用しなくてはなりませんが、その場合には素敵な動的要素は失われることになります。

2.  www.lyx.orgのミラーをセットアップするには

この節は最近書き始められました(2008/07/17)。

www.lyx.orgのミラーを立てる際の考慮点。

  • SVN経由でコードをチェックアウトする
    ... ?
  • ウェブページのソースのコピーをダウンロードする
    以下を参照。

2.1  ダウンロードするページ

以下は、ウェブページのソースをダウンロードするコマンド群です。このコマンド群を実行する前に、正しいディレクトリに移動してから行ってください。

ダウンロードコマンド:

 wget -O 'Site.AuthForm' \
      'http://www.lyx.org/wiki/index.php?n=Site.AuthForm?action=source'
 wget -O 'Site.AuthUser' \
      'http://www.lyx.org/wiki/index.php?n=Site.AuthUser?action=source'
 wget -O 'Site.EditForm' \
      'http://www.lyx.org/wiki/index.php?n=Site.EditForm?action=source'
 wget -O 'Site.EditQuickReference' \
      'http://www.lyx.org/wiki/index.php?n=Site.EditQuickReference?action=source'
 wget -O 'Site.GroupAttr' \
      'http://www.lyx.org/wiki/index.php?n=Site.GroupAttr?action=source'
 wget -O 'Site.InterMap' \
      'http://www.lyx.org/wiki/index.php?n=Site.InterMap?action=source'
 wget -O 'Site.LocalTemplates' \
      'http://www.lyx.org/wiki/index.php?n=Site.LocalTemplates?action=source'
 wget -O 'Site.PageActions' \
      'http://www.lyx.org/wiki/index.php?n=Site.PageActions?action=source'
 wget -O 'Site.PageListTemplates' \
      'http://www.lyx.org/wiki/index.php?n=Site.PageListTemplates?action=source'
 wget -O 'Site.PageNotFound' \
      'http://www.lyx.org/wiki/index.php?n=Site.PageNotFound?action=source'
 wget -O 'Site.Preferences' \
      'http://www.lyx.org/wiki/index.php?n=Site.Preferences?action=source'
 wget -O 'Site.Search' \
      'http://www.lyx.org/wiki/index.php?n=Site.Search?action=source'
 wget -O 'Site.SideBar' \
      'http://www.lyx.org/wiki/index.php?n=Site.SideBar?action=source'
 wget -O 'Site.Site' \
      'http://www.lyx.org/wiki/index.php?n=Site.Site?action=source'
 wget -O 'Site.TabMenu' \
      'http://www.lyx.org/wiki/index.php?n=Site.TabMenu?action=source'
 wget -O 'Site.UploadQuickReference' \
      'http://www.lyx.org/wiki/index.php?n=Site.UploadQuickReference?action=source'
 wget -O 'Web.AboutLyX' \
      'http://www.lyx.org/wiki/index.php?n=Web.AboutLyX?action=source'
 wget -O 'Web.AboutLyXMod' \
      'http://www.lyx.org/wiki/index.php?n=Web.AboutLyXMod?action=source'
 wget -O 'Web.AdditionalSoftware' \
      'http://www.lyx.org/wiki/index.php?n=Web.AdditionalSoftware?action=source'
 wget -O 'Web.Announcement-NewWebSite' \
      'http://www.lyx.org/wiki/index.php?n=Web.Announcement-NewWebSite?action=source'
 wget -O 'Web.BlanketPermission' \
      'http://www.lyx.org/wiki/index.php?n=Web.BlanketPermission?action=source'
 wget -O 'Web.Credits' \
      'http://www.lyx.org/wiki/index.php?n=Web.Credits?action=source'
 wget -O 'Web.DeveloperResources' \
      'http://www.lyx.org/wiki/index.php?n=Web.DeveloperResources?action=source'
 wget -O 'Web.Development' \
      'http://www.lyx.org/wiki/index.php?n=Web.Development?action=source'
 wget -O 'Web.DevelopmentNews' \
      'http://www.lyx.org/wiki/index.php?n=Web.DevelopmentNews?action=source'
 wget -O 'Web.DevFAQ' \
      'http://www.lyx.org/wiki/index.php?n=Web.DevFAQ?action=source'
 wget -O 'Web.Donate' \
      'http://www.lyx.org/wiki/index.php?n=Web.Donate?action=source'
 wget -O 'Web.Download' \
      'http://www.lyx.org/wiki/index.php?n=Web.Download?action=source'
 wget -O 'Web.Features' \
      'http://www.lyx.org/wiki/index.php?n=Web.Features?action=source'
 wget -O 'Web.GetInvolved' \
      'http://www.lyx.org/wiki/index.php?n=Web.GetInvolved?action=source'
 wget -O 'Web.GraphicalProfile' \
      'http://www.lyx.org/wiki/index.php?n=Web.GraphicalProfile?action=source'
 wget -O 'Web.GroupAttr' \
      'http://www.lyx.org/wiki/index.php?n=Web.GroupAttr?action=source'
 wget -O 'Web.Home' \
      'http://www.lyx.org/wiki/index.php?n=Web.Home?action=source'
 wget -O 'Web.HomeNewGraphic' \
      'http://www.lyx.org/wiki/index.php?n=Web.HomeNewGraphic?action=source'
 wget -O 'Web.HowToUseSVN' \
      'http://www.lyx.org/wiki/index.php?n=Web.HowToUseSVN?action=source'
 wget -O 'Web.I18n' \
      'http://www.lyx.org/wiki/index.php?n=Web.I18n?action=source'
 wget -O 'Web.I18n-trunk' \
      'http://www.lyx.org/wiki/index.php?n=Web.I18n-trunk?action=source'
 wget -O 'Web.License' \
      'http://www.lyx.org/wiki/index.php?n=Web.License?action=source'
 wget -O 'Web.MailingLists' \
      'http://www.lyx.org/wiki/index.php?n=Web.MailingLists?action=source'
 wget -O 'Web.Mirror' \
      'http://www.lyx.org/wiki/index.php?n=Web.Mirror?action=source'
 wget -O 'Web.News' \
      'http://www.lyx.org/wiki/index.php?n=Web.News?action=source'
 wget -O 'Web.NewWebsiteDevelopment' \
      'http://www.lyx.org/wiki/index.php?n=Web.NewWebsiteDevelopment?action=source'
 wget -O 'Web.OldIntro' \
      'http://www.lyx.org/wiki/index.php?n=Web.OldIntro?action=source'
 wget -O 'Web.OtherLanguages' \
      'http://www.lyx.org/wiki/index.php?n=Web.OtherLanguages?action=source'
 wget -O 'Web.PageActions' \
      'http://www.lyx.org/wiki/index.php?n=Web.PageActions?action=source'
 wget -O 'Web.PressAboutLyX' \
      'http://www.lyx.org/wiki/index.php?n=Web.PressAboutLyX?action=source'
 wget -O 'Web.PressReleaseLyX1-0-0' \
      'http://www.lyx.org/wiki/index.php?n=Web.PressReleaseLyX1-0-0?action=source'
 wget -O 'Web.RoadMap' \
      'http://www.lyx.org/wiki/index.php?n=Web.RoadMap?action=source'
 wget -O 'Web.Screencasts' \
      'http://www.lyx.org/wiki/index.php?n=Web.Screencasts?action=source'
 wget -O 'Web.Screenshots' \
      'http://www.lyx.org/wiki/index.php?n=Web.Screenshots?action=source'
 wget -O 'Web.Search' \
      'http://www.lyx.org/wiki/index.php?n=Web.Search?action=source'
 wget -O 'Web.SideBar' \
      'http://www.lyx.org/wiki/index.php?n=Web.SideBar?action=source'
 wget -O 'Web.SiteDocumentation' \
      'http://www.lyx.org/wiki/index.php?n=Web.SiteDocumentation?action=source'
 wget -O 'Web.SiteMap' \
      'http://www.lyx.org/wiki/index.php?n=Web.SiteMap?action=source'
 wget -O 'Web.SiteTranslation' \
      'http://www.lyx.org/wiki/index.php?n=Web.SiteTranslation?action=source'
 wget -O 'Web.Skins' \
      'http://www.lyx.org/wiki/index.php?n=Web.Skins?action=source'
 wget -O 'Web.Test' \
      'http://www.lyx.org/wiki/index.php?n=Web.Test?action=source'
 wget -O 'Web.TestBlank' \
      'http://www.lyx.org/wiki/index.php?n=Web.TestBlank?action=source'
 wget -O 'Web.TestFlagIcons' \
      'http://www.lyx.org/wiki/index.php?n=Web.TestFlagIcons?action=source'
 wget -O 'Web.TestGoogleSearch' \
      'http://www.lyx.org/wiki/index.php?n=Web.TestGoogleSearch?action=source'
 wget -O 'Web.Translation' \
      'http://www.lyx.org/wiki/index.php?n=Web.Translation?action=source'
 wget -O 'Web.TranslationHints' \
      'http://www.lyx.org/wiki/index.php?n=Web.TranslationHints?action=source'
 wget -O 'Web.VersioningSystem' \
      'http://www.lyx.org/wiki/index.php?n=Web.VersioningSystem?action=source'
 wget -O 'Web.VisualTour' \
      'http://www.lyx.org/wiki/index.php?n=Web.VisualTour?action=source'
 wget -O 'Web.Walkthrough' \
      'http://www.lyx.org/wiki/index.php?n=Web.Walkthrough?action=source'
 wget -O 'Web.Walkthrough2' \
      'http://www.lyx.org/wiki/index.php?n=Web.Walkthrough2?action=source'
 wget -O 'Web.Walkthrough3' \
      'http://www.lyx.org/wiki/index.php?n=Web.Walkthrough3?action=source'
 wget -O 'Web.Walkthrough4' \
      'http://www.lyx.org/wiki/index.php?n=Web.Walkthrough4?action=source'
 wget -O 'Web.Walkthrough5' \
      'http://www.lyx.org/wiki/index.php?n=Web.Walkthrough5?action=source'
 wget -O 'Web.Web' \
      'http://www.lyx.org/wiki/index.php?n=Web.Web?action=source'
 wget -O 'Web.WhatAboutKLyX' \
      'http://www.lyx.org/wiki/index.php?n=Web.WhatAboutKLyX?action=source'
 wget -O 'Web.WhatIsLyX' \
      'http://www.lyx.org/wiki/index.php?n=Web.WhatIsLyX?action=source'

3.  FTPのミラー

FTPサイトのミラーを以下のようにして作ることができます。

  • ftp
  • rsync(ftp.develのみ)

4.  CVSのミラー

CVSサイトのミラーを以下のようにして作ることができます。

  • anon cvs
  • rsync

CVSミラーを立てたい場合には、anon readミラーのみになります。レポジトリへの書き込みは、依然としてcvs.lyx.orgに対して為されなくてはなりません(これはpserverを使えばひじょうに簡単です)。

5.  FTPのミラー

FTPミラーはもっとも簡単です。ローカルの設定はとくに必要ありません。

6.  国別ミラー

自国のLyXミラーを立てたい(そしてそれにxx.lyx.orgという名前を当てたい)ならば、インターネットへの24/7リンクを有していなくてはなりません。広大なバンド幅はおそらく必要ありません(wwwの場合はそうですが、FTP/CVSはバンド幅が必要です)。

もし国別ミラーを立ててあって、英語が母語ではないならば、ウェブサイト中に自国語セクションを作ることを考慮してみてください。この自国語ページは、英語を話さない人々へのLyXの紹介として役に立つでしょう。ここには、キーボード配列ファイルや右書き編集、フォントのようなLyXの言語依存的な話題や問題を取り上げることもできるでしょう。またこのページは、言語依存のひな型その他のファイルをはじめ─とくにこれらのファイルがLyXのメインの配布体に含まれていないときには─、その言語の文書翻訳プロジェクトの求心地とすることができるでしょう。

特定言語用サイトは、http://www.xx.lyx.org/yy (yyは当該言語の2文字 ISO 639 コードです)のようになります。たとえば、イタリアのLyXミラーのイタリア語LyXページは、http://www.it.lyx.org/it/に作られます。

7.  さらに補遺

baywatch.lyx.orgがどんなrsyncを提供しているかを見るには、

rsync baywatch.lyx.org::

を実行してrsyncモジュールの一覧を入手してください。rsyncを使う上での情報をもっと欲しければman rsyncを読んでください。

このウェブページは書きかけです。さまざまな種類のミラーをセットアップする仕方について、もっと詳細な記述が欲しいところです。更新の仕方なども(cron・atやローカルスクリプト関連)。

ミラー上で実行されているかを検出することができるように、phpコードには変更が加えられることになるでしょう。ミラーとメインサイトでは小さな点で異なっている必要があることがあります。