RAR creation script for Ubuntu / Nautilus
Posted: 2011-07-29 Filed under: Linux, Scripts, Ubuntu Leave a comment »
One thing I really miss from my time in the Windows world is the robust integration between Windows Explorer and my favorite archive program, WinRAR. Here’s a script I wrote for Ubuntu / Nautilus to quickly create a RAR archive from a selection of files/folders.
By default, this script will create a new archive with a 10% recovery record. Additionally, the archive creation is set for “synchronize archive contents.” Feel free to adjust these settings to suit your needs.
Installation
- Install RAR on your computer, activate the software with a paid license if necessary
- Download the file [make-rar.sh, 2KB]
- Copy it to ~/.gnome2/nautilus-scripts
- Grant the file execute permissions
Usage
- Right-click on a file or folder to compress
- Click Scripts > make-rar.sh
- Enter the RAR filename (no spaces or file extension, .RAR will be added automatically)
- To encrypt the archive, enter a password (leave the password dialog blank for an unencrypted archive)
- A dialog will show with the results of the archive process — ensure that the archive is created without error, and that the verification pass was successful (All OK/Done message at the bottom)