Archives For jimingkui

This tutorial shows how to install older & newer versions of python in Ubuntu. Felix Krull has created a PPA that contains multiple python versions:

  • python 2.4.6 for Ubuntu 10.04, Ubuntu 12.04, Ubuntu 12.10, Ubuntu 13.04, Ubuntu 11.10, Ubuntu 11.04
  • python 2.5.6 for Ubuntu 10.04, Ubuntu 12.04, Ubuntu 12.10, Ubuntu 13.04, Ubuntu 11.10, Ubuntu 11.04
  • python 2.6.8 for Ubuntu 13.04, Ubuntu 12.04, Ubuntu 12.10
  • python 2.7 for Ubuntu 10.04, Ubuntu 10.10
  • python 3.1 for Ubuntu 13.04, Ubuntu 12.10, Ubuntu 12.04, Ubuntu 11.10
  • python 3.2 for Ubuntu 13.04, Ubuntu 10.04
  • python 3.3 for Ubuntu 12.04, Ubuntu 11.10, Ubuntu 10.04

To add the ppa, run below command in terminal:

sudo add-apt-repository ppa:fkrull/deadsnakes

Then update package lists:

sudo apt-get update

To install python 2.4 in Ubuntu 12.04, etc. run below command:

sudo apt-get install python2.4

To install python 2.5 in Ubuntu 12.04, etc. run:

sudo apt-get install python2.5

To install python 2.6 in Ubuntu 12.10, Ubuntu 12.04, run:

sudo apt-get install python2.6

To install python 2.7 in Ubuntu 10.04, Ubuntu 10.10

sudo apt-get install python2.7

To install Python 3.2 in Ubuntu 12.04:

sudo apt-get install python3.2

To install Python 3.3 in Ubuntu 12.04:

sudo apt-get install python3.3

TV capture cards.TVPVRD is a highly flexible and configurable server daemon that acts as an advanced digital TV recorder using one or several installed TV capture cards.

The server manages scheduled recordings and provides an efficient command language interface on a dedicated TCP/IP port. As an alternative interface the daemon also comes with a basic WEB-interface through the daemons built in micro-web-server. To keep the WEB-interface simple only the most common commands are available through this interface.

The goal with this project is to provide an advanced recording and transcoding (using ffmpeg) server without the need to configure complex databases or GUI. The daemon sits unobtrusively in the background.

The server is self-contained and uses a plain text database (in XML format) to store and manage recordings. In addition, the server has built-in intelligence to make it as easy as possible to manage and use. Examples are highly flexible commands to specify future recordings and automatic load assessment on the server to avoid starting too many parallel transcoding jobs. The server is completely self-contained and has a small footprint.

Install TVPVRD in Ubuntu:

The GetDeb repository provides the latest packages for Ubuntu 13.04 Raring, Ubuntu 12.04 Precise, and a little old versions for Ubuntu 12.10, Ubuntu 11.10 and their derivatives, such as Linux Mint and Elementary OS.

To Add GetDeb repository, just download and double-click to install the package below (For Linux Mint users, read this post).

getdeb package

Once done, install TVPVRD by running below commands in terminal (Ctrl+Alt+T):

sudo apt-get update; sudo apt-get install tvpvrd

Use TVPVRD:

