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

Aus Wiki StuRa HTW Dresden
Zur Navigation springen Zur Suche springen
KKeine Bearbeitungszusammenfassung
Zeile 8: Zeile 8:
== Backup ==
== Backup ==


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


Damit bconsole sich mit dem director verbinden kann
Damit bconsole sich mit dem director verbinden kann
echo "server-dir: ALL" >> /etc/hosts.allow
 
echo "bacula-dir: ALL" >> /etc/hosts.allow




Zeile 17: Zeile 18:
http://www.postgresql.org/docs/9.0/static/kernel-resources.html
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 im Jail ====
echo "security.jail.sysvipc_allowed=1" >> /etc/sysctl.conf
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 ====


echo "security.jail.sysvipc_allowed=1" >> /etc/sysctl.conf
su pgsql
echo "jail_sysvipc_allow="YES" # For PostgreSQL" >> /etc/rc.conf
/usr/local/bin/createuser <superuser>
Soll die neue Rolle ein Superuser sein? (j/n) j


=== Bacula ===
=== Bacula ===
Zeile 25: Zeile 50:
==== bacula-dir.conf ====
==== bacula-dir.conf ====


cd /usr/local/etc
cd /usr/local/etc
 
cp bacula.conf.sample bacula-dir.conf
 
==== Postgresql configuration ====
 
/usr/local/share/bacula/create_postgresql_database
 
/usr/local/share/bacula/make_postgresql_tables


cp bacula.conf.sample bacula-dir.conf
/usr/local/share/bacula/grant_postgresql_privileges

Version vom 19. Mai 2013, 22:28 Uhr

pf open ports

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

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 im Jail

echo "security.jail.sysvipc_allowed=1" >> /etc/sysctl.conf
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

bacula-dir.conf

cd /usr/local/etc
cp bacula.conf.sample bacula-dir.conf

Postgresql configuration

/usr/local/share/bacula/create_postgresql_database
/usr/local/share/bacula/make_postgresql_tables
/usr/local/share/bacula/grant_postgresql_privileges