|Please read the Wikimedia Cloud Services Introduction.|
This page will walk through the getting started steps to begin contributing to this wiki and Wikimedia's technical spaces.
- 1 Account Creation
- 2 Getting started with ToolForge
- 3 Getting started with VPS Projects
- 4 Read the documentation and Rules
- 5 Help and Participation
The Wikimedia movement's technical spaces use LDAP as a central backend to most of our products.
An LDAP account can allow you to:
- Edit this wiki.
- Work with Wikimedia VPS Projects
- Request access to Tool Labs
- Login to the Wikimedia VPS management console (Horizon)
- Login to our bug tracking system (Phabricator)
- Commit code to Wikimedia’s Git repositories via our code review system (Gerrit)
- Access other protected Wikimedia services after signing a Volunteer NDA and being approved for access.
Creating an account
- Use the Tool Labs admin console to create a new LDAP account.
- Fill out an access request to join the Tools project.
- Generate an SSH key that you will use along with your shell account name to log into the Tool Labs servers if you do not already have one.
- Associate your SSH public key with your Wikitech account using the Preferences > OpenStack tab or Tool Labs admin console.
- Wait for your access request for the Tools project to be processed (you should receive messages on your Wikitech talk page).
After account creation
- Use SSH to login to Tool Labs. In a command-line terminal, enter: ssh -i ~/.ssh/id_rsa firstname.lastname@example.org (username is the "Instance shell account name" you specified when you created an account. If you are running Windows you will need to use an ssh client like Putty.
- Use SSH-based utilities such as scp and sftp to transfer files between Tool Labs and your computer.
- Access MySQL from SSH (e.g. sql enwiki is a shortcut command to connect to the copy of English Wikipedia)
- Create tools (see § Creating a new Tool account).
- Your LDAP username and your shell login username may be different. Visit Settings > Linked accounts in the Tool Labs admin console and check your "Shell account name".
- The passwords you chose for your LDAP account and SSH key may be different.
- When you login with SSH you are in your personal folder. To quickly go to your tool account enter: become tool_name
- If you login with WinSCP you will transfer files as yourself, not as your tool. The UNIX group for both accounts is the same so you can make files editable by all maintainers of the tool with:
$ become TOOL_NAME $ chmod --recursive g+rw .
- The web service for your tool is not started by default. To start it enter: webservice start
- When doing file system intensive tasks (like
git clone), it may be useful to perform the task on a host-local filesystem (like
/tmp) to avoid the speed penalty of NFS. For example, cloning git repositories in
/tmpand then moving it to the location you actually need it in can be much faster than cloning it in the original location.
- If you need to use the server for a long time, and want to execute a task even when you're not connected to the ssh, you can use
screen. Note that screen needs to be run before
become TOOL_NAME. Screen should not be used to run long running scripts. These should be run as grid jobs instead.
- You might need to use
ssh-addon your local computer after creating a new key.
Using multiple ssh agents
If you use multiple ssh-agents (to connect to your personal or company system, for example), see SSH access for more information about setting up a primary and a Labs agent.
VPS and General Users
Creating an account
Create an LDAP account on Wikitech using the account creation form.
Uploading an SSH key
Wikimedia Cloud Services products and Wikimedia Code Review use an SSH key to authenticate you. If you already have an SSH key you can use that one, or generate a new one specifically for Wikimedia use; the default public key name generated by ssh-keygen is typically id_rsa.pub.
Upload the generated public key from the OpenStack tab in your Preferences.
See Also: SSH Help
Uploading your key to Wikimedia's Gerrit (Code Review)
Upload your public key to Gerrit (Wikimedia's code review tool).
- “Sign In” with your Wikimedia Developer Account
- Click “Settings” link in drop down menu under your username at page top right
- Click “SSH Public Keys” in left sidebar
- Paste your public key into the text field and click “Add” button. Thereafter, the form presents "Add key ..." button instead, for if you have more keys you want to add.
If you are just simply getting an account for committing into Gerrit, read some detailed documentation about it
- Help:Git - (somewhat) complete documentation of using Gerrit
- Git workflow - A lengthy page detailing all aspects of committing into Gerrit and using it.
- Help:Git rebase - Because the importance of using fetch and rebase (instead of pull or merge) can't be over-emphasized.
Getting started with ToolForge
Requests for access are generally dealt with within the day (often faster), though response-time may be longer depending on admin availability. If you need immediate assistance, please contact us on the #wikimedia-labs connect IRC channel.
Receiving access to the 'tools' project
Once your 'tools' project access request has been processed, you will become a member of the Tools VPS project, and will be able to access it using the "Instance shell account name" provided when creating your LDAP account and the SSH private key matching the public key you supplied for authentication. For more information about accessing the project, please see Accessing Tool Labs and managing your files.
You will be notified on Wikitech that your user rights were changed and that you have been added to the project Nova Resource:Tools. In other words, your Tool Labs account is ready for you to use!
Getting started with VPS Projects
Join a Project
In order to work on WMCS VPS projects you need to be granted membership in them by a project administrator. By default, you have access to the bastion project so that you can use SSH to access instances.
- Find the project you wish to join using OpenStack browser.
- To join Tools Forge, see the instructions in Getting started with ToolForge
- If you want to join another project, ask a project administrator for that project. You can find the list of project admins by going to http://tools.wmflabs.org/openstack-browser/project/<project-name>
Add members and admin users to a Project
- Project admins can go to Special:NovaProject and add people by clicking the 'Add member' link.
- Project admins can also grant other members admin rights from the Special:NovaProject page by clicking the 'Add member' link for the 'projectadmin' role in the Role column.
- Log at #wikimedia-labs connect that you added/granted admin to the user. See Help:Getting Started#Log_your_actions for how to add to the admin log from irc.
Request creation of a new Project
If you need to create a new project go to the "New Labs project requests" phabricator task and follow the instructions it provides.
To create instances within a project, see Help:Instances
Access Project Instances
Using ProxyCommand for SSH
The easiest way to access your project instance is using the
ProxyCommand ssh option to directly connect to your instance.
- Follow the steps at set up the ProxyCommand ssh option first
- Connect to your instance using the following command from your local computer
$ ssh <instance-name>.<project-name>.eqiad.wmflabs
See Help:Putty for using PuTTY with Windows.
Configuring Project Instances
Log your actions
WMCS provides a Server Admin Log which all users can log their project server administration actions on. You can add a log entry in the #wikimedia-labs connect channel on Freenode by using the sending a message like:
!log <projectname> <message>
It's best to log all changes to the instances in your project. Doing so makes it easier for others to follow your progress, and to more easily join your project and help out. See Tool:Stashbot for more information.
Read the documentation and Rules
- Help:Contents - help table of contents
- Help:Access - contains information on how to access lab instances
- Help:Rules - rules you need to follow when using Wikimedia Labs
- Code of Conduct - code of conduct for Wikimedia technical spaces