iFolder install on ubuntu

Posted in computer, internet, learn by daniel on November 16, 2009 No Comments yet

the contents below are copied from http://www.x2b4.com/howto/how-to-install-ifolder-on-ubuntu-server/ to ensure reproducibility.

How to install iFolder on Ubuntu server

ifolder_icon_bigFor a long time, I always searched for a synchronizing solution that just works. Sure, there is Unison, but its interface is a little rough. And it is not developed anymore. You can try rsync, but it is one way only (if you want two ways, you’ll have to do it yourself). Recently, things like DropBox and Ubuntu One are a great step forward. But their free version are quite limited in space. Plus, I like to have my data on my server, not just ’somewhere in the cloud’. Fortunately, recently Novell released a new version of iFolder. Seemed like the perfect solution, so I thought I’d give it a shot.

Of course, the first requirement for this tutorial is that you have your own server. Either a dedicated, a shared one, a some computer in your garage, but you must have root access to it.

Resources

https://help.ubuntu.com/community/ModMono
https://help.ubuntu.com/community/iFolderEnterpriseServer
http://www.thesummit-grp.com/index.php/matts-blog-right-menu-12/37-ifolder-37-on-sled-11
http://community.ifolder.com/ssf/a/do?p_name=ss_forum&p_action=1&title=installation&binderId=1487&action=view_folder_entry&page_title=Installation

https://edge.launchpad.net/~ruiboon

vikholt has adapted the steps to work with debian lenny. You can read his tutorial here:

https://trac-git.assembla.com/unifolder/wiki/InstallingIFolderServerOnDebianLenny

Requirements

* First, you must have a up-to-date Ubuntu server. I installed iFolder on ubuntu server 9.04, I think it should also work with server 8.10 and desktop 9.04. However in the case of 8.10, the dependencies may be a little bit different.
* Also, you must have apache installed and configured to work with ssl to have the windows client to work. You can quickly enable it with:
sudo a2enmod ssl
sudo a2ensite default-ssl
* That’s all

Steps
Start in an empty folder, for example ~/ifolderinstall

1. Download the different packages:
wget http://downloads.sourceforge.net/ifolder3/ifolder3-enterprise-3.7.2.9089.1-0.2.i586.rpm
wget http://downloads.sourceforge.net/ifolder3/ifolder-enterprise-plugins-3.7.2.9089.1-2.i586.rpm
wget http://download.opensuse.org/distribution/10.3/repo/oss/suse/noarch/log4net-1.2.9-104.noarch.rpm
2. Install alien and convert the packages:
sudo apt-get install alien
sudo alien –scripts *.rpm
3. Install the packages:
sudo dpkg -i ifolder3-enterprise_3.7.2.9089.1-1.2_i386.deb
sudo dpkg -i ifolder-enterprise-plugins_3.7.2.9089.1-3_i386.deb
4. Install the dependencies:
sudo apt-get install mono-1.0-runtime mono-2.0-runtime mono-apache-server mono-apache-server2 libapache2-mod-mono libmono-system-web1.0-cil
5. You must install a special version of log4net:
sudo apt-get remove liblog4net1.2-cil
sudo dpkg -i log4net_1.2.9-105_all.deb
6. Restart apache and verify everything is still working (it should):
sudo /etc/init.d/apache2 restart
7. Run the Simias server setup:
sudo /usr/bin/simias-server-setup
enter these for answers (most are default, take care of apache user and group):

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]: iFolder
—– 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://127.0.1.1/simias10]: https://yourserver.com/simias10
—– PRIVATE URL —–
Private URL of this Simias Server
Private URL? [https://yourserver.com/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]: N
—– 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]: Y
—– APACHE USER —–
Apache User
Apache User? [wwwrun]: www-data
—– APACHE GROUP —–
Apache Group
Apache Group? [www]: www-data
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
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/
sudo chown -R www-data:www-data /var/www/.config/
10. Restart apache and verify it is still restarting (it should :) ):
sudo /etc/init.d/apache2 restart
11. Run the setups for ifolder (answers are default):
sudo /usr/bin/ifolder-admin-setup
sudo /usr/bin/ifolder-web-setup
Put the following answers to apache:
Apache User? [wwwrun]: www-data
Apache Group? [www]: www-data
12. 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
13. Enable rewrite:
sudo a2enmod rewrite
14. Restart apache:
sudo /etc/init.d/apache2 restart
15. Go to https://yourserver.com/admin , create a user, and enjoy !

Here are some screenshots of the admin and web client:

ifolder-admin1

ifolder-admin2

ifolder-admin3

ifolder-web-client

The windows client

You can the install client to start creating ifolders of your own. You can download it on the official iFolder page. Once installed, the configuration steps are quite straight forward. Here are some screenshots:

ifolder-client1

ifolder-client2

ifolder-client3

From my initial use, everything is running sweet. One minor thing though: if you configure admin to not transfer big files (say more than 2 Gibis), the ifolder windows client will not stop from complaining that a policy prevents him from upload files. Also, it would be sweet if some folder could be easily removed from the sync process. However, this is still miles away from other setups. Everything works as it should. Plus, the web access is really a bonus.

The Ubuntu client

