Installation instructions » History » Version 7
Jochen Schalanda, 03/20/2011 12:04 PM
Added install instructions for Debian/Ubuntu Linux
1 | 7 | Jochen Schalanda | {{toc}} |
---|---|---|---|
2 | |||
3 | 1 | Ohad Levy | h1. Installation instructions |
4 | |||
5 | 2 | Jochen Schalanda | h2. Source code |
6 | 1 | Ohad Levy | |
7 | 2 | Jochen Schalanda | You can get the latest stable code from "GitHub":https://github.com/ohadlevy/smart-proxy ("via git":git://github.com/ohadlevy/smart-proxy.git). |
8 | <pre> |
||
9 | git clone git://github.com/ohadlevy/smart-proxy.git |
||
10 | </pre> |
||
11 | 1 | Ohad Levy | |
12 | 4 | Ohad Levy | h2. RPM |
13 | |||
14 | 5 | Ohad Levy | You can get a the stable rpm "Here":http://yum.theforeman.org/stable/RPMS/ |
15 | 7 | Jochen Schalanda | |
16 | h2. Debian/Ubuntu packages |
||
17 | |||
18 | We provide packages for Smart-Proxy for the following Debian-based Linux distributions: |
||
19 | |||
20 | * Debian Linux 5.0 (Lenny), see notes below |
||
21 | * Debian Linux 6.0 (Squeeze) |
||
22 | * Ubuntu Linux 10.04 (Lucid Lynx) |
||
23 | * Ubuntu Linux 10.10 (Maverick Meerkat) |
||
24 | |||
25 | |||
26 | Add one of the following package sources to your @/etc/apt/sources.list@: |
||
27 | |||
28 | <pre> |
||
29 | # For stable packages |
||
30 | deb http://deb.theforeman.org/ stable main |
||
31 | |||
32 | # For testing packages |
||
33 | deb http://deb.theforeman.org/ testing main |
||
34 | </pre> |
||
35 | |||
36 | The public key for "secure APT":http://wiki.debian.org/SecureApt can be downloaded "here":http://deb.theforeman.org/foreman.asc |
||
37 | |||
38 | You can add this key with |
||
39 | <pre> |
||
40 | sudo apt-key add foreman.asc |
||
41 | </pre> |
||
42 | |||
43 | or combine downloading and registering: |
||
44 | <pre># Debian Linux (as root) |
||
45 | wget -q http://deb.theforeman.org/foreman.asc -O- | apt-key add - |
||
46 | |||
47 | # Ubuntu Linux (as normal user) |
||
48 | wget -q http://deb.theforeman.org/foreman.asc -O- | sudo apt-key add - |
||
49 | </pre> |
||
50 | |||
51 | The key fingerprint is |
||
52 | <pre> |
||
53 | 1DCB 15D1 2CA1 40EE F494 7E57 66CF 053F E775 FF07 |
||
54 | Foreman Archive Signing Key <packages@theforeman.org> |
||
55 | </pre> |
||
56 | |||
57 | To install Smart-Proxy, run |
||
58 | |||
59 | <pre> |
||
60 | sudo apt-get update |
||
61 | |||
62 | # Depending on the database you want to use with Foreman, |
||
63 | # install one of these: |
||
64 | sudo apt-get install foreman-mysql |
||
65 | sudo apt-get install foreman-pgsql |
||
66 | sudo apt-get install foreman-sqlite3 |
||
67 | </pre> |
||
68 | |||
69 | h3. Debian Linux 5.0 (Lenny) |
||
70 | |||
71 | Users of Debian Lenny will have to use "rake":http://packages.debian.org/lenny-backports/rake, "rack":http://packages.debian.org/lenny-backports/librack-ruby, and "Sinatra":http://packages.debian.org/lenny-backports/libsinatra-ruby from @lenny-backports@. |
||
72 | |||
73 | See http://backports.debian.org/Instructions/ for instructions on how to add @lenny-backports@ to your list of repositories and install a package from it. |
||
74 | |||
75 | Please note that you'll have to install @rack@ from @lenny-backports@ using @apt-get -t lenny-backports install librack-ruby@. @libsinatra-ruby@ will not be installable otherwise. |
||
76 | |||
77 | 1 | Ohad Levy | |
78 | 2 | Jochen Schalanda | h2. Configuration file |
79 | 1 | Ohad Levy | |
80 | 6 | Ohad Levy | Usually can be found at /etc/foreman-proxy/settings.yml or on the config/settings.yml subdirectory. |
81 | 3 | Jochen Schalanda | You can use the @settings.yml.example@ file inside the @config@ directory as a template for your own [[settings.yml]]. |
82 | 1 | Ohad Levy | |
83 | 2 | Jochen Schalanda | If you don't plan to use one of the subsystems, please disable them in this configuration file. |
84 | 1 | Ohad Levy | |
85 | |||
86 | 2 | Jochen Schalanda | h2. Start the daemon |
87 | 1 | Ohad Levy | |
88 | until a service file will be created simply execute |
||
89 | <pre> |
||
90 | bin/smart-proxy.rb |
||
91 | </pre> |