注意:

The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.

Funtoo:Metro/Initial Setup

From Funtoo
< Funtoo:Metro
Revision as of 02:25, December 3, 2017 by X48rph (talk | contribs) (Initial page add)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Metro AutoSetup

The autosetup script provides a fast and convenient way of quickly setting up and running metro builds.

Installing Metro

The recommended and supported method is to use the Git repository of Metro. Funtoo users should aleady have dev-vcs/git installed on there system. Users of other distros may need to install it. Clone the master git repository as follows (Assuming you wish to clone into '/root'. Feel free to change the location to suit your needs):

root # cd /root
root # git clone git://github.com/funtoo/metro.git

Dependencies

In order to use the autosetup script a few dependencies are required.

  • >=dev-lang/python-3.6
  • dev-python/requests
  • dev-python/lxml
root # emerge dev-python/requests dev-python/lxml
   Note

Changing python versions is outside the scope of this article as it requires changing branches in the python kit. Please see the ego manpages for information on how to do this if your not already using Python 3.6

Configuring Metro

The default options for metro are usually fine for most cases. If you are happy with the defaults then you don't need to do anything. The first time you run the autosetup script it will copy the default configuration file to /root/.metro and automatically adjust the location setting to the current location of metro. If you wish to tweak the settings then you should manually copy /path/to/metro/metro.conf to /root/.metro and edit accordingly.

root # cp /root/metro/metro.conf ~/.metro

Starting the script

The autosetup script is located at /path/to/metro/scripts/autosetup and is executable by default. Simply open up a shell and run it.

root # /root/metro/scripts/autosetup