Monthly Archives: July 2015

Ubuntu 15.04 上安装最新版本 mongodb

1

Import the public key used by the package management system.

The Ubuntu package management tools (i.e. dpkg and apt) ensure package consistency and authenticity by requiring that distributors sign packages with GPG keys. Issue the following command to import the MongoDB public GPG Key:

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
2

Create a list file for MongoDB.

Create the /etc/apt/sources.list.d/mongodb-org-3.0.list list file using the following command:

echo "deb http://repo.mongodb.org/apt/debian wheezy/mongodb-org/3.0 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list
3

Reload local package database.

Issue the following command to reload the local package database:

sudo apt-get update
4

Install the MongoDB packages.

You can install either the latest stable version of MongoDB or a specific version of MongoDB.

Install the latest stable version of MongoDB.

Issue the following command:

sudo apt-get install -y mongodb-org

Ubuntu 上安装最新版本的 ffmpeg

Install FFmpeg 2.7 Multimedia Framework and convert multimedia files on Linux Ubuntu Systems. Install FFmpeg 2.7 on Ubuntu 15.04, Ubuntu 14.04 and Derivatives. Below are the Terminal commands to upgrade to FFmpeg 2.7 on Linux.

FFmpeg 2.7 is a popular cross-platform solution to record, convert and stream audio and video. It includes libavcodec – the leading audio/video codec library.

FFmpeg 2.7 on Ubuntu 15.04

Run the following commands in Terminal to install FFmpeg 2.7 on Ubuntu 15.04, Ubuntu 14.04, Linux Mint 17.2, Linux Mint 17.1, Linux Mint 17 and Derivatives:

$ sudo apt-add-repository ppa:samrog131/ppa
$ sudo apt-get update
$ sudo apt-get install ffmpeg-real
$ sudo ln -sf /opt/ffmpeg/bin/ffmpeg /usr/bin/ffmpeg

If you wish to uninstall and remove the FFmpeg 2.7 from Linux Ubuntu Systems, run the following command in Terminal:

$ sudo apt-get remove ffmpeg
$ sudo rm /opt/ffmpeg/bin/ffmpeg /usr/bin/ffmpeg

Install FFmpeg on Debian 8.0 Jessie

Run the following commands in Terminal to install FFmpeg 2.7 on Debian 8.0 Jessie:

$ sudo sh -c 'echo "deb http://www.deb-multimedia.org jessie main" >> /etc/apt/sources.list'
$ sudo apt-get update
$ sudo apt-get install deb-multimedia-keyring
$ sudo apt-get install ffmpeg

If you wish to uninstall and remove the FFmpeg 2.7 from Debian 8.0 Jessie, run the following command:

$ sudo apt-get remove ffmpeg
$ sudo rm /opt/ffmpeg/bin/ffmpeg /usr/bin/ffmpeg

Install FFmpeg on Fedora 22

Run the following command to install the latest FFmpeg version (FFmpeg 2.7 “Nash”) on Fedora 22:


$ sudo yum install http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-22.noarch.rpm
$ sudo yum update
$ sudo yum install ffmpeg

Install FFmpeg on Fedora 21

Run the following command to install the latest FFmpeg version (FFmpeg 2.7 “Nash”) on Fedora 21:

$ sudo yum install http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-21.noarch.rpm
$ sudo yum update
$ sudo yum install ffmpeg

If you wish to uninstall and remove the FFmpeg 2.7 from Fedora Systems, run the following command:

$ sudo yum remove ffmpeg