Tag Archives: Ubuntu

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

OpenGL学习-环境配置(Ubuntu+Eclipse)

前几天买了本《OpenGL超级宝典(第5版)》打算认真地学习点OpenGL的东西了,不过,首先遇上的麻烦事就是环境配置,在我的Thinkpad 510(Window8+VS2012)下我是怎么也没能配置好,按照书的上说明一步步来,好容易编译成功,但是只要有调用glxxx这样东西的地方立马报错,哎,之前没做过C++的程序,看到这种错误也不知如何解决,网上找了找,有说是因为显卡的问题,不支持OpenGL 3,实在找不到解决办法,就想到到其他系统中试了,我虚拟机里有Mac OS X 和 Ubuntu,不过我一直不喜欢Mac OS X, 只是工作所需才安装的,所以还是到Ubuntu下进行配置了。折腾了N久之后,终于算是配置成功了,大致步骤如下:
1. 下载安装Eclipse及C++的开发扩展CDT, 开始我是从 Ubuntu Soft Center 里直接下载的,不过似乎之后在安装C++扩展时打不开安装扩展的窗口,不知何故,后来直接去官网下了一个把这个给覆盖了就正常了。
2. 在Ubuntu Soft Center下安装如下几个包:libglu1-mesa-dev, freeglut3-dev, libglew1.6-dev.
3. 在Eclipse下打开书中的GLTools项目并编译,我是用了刚刚系统装的glew,所以就把这个项目里的与这个相关的文件给删除了。具体设置如图:

4. 在Eclipse下打开书中的Triangle项目并编译,具体设置如图:

终于,这个丑陋的三角形出现在我的面前了,啊哈哈。。。