Unterschiede zwischen den Revisionen 10 und 11
Revision 10 vom 2007-07-26 12:26:59
Größe: 5221
Autor: age
Kommentar:
Revision 11 vom 2007-07-26 13:08:46
Größe: 6647
Autor: age
Kommentar: fertig
Gelöschter Text ist auf diese Art markiert. Hinzugefügter Text ist auf diese Art markiert.
Zeile 5: Zeile 5:
We have described two ways of installation. One for openSUSE 10.3 and another for Debian/etch (4.0). If you installed a !CryptoBox server in any other Linux distribution, pleas leave a comment about your experience or extend this site. We have described two ways of installation. One for openSUSE 10.2 and another for Debian/etch (4.0). If you installed a !CryptoBox server in any other Linux distribution, pleas leave a comment about your experience or extend this site.
Zeile 13: Zeile 13:
 * In the same way you have to install ''util-linux-crypto''.   * In the same way you have to install ''util-linux-crypto''.
Zeile 18: Zeile 18:
Zeile 20: Zeile 19:
 * Download the latest [http://download.cherrypy.org/cherrypy/2.2.1/ CherryPy version from the 2.2 branch] (here: 2.2.1) to ''/tmp'' and unpack and install it with the following commands: {{{  * Download the latest [http://download.cherrypy.org/cherrypy/2.2.1/ CherryPy version from the 2.2 branch] (here: 2.2.1) to ''/tmp'' and unpack and install it with the following commands:
{{{
Zeile 26: Zeile 26:
Zeile 28: Zeile 27:
 * Download the latest [http://www.clearsilver.net/downloads/clearsilver-0.10.5.tar.gz ClearSilver Source Release] (here: 0.10.5) to ''/tmp'' and install it with the following commands: {{{  * Download the latest [http://www.clearsilver.net/downloads/clearsilver-0.10.5.tar.gz ClearSilver Source Release] (here: 0.10.5) to ''/tmp'' and install it with the following commands:
{{{
Zeile 36: Zeile 36:
Zeile 38: Zeile 37:
 * Download the [ftp://ftp.ucolick.org/pub/users/will/ latest version of "super"] (here 3.27.1) and install it. This allows to run the !CryptoBox with a non-root uid. {{{  * Download the [ftp://ftp.ucolick.org/pub/users/will/ latest version of "super"] (here 3.27.1) and install it. This allows to run the !CryptoBox with a non-root uid.
{{{
Zeile 47: Zeile 47:
Zeile 50: Zeile 49:
 * Otherwise download an actual [http://packman.links2linux.de/package/python-configobj python-configobj.rpm] file from the packman openSUSE repository and install it with: {{{  * Otherwise download an actual [http://packman.links2linux.de/package/python-configobj python-configobj.rpm] file from the packman openSUSE repository and install it with:
{{{
Zeile 53: Zeile 53:
Zeile 56: Zeile 55:
 * Otherwise download an actual [http://ftp.opensuse.org/pub/opensuse/repositories/devel:/languages:/python/openSUSE_10.2/i586/python-m2crypto-0.17-1.1.i586.rpm python-m2crypto.rpm] (here 0.17) and install: {{{  * Otherwise download an actual [http://ftp.opensuse.org/pub/opensuse/repositories/devel:/languages:/python/openSUSE_10.2/i586/python-m2crypto-0.17-1.1.i586.rpm python-m2crypto.rpm] (here 0.17) and install:
{{{
Zeile 59: Zeile 59:
Zeile 61: Zeile 60:
 * Puh after that you at least know the magic spell (''./configure && make && make install'') to install source packages and the Python way of installing software (''python setup.py install'').
 * Now you're ready to get the latest [http://codecoop.org/frs/download.php/120/cryptobox-server_0.3.4.4-1.tar.gz CryptoBox server sources] (here 0.3.4.4-1) from codecoop and unpack it:{{{
 * Puh, after that you at least learned the magic spell (''./configure && make && make install'') to install source packages and the Python way of installing software (''python setup.py install'').
 * Now you're ready to get the latest [http://codecoop.org/frs/download.php/120/cryptobox-server_0.3.4.4-1.tar.gz CryptoBox server sources] (here 0.3.4.4-1) from codecoop and unpack it:
 
{{{
Zeile 68: Zeile 68:
 * TODO edit super.tab  * Copy the ''conf-examples/super.tab-example'' to ''/usr/local/etc/super.tab'' (depends on your super installation) and modify it to your needs.
 * Now you should be able to start the CryptoBox server by running: {{{
./bin/run_webserver.sh
}}}
  * Do that as user ''cryptobox'' not as root.
  * The command returns some infromation about the server. One line should look like this "INFO Serving HTTP on http://localhost:8080/". This means you did it.
  * If there are any error messages read them carefully. There's most likely some of the dependent software missing. Fix it and start the run_webserver script again.
   * Did you install every tool as described? Did you configure ''super'' correctly?
  * Now, visit the printed url (here: http://localhost:8080) with your webbrowser. You'll see the !CryptoBox webinterface. Congratulations!
   * The webinterface will complain about some things.
Zeile 71: Zeile 80:
 * To have a complete working !CryptoBox server you need some additional software which is probably already installed on your server.  * To have a complete working !CryptoBox server you need some additional software which is probably already installed on your server otherwise install them.
Zeile 76: Zeile 85:
 * If you need further help take a look into the [http://devel.cryptobox.org/wiki/CryptoBoxUser/en CryptoBox user documentation].
Zeile 82: Zeile 92:
apt-get install python python-central python-clearsilver python-cherrypy python-configobj python-m2crypto super cryptsetup e2fsprogs dosfstools apt-get install python python-central python-clearsilver python-cherrypy python-configobj python-m2crypto super cryptsetup
Zeile 85: Zeile 95:
 * Get the sources, unpack and install them the Python way {{{  * Get the sources, unpack and install them the Python way
{{{
Zeile 90: Zeile 101:
python setup.py install su -c "python setup.py install"
Zeile 92: Zeile 103:
 * Edit ''/etc/super.tab'' like described in ''conf-examples/super.tab-example''.
 * Start the !CryptoBox with: {{{
./bin/run_webserver.sh
}}}
 * Read the messages, if there's no error take a look at "http://localhost:8080". You're up and ready.
Zeile 94: Zeile 111:
apt-get install samba, apache2, stunnel4 apt-get install samba stunnel4 e2fsprogs dosfstools
Zeile 96: Zeile 113:
 * If you need further help take a look into the [http://devel.cryptobox.org/wiki/CryptoBoxUser/en CryptoBox user documentation].

This page describes the installation of the [http://cryptobox.org CryptoBox server] from the sources. The source package should be installable in many modern Linux distributions. Unfortunately you have to fulfil some dependencies manually, which might take a while.

We have described two ways of installation. One for openSUSE 10.2 and another for Debian/etch (4.0). If you installed a CryptoBox server in any other Linux distribution, pleas leave a comment about your experience or extend this site.

TableOfContents

CryptoBox server in openSUSE 10.2

Preparation

  • Install the packages python-devel und gcc via yast. They are in the main openSUSE repository.

    • These two packages are just needed to install the CryptoBox dependent software and can be removed afterwards.

  • In the same way you have to install util-linux-crypto.

    • This package contains a program called cryptsetup, which mainly does the encryption work.
    • It is important, that cryptsetup includes support for [http://luks.endorphin.org/ LUKS]. This is the case in openSUSE 10.2.

  • Add a new user to your system e.g.: cryptobox. With the rights of this user the CryptoBox will later run.

    • Do all the following steps as this user. Sometimes you need root rights. You can use the su and giving the root passphrase command for that.

CherryPy 2.2

  • Download the latest [http://download.cherrypy.org/cherrypy/2.2.1/ CherryPy version from the 2.2 branch] (here: 2.2.1) to /tmp and unpack and install it with the following commands:

    cd /tmp
    tar zxf CherryPy-2.2.1.tar.gz
    cd CherryPy-2.2.1
    su -c "python setup.py install"

Python Clearsilver

  • Download the latest [http://www.clearsilver.net/downloads/clearsilver-0.10.5.tar.gz ClearSilver Source Release] (here: 0.10.5) to /tmp and install it with the following commands:

    cd /tmp
    tar zxf clearsilver-0.10.5.tar.gz
    cd clearsilver-0.10.5
    ./configure --prefix=/usr --diable-java --diable-perl --disable-csharp --disable-ruby --disable-apache --enable-gettext --with-python=/usr/bin/python
    make
    su -c "make install"

super

  • Download the [ftp://ftp.ucolick.org/pub/users/will/ latest version of "super"] (here 3.27.1) and install it. This allows to run the CryptoBox with a non-root uid.

    cd /tmp
    tar zxf super_3.27.1.orig.tar.gz
    ./configure
    make
    su -c "make install"
  • This installs super to /usr/local/bin/super. You have to change the corresponding path in the cryptobox.conf file.

  • The correct configfile in this case is /usr/local/etc/super.tab - not /etc/super.tab. This is important as you later have to add a line to this configfile.

Python ConfigObj

  • Install python-configobj via yast if you have the packamn repository in your rpm database.

  • Otherwise download an actual [http://packman.links2linux.de/package/python-configobj python-configobj.rpm] file from the packman openSUSE repository and install it with:

    su -c "rpm -i python-configobj-4.4.0-0.pm.1.i586.rpm"

Python M2Crypto

CryptoBox server

  • Puh, after that you at least learned the magic spell (./configure && make && make install) to install source packages and the Python way of installing software (python setup.py install).

  • Now you're ready to get the latest [http://codecoop.org/frs/download.php/120/cryptobox-server_0.3.4.4-1.tar.gz CryptoBox server sources] (here 0.3.4.4-1) from codecoop and unpack it:

    cd /tmp
    tar zxf cryptobox-server_0.3.4.4-1.tar.gz
    cd cryptobox-server_0.3.4.4-1
    su -c "python setup.py install"
  • Copy the conf-examples/super.tab-example to /usr/local/etc/super.tab (depends on your super installation) and modify it to your needs.

  • Now you should be able to start the CryptoBox server by running:

    ./bin/run_webserver.sh
    • Do that as user cryptobox not as root.

    • The command returns some infromation about the server. One line should look like this "INFO Serving HTTP on http://localhost:8080/". This means you did it.

    • If there are any error messages read them carefully. There's most likely some of the dependent software missing. Fix it and start the run_webserver script again.
      • Did you install every tool as described? Did you configure super correctly?

    • Now, visit the printed url (here: http://localhost:8080) with your webbrowser. You'll see the CryptoBox webinterface. Congratulations!

      • The webinterface will complain about some things.

Finalization

  • To have a complete working CryptoBox server you need some additional software which is probably already installed on your server otherwise install them.

    • samba
    • stunnel4
    • e2fsprogs
    • dosfstools
  • If you need further help take a look into the [http://devel.cryptobox.org/wiki/CryptoBoxUser/en CryptoBox user documentation].


CryptoBox server in Debian/etch

Preparation

  • If you for whatever reasons don't want to use the [http://codecoop.org/frs/?group_id=60&release_id=69 CryptoBox server Debian package] (our recommendation), you need some preparations to use the source package or the code from the svn.

    apt-get install python python-central python-clearsilver python-cherrypy python-configobj python-m2crypto super cryptsetup

CryptoBox server

  • Get the sources, unpack and install them the Python way
    cd /tmp
    wget http://codecoop.org/frs/download.php/120/cryptobox-server_0.3.4.4-1.tar.gz
    tar zxf cryptobox-server_0.3.4.4-1.tar.gz
    cd cryptobox-server_0.3.4.4-1
    su -c "python setup.py install"
  • Edit /etc/super.tab like described in conf-examples/super.tab-example.

  • Start the CryptoBox with:

    ./bin/run_webserver.sh
  • Read the messages, if there's no error take a look at "http://localhost:8080". You're up and ready.

Finalization

CryptoBox_server_source_installation (zuletzt geändert am 2012-07-28 23:47:25 durch anonym)


Creative Commons Lizenzvertrag
This page is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.