This is a guide on how to grab files inside a rar archive without actually extracting them (perfect for video streaming)
Disclaimer: I'm not responsible for your system, everything in here is done by you and you're responsible for the things that might happen to your system.
Comments on how to make this guide better is very welcome, since I'm not all that good on user permits and these commands might compromise your system security (although I'm almost 100% it shouldn't).
Get the required packages (note that fuse-utils probably already is installed)
Get the source code for our main attraction rarfs, which is a virtual filesystem based on fuseCode:sudo apt-get install subversion automake1.9 fuse-utils libfuse-dev
Lets build that code!Code:svn co https://rarfs.svn.sourceforge.net/svnroot/rarfs/trunk/rarfs/ rarfs
Since fusermount comes pre-installed as root-only, we need to change group owner and execution permits.Code:cd rarfs ./configure make sudo make install
First off, add your user to the "fuse" group.
NOTE: The user need to relog to update it.
Next up, make the group "fuse" owner on these fukes so we can access them.Code:sudo adduser <user> fuse
Make fusermount command available to usersCode:sudo chgrp fuse /dev/fuse sudo chgrp fuse /bin/fusermount
Now tryCode:sudo chmod u+s /bin/fusermount
If no errors appear, you're all set!Code:mount.fuse rarfs#/location/of/.rar/file /my/mount/dir
You can unmount your rars by typing
Here's a basic script that I'm using to just right click those .rar files and stream them directly.Code:fusermount -u /my/mount/dir
Good luck!Code:#!/bin/sh DIR=/home/`whoami`/rar.mount/ mount.fuse rarfs#$1 $DIR gmplayer -fs -zoom $DIR`ls $DIR` fusermount -u $DIR
Edit 1: Fixed typos and such.




Bookmarks