Ubuntu 8.10 install howto
From MinorFs Wiki
This howto has been validated on a default desktop installation of Ubuntu 8.10.
T folowing additional ubuntu packages should be installed:
- libfuse-dev
- attr
- libattr1-dev
- libdigest-sha1-perl
- libfuse-perl
- libxml-dom-perl
- libdbi-perl
- libdbd-sqlite3-perl
You can do this with the folowing command:
sudo apt-get install libfuse-dev attr libattr1-dev libdigest-sha1-perl libfuse-perl libxml-dom-perl libdbi-perl libdbd-sqlite3-perl
The folowing dependencies currently dont have a deb package for install and thus must be installed using cpan instead:
- Unix::Mknod
- Proc::DaemonLite
You should start up the cpan tool with:
sudo cpan
Within the cpan tool, give the folowing commands:
install Unix::Mknod install Proc::DaemonLite
Now we must still install File::ExtAttr, but we can't use the cpan tool for that. The cpan tool runs all the tests, and a prety much all the tests seem to be failing. Aparently even with failing tests minorfs seems to run quite well, so a (rather nasty) solution is to manualy download File::ExtAttr from cpan.org.
Go to http://search.cpan.org/CPAN/authors/id/R/RI/RICHDAWE/
You should download the newest version of File::ExtAttr here, unpack it and run the following commands from the unpacked directory:
perl Makefile.PL make sudo make install
Now you should be ready to use the minorfs install script. Go to the minorfs source tree and run the following command:
sudo install
After install, start minorfs with the folowing command:
sudo /etc/init.d/minorfs start
To check if minorview is working correctly, type:
ls -la /mnt/minorfs/priv
If all went well, you should after a short delay see two valid symbolic links. Copy the link location that /mnt/minorfs/priv/home points to, now you should try to create a dir and a file. For example if the link would point to /mnt/minorfs/cap/95a80e956f919a700940828bbc936db4f14efed8 , you could give the folowing commands to test the workings of minorcapfs.
mkdir /mnt/minorfs/cap/95a80e956f919a700940828bbc936db4f14efed8/foo echo blabla > /mnt/minorfs/cap/95a80e956f919a700940828bbc936db4f14efed8/foo/bar attr -g cap /mnt/minorfs/cap/95a80e956f919a700940828bbc936db4f14efed8/foo attr -g /mnt/minorfs/cap/95a80e956f919a700940828bbc936db4f14efed8/foo/bar
You may also want to test minorbash
cd minorbash ls touch this
If all goes well you should have read but no write permissions in your home dir when running in minorbash. Remember, minorbash runs with a high integrity not a high confidentiality profile, and minorfs is there to allow your programs to help guard confidentiality
