-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathum_repositories.html
71 lines (66 loc) · 4.79 KB
/
um_repositories.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<!DOCTYPE html>
<html>
<head>
<title>skarphed - Documentation</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="static/logo_32.png" rel="icon" type="image/png">
<link href="static/mainsite.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="body_overlay" >
<header>
<div id="headercontent">
<a class="bclink" href="http://skarphed.org">
<img src="static/logo_32.png" alt="skarphed" style="float:left; margin-right: 10px;"></a>
<a class="bclink" href="index.html">Documentation
</a>
<a class="bclink" href="user_man.html">
→ Users Manual
</a>
<a class="bclink" href="um_repositories.html">
→ Repositories
</a>
</div>
</header>
<div id="space_content">
<span class="headerlink_nohover"><h2> Repositories </h2></span>
<p>A <em>skarphed-repo</em> has two tasks: providing modules and providing templates. The <em>skarphed-core</em>s talk to the repository to obtain their resources. In your skarphed infrastructure you will need to register at least one repository. You have two possibilities to do that. Either register an existing repository or create your own.</p>
<h3>Register an existing repository</h3>
<p>This is a little unconvenient until now, because this feature has not been needed during development (will be fixed). First obtain the IP of the server the <em>skarphed-repo</em> runs on. Then add this IP as a <a href="um_servers.html">server</a>. Right mouseclick on the newly entered server. Click <em>Properties...</em>. Click on <em>Add</em> in the Instances-Frame. Select the <em>InstanceType</em> <em>SkarphedRepository</em>. Enter the URL of the repiository into <em>URL</em> you can also enter IPs here like <em>http://10.10.10.10</em>. If you are an administrator of this <em>skarphed-repo</em> you may enter your password into the field <em>Password</em>.
Now you have a repository.</p>
<h3>Set up an own repository</h3>
<p>Setting up an own is a bit tricky until we get a debian-package into the official package-sources of debian. First, generate a debian-package of <em>skarphed-repo</em> from the sources by executing the following commands:<br>
<code>
user@skarphed-admin:~$ cd /path/to/skarphed/repo/install<br>
user@scpville-admin:~$ ./generate_packages.sh
</code><br>
Now scp the generated .deb-file to the machine you want to create your <em>skarphed-repo</em> on.<br>
<code>
user@skarphed-admin:~$ scp skarphed-repo.deb user@machine:/tmp/
</code><br>
After that SSH into the machine and attempt to install the package<br>
<code>
user@skarphed-admin:~$ ssh user@machine<br>
user@skarphed-repo:~$ cd /tmp<br>
user@skarphed-repo:~$ sudo su<br>
root@skarphed-repo:~# dpkg -i skarphed-repo.deb<br>
root@skarphed-repo:~# apt-get -f -y install
</code><br>
The former steps install all dependencies needed by the repo. Afterwards you will need to set a SYSDBA-password for firebird, activate firebird and trigger the setup-script of skarphed-repo:<br>
<code>
root@skarphed-repo:~# dpkg-reconfigure firebird2.5-super
root@skarphed-repo:~# skdrepo-setup
</code><br>
Follow instructions on screen. The last step is firing up your new repo:<br>
<code>
root@skarphed-repo:~# /etc/init.d/skdrepo start
</code><br>
You can now call the URL that points to your <em>skarphed-repo</em>-Machine and should be able to see the machines public key.
Continue with the section above to register your new repository with <em>skarphed-admin</em>.
</div>
<footer id="space_footer"></p><a href="../imprint.html">Imprint / Impressum</a></p>
<a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/88x31.png" /></a><br />This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">Creative Commons Attribution-ShareAlike 3.0 Unported License</a>.
</footer>
</div>
</body>
</html>