SyntaxHighlighter

2008/08/10

How to Use EncFS on CentOS-5.2

Ubuntu: Powerful Hacks and CustomizationsThis is a memo of how to use EncFS on CentOS-5.2.


I moved from Fedora8 on VMWare (on WindowsXP on my Desktop PC) to CentOS-5.2 on my notebook PC as a native environment because I had to go to US in this August and make my PC environment portable.

I have thought that my secret information have to be stored in secure disk areas. With Fedora8, I could use EncFS as default, CentOS-5.2 doesn't have it however.

So I decided to port EncFS tools to CentOS-5.2 from Fedora8.

1. Needed Packages
    Packages of CentOS-5.2 are needed:
      * doxygen, tetex-latex, valgrind (for rlog) * bzip2-devel python-devel libicu-devel (for boost)
    Source packages of Fedora8 are needed:
      * rlog
        http://ftp.riken.jp/Linux/fedora/releases/8/Everything/source/SRPMS/ rlog-1.3.7-3.fc6.src.rpm
      * fuse
        http://ftp.riken.jp/Linux/fedora/updates/8/SRPMS/fuse-2.7.3-3.fc8.sr c.rpm
      * boost
        http://ftp.riken.jp/Linux/fedora/updates/8/SRPMS/boost-1.34.1-7.fc8. src.rpm
      * fuse-encfs
        http://ftp.riken.jp/Linux/fedora/updates/8/SRPMS/fuse-encfs-1.4.2-2. fc8.src.rpm


2. Install CentOS-5.2 Packages

    yum -y install <packages>


3. Build and Install Fedora8 Packages

    rpmbuild --rebuild <srpm package>


    cd /usr/src/redhat/RPMS/i386/ rpm -ivh <target package name>.*.rpm



4. Notes

Don't use the boost package of CentOS-5.2 and fuse-encfs of Fedora8. It resulted in a runtime error:
    $ encfs /root/ef /root/ef.mnt
    ...
    terminate called after throwing an instance of 'boost::filesystem::filesystem_error'
    what(): boost::filesystem::path: invalid name ".encfs6.xml" in path: "/root/ef/.encfs6.xml"

0 件のコメント:

コメントを投稿