Archives For November 30, 1999

Want GCC 4.8 with c++11 complete feature? Well here’s how to install it in Ubuntu 12.04, Ubuntu 13.04, Ubuntu 12.10 via the PPA.

The PPA provides both GCC 4.7.3 and GCC 4.8.1 for Ubuntu users. In this tutorial, you can follow below steps to upgrade gcc version in your system.

1.) Press Ctrl+Alt+T on your keyboard to open terminal. When it opens, run below commands to add the ppa:

sudo add-apt-repository ppa:ubuntu-toolchain-r/test

2.) Then install gcc 4.8 and g++ 4.8:

sudo apt-get update; sudo apt-get install gcc-4.8 g++-4.8

3.) Once installed, run following commands one by one to use gcc 4.8 instead of previous version.

sudo update-alternatives --remove-all gcc 

sudo update-alternatives --remove-all g++

sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 20

sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 20

sudo update-alternatives --config gcc

sudo update-alternatives --config g++

Now you have the gcc 4.8 with c++11 complete feature in your system. Check out by:

gcc --version

gcc (Ubuntu 4.8.1-2ubuntu1~13.04) 4.8.1
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Classic Menu Indicator 0.08 Has Been Released

Last updated: August 26, 2013

After about one year and a half, Classic Menu Indicator finally released a new version 0.08. It brings a few improvements and adds support for more languages.

As you may know, ClassicMenu Indicator is a indicator applet for Unity, that provides the main menu of Gnome2/Gnome Classic.

classic menu indicator 0.08

New features in ClassicMenu indicator 0.08:

  • ClassicMenu Indicator has its own icon now
  • added support for some configuration options
  • improved handling of missing/unusable icons
  • extended “ClassicMenu Indicator” submenu
  • added Estonian, French, Croatian, Japanese, Malay, Brazilian, Portuguese, Russian, Chinese (Simplified) language support
  • changed the way commands are run

To install Classic Menu Indicator 0.08, just download and double-click to install the DEB:

ClassicMenu_indicator_0.08_all.deb

The source code is also available for downloading from here.

The Cloud Based Nuvola Music Player has reached 2.1.0. It brings new features for users as well as for service maintainers and many bug fixes.

As you may know, Nuvola Player runs a web interface of cloud music services – Google Play Music, Amazon Cloud Player, 8tracks, Grooveshark, Hype Machine, Pandora, Rido – in its own window and provides integration with a Linux desktop.

nuvola player ubuntu unity