There are two main ways to use tvpvrd:

  1. via command line shell, run man tvpsh to get details
  2. via the built in Webserver (http://localhost:9301/)

You need to enable the config file by running below command:

cd /etc/tvpvrd; sudo mv tvpvrd.conf.full.template tvpvrd.conf

Then edit the file by:

sudo gedit /etc/tvpvrd/tvpvrd.conf

There you can change the port, enable web interface by “enable_webinterface=yes” and many other settings.

For more, see tvpvrd manual.

Want to customize the notification bubbles? Well, here I’ll tell you how to move its location, change text color, enable close bubble on click in Ubuntu 13.04 Raring, Ubuntu 13.10 Saucy.

The default Notification Bubbles – NotifyOSD – is not customizable in Ubuntu. Leolik provides a patched (configurable) NotifyOSD in his PPA which allows to change:

  • colors
  • size of the bubbles, font size, icon size, corner radius
  • opacity
  • timeout
  • position on the screen (top-right, middle-right, bottom-right, bottom-left, middle-left, top-left)
  • disable fade out
  • click anywhere on the notification to close it

To install this customizable notification bubbles in Ubuntu 13.04, Ubuntu 12.10, Ubuntu 12.04, Ubuntu 11.10, Ubuntu 11.04. Press Ctrl+Alt+T to open terminal, run below commands one by one:

sudo add-apt-repository ppa:leolik/leolik 

sudo apt-get update

sudo apt-get install notify-osd

Once installed, run command to restart the service:

pkill notify-osd

Now install a graphical tool to configure NotifyOSD. Run below commands one by one in terminal:

sudo add-apt-repository ppa:nilarimogard/webupd8

sudo apt-get update

sudo apt-get install notifyosdconfig

After that, you can use this tool to customize your notifications:

To change the location, run below command in terminal:

gsettings set com.canonical.notify-osd gravity NUMBER

Where the NUMBER can be:

1 – top-right corner
2 – middle-right
3 – bottom-right corner
4 – bottom-left corner
5 – middle-left
6 – top-left corner

After a year since the last major release, Calibre 1.0 was released with lots of new features, such as a grid view of book covers, a new, faster database backend, the ability to convert Microsoft Word files, tools to make changes to ebooks without needing to do a full conversion, full support for font embedding and subsetting, and many more.

  • A new ‘cover grid’ view of the books in your calibre library
    Excellent for judging your books by their covers :) To use click the button with the icon of a grid in the bottom right corner of the main window. It can be configured via Preferences->Look & Feel->Cover Grid
  • A new, faster database backend
    The database backend in calibre has been re-written from scratch. The new code is smaller, more robust and much faster than the old code. The exact speedup will depend on the number of books and number and type of custom columns in your library. Users have reported calibre startup times decreasing by a factor of 2-3 times.
  • RTF Input: Add option to ignore WMF images iinstead of replacing them with a placeholder.
    Closes tickets: 1213599
  • Content server: Make virtual libraries available as searches from the start page. They work just like saved searches, clicking on a virtual library will show you all the books in that virtual library.
  • Read the official announcement

    Install Calibre 1.0 in Ubuntu

    It’s very easy to install or upgrade calibre 1.0 in Ubuntu and its derivatives, such as Linux Mint and Elementary OS.

    Press Ctrl+Alt+T on your keyboard to open terminal for running commands. Copy the code below by Ctrl+C, and paste in terminal via Ctrl+Shift+V. Finally hit enter:

    sudo python -c "import sys; py3 = sys.version_info[0] > 2; u = __import__('urllib.request' if py3 else 'urllib', fromlist=1); exec(u.urlopen('http://status.calibre-ebook.com/linux_installer').read()); main()"

    Press Enter to use the default installation directory, and it’ll automatically download calibre and install it on your system as well as the dependencies.

    If you’ve using Ubuntu for a period of time, you may have old kernels that are no longer useful on your system. It may be annoying to have these kernel entries in Grub boot menu. So here’s how to remove the old kernels in Ubuntu 13.10 Saucy, Ubuntu 13.04 Raring.

    The efficient way to do the job is using the Ubuntu Tweak, which lists all un-used kernels and gives an option at right-bottom corner to clean them up.

    To install Ubuntu Tweak, download the DEB package in the right sidebar of this page. Then double-click to install via Ubuntu Software Center.

    At the moment, Ubuntu Tweak is not ready for Ubuntu 13.10 Saucy. So below is the command line way:

    1.) Press Ctrl+Alt+T to open terminal for running commands. Check current running kernel version.

    uname -r

    Don’t remove this kernel!

    2.) Copy and paste below command and hit run to check list of installed Kernels on your system:

    dpkg --list | grep linux-image

    3.) Find out the kernels you want to remove, and run below command to accomplish it: Change x.x.x.x to the kernel version

    sudo apt-get purge linux-image-x.x.x.x-generic

    This quick tip is going to show you how to install the Classic Gnome Desktop Environment in Ubuntu 13.10 Saucy Salamander.

    It’s quite easy to do it, just install the Gnome fallback session package and then you get the Gnome Classic in Login menu at next time.

    To install the package, press Ctrl+Alt+T on your keyboard to open terminal. When it opens, run below commands in terminal:

    sudo apt-get install gnome-session-fallback

    Or you can search for and install gnome-session-fallback in Ubuntu Software Center.

    After that, log out and select the Classic session to log back.

    As you may know, Brackets is an open-source editor for web design and development built on top of web technologies such as HTML, CSS and JavaScript. The project was created and is maintained by Adobe, and is released under an MIT License.

    What makes Brackets different from other web code editors?

  • Tools shouldn’t get in your way. Instead of cluttering up your coding environment with lots of panels and icons, the Quick Edit UI in Brackets puts context-specific code and tools inline.
  • Brackets is in sync with your browser. With Live Development, Brackets works directly with your browser to push code edits instantly and jump back and forth between your real source code and the browser view.
  • Do it yourself. Because Brackets is open source, and built with HTML, CSS and JavaScript, you can help build the best code editor for the web.
  • Try out Brackets:

    The official download page provides the DEB packages for Debian / Ubuntu and their derivatives, such as Linux Mint, Elementary OS, and so forth.

    Just download and double click the DEB to bring up Ubuntu Software Center and install it. Or run below commands instead once downloaded:

    sudo dpkg -i ~/Downloads/brackets-sprint-*.deb; sudo apt-get -f install

    Once installed, you can find it in Unity Dash.

    Pipelight is a special browser plugin allows to run your favorite Silverlight application directly inside your Linux browser. The project combines the effort by Erich E. Hoover with a new browser plugin that embeds Silverlight directly in any Linux browser supporting the Netscape Plugin API.

    Pipelight consists out of two parts: A Linux library which is loaded into the browser and a Windows program started in Wine. The Windows program, called pluginloader.exe, simply simulates a browser and loads the Silverlight DLLs. When you open a page with a Silverlight application the library will send all commands from the browser through a pipe to the Windows process and act like a bridge between your browser and Silverlight. The used pipes do not have any big impact on the speed of the rendered video since all the video and audio data is not send through the pipe. Only the initialization parameters and (sometimes) the network traffic is send through them. As a user you will not notice anything from that “magic” and you can simply use Silverlight the same way as on Windows, like you can see on the following screenshot:

    Install Pipelight on Ubuntu

    Warning: Before you continue the installation you should note that:

  • It is strongly recommended to close your browser before installing! Some browsers try immediately to load the plugin which might fail or crash the browser when the installation is not complete!
  • Silverlight might contain (like all other browser plugins) security issues – You may want to enable click-to-play for this plugin to prevent an undesired start of Silverlight.
  • Pipelight needs to start Wine to execute the pluginloader. This may slow down the start of your browser.
  • The Pipelight PPA is available for Ubuntu 13.10, Ubuntu 13.04, Ubuntu 12.10, Ubuntu 12.04 and their derivatives. You can easily install it by running below commands in terminal (Ctrl+Alt+T) one by one:

    sudo add-apt-repository ppa:pipelight/stable
    sudo apt-get update
    sudo apt-get install pipelight

    You may need to accept a license agreement for a set of fonts during the installation. After it’s done just start your browser, type about:plugins in the addressbar and hit enter – if the installation went well you should now see Silverlight in your plugin list and everything is ready to run! Pipelight will install Silverlight on the first start of your browser, this may freeze the interface for several minutes (and you may just see a blank page without any progress). There might appear some dialog asking if Mono or Gecko should be installed during the Silverlight installation – you can safely choose no, as this is not necessary to get Pipelight running. After this step, the overall performance of your browser shouldn’t be affected any more.

    More at Pipelight Homepage

    As you may know, RabbitVCS is a graphical front-end for version control systems available on Linux. It integrates into file managers to provide file context menu access to version control repositories.

    The project was originally called NautilusSvn, but due to the desire to support file managers in addition to Nautilus and more version control systems, it was renamed to RabbitVCS (Version Control System). The interface was inspired by TortoiseSVN, recognisable by the file manager shell integration, which is available on Nautilus and Thunar in the case of RabbitVCS. It can also integrate into Gedit or run independently on the command line.

    Install RabbitVCS via PPA:

    The RabbitVCS PPA supports Ubuntu 13.04, Ubuntu 12.04, Ubuntu 12.10, Ubuntu 11.10, Ubuntu 10.04 and their derivatives, such as Linux Mint and Elementary OS.

    Press Ctrl+Alt+T on your keyboard to open terminal. When it opens run commands to add the PPA:

    sudo add-apt-repository ppa:rabbitvcs/ppa

    Then update system package lists via:

    sudo apt-get update

    Install the packages:

    sudo apt-get install rabbitvcs-nautilus3 rabbitvcs-thunar rabbitvcs-gedit rabbitvcs-cli

    That’s it. Enjoy!

    The latest Linux Kernel 3.10.9 has been released. All users of the 3.10 kernel series are urged to upgrade as soon as possible. Here’s how to install / upgrade in Ubuntu 13.04 Raring, 12.04 Precise and 12.10 Quantal.

    Linux kernel 3.10.8 has a problem on networking, so the Kernel 3.10.9 was announced few hours later with a fix. See the official announcement.

    Install / Upgrade Kernel 3.10.9

    The mainline kernel PPA has updated Debs packages for Debian / Ubuntu based users. Press Ctrl+Alt+T on your keyboard to open terminal. Then download and install the Debs.

    for 32-bit system:

    wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.10.9-saucy/linux-headers-3.10.9-031009-generic_3.10.9-031009.201308201935_i386.deb
    
    wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.10.9-saucy/linux-headers-3.10.9-031009_3.10.9-031009.201308201935_all.deb
    
    wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.10.9-saucy/linux-image-3.10.9-031009-generic_3.10.9-031009.201308201935_i386.deb

    for 64-bit system:

    wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.10.9-saucy/linux-headers-3.10.9-031009-generic_3.10.9-031009.201308201935_amd64.deb
    
    wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.10.9-saucy/linux-headers-3.10.9-031009_3.10.9-031009.201308201935_all.deb
    
    wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.10.9-saucy/linux-image-3.10.9-031009-generic_3.10.9-031009.201308201935_amd64.deb

    After that, both 32-bit and 64-bit run below command to install the kernel

    sudo dpkg -i linux-headers-3.10.9-*.deb linux-image-3.10.9*.deb

    Finally apply changes to grub boot loader:

    sudo update-grub

    You can remove the downloaded packages after the kernel is properly installed.