Diskussion:Server/Jails/SRS17: Unterschied zwischen den Versionen

Aus Wiki StuRa HTW Dresden
Zur Navigation springen Zur Suche springen
K (Matthias Jakobi verschob Seite Diskussion:Server/Jail/SRS17 nach Diskussion:Server/Jails/SRS17 ohne dabei eine Weiterleitung anzulegen)
 
(7 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 4: Zeile 4:
5269 for XMPP server connections (s2s = server to server). If you want that users in your server NOT be able to chat with users of other servers, you can close the port 5269.<br />
5269 for XMPP server connections (s2s = server to server). If you want that users in your server NOT be able to chat with users of other servers, you can close the port 5269.<br />
5280 for HTTP client connections, including HTTP-Bind and WebAdmin. Needed for http_bind in Strophe.js
5280 for HTTP client connections, including HTTP-Bind and WebAdmin. Needed for http_bind in Strophe.js
== Backup ==
echo "#Bacula" >> /etc/host.allow
Damit bconsole sich mit dem director verbinden kann
echo "bacula-dir: ALL" >> /etc/hosts.allow
=== Postgresql ===
http://www.postgresql.org/docs/9.0/static/kernel-resources.html
==== /etc/login.conf ====
postgres:\
    :lang=de_DE.UTF-8:\
    :setenv=LC_COLLATE=C:\
    :tc=default:
cap_mkdb /etc/login.conf
==== shared memory aktivieren für die Jail ====
===== Hauptsystem =====
echo "security.jail.sysvipc_allowed=1" >> /etc/sysctl.conf
===== Jail =====
echo "jail_sysvipc_allow="YES" # For PostgreSQL" >> /etc/rc.conf
==== postgresql db initialisieren ====
/usr/local/etc/rc.d/postgresql initdb
==== rc.conf ====
postgresql_enable="YES"
==== User anlegen ====
su pgsql
/usr/local/bin/createuser <superuser>
Soll die neue Rolle ein Superuser sein? (j/n) j
=== Bacula ===
==== Postgresql configuration ====
/usr/local/share/bacula/create_bacula_database
/usr/local/share/bacula/make_bacula_tables
/usr/local/share/bacula/grant_bacula_privileges
==== bacula-dir.conf ====
cd /usr/local/etc
cp bacula-dir.conf.sample bacula-dir.conf
===== Test =====
bacula-dir -t -c bacula-dir.conf
==== bacula-sd.conf ====
cd /usr/local/etc
cp bacula-sd.conf.sample bacula-sd.conf
===== Test =====
bacula-sd -t -c bacula-sd.conf
==== bacula-fd.conf ====
cd /usr/local/etc
cp bacula-fd.conf.sample bacula-fd.conf
===== Test =====
bacula-fd -t -c bacula-fd.conf

Aktuelle Version vom 23. September 2013, 21:23 Uhr

pf open ports[Bearbeiten]

5222 for XMPP client connections (c2s = client to server)
5269 for XMPP server connections (s2s = server to server). If you want that users in your server NOT be able to chat with users of other servers, you can close the port 5269.
5280 for HTTP client connections, including HTTP-Bind and WebAdmin. Needed for http_bind in Strophe.js


Backup[Bearbeiten]

echo "#Bacula" >> /etc/host.allow

Damit bconsole sich mit dem director verbinden kann

echo "bacula-dir: ALL" >> /etc/hosts.allow


Postgresql[Bearbeiten]

http://www.postgresql.org/docs/9.0/static/kernel-resources.html

/etc/login.conf[Bearbeiten]

postgres:\
   :lang=de_DE.UTF-8:\
   :setenv=LC_COLLATE=C:\
   :tc=default:
cap_mkdb /etc/login.conf

shared memory aktivieren für die Jail[Bearbeiten]

Hauptsystem[Bearbeiten]
echo "security.jail.sysvipc_allowed=1" >> /etc/sysctl.conf
Jail[Bearbeiten]
echo "jail_sysvipc_allow="YES" # For PostgreSQL" >> /etc/rc.conf

postgresql db initialisieren[Bearbeiten]

/usr/local/etc/rc.d/postgresql initdb

rc.conf[Bearbeiten]

postgresql_enable="YES"

User anlegen[Bearbeiten]

su pgsql
/usr/local/bin/createuser <superuser>
Soll die neue Rolle ein Superuser sein? (j/n) j

Bacula[Bearbeiten]

Postgresql configuration[Bearbeiten]

/usr/local/share/bacula/create_bacula_database
/usr/local/share/bacula/make_bacula_tables
/usr/local/share/bacula/grant_bacula_privileges

bacula-dir.conf[Bearbeiten]

cd /usr/local/etc
cp bacula-dir.conf.sample bacula-dir.conf
Test[Bearbeiten]
bacula-dir -t -c bacula-dir.conf

bacula-sd.conf[Bearbeiten]

cd /usr/local/etc
cp bacula-sd.conf.sample bacula-sd.conf
Test[Bearbeiten]
bacula-sd -t -c bacula-sd.conf

bacula-fd.conf[Bearbeiten]

cd /usr/local/etc
cp bacula-fd.conf.sample bacula-fd.conf
Test[Bearbeiten]
bacula-fd -t -c bacula-fd.conf