19 November 2010

Setup Ifolder server on Ubuntu 10.10

iFolder is a simple and secure storage solution that can increase your productivity by enabling you to back up, access and manage your personal files-from anywhere, at any time. Once you have installed iFolder, you simply save your files locally-as you have always done-and iFolder automatically updates the files on a network server and delivers them to the other machines you use.

Ifolder is normally only for OpenSuSE but you can setup ifolder server on Ubuntu.

Resources
This guide is bast on this tow guides:
how-to-install-ifolder-on-ubuntu-server
ifolder-on-opensuse-11-3

Requirements
  • Ubuntu 10.04 or 10.10
  • Apache server
To install apache server and configure or ssl, just open terminal and type
sudo apt-get install apache2
sudo a2enmod ssl

sudo a2ensite default-ssl

sudo /etc/init.d/apache2 restart

Now you have apache server and configured for ssl.

Ok, now that you have a running apache server lets start the ifolder-server install.

Install ifolder-server
1. Install dependencies (don't know if you need them all)
sudo apt-get install build-essential automake autoconf mono-complete liblog4net1.2-cil uuid-dev libxml2-dev mono-apache-server mono-apache-server2 gsoap libapache2-mod-mono libncurses-dev libtool g++-4.3 gcc-4.3
2. Download packages
wget http://downloads.sourceforge.net/project/ifolder/iFolder%20Server/3.8.0.3/11.1/ifolder3-enterprise-3.8.0.10191.1-5.1.i586.rpm

wget http://downloads.sourceforge.net/project/ifolder/iFolder%20Server%20Plugins/3.8.0.3/11.1/novell-ifolder-enterprise-plugins-3.8.0.10191.1-3.2.i586.rpm

wget http://download.opensuse.org/distribution/11.3/repo/oss/suse/noarch/log4net-1.2.10-58.1.noarch.rpm
3. install alien and convert rpm's to dab
sudo apt-get install alien

sudo alien --scripts *.rpm
4. install packages
sudo dpkg -i ifolder3-enterprise-3.8.0.10191.1-5.1.i586.dab

sudo dpkg -i novell-ifolder-enterprise-plugins-3.8.0.10191.1-3.2.i586.dab
5. install log4net
sudo apt-get remove liblog4net1.2-cil

sudo dpkg -i log4net-1.2.10-58.1.noarch.dab
5. Restart apache and verify everything is
sudo /etc/init.d/apache2 restart
6. Now you need to setup Simias but first we need to get some information. run this and see what you get.
id www-data
My output was:
uid=33(www-data) gid=33(apache) groups=33(apache)
Now that tells me that user "www-data" is in group "apache". this is something that you need to remember.

7. Now configure Simias
sudo /usr/bin/simias-server-setup
This is the answers that I gave.

SIMIAS SERVER SETUP

This script configures a server installation of Simias to setup a new Simias system.


----- SERVER'S DATA PATH -----
Path to the server's data files


Server's Data Path? [/var/simias/data]:

----- SERVER NAME -----
The name of this server


Server Name? [Host1]:

----- SSL -----
Select SSL/NONSSL communication for this server. Options
are SSL, NONSSL or BOTH


SSL? [SSL]:

----- PUBLIC URL -----
Public URL of this Simias Server


Public URL? [https://192.168.1.65/simias10]:

----- PRIVATE URL -----
Private URL of this Simias Server


Private URL? [https://192.168.1.65/simias10]:
----- SLAVE SERVER -----
Install into existing Simias Domain


Slave Server? [N]:

----- SYSTEM NAME -----
A name used to identify the Simias system to users.


System Name? [iFolder]:

----- SYSTEM DESCRIPTION -----
A detailed description of the Simias system for users.


System Description? [iFolder Enterprise System]:

----- USE KEY RECOVERY AGENT -----
Use Key Recovery Agents to recovery the encryption
key if the user forgets the pass-phrase used for encryption?


Use Key Recovery Agent? [Y]:
----- RECOVERY AGENT CERTIFICATE PATH -----
Path to the Recovery agent certificate's.


Recovery Agent Certificate Path? [/var/simias/data]:

----- USE LDAP -----
Use LDAP to provision and authenticate users?


Use LDAP? [Y]: NO

----- SYSTEM ADMIN -----
The Simias default administrator. If the system is
configured to use an external identity source, the
distinguished name (dn) should be used.


System Admin? [admin]: System Admin Password? [novell]:

----- CONFIGURE APACHE -----
Configure Simias to run behind Apache


Configure Apache? [N]: YES

----- APACHE USER -----
Apache User


Apache User? [wwwrun]: www-data

----- APACHE GROUP -----
Apache Group


Apache Group? [www]: apache

Working...

Configuring /var/simias/data/simias/Simias.config...
SetupSimias - Done
Configuring /etc/apache2/conf.d/simias.conf...
Done
Configuring User Movement plugin..

Setting up Log4Net file...
Done
Setting up permissions...
Done

SUCCESS
Now the setup asks for apache user and group and that is what you found out earlier.
For server name you can have what you want, but I just used default.
For system admin password you can pick your own, I just used default.

8. Correct the mod_mono path
sudo sed -i 's/apache2\/mod_mono.conf/apache2\/mods-enabled\/mod_mono.conf/g' /etc/apache2/conf.d/simias.conf
9. Fix some paths
sudo ln -s /usr/bin/gmcs2 /usr/bin/gmcs
sudo mkdir -p /var/www/.config/.mono/
10. Fix some paths. Same here has with the Simias configure, need to answer the apache user and group with you got from "id www-data"
sudo chown -R www-data:apache /var/www/.config/
11. Restart apache and verify it is still restarting
sudo /etc/init.d/apache2 restart
12. Run the setups for ifolder. Same here has with the Simias configure, need to answer the apache user and group with you got from "id www-data"
sudo /usr/bin/ifolder-admin-setup

sudo /usr/bin/ifolder-web-setup
13. Correct again mod_mono path
sudo sed -i 's/apache2\/mod_mono.conf/apache2\/mods-enabled\/mod_mono.conf/g' /etc/apache2/conf.d/ifolder_admin.conf

sudo sed -i 's/apache2\/mod_mono.conf/apache2\/mods-enabled\/mod_mono.conf/g' /etc/apache2/conf.d/ifolder_web.conf
14 Enable rewrite
sudo a2enmod rewrite
15 Restart apache
sudo /etc/init.d/apache2 restart
16. Now just go to ifolder admin page and create some accounts and have fun.
https://"youre IP"/admin or https://localhost/admin
here is a screen shot form the ifolder admin log in page

Note:
  • If you get "This Connection is Untrusted" just add exception
  • I have not got the Ifolder client to run on linux, but this works grade with windows client.

2 comments:

  1. Awesome, thanks to this I got it working, but cant get to acces it out of my lan, no way to make the clients connect from internet.
    Any ideas on how to do this?
    Thanks.

    ReplyDelete
  2. Hello. Thanks for the tutorial.
    All is perfecto for me until the 12th stept.
    Mi id is

    root@aa38805:/opt/lampp/htdocs# id www-data
    uid=33(www-data) gid=33(www-data) grupos=33(www-data)
    So its "www-data" for me.

    But in 12 step i use this parmeters and this happends:
    root@aa38805:/opt/lampp/htdocs# /usr/bin/ifolder-admin-setup

    IFOLDER WEB ADMIN SETUP

    This script configures a server installation of iFolder Web Admin application. The script is intended for testing purposes only.

    ----- WEB ALIAS -----
    Web Alias for iFolder Web Admin


    Web Alias? [/admin]:

    ----- REQUIRE SSL -----
    Require a secure connection between the browsers and
    the iFolder Web Admin application


    Require SSL? [Y]:
    ----- REQUIRE SERVER SSL -----
    Require a secure connection between the iFolder Server
    and the iFolder Web Admin application


    Require Server SSL? [Y]:

    ----- IFOLDER URL -----
    The host or ip address of the iFolder server that will
    be used by the iFolder Web Admin application


    iFolder URL? [http://localhost:80/]:
    ----- REDIRECT URL -----
    Redirect URL for iChain / AccessGateway


    Redirect URL? []: root@ks38805:/opt/lampp/htdocs# /usr/bin/ifolder-admin-setup

    IFOLDER WEB ADMIN SETUP

    This script configures a server installation of iFolder Web Admin application. The script is intended for testing purposes only.

    ----- WEB ALIAS -----
    Web Alias for iFolder Web Admin


    Web Alias? [/admin]:
    ----- REQUIRE SSL -----
    Require a secure connection between the browsers and
    the iFolder Web Admin application


    Require SSL? [Y]:
    ----- REQUIRE SERVER SSL -----
    Require a secure connection between the iFolder Server
    and the iFolder Web Admin application


    Require Server SSL? [Y]:
    ----- IFOLDER URL -----
    The host or ip address of the iFolder server that will
    be used by the iFolder Web Admin application


    iFolder URL? [http://localhost:80/]: http://localhost:80/

    ----- REDIRECT URL -----
    Redirect URL for iChain / AccessGateway


    Redirect URL? []:

    ----- APACHE USER -----
    Apache User to use for providing permissions


    Apache User? [wwwrun]: www-data

    ----- APACHE GROUP -----
    Apache Group to use for providing permissions


    Apache Group? [www]: www-data

    Working...

    Configuring /usr/lib64/simias/admin/Web.config...Done
    Server DATA PATH is set to : /var/simias/data/simias
    Configuring /etc/apache2/conf.d/ifolder_admin.conf...Done
    Installing certificate...Failed

    System.UriFormatException: Invalid URI: The hostname could not be parsed. (131;19Rhttp:)
    at System.Uri.Parse (UriKind kind, System.String uriString) [0x00000] in :0
    at System.Uri.ParseUri (UriKind kind) [0x00000] in :0
    at System.Uri..ctor (System.String uriString, Boolean dontEscape) [0x00000] in :0
    at System.Uri..ctor (System.String uriString) [0x00000] in :0
    at Novell.iFolderApp.Web.iFolderAdminSetup.SetupSsl () [0x00000] in :0
    at Novell.iFolderApp.Web.iFolderAdminSetup.Setup () [0x00000] in :0
    at Novell.iFolderApp.Web.iFolderAdminSetup.Main (System.String[] args) [0x00000] in :0
    at System.Uri.Parse (UriKind kind, System.String uriString) [0x00000] in :0
    at System.Uri.ParseUri (UriKind kind) [0x00000] in :0
    at System.Uri..ctor (System.String uriString, Boolean dontEscape) [0x00000] in :0
    at System.Uri..ctor (System.String uriString) [0x00000] in :0
    at Novell.iFolderApp.Web.iFolderAdminSetup.SetupSsl () [0x00000] in :0
    at Novell.iFolderApp.Web.iFolderAdminSetup.Setup () [0x00000] in :0
    at Novell.iFolderApp.Web.iFolderAdminSetup.Main (System.String[] args) [0x00000] in :0

    FAILED


    The same thing happends with "/usr/bin/ifolder-web-setup"

    Why??? how can i fix it???
    Thank you

    ReplyDelete