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 fuse
sudo apt-get install subversion automake1.9 fuse-utils libfuse-dev
Lets build that 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.
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.
sudo adduser <user> fuse
Make fusermount command available to users
sudo chgrp fuse /dev/fuse
sudo chgrp fuse /bin/fusermount
sudo chmod u+s /bin/fusermount
If no errors appear, you're all set!
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.
fusermount -u /my/mount/dir
mount.fuse rarfs#$1 $DIR
gmplayer -fs -zoom $DIR`ls $DIR`
fusermount -u $DIR
Edit 1: Fixed typos and such.