Here are the steps to create a rar file in linux.
Install a rar package by the following command
$ sudo apt-get install rar
After that just typed the command to create a rar archive of a file or directory
$ sudo rar a filename.rar input
filename.rar is the output file.
input is nothing but a directory.
For extracting a RAR Files in Ubuntu,I have got a solution.
Install the package unrar
$ sudo apt-get install unrar
then run the below command to extract the files.
$ unrar x filename.rar
To list what are all the files inside the rar file.
$ unrar l filename.rar
For installing a VLC Media player in Ubuntu.
Try this command to install from a terminal.
$ sudo apt-get update
$ sudo apt-get install vlc vlc-plugin-pulse mozilla-plugin-vlc
Keep Sharing and Smile.