The new release Nuvola 2.1.0 brings following changes:

  • Added information about format support.
  • New service Deezer.
  • Extensions: Almost all extensions are enabled by default.
  • Notifications extension: Added support for actions and resident notifications.
  • Last.fm extension: Added switches to disable scrobbling for particular services.
  • Added a few keyboard shortcuts: Go back Left and go forward Right.
  • Service selector is opened in a separate window and uses native GTK+ widgets instead of web view. GTK+ zoom level is respected and non-free screenshots are not loaded.
  • User interface: Added option to prefer dark GTK+ theme.
  • Context menu of a web view is populated with custom actions.
  • Removed UI modes “toolbar only” and “both toolbar and menubar”. Main menu reorganized.
  • MPRIS extension: Renamed to Remote Player Interface.
  • Install / Upgrade Nuvola Player in Ubuntu

    For Ubuntu and its derivatives, press Ctrl+Alt+T to open terminal. When it opens, run below commands one by one:

    sudo add-apt-repository ppa:nuvola-player-builders/stable
    
    sudo apt-get update
    
    sudo apt-get install nuvolaplayer

    Nvidia DriverThe latest Long Lived Nvidia driver has reached 319.49, which added support for new GPUs and fix a few bugs. Here’s how to install or upgrade it in Ubuntu 13.04, Ubuntu 12.10, Ubuntu 12.04.

    What’s new in Nvidia 319.49:

  • Added support for the following GPUs: GeForce GT 740A, GeForce GT 745A, GeForce GT 755M, GeForce GT 625, GeForce GTX 645, GRID K340, GRID K350, NVS 315, Quadro K500M
  • Fixed a bug that caused DisplayPort monitors connected to Quadro FX 3800, 4800, or 5800 to remain off after DPMS.
  • Added the NVIDIA OpenGL-based Inband Frame Readback (NvIFROpenGL) library to the Linux driver package. This library provides a high performance, low latency interface to capture and optionally encode an individual OpenGL framebuffer. NvIFROpenGL captures pixels rendered by OpenGL only and is ideally suited to application capture and remoting.
  • Fixed a bug that caused applications using CUDA-GL interop to crash when run on X servers with Xinerama enabled.
  • Fixed a bug that could prevent some double-bit ECC errors from being properly reported.
  • Fixed a bug which could cause a blank screen when changing house sync settings on Quadro Kepler GPUs with Quadro Sync boards.
  • Fixed a bug that prevented nested loops with identical loop conditions in GLSL shaders from terminating correctly. This could cause hangs in applications such as Exa PowerVIZ.
  • Fixed a bug that resulted in corrupt texels when a previously empty texture image was specified with glXBindTexImageEXT. In GNOME 3, this caused gnome-screenshot to produce garbled window screenshots.
  • Fixed a bug that caused the X server to crash when querying the current mode of disabled displays.
  • Download & Install Nvidia Driver:

    NOTE 1: At the moment when you’re reading this tutorial, you may check out the latest version of Nvidia driver for Linux at this page.

    NOTE 2: Below installation guide works for all Nvidia Linux Drivers (.run file) downloaded from the Official Website.

    1.) Download the driver:

    Download Nvidia 319.49 for Linux 32-bit

    Download Nvidia 319.49 for Linux 64-bit

    2.) Open file browser and navigate to the downloaded package. Right-click on it and go to its Properties window. In Permissions tab, check the box where is says “allow executing file as program”

    all execute as program

    3.) Now, you need to switch to command console by pressing Ctrl+Alt+F1. Log in with your username and password. When login, stop the graphic session by running below command.

    sudo stop lightdm

    4.) Finally, start the installer and follow the on screen prompts. Change the filename to yours if you’re going to install another version.

    sudo sh ~/Downloads/NVIDIA-Linux-*-319.49.run

    When done, restart your computer by sudo reboot command.

    If for some reason the new drivers do not work properly, re-do step 3.) and followed by below command to unintall the Nvidia Driver:

    sudo ~/Downloads/NVIDIA-Linux-*-319.49.run --uninstall

    Enjoy!

    R Statistical PackageIf you have problem installing R statistical package via the official document. Here’s easy guide with pictures shows you how to install R package in Ubuntu 13.04, Ubuntu 12.04, Ubuntu 12.10, Ubuntu 10.04.

    R Package is available in Ubuntu Software Center by default, but it’s old. This tutorial will install the latest verson – so far it is 3.0.1 – in Ubuntu via the via official repository.

    Add R Statistical Package Repository:

    Search for and open Software & Updates from unity dash home.

    software&updates

    Navigate to Other Software tab, click Add and paste below line in pop-up window.

    For Ubuntu 12.04: deb http://cran.stat.ucla.edu/bin/linux/ubuntu precise/

    For Ubuntu 13.04: deb http://cran.stat.ucla.edu/bin/linux/ubuntu raring/

    For Ubuntu 12.10: deb http://cran.stat.ucla.edu/bin/linux/ubuntu quantal/

    For Ubuntu 10.04: deb http://cran.stat.ucla.edu/bin/linux/ubuntu lucid/

    add r package repository

    You can change “cran.stat.ucla.edu” to other mirrors.

    Install R Statistical Package:

    After added the repository, press Ctrl+Alt+T on your keyboard to open terminal. When it opens, run below command to get the key:

    sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9

    add r package keyring

    Finally, you can use Synaptic Package Manager (install it from Ubuntu Software Center) to install R Package.

    install r package ubuntu

    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.

    tvpvrd ubuntu

    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.

    change location of notification bubble

    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:

    configure notification

    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

    Calibre 1.0 for UbuntuAfter 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.

    install upgrade calibre ubuntu

    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.

    brackets in ubuntu

    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.

    brackets in ubuntu unity

    Microsoft Silverlight in UbuntuPipelight 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:

    silverlight chrome ubuntu

    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