Thanks to the awesome work of Marcelo Boveto Shima, there is a ppa for installing ifolder client on Ubuntu. I tested it, and if there were some problems with the first version, I managed to get the latest one to work with my setup. Yeah ! Some screenshots:

iFolder Ubuntu client

So now, you can have a all in one sync solution that works… This rocks !

How to install iFolder on Ubuntu server « x2b4_1258428517770

Serial Port Infared Reciever

Posted in computer, internet, learn, mythbuntu by daniel on March 24, 2009 No Comments yet

I’ve been toying with a Mythbuntu setup lately and a need has come to setup a remote control. After looking around I’ve found this great step by step writeup on how to build one: http://lnx.manoweb.com/lirc/?partType=section&partName=introduction

My Biggest Civil 3D Template Secret!!

Posted in Autodesk, CAD Management, Civil 3D, computer, learn by daniel on February 27, 2009 No Comments yet

I can’t believe I’m gonna let this one out, and as of now I have never heard of anyone else using it so I’m claiming it!

I think a picture sums it up best, but if you want less layers in your template then just let the program make them when it needs to. template-object-layersSimply setup 4 or 5 layers (C-, G-, V-, P-) in your layer manager and then use thoes layers in the “Drawing Settings”. Add a “Suffix” modifer with “ROAD” or “ALIGN” or whatever standard you use and “*” to include the civil objects name where you need it.

All of your Layers in Styles should be set to “0” layer, and then take some time modifing the feature’s settings to get the automatic naming correct.

When you creat an alignment or other object and give it a name, that name is placed where the “*” is and a layer is created correctly.

template-object-layers-create_alignment

template-object-layers-layers_created

The layers are created as expected, and the template remains lite-weight.

Folders containing files are slow to populate winxp [Fixed]

validation

When you were browsing in a folder that contains files, such as AutoCAD Drawing files and others, the display is very slow to populate. This issue can occur if the Digital Signature option is enabled on a Windows® XP machine. This is expected behavior if you are using digital signatures. The display is slow to populate because the the status of the digital signature for each file is being verified so that the appropriate icon can be displayed.

If you don’t care about this (I don’t because 5 seconds and more for a folder to show its contents is ridiculous) then you can disable the verification process like this:

  1. On the Start menu (Windows), click Run.
  2. In the Run dialog box, enter C:\Windows\System32\AcSignOpt.exe.
  3. Click OK.
  4. In the Signature Validation Options dialog box, clear the “Validate digital signatures and display special icons” check box.
  5. Click OK.
  6. Verify that the population speeds for folders has improved.

You can thank me later or buy a Mac since Apple handles things much better.

wrap text around images in wordpress

Posted in internet, learn, wordpress by daniel on February 11, 2009 No Comments yet

Making your blog/website look professional is easy, as long as it’s in wordpress. Just add this to your stylesheet.css and your set.

img.alignright {float:right; margin:0 0 1em 1em}
img.alignleft {float:left; margin:0 1em 1em 0}
img.aligncenter {display: block; margin-left: auto; margin-right: auto}
a img.alignright {float:right; margin:0 0 1em 1em}
a img.alignleft {float:left; margin:0 1em 1em 0}
a img.aligncenter {display: block; margin-left: auto; margin-right: auto}

When you add an image to the post or page, chose the alignment desired and viola! It wrap when the alignment is centered though, which makes sense.

Here is the link to the full story.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce massa. Nunc a erat. Integer urna purus, molestie ullamcorper, rhoncus ac, aliquam a, justo. Sed aliquam diam. Donec ultrices, diam sit amet adipiscing semper, nunc elit ullamcorper arcu, sed mollis erat lectus vitae est. Pellentesque tempus nisl malesuada dolor. Integer magna nibh, varius adan_heather_machu_picchuc, molestie eu, tristique sed, est. Morbi pulvinar, ante id lobortis euismod, leo pede cursus metus, non eleifend tellus sapien at elit. Cras placerat, lectus eu tempor egestas, diam dolor consequat augue, ac dictum purus justo et tortor. Fusce porta pharetra est. Sed volutpat mi tristique purus. Sed rhoncus. Sed nulla felis, ornare in, laoreet eget, egestas eu, eros. In dui. Morbi tincidunt augue et purus. Mauris dignissim, pede non porttitor aliquam, sapien nisi imperdiet diam, vel facilisis sapien mauris non sapien. Sed dolor.

In hac habitasse platea dictumst. In dui diam, lacinia vitae, commodo quis, vulputate in, nisl. Ut nisi tellus, tempus vitae, lacinia et, tempus eu, nibh. Mauris blandit arcu sodales ante. Donec malesuada. Suspendisse commodo. Fusce sodales pellentesque augue. Sed id turpis. Pellentesque auctor mauris ut dolor. Nulla tempus. Nullam nec nulla sed enim hendrerit pharetra. Pellentesque magna ante, eleifend ut, faucibus vitae, rutrum sed, urna. Nullam feugiat tortor non tortor. Cras nec purus ac enim eleifend iaculis. Quisque egestas nisi eget urna. Vestibulum suscipit. Sed mollis, risus in cursus tempor, magna ligula egestas nibh, et bibendum elit nisl non risus.

What, did you think I was going to type all that?

And yes, that’s Machu Picchu.

Next Page »