Skip to content

Instantly share code, notes, and snippets.

@MarcelRaschke
Forked from vilmibm/migration.md
Last active April 10, 2021 23:07
Show Gist options
  • Save MarcelRaschke/841214dafad27d7da227283e2e5a1391 to your computer and use it in GitHub Desktop.
Save MarcelRaschke/841214dafad27d7da227283e2e5a1391 to your computer and use it in GitHub Desktop.
progress on tilde.town migration

migration notes and process

Prerequisites

  • install git
  • install etckeeper
  • initial etckeeper commit

User account copy

  • I'm scp'ing /etc/{passwd,group,shadow,gshadow} to the new host
  • manually updating those files on the new host
    • passwd
    • group
    • shadow
    • gshadow
  • then rsyinc'ing some user accounts and testing su and permissions
    • m455
    • archangelic
    • vilmibm
    • equa
    • benharri
    • l001
  • then pausing to set up less volatile services
  • then rsync'ing /var/mail
  • then rsync'ing all of /home if things look good

PACKAGES TO KEEP TRACK OF HAVING BEEN MANUALLY INSTALLED:

  • etckeeper
  • fish
  • zsh
  • mosh
  • nginx
  • python3-pip
  • ruby
  • postgresql
  • alpine
  • mutt
  • postfix

MANUAL STEPS I TOOK NOT CAPTURED ANYWHERE ELSE:

This does not capture the stuff i hand edited in /etc on the new host -- that's all tracked by etckeeper.

  • add /town
  • add /town/bin
  • add /town/src
  • passwords for arch/l00l
  • added /town/bin/binlink for syncing /town/bin to /usr/local/bin
  • tweaked motd to not mention wall
  • sudo pip3 install -e /town/src/tildetown-scripts
  • sudo gem install twurl
  • linked tweet from tildetown-scripts to /town/bin
  • various runs of binlink
  • sudo pip3 install -e /town/src/tilde-wiki
  • fixed my own git path to wiki

critical services

  • nginx
    • install
    • copying config files
    • homepage generation
    • Setup SSL (BLOCKED BY DNS)
      • set up certbot
  • motd
  • skel
  • wiki
    • put wiki in read only mode
    • rsync wiki over
    • get tilde-wiki in place
    • FIX WIKI PATH IN ANY CHECKED-OUT WIKI GIT CONFIGS
  • ensure local mail works
    • rsync /var/mail
    • install postfix
    • install clients
  • ensure tilde.town cgi works
    • reconsider deployment strategy. i'd like to use /town/src/ for storing the code that is run in prod.
    • install postgresql
    • export postgresql db
    • set up ttadmin user as needed
  • ensure irc works
    • get oragono installed
    • get config moved over
    • move oragono db over
    • test
  • quota
  • AFTER USERS ALL RSYNCED AND SERVICES SET UP, TURN CRON BACK ON.
@MarcelRaschke
Copy link
Author

comment to gist

@MarcelRaschke
Copy link
Author

/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment