Sunday, April 21, 2013

Play encrypted DVD

Playing encrypted DVD, sometimes you can recieved a error message like
 libdvdread: Encrypted DVD support unavailable.

You want to play encrypted DVDs with Linux.

As root
Edit your /etc/apt/source.list, adding this line

 deb wheezy main non-free

The first package to install is deb-multimedia-keyring.

# apt-get install deb-multimedia-keyring
Install the library  libdvdcss2
# apt-get install libdvdcss2

After this steps, your dvd's player will be able to play DVD



Mount a remote file system using ssh

Access a remote file system  
You want to transfer files from/to a server which you have a ssh access
As root:
install fuse
#apt-get install fuse-utils sshfs ssh
and load its kernel module
#modprobe fuse
add your regular user to fuse's group
#adduser [your-user] fuse
(reboot the machine)
Now using your regular user:
Mount your remote directory:
$ sshfs [user@]host:[dir] mountpoint [options]
$sshfs remote-user@remote.server:/remote/directory /home/user/remote/
(If you only put  ':' is going to be your default directory)
Then, you can manipulate your remote folder as a regular local folder.
Unmount your remote directory
$fusermount -u mountpoint
$fusermount -u  /home/user/remote/