614
Comment:
|
27957
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
= Status of wiki.debian.net migration = * [http://wiki.debian.net wiki.debian.net] is read-only, and a dump of the database is available * A script to convert the RCS files into moin moin revision files is fairly easy and will be done by ["Jeroen"]. * A script to convert the markup from kwiki to moin moin needs to be written, see below. == Convert markup == Any snippets appreciated. Todo: * Headers have now also a trailing set of ='s * Bold/italic/underscore are different * wikiwords that are not {{{StudlyCaps}}} are now {{{["Likethis"]}}} instead of {{{[Likethis]}}} * All the rest |
#language en <<TableOfContents(3)>> == 2011 - migrating moinmoin 1.7 -> 1.9+ == ''This is a list of action for the [[DebianWiki/MigratedToMoinmoin19|next migration]] (lenny -> squeeze!)'' (completed). === TODO / Ideas === * ?? Allow Embedding objects (Ogg,PDF...), see [[MoinMoin:HelpOnMacros/EmbedObject|EmbedObject]] * User-Agent language negotiation doesn't work :-( * Communicate on the fact that docbook will be gone :-( * Do we re-enable the GUI editor ? === Actual wiki Migration steps === === Pre-upgrade === 1. Get the list of [[EditedSystemPages]] (they may need to be updated after the upgrade) {{{#!wiki comment as of 2010-01-24 : [[BadContent]], [[CategoryCategory]], [[CategoryHomepage]], [[CategoryTemplate]], [[FrontPage]], [[HomepageGroupsTemplate]], [[HomepagePrivatePageTemplate]], [[HomepageReadPageTemplate]], [[HomepageReadWritePageTemplate]], [[HomepageTemplate]], [[InterWiki]], [[LocalBadContent]], [[LocalSpellingWords]], [[WikiSandBox]] }}} 2. Update the links, to use {{{<<Anchor(foo)>>}}} instead of {{{#head-1234567}}}, anchors auto-generated by moinmoin's {{{<TableOfContents>}}} feature. /* moin-1.9 create meaningful anchor name based on the header name, moin-1.7 used to create random ID. {{{#!wiki comment As of 2010-01-25:<<BR>> [[AptCLI]], [[BSP/2006/10/ch/Zurich]], [[ContinuingDebianEducation]], [[de/EeePC/Boot]], [[de/EeePC/HowTo/Configure]], [[de/EeePC/HowTo/Install]], [[de/EeePC/HowTo/Sound]], [[de/EeePC/HowTo/Troubleshooting]], [[de/EeePC/Models]], [[de/EeePC/Todo]], [[de/Network]], [[DebianEdu/HowTo/LtspLoadBalance]], [[DebianEeePC/Boot]], [[DebianEeePC/FAQ]], [[DebianEeePC/HowTo/Install]], [[DebianEeePC/Model/900A]], [[DebianEeePC/Models]], [[DebianEeePC/Todo]], [[DebianEeePCDutch/Hoe/Installeren]], [[DebianEeePCDutch/Modelen]], [[DebianEeePCItalian/HowTo/Install]], [[DebianEeePCItalian/HowTo/Wifi]], [[DebianEeePCItalian/Models]], [[DebianEeePCPortuguese/HowTo/Wifi]], [[DebianEeePCSpanish/HowTo/Wifi]], [[DebianInstaller/NetInstWithThirdPartyNetworkDriver]], [[DebianInstaller/ReleaseProcess]], [[DebianLive/Howto/Local_Swap_File]], [[DebianLive/Howto/Mount_Local_Partition]], [[DefaultMTA]], [[fr/Amarok]], [[fr/EeePC/HowTo/Install]], [[fr/EeePC/HowTo/Wifi]], [[fr/EeePC/Models]], [[fr/Multimedia]], [[fr/Network]], [[fr/NetworkApplication]], [[Games/Team]], [[gpghowto]], [[HalfLife2]], [[i18n/TranslationDebs]], [[i18n/TranslationDebsProposals]], [[id/Network]], [[InstallingDebianOn/Dell/Inspiron1525]], [[KansaiDebianMeeting20081214]], [[MigrateToDDAccount]], [[MigrationStatus]], [[ms/Network]], [[Multimedia]], [[NeilWilliams]], [[Network]], [[NetworkApplication]], [[PackagingWithDarcsAndTailor]], [[Passing_boot_options_to_modules]], [[Passing_boot_options_to_modulesSpanish]], [[pl/Amarok]], [[Postfix]], [[ProjectNews/Guidelines]], [[pt_BR/Network]], [[RaphaelGeissert]], [[sfantar]], [[Teams/Apache]], [[Teams/Publicity/DebianTimesTeam/PressReleases/SerproChoseDebianAndCollaborate]], [[Xen]], [[zh_CN/BootProcess]], [[zh_CN/DebianInstaller]], [[zh_CN/DHCP_Server]], [[zh_CN/HowToPackageForDebian]] }}} Update blockquote starting with {{{{ {{{ }}}} followed by {{{#!foo}}} {{{{{{{#!wiki comment {{{ for f in $(grep -l '#![^w]' *); do w="$(echo "$f" | sed -e 's,(2f),/,g' -e 's,(2d),-,g' -e 's,(3d),\=,g' -e 's,(3a),:,g' )" ; sed -n -e '/{{{\s*$/ {N; /\n\s*#!/p }' "$f" | sed -e "1s,^, * [[$w]] : {{{{ , ; \$s/$/\n}}}}/"; done }}} * [[Aptitude(3a3a)Parse-Description-Bullets=true]] : {{{{ {{{ #!/usr/bin/ruby }}}} * [[AptZip/fetch-script-wget]] : {{{{ {{{ #!/bin/sh }}}} * [[AutomateBackports]] : {{{{ {{{ #!/bin/sh }}}} * [[BackupAndRecoveryWork]] : {{{{ {{{ #!/bin/sh }}}} * [[BluetoothAlsa]] : {{{{ {{{ #! /bin/sh {{{ #!/bin/sh }}}} * [[BridgeNetworkConnections]] : {{{{ {{{ #!/bin/bash }}}} * [[Buildd/BuildLogs]] : {{{{ {{{ #!/bin/bash +e }}}} * [[CDToPool/MirrorNewCD]] : {{{{ {{{ #!/bin/sh }}}} * [[CDToPool/MirrorNewCDSet]] : {{{{ {{{ #!/bin/sh }}}} * [[CDToPool/PoolAddCD]] : {{{{ {{{ #!/bin/sh }}}} * [[CDToPool/PoolAddCDFiles]] : {{{{ {{{ #!/bin/sh }}}} * [[CDToPool/PoolAddCDToFstab]] : {{{{ {{{ #!/bin/sh }}}} * [[CDToPool/PoolDelCD]] : {{{{ {{{ #!/bin/sh }}}} * [[cfengine]] : {{{{ To use cfengine2 in Your scripts, replace {{{ #!/usr/bin/cfengine in Your v1-scripts by {{{ #!/usr/sbin/cfagent -Kf }}}} * [[CipUX/Feature/RefineHomedir]] : {{{{ {{{ #!/bin/bash }}}} * [[cowbuilder]] : {{{{ {{{ #!/bin/bash }}}} * [[DDE/Tutorial]] : {{{{ {{{ #!/usr/bin/perl }}}} * [[de/EeePC/HowTo/InstallOnSDcardOrUsbStick]] : {{{{ {{{ #!/bin/sh }}}} * [[de/EeePC/HowTo/Troubleshooting]] : {{{{ {{{ #!/bin/sh }}}} * [[de/Hibernation]] : {{{{ {{{ #!/bin/sh }}}} * [[DebbugsSoapInterface]] : {{{{ {{{ #!/usr/bin/perl {{{ #!/usr/bin/env perl {{{ #!/usr/bin/env perl {{{ #!python {{{ #!/usr/bin/ruby }}}} * [[DebianCustomCD/MoveInstallerUdebs]] : {{{{ {{{ #!/bin/bash }}}} * [[DebianCustomCD/MovePoolScript]] : {{{{ {{{ #!/bin/bash }}}} * [[DebianEdu/Documentation/Etch/HowTo/Administration]] : {{{{ {{{ #!/bin/bash {{{ #!/bin/bash }}}} * [[DebianEdu/Documentation/Etch/HowTo/NetworkClients]] : {{{{ {{{ #!/bin/bash }}}} * [[DebianEdu/Documentation/Lenny/HowTo/Administration]] : {{{{ {{{ #!/bin/bash {{{ #!/bin/bash {{{ #!/bin/sh {{{ #!/bin/sh }}}} * [[DebianEdu/Documentation/Lenny/HowTo/NetworkClients]] : {{{{ {{{ #!/bin/bash }}}} * [[DebianEdu/HowTo/AutoNetRespawn]] : {{{{ {{{ #!/bin/bash }}}} * [[DebianEdu/HowTo/DirtyRemaster]] : {{{{ {{{ #!/bin/bash {{{ #!/bin/bash }}}} * [[DebianEdu/HowTo/FaiInstallDebianEdu]] : {{{{ {{{ #! /bin/bash {{{ #! /bin/bash {{{ #! /bin/bash {{{ #! /bin/bash {{{ #! /bin/bash {{{ #! /bin/bash }}}} * [[DebianEdu/HowTo/LtspLoadBalance]] : {{{{ {{{ #!/usr/bin/python {{{ #!/bin/bash }}}} * [[DebianEdu/HowTo/SquidGuard]] : {{{{ {{{ #!/bin/sh }}}} * [[DebianEdu/HowTo/TestCDinstall]] : {{{{ {{{ #!/bin/sh {{{ #!/bin/sh {{{ #!/bin/sh }}}} * [[DebianEdu/OLPC/Installation]] : {{{{ {{{ #!/bin/bash -ex }}}} * [[DebianLive/Howto/Custom_Install]] : {{{{ {{{ #!/bin/bash }}}} * [[DebianLive/HowTo/LAMP]] : {{{{ {{{ #!plain {{{ #!plain {{{ #!plain }}}} * [[DebianLive/HowTo/SmallSizeImage]] : {{{{ {{{ #!/bin/sh }}}} * [[DebianOnFreeRunner/Tips]] : {{{{ {{{ #!/usr/bin/env python {{{ #!/usr/bin/env ruby }}}} * [[DebianOnFreeRunner/WLAN]] : {{{{ {{{ #!/bin/sh -e {{{ #!/bin/sh -e }}}} * [[Python/central2support]] : {{{{ {{{ #!/bin/sh }}}} * [[DebianScience/ROOT]] : {{{{ {{{ #!cplusplus {{{ #!cplusplus {{{ #!cplusplus {{{ #!cplusplus }}}} * [[DebianServiceForDD]] : {{{{ {{{ #! /bin/sh {{{ #! /bin/sh }}}} * [[Distcc]] : {{{{ {{{ #!/bin/bash }}}} * [[Duplicity]] : {{{{ {{{ #! /bin/sh {{{ #! /bin/sh }}}} * [[(e7bbb4e59fbae6b299e79b98e6bc94e7bb83)]] : {{{{ {{{ #!python {{{ #!irc }}}} * [[Eclipse]] : {{{{ {{{ #!/bin/bash test=$(ssh-add -l) if [[ $test == "The agent has no identities." ]] then ssh-add fi }}}} * [[Embedded_Debian_packaging_infrastructure]] : {{{{ {{{ #!/bin/bash }}}} * [[Embedded_Debian_packaging_infrastructureSpanish]] : {{{{ {{{ #!/bin/sh }}}} * [[EmdebianGuide]] : {{{{ {{{ #!/bin/sh }}}} * [[EmdebianStable]] : {{{{ {{{ #!/bin/sh -e {{{ #! /bin/sh }}}} * [[es/SSLkeys]] : {{{{ {{{ #!/bin/sh -e }}}} * [[Fonts/Japanese]] : {{{{ {{{ #! /bin/sh {{{ #! /bin/sh }}}} * [[Fonts/PackagingPolicy]] : {{{{ {{{ #!/usr/bin/make -f }}}} * [[fr/EeePC/HowTo/InstallOnSDcardOrUsbStick]] : {{{{ {{{ #!/bin/sh }}}} * [[fr/EeePC/HowTo/Troubleshooting]] : {{{{ {{{ #!/bin/sh }}}} * [[Games/WolfensteinEnemyTerritory]] : {{{{ {{{ #!/bin/bash }}}} * [[GettextZeroPointOneFiveMassRebuild]] : {{{{ {{{ #!/bin/bash }}}} * [[GregoryColpart/PearPolicyDraft]] : {{{{ {{{ #!/usr/bin/make -f }}}} * [[Hibernation]] : {{{{ {{{ #!/bin/sh }}}} * [[iptables]] : {{{{ {{{ #!/bin/bash }}}} * [[it/ShellScript]] : {{{{ {{{ #!/bin/sh }}}} * [[Java/MavenBuilder]] : {{{{ {{{ #!/usr/bin/make -f }}}} * [[Java/Packaging]] : {{{{ {{{ #!/usr/bin/make -f {{{ #!/usr/bin/make -f {{{ #!/usr/bin/make -f {{{ #!/usr/bin/make -f }}}} * [[JavaFAQ]] : {{{{ {{{ #!/bin/sh }}}} * [[JohnClark/My_HP_Pavilion_dv5z]] : {{{{ {{{ #!/bin/bash }}}} * [[Keyboard/MultimediaKeys]] : {{{{ {{{ #!/bin/sh }}}} * [[Multistrap]] : {{{{ {{{ #! /bin/sh }}}} * [[OpenAFS_mit_MIT-Kerberos5]] : {{{{ {{{ #!/bin/sh }}}} * [[Openbox]] : {{{{ {{{ #!/bin/bash }}}} * [[PackageConfigComplexUpgrade]] : {{{{ {{{ #!/bin/sh -e }}}} * [[PackagingWithGit/Svn-buildpackageConversion]] : {{{{ {{{ #!/usr/bin/awk -f }}}} * [[PbuilderTricks]] : {{{{ {{{ #!/bin/sh }}}} * [[PerlBugSquashing]] : {{{{ {{{ #!/usr/bin/perl }}}} * [[PerlFAQ]] : {{{{ Program reads a config file in the same directory using open(){{{ #! /usr/bin/perl Program requires a local config script.{{{ #! /usr/bin/perl }}}} * [[pkg-escience/develguide]] : {{{{ {{{ #!/bin/bash }}}} * [[PocketWorkstationXQT]] : {{{{ 2. Create a new file {{{startd}}}{{{ #!/bin/sh }}}} * [[pl/L10n/Polish/PackageInstallers/skrypty]] : {{{{ {{{ #!/bin/bash }}}} * [[radeonIGPsDR]] : {{{{ {{{ #!/bin/bash }}}} * [[SisTeru]] : {{{{ {{{ #!/bin/bash }}}} * [[SlimServerHowto]] : {{{{ {{{ #!/bin/sh }}}} * [[SSLkeys]] : {{{{ {{{ #!/bin/sh -e }}}} * [[Sympa]] : {{{{ {{{ #!/bin/sh }}}} * [[UpgradeAdvisor]] : {{{{ {{{ #!/bin/sh }}}} * [[USBCamera]] : {{{{ {{{ #!/bin/bash }}}} * [[VirtualBox]] : {{{{ {{{ #!/bin/sh }}}} * [[VirtualNetworking]] : {{{{ {{{ #!/bin/sh {{{ #! /bin/sh }}}} * [[WikiSandBox]] : {{{{ {{{ #!python {{{ #!java }}}} * [[Wmii]] : {{{{ {{{ #!/bin/sh }}}} * [[XStrikeForce/FAQ]] : {{{{ {{{ #!/bin/sh }}}} }}}}}}} Drop {{{{ {{{#!plain }}}} Introduced during moinmoin 1.7 migration :-( {{{{{#!wiki comment {{{{ grep '#!plain' * | sed -e 's,(2f),/,g' -e 's,(2d),-,g' -e 's,(3d),\=,g' -e 's,(3a),:,g' -e 's/^[^:]*/ * [[\0]]/' }}}} * [[CDToPool/PoolDelCDFromFstab]]:{{{#!plain * [[ConfigPackages]]:{{{#!plain * [[ConfigPackages]]:{{{#!plain * [[ConfigPackages]]:{{{#!plain * [[de/EeePC/HowTo/SplashyWithDmcryptAndStandardGrub]]:{{{#!plain * [[de/EeePC/HowTo/SplashyWithDmcryptAndStandardGrub]]:{{{#!plain * [[DebianAcerOne]]:{{{#!plain * [[DebianAcerOne]]:{{{#!plain * [[DebianAMD64Faq]]:{{{#!plain * [[DebianCustomCD/CustomDownload]]:{{{#!plain * [[DebianCustomCD/ListPackagesInMirror]]:{{{#!plain * [[DebianEdu/BrowserMultimedia]]:{{{#!plain * [[DebianEdu/Documentation/Tips_and_tricks]]:{{{#!plain * [[DebianEdu/FAQ/Maintenance/OpenSSHBackDoor/script]]:{{{#!plain * [[DebianEdu/HowTo/FaiInstallDebianEdu]]:{{{#!plain * [[DebianEeePC/HowTo/InstallOnSDcardOrUsbStick]]: {{{#!plain * [[DebianEeePC/HowTo/SplashyWithDmcryptAndStandardGrub]]:{{{#!plain * [[DebianEeePC/HowTo/SplashyWithDmcryptAndStandardGrub]]:{{{#!plain * [[DebianEeePCDutch/Problemen]]:{{{#!plain * [[DebianEeePCItalian/HowTo/Troubleshooting]]:{{{#!plain * [[DebianEeePCPortuguese/HowTo/Troubleshooting]]:{{{#!plain * [[DebianEeePCSpanish/HowTo/InstallOnSDcardOrUsbStick]]: {{{#!plain * [[DebianEeePCSpanish/HowTo/Troubleshooting]]:{{{#!plain * [[DebianInstaller/Modify/CD]]:{{{#!plain * [[DebianInstaller/Modify/CD]]:{{{#!plain * [[DebianInstaller/Modify/CD]]:{{{#!plain * [[DebianLive/Debian_Mirror]]:{{{#!plain * [[DebianLive/FAQ]]:{{{#!plain * [[DebianLive/FAQ]]:{{{#!plain * [[DebianLive/FAQ]]:{{{#!plain * [[DebianLive/FAQ]]:{{{#!plain * [[DebianLive/Howto/Customising_Using_QEMU]]:{{{#!plain * [[DebianLive/HowTo/LAMP]]:#!plain * [[DebianLive/HowTo/LAMP]]:#!plain * [[DebianLive/HowTo/LAMP]]:#!plain * [[DebianLive/Howto/Network_User_Authentication]]:{{{#!plain * [[DebianLive/LocalRepository]]:{{{#!plain * [[DebianWiki/LicencingTerms/Proposals]]:{{{#!plain * [[DebianWiki/LicencingTerms/RelicensingStrategy]]:~-{{{#!plain * [[DualMonitorDualServerOneInput]]:{{{#!plain * [[Embedded_Debian_packaging_infrastructure]]:{{{#!plain * [[fr/EeePC/HowTo/SplashyWithDmcryptAndStandardGrub]]:{{{#!plain * [[fr/EeePC/HowTo/SplashyWithDmcryptAndStandardGrub]]:{{{#!plain * [[fr/EmbeddedDebianPackagingInfrastructure]]:{{{#!plain * [[fr/SysVInit]]:{{{#!plain * [[fr/Wmii]]:{{{#!plain * [[Games/VCS/svn]]:{{{#!plain * [[HowTo/CpuFrequencyScaling]]: 1. Install DebPkg:cpufrequtils:{{{#!plain * [[HowTo/CpuFrequencyScaling]]:{{{#!plain * [[HowToIdentifyADevice/RAM]]:{{{#!plain * [[HowToIdentifyADevice/RAM]]:{{{#!plain * [[HowToIdentifyADevice/RAM]]:{{{#!plain * [[HowToIdentifyADevice/RAM]]:{{{#!plain * [[InstallingDebianOn/Thinkpad/Trackpoint]]:{{{#!plain * [[InstallingDebianOn/Thinkpad/Trackpoint]]: * {{{dmidecode -t 21}}} reports {{{#!plain * [[InstallingDebianOn/Thinkpad/Trackpoint]]: * /proc/bus/input/devices contains: {{{#!plain * [[it/DebianAcerOne]]:{{{#!plain * [[it/DebianAcerOne]]:{{{#!plain * [[LTSP/DynamicDns]]:Here is my file {{{#!plain * [[MacBookJp]]:{{{#!plain * [[MacBookJp]]:{{{#!plain * [[PbuilderTricks]]: {{{#!plain * [[PbuilderTricks]]:{{{#!plain * [[pt_BR/DebianAcerOne]]:{{{#!plain * [[pt_BR/DebianAcerOne]]:{{{#!plain * [[pt_BR/ShellScript]]: . {{{#!plain * [[ru/DebianAcerOne]]:{{{#!plain * [[ru/DebianLive/FAQ]]:{{{#!plain * [[ru/DebianLive/FAQ]]:{{{#!plain * [[ru/DebianLive/FAQ]]:{{{#!plain * [[ru/DebianLive/FAQ]]:{{{#!plain * [[SourcesList]]:~-{{{#!plain * [[sudo]]:~-{{{#!plain * [[sudo]]: {{{#!plain * [[Sugar/scripts]]:{{{#!plain * [[Sugar/scripts]]:{{{#!plain * [[Sugar/scripts]]:{{{#!plain * [[Sugar/scripts]]:{{{#!plain * [[TipChangeXBg]]:{{{#!plain * [[TipChangeXBg]]:{{{#!plain * [[zh_CN/TipChangeXBg]]:{{{#!plain * [[zh_CN/TipChangeXBg]]:{{{#!plain }}}}} === D-day === The pages folder is quite large... make sure it's in the cache... 1. {{{for x in 1 2 3 4 5 6 7 8 9 ; do ls /srv/wiki.debian.org/var/moin/data/pages > /dev/null ; done &}}} ''And Meanwhile...'' Turn the wiki read-only 1. edit {{{/srv/wiki.debian.org/etc/moin/wikiconfig.py}}} and append: {{{#!python numbers=disable page_header1 = """<table width='100%'><tr><td style="background:#ffd0d0; text-align: center;padding:15pt">wiki.debian.org is in read-only mode for a maintenance operation. We will be back in 60 minutes. </td></tr></table>""" acl_rights_default = 'Known:read All:read' }}} Upgrade moinmoin 1. {{{ aptitude install --without-recommends python-flup python-tz python-xapian python-xappy poppler-utils aptitude remove python-4suite-xml }}} Migrate moinmoin data (i.e update existing pages, for new syntax) : {{{ #Estimated time for migration: ~~10minutes (continue the steps below). /srv/wiki.debian.org/bin/moin --config-dir=/srv/wiki.debian.org/etc/moin/ --wiki-url=wiki.debian.org migration data }}} ~- {{{{#!wiki comment During my test... {{{ 2010-01-23 18:40:55,520 WARNING MoinMoin.log:139 using logging configuration read from built-in fallback in MoinMoin.log module! 2010-01-23 18:40:55,760 ERROR MoinMoin.config.multiconfig:342 xapian_search was auto-disabled because python-xapian is not installed [No module named xapian]. 2010-01-23 18:40:55,761 INFO MoinMoin.config.multiconfig:127 using wiki config: /srv/wiki.debian.org/etc/moin/wikiconfig.py Calling migration script for /srv/wiki.debian.org/var/moin/data, base revision 1070100 Returned. New rev is 1070200. Calling migration script for /srv/wiki.debian.org/var/moin/data, base revision 1070200 Returned. New rev is 1070300. Calling migration script for /srv/wiki.debian.org/var/moin/data, base revision 1070300 Returned. New rev is 1080000. Calling migration script for /srv/wiki.debian.org/var/moin/data, base revision 1080000 Returned. New rev is 1080100. Calling migration script for /srv/wiki.debian.org/var/moin/data, base revision 1080100 Returned. New rev is 1080200. Calling migration script for /srv/wiki.debian.org/var/moin/data, base revision 1080200 Returned. New rev is 1080300. Calling migration script for /srv/wiki.debian.org/var/moin/data, base revision 1080300 Returned. New rev is 1080400. Calling migration script for /srv/wiki.debian.org/var/moin/data, base revision 1080400 Returned. New rev is 1080500. Calling migration script for /srv/wiki.debian.org/var/moin/data, base revision 1080500 Returned. New rev is 1080600. Calling migration script for /srv/wiki.debian.org/var/moin/data, base revision 1080600 Returned. New rev is 1089999. Calling migration script for /srv/wiki.debian.org/var/moin/data, base revision 1089999 Returned. New rev is 1090000. Calling migration script for /srv/wiki.debian.org/var/moin/data, base revision 1090000 Final mig script reached, migration is complete. }}} }}}}-~ Update WSGI application name: 1. Edit {{{/srv/wiki.debian.org/bin/moin.wsgi}}}: {{{#!python numbers=disable import sys sys.path.insert(0, '/srv/wiki.debian.org/etc/moin') # moinmoin application name has changed between v1.7 and v1.9 #from MoinMoin.server.server_wsgi import moinmoinApp #application = moinmoinApp from MoinMoin.web.serving import make_application application = make_application(shared=True) }}} Publish (the new) theme using apache. Enable client-side caching. 1. Enable content expiration in apache (execute {{{a2enmod expires}}}) 1. Edit {{{/srv/wiki.debian.org/etc/moin/wikiconfig.py}}}, replace {{{url_prefix = '/htdocs'}}}, with: {{{ url_prefix_local = '/htdocs' # Moin (>=1.6) use a prefix like '/moin_static160' to ensure file versioning # (en therefore avoid client file caching issue). So we stop forcing the prefix. #url_prefix_static = '/htdocs' }}} 1. Edit {{{/srv/wiki.debian.org/etc/apache2/apache2.conf}}}, add this alias {{{ # This alias needs to be updated on wiki upgrade, according to "release_short" in # /usr/share/pyshared/MoinMoin/version.py Alias /moin_static191 /usr/share/moin/htdocs/ ExpiresActive On <Directory /usr/share/moin/htdocs> Order allow,deny Allow from all # Moinmoin use file-versioning, so we can cache agressively. ExpiresDefault "access plus 1 week" </Directory> <Directory /srv/wiki.debian.org/usr/htdocs> Order allow,deny Allow from all ExpiresDefault "access plus 1 day" </Directory> }}} 1. We can get rid of the old symlinks in {{{/srv/wiki.debian.org/usr/htdocs/}}}: {{{ rm /srv/wiki.debian.org/usr/htdocs/common rm /srv/wiki.debian.org/usr/htdocs/classic rm /srv/wiki.debian.org/usr/htdocs/modern rm /srv/wiki.debian.org/usr/htdocs/rightsidebar }}} Fix account & password pre-validation stuffs {{{/srv/wiki.debian.org/etc/moin/wikiconfig.py}}} ( <!> Ideally, we should keep DefaultConfig.password_checker): {{{#!diff numbers=disable diff --git a/etc/moin/wikiconfig.py b/etc/moin/wikiconfig.py index 5dea400..f53a88b 100644 --- a/etc/moin/wikiconfig.py +++ b/etc/moin/wikiconfig.py @@ -50,11 +50,11 @@ class Config(DefaultConfig): # Spammers hosts_deny = local_secrets.hosts_deny - def password_checker(username, passwd): + def password_checker(request, username, passwd): result = local_secrets.password_checker(username, passwd) if result != None: return result - return DefaultConfig.password_checker(username, passwd) + return None password_checker = staticmethod(password_checker) }}} Get rid of some obsolete configuration statements. Edit {{{/srv/wiki.debian.org/etc/moin/wikiconfig.py}}} * Remove {{{acl_enabled = 1}}}. The settings was removed (always enabled), see [[http://moinmo.in/SettingsCleanup|SettingsCleanup]] * Remove {{{allowed_actions = ...}}}. The settings was removed in moin 1.5, see [[http://moinmo.in/SettingsCleanup|SettingsCleanup]] Update wiki underlay: 1. {{{mv /srv/wiki.debian.org/var/moin/underlay/pages/ /srv/wiki.debian.org/var/moin/underlay/pages.pre-19}}} 1. {{{cp -R /usr/share/moin/underlay/pages /srv/wiki.debian.org/var/moin/underlay/}}} 1. {{{chown -R wiki:wikiadm /srv/wiki.debian.org/var/moin/underlay/pages}}} 1. {{{chmod ug+wX /srv/wiki.debian.org/var/moin/underlay/pages}}} 1. {{{find /srv/wiki.debian.org/var/moin/underlay/pages -type d | xargs chmod g+s}}} 1. A Wiki admin (with an account declared in wikiconfig.py's {{{superuser=}}}), And install the languages packs below (more on [[LanguageSetup]]): {{{{#!wiki comment It is probably sensible to provide moinmoin system and help page for the same languages as the one we provide content for... ~- {{{#!text % find . -maxdepth 1 -regex './[a-z][a-z]\(_..\)?(.*' | sed -e 's/..\(..\).*/\1/' | sort | uniq -c | sort -n 277 fr 105 de 57 pt <-- includes pt and pt_BR 37 es 35 ja 31 it 26 ru 26 id 25 zh 23 qa <-- this is a bug: qa.debian.org 21 ms <-- Malaysian isn't available 19 el <-- Greek isn't available 18 pl #... +17 other languages with <10 pages. ## To list Language packs contents, ## % for x in French*.zip ; do unzip -p $x MOIN_PACKAGE > /tmp/$x.txt; done }}} -~ * English [[http://wiki.debian.org/LanguageSetup?action=language_setup&target=English_all_system_pages.zip&language=English|all_system]], [[http://wiki.debian.org/LanguageSetup?action=language_setup&target=English_essential_category_pages.zip&language=English|essential_category]], [[http://wiki.debian.org/LanguageSetup?action=language_setup&target=English_essential_template_pages.zip&language=English|essential_template]], [[http://wiki.debian.org/LanguageSetup?action=language_setup&target=English_all_help_pages.zip&language=English|all_help]], [[http://wiki.debian.org/LanguageSetup?action=language_setup&target=English_admin_pages.zip&language=English|admin]] * French [[http://wiki.debian.org/LanguageSetup?action=language_setup&target=French_essential_system_pages.zip&language=French|essential_system]] [[http://wiki.debian.org/LanguageSetup?action=language_setup&target=French_essential_help_pages.zip&language=French|essential_help]] * German [[http://wiki.debian.org/LanguageSetup?action=language_setup&target=German_essential_system_pages.zip&language=German|essential_system]] [[http://wiki.debian.org/LanguageSetup?action=language_setup&target=German_essential_help_pages.zip&language=German|essential_help]] * Brazilian_Portuguese [[http://wiki.debian.org/LanguageSetup?action=language_setup&target=Brazilian_Portuguese_essential_system_pages.zip&language=Brazilian_Portuguese|essential_system]] --([[http://wiki.debian.org/LanguageSetup?action=language_setup&target=Brazilian_Portuguese_essential_help_pages.zip&language=Brazilian_Portuguese|essential_help]])-- * Portuguese [[http://wiki.debian.org/LanguageSetup?action=language_setup&target=Portuguese_essential_system_pages.zip&language=Portuguese|essential_system]] --([[http://wiki.debian.org/LanguageSetup?action=language_setup&target=Portuguese_essential_help_pages.zip&language=Portuguese|essential_help]])-- * Spanish [[http://wiki.debian.org/LanguageSetup?action=language_setup&target=Spanish_essential_system_pages.zip&language=Spanish|essential_system]] --([[http://wiki.debian.org/LanguageSetup?action=language_setup&target=Spanish_essential_help_pages.zip&language=Spanish|essential_help]])-- * Japanese [[http://wiki.debian.org/LanguageSetup?action=language_setup&target=Japanese_essential_system_pages.zip&language=Japanese|essential_system]] [[http://wiki.debian.org/LanguageSetup?action=language_setup&target=Japanese_essential_help_pages.zip&language=Japanese|essential_help]] * Italian [[http://wiki.debian.org/LanguageSetup?action=language_setup&target=Italian_essential_system_pages.zip&language=Italian|essential_system]] [[http://wiki.debian.org/LanguageSetup?action=language_setup&target=Italian_essential_help_pages.zip&language=Italian|essential_help]] * Russian [[http://wiki.debian.org/LanguageSetup?action=language_setup&target=Russian_essential_system_pages.zip&language=Russian|essential_system]] [[http://wiki.debian.org/LanguageSetup?action=language_setup&target=Russian_essential_help_pages.zip&language=Russian|essential_help]] * Indonesian [[http://wiki.debian.org/LanguageSetup?action=language_setup&target=Indonesian_essential_system_pages.zip&language=Indonesian|essential_system]] --([[http://wiki.debian.org/LanguageSetup?action=language_setup&target=Indonesian_essential_help_pages.zip&language=Indonesian|essential_help]])-- * Simplified_Chinese [[http://wiki.debian.org/LanguageSetup?action=language_setup&target=Simplified_Chinese_essential_system_pages.zip&language=Simplified_Chinese|essential_system]] --([[http://wiki.debian.org/LanguageSetup?action=language_setup&target=Simplified_Chinese_essential_help_pages.zip&language=Simplified_Chinese|essential_help]])-- * Chinese_Taiwan [[http://wiki.debian.org/LanguageSetup?action=language_setup&target=Chinese_Taiwan_essential_system_pages.zip&language=Chinese_Taiwan|essential_system]] --([[http://wiki.debian.org/LanguageSetup?action=language_setup&target=Chinese_Taiwan_essential_help_pages.zip&language=Chinese_Taiwan|essential_help]]))-- * Polish [[http://wiki.debian.org/LanguageSetup?action=language_setup&target=Polish_essential_system_pages.zip&language=Polish|essential_system]] --([[http://wiki.debian.org/LanguageSetup?action=language_setup&target=Polish_essential_help_pages.zip&language=Polish|essential_help]])-- }}}} Update Interwiki 1. {{{mv /srv/wiki.debian.org/var/moin/data/intermap.txt /srv/wiki.debian.org/var/moin/data/intermap.pre-19}}} 2. {{{ln -s /usr/share/moin/data/intermap.txt /srv/wiki.debian.org/var/moin/data/}}} Cleanup moinmoin's cache 1. {{{/srv/wiki.debian.org/bin/moin maint cleancache}}} (Estimated time for migration: 5~10minutes) Update (or Rebuild??) Xapian index: 1. {{{/srv/wiki.debian.org/bin/moin index build --mode=update}}} === Post upgrade === * (./) --(Update/remove/revert [[EditedSystemPages]])-- * Fix !TableOfContents, for pages with h1. see [[http://moinmo.in/MoinMoinBugs/TableOfContentsIgnoresSectionNumbersPragma|TableOfContentsIgnoresSectionNumbersPragma]] * Update/use {{{{ {{{#!highlight [..]}}} }}}} * Make sure Default front-page for installed languages exists ([[fr/FrontPage]]...) == 2009 - migrating moinmoin 1.5 -> 1.7 == The system hosting the wiki has been migrated to Lenny, so Moinmoin was upgraded ([[DebianWiki/MigratedToMoinmoin17]]), (see [[DebianWiki/History]]). Remaining ideas/tasks to do: * Enable [[http://moinmo.in/HelpOnConfiguration/SupplementationPage|SupplementationPage]] (see [[http://lists.debian.org/debian-www/2009/03/msg00144.html|mail]]) and migrate existing pages. * Authentication against ldap.d.o, alioth sql, or openid ( see [[http://moinmo.in/HelpOnAuthentication|doc]])? {{{#!wiki comment This task is postponed until the license of the wiki is fixed. }}} * Replace {{{<<PageList(re:^FooBar)>>}}} macro with {{{<<FullSearchCached(t:re:^FooBar.*)>>}}}, because the first one now lists attachments too :-( * Update the [[CategoryCategory|Category]] pages, based on moin 1.6's [[CategoryTemplate]] * Drop Category``!FrSomething : use !FullSearch(Category``Something + language:fr).. Looks even slower that Category searches. == 2005 - migrating from wiki.debian.net == When Debian wiki became an official service in 2005, it was migrated from wiki.debian.net to wiki.debian.org (see [[DebianWiki/History]]). Remaining ideas/tasks to do: * Deal with Licencing terms[[copyright.html]] by at least proposing a license for new content. -- FilipusKlutiero == See also == * [[DebianWiki/History]] |
Contents
2011 - migrating moinmoin 1.7 -> 1.9+
This is a list of action for the next migration (lenny -> squeeze!) (completed).
TODO / Ideas
?? Allow Embedding objects (Ogg,PDF...), see EmbedObject
User-Agent language negotiation doesn't work
Communicate on the fact that docbook will be gone
- Do we re-enable the GUI editor ?
Actual wiki Migration steps
Pre-upgrade
Get the list of EditedSystemPages (they may need to be updated after the upgrade)
Update the links, to use <<Anchor(foo)>> instead of #head-1234567, anchors auto-generated by moinmoin's <TableOfContents> feature.
Update blockquote starting with { {{{ } followed by #!foo
Drop { {{{#!plain } Introduced during moinmoin 1.7 migration
D-day
The pages folder is quite large... make sure it's in the cache...
for x in 1 2 3 4 5 6 7 8 9 ; do ls /srv/wiki.debian.org/var/moin/data/pages > /dev/null ; done &
And Meanwhile...
Turn the wiki read-only
edit /srv/wiki.debian.org/etc/moin/wikiconfig.py and append:
page_header1 = """<table width='100%'><tr><td style="background:#ffd0d0; text-align: center;padding:15pt">wiki.debian.org is in read-only mode for a maintenance operation. We will be back in 60 minutes. </td></tr></table>""" acl_rights_default = 'Known:read All:read'
Upgrade moinmoin
aptitude install --without-recommends python-flup python-tz python-xapian python-xappy poppler-utils aptitude remove python-4suite-xml
Migrate moinmoin data (i.e update existing pages, for new syntax) :
#Estimated time for migration: ~~10minutes (continue the steps below). /srv/wiki.debian.org/bin/moin --config-dir=/srv/wiki.debian.org/etc/moin/ --wiki-url=wiki.debian.org migration data
Update WSGI application name:
Edit /srv/wiki.debian.org/bin/moin.wsgi:
import sys sys.path.insert(0, '/srv/wiki.debian.org/etc/moin') # moinmoin application name has changed between v1.7 and v1.9 #from MoinMoin.server.server_wsgi import moinmoinApp #application = moinmoinApp from MoinMoin.web.serving import make_application application = make_application(shared=True)
Publish (the new) theme using apache. Enable client-side caching.
Enable content expiration in apache (execute a2enmod expires)
Edit /srv/wiki.debian.org/etc/moin/wikiconfig.py, replace url_prefix = '/htdocs', with:
url_prefix_local = '/htdocs' # Moin (>=1.6) use a prefix like '/moin_static160' to ensure file versioning # (en therefore avoid client file caching issue). So we stop forcing the prefix. #url_prefix_static = '/htdocs'
Edit /srv/wiki.debian.org/etc/apache2/apache2.conf, add this alias
# This alias needs to be updated on wiki upgrade, according to "release_short" in # /usr/share/pyshared/MoinMoin/version.py Alias /moin_static191 /usr/share/moin/htdocs/ ExpiresActive On <Directory /usr/share/moin/htdocs> Order allow,deny Allow from all # Moinmoin use file-versioning, so we can cache agressively. ExpiresDefault "access plus 1 week" </Directory> <Directory /srv/wiki.debian.org/usr/htdocs> Order allow,deny Allow from all ExpiresDefault "access plus 1 day" </Directory>
We can get rid of the old symlinks in /srv/wiki.debian.org/usr/htdocs/:
rm /srv/wiki.debian.org/usr/htdocs/common rm /srv/wiki.debian.org/usr/htdocs/classic rm /srv/wiki.debian.org/usr/htdocs/modern rm /srv/wiki.debian.org/usr/htdocs/rightsidebar
Fix account & password pre-validation stuffs /srv/wiki.debian.org/etc/moin/wikiconfig.py ( Ideally, we should keep ?DefaultConfig.password_checker):
diff --git a/etc/moin/wikiconfig.py b/etc/moin/wikiconfig.py
index 5dea400..f53a88b 100644
--- a/etc/moin/wikiconfig.py
+++ b/etc/moin/wikiconfig.py
@@ -50,11 +50,11 @@ class Config(DefaultConfig):
# Spammers
hosts_deny = local_secrets.hosts_deny
- def password_checker(username, passwd):
+ def password_checker(request, username, passwd):
result = local_secrets.password_checker(username, passwd)
if result != None:
return result
- return DefaultConfig.password_checker(username, passwd)
+ return None
password_checker = staticmethod(password_checker)
Get rid of some obsolete configuration statements. Edit /srv/wiki.debian.org/etc/moin/wikiconfig.py
Remove acl_enabled = 1. The settings was removed (always enabled), see SettingsCleanup
Remove allowed_actions = .... The settings was removed in moin 1.5, see SettingsCleanup
Update wiki underlay:
mv /srv/wiki.debian.org/var/moin/underlay/pages/ /srv/wiki.debian.org/var/moin/underlay/pages.pre-19
cp -R /usr/share/moin/underlay/pages /srv/wiki.debian.org/var/moin/underlay/
chown -R wiki:wikiadm /srv/wiki.debian.org/var/moin/underlay/pages
chmod ug+wX /srv/wiki.debian.org/var/moin/underlay/pages
find /srv/wiki.debian.org/var/moin/underlay/pages -type d | xargs chmod g+s
A Wiki admin (with an account declared in wikiconfig.py's superuser=), And install the languages packs below (more on LanguageSetup):
Update Interwiki
mv /srv/wiki.debian.org/var/moin/data/intermap.txt /srv/wiki.debian.org/var/moin/data/intermap.pre-19
ln -s /usr/share/moin/data/intermap.txt /srv/wiki.debian.org/var/moin/data/
Cleanup moinmoin's cache
/srv/wiki.debian.org/bin/moin maint cleancache (Estimated time for migration: 5~10minutes)
Update (or Rebuild??) Xapian index:
/srv/wiki.debian.org/bin/moin index build --mode=update
Post upgrade
Update/remove/revert EditedSystemPages
Fix TableOfContents, for pages with h1. see TableOfContentsIgnoresSectionNumbersPragma
Update/use { {{{#!highlight [..] }}}}
Make sure Default front-page for installed languages exists (fr/FrontPage...)
2009 - migrating moinmoin 1.5 -> 1.7
The system hosting the wiki has been migrated to Lenny, so Moinmoin was upgraded (DebianWiki/MigratedToMoinmoin17), (see DebianWiki/History).
Remaining ideas/tasks to do:
Enable SupplementationPage (see mail) and migrate existing pages.
Authentication against ldap.d.o, alioth sql, or openid ( see doc)?
Replace <<PageList(re:^FooBar)>> macro with <<FullSearchCached(t:re:^FooBar.*)>>, because the first one now lists attachments too
Update the Category pages, based on moin 1.6's CategoryTemplate
Drop CategoryFrSomething : use FullSearch(CategorySomething + language:fr).. Looks even slower that Category searches.
2005 - migrating from wiki.debian.net
When Debian wiki became an official service in 2005, it was migrated from wiki.debian.net to wiki.debian.org (see DebianWiki/History).
Remaining ideas/tasks to do:
Deal with Licencing termscopyright.html by at least proposing a license for new content. -- FilipusKlutiero