You are browsing a read-only backup copy of Wikitech. The live site can be found at wikitech.wikimedia.org

Wmf-sre-laptop: Difference between revisions

From Wikitech-static
Jump to navigation Jump to search
imported>MVernon
(Make a sources.list.d file rather than editing sources.list directly.)
imported>Herron
No edit summary
Line 10: Line 10:


* /usr/share/doc/wmf-laptop-sre/README contains pointers to the next steps to setup git, SSH and pwstore access.
* /usr/share/doc/wmf-laptop-sre/README contains pointers to the next steps to setup git, SSH and pwstore access.
<syntaxhighlight lang="bash">
# quick install wmf-sre-laptop (buster or later)
sudo wget -O /etc/apt/trusted.gpg.d/wikimedia-apt-key.asc "https://wikitech.wikimedia.org/w/index.php?title=APT_repository/Stretch-Key&action=raw"
echo "deb http://apt.wikimedia.org/wikimedia buster-wikimedia component/wmf-sre-laptop" | sudo tee /etc/apt/sources.list.d/wikimedia-sre-laptop.list
sudo apt install wmf-laptop-sre
</syntaxhighlight>

Revision as of 17:48, 30 August 2022

wmf-sre-laptop is a Debian package which provides example configs, scripts and documentation to setup access to SSH (production and Cloud VPS), Git and pwstore. It also pulls in packages that you'll need as dependencies. It's available on our internal repository. The source is in the operations/debs/wmf-sre-laptop repository.

  • First of all you need to install the repository key for apt.wikimedia.org, it's documented here: APT repository#Security
  • Then create a file under /etc/apt/sources.list.d/ called something like wikimedia.list containing the following (the package should work for Buster and testing/sid):
 deb http://apt.wikimedia.org/wikimedia buster-wikimedia component/wmf-sre-laptop
  • Then apt install wmf-laptop-sre, it will pull in a few packages you'll need as well.
  • /usr/share/doc/wmf-laptop-sre/README contains pointers to the next steps to setup git, SSH and pwstore access.
# quick install wmf-sre-laptop (buster or later)
sudo wget -O /etc/apt/trusted.gpg.d/wikimedia-apt-key.asc "https://wikitech.wikimedia.org/w/index.php?title=APT_repository/Stretch-Key&action=raw"
echo "deb http://apt.wikimedia.org/wikimedia buster-wikimedia component/wmf-sre-laptop" | sudo tee /etc/apt/sources.list.d/wikimedia-sre-laptop.list
sudo apt install wmf-laptop-sre