Archives For jimingkui

Linux Kernel 4.1

Linux Kernel 4.1, a new kernel series, was released over the night by Linus Torvalds. He wrote on the Linux kernel mailing list:

So after a *very* quiet week after the 4.1-rc8 release, the final 4.1 release is now out.

I’m not sure if it was quiet because there really were no problems (knock wood), or if people decided to be considerate of my vacation, but whatever the reason, I appreciate it. It’s not like the 4.1 release cycle was particularly painful, and let’s hope that the extra week of letting it sit makes for a great release. Which wouldn’t be a bad thing, considering that 4.1 will also be a LTS release.

Anyway, since rc8 we’ve had truly small changes, mainly some final driver fixups (HDA sound, drm, scsi target, crypto) and a couple of small misc fixes. The appended shortlog is probably one of the shortest ones ever. I’m not complaining.

And this obviously means that the merge window for 4.2 is open.

Linus

What’s New in Kernel 4.1:

Some of highlights for the Linux 4.1 kernel (by Michael Larabel):

  • Significant performance improvements for certain hardware as well as power consumption/efficiency improvements for select Intel hardware.
  • Nouveau ships with GeForce GTX 750 acceleration support that doesn’t require the manual extracting/setup of any non-redistributable firmware blobs.
  • Intel XenGT vGPU support for those wanting Intel graphics acceleration support from Xen guests. The KVM support is still being developed.
  • Radeon DisplayPort MST support.
  • EXT4 file-system encryption thanks to work done by Google in looking to add file-system-level EXT4 encryption for Android.
  • Better RAID 5/6 support with MD RAID.
  • Improved laptop support from major vendors along with better Chromebook Pixel 2 support.
  • Continued bring-up of Intel Skylake support within Linux. Skylake is still on course for launching later this year.
  • ACPI support for AArch64 / 64-bit ARM.
  • Many other changes.

Install/Upgrade to Kernel 4.1 in Ubuntu, Mint:

The Ubuntu Kernel Team has made the binary packages for this kernel release, available for download at link below:

Download Kernel 4.1 (.DEB)

First check out your OS type, 32-bit (i386), 64-bit (amd64), or armhf, then download and install the packages below in turn:

  1. linux-headers-4.1.0-xxx_all.deb
  2. linux-headers-4.1.0-xxx-generic_xxx_i386/amd64/armhf.deb
  3. linux-image-4.1.0-xxx-generic_xxx_i386/amd64/armhf.deb

After installing the kernel, you may run sudo update-grub command in terminal (Ctrl+Alt+T) to refresh grub boot-loader.

If you need a low latency system (e.g. for recording audio) then download & install below packages instead:

  1. linux-headers-4.1.0_xxx_all.deb
  2. linux-headers-4.1.0-xxx-lowlatency_xxx_i386/amd64.deb
  3. linux-image-4.1.0-xxx-lowlatency_xxx_i386/amd64.deb

For Ubuntu Server without a graphical UI, you may run below commands one by one to grab packages via wget and install them via dpkg:

For 64-bit system run:

cd /tmp/

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.1-unstable/linux-headers-4.1.0-040100-generic_4.1.0-040100.201506220235_amd64.deb

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.1-unstable/linux-headers-4.1.0-040100_4.1.0-040100.201506220235_all.deb

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.1-unstable/linux-image-4.1.0-040100-generic_4.1.0-040100.201506220235_amd64.deb

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

For 32-bit system, run:

cd /tmp/

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.1-unstable/linux-headers-4.1.0-040100-generic_4.1.0-040100.201506220235_i386.deb

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.1-unstable/linux-headers-4.1.0-040100_4.1.0-040100.201506220235_all.deb

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.1-unstable/linux-image-4.1.0-040100-generic_4.1.0-040100.201506220235_i386.deb

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

Uninstall Linux Kernel 4.1:

If for some reason, the new kernel does not work properly for you, reboot into a previous Kernel (Grub boot loader -> Advanced -> select a previous kernel) and run below command in terminal to remove the Linux Kernel 4.1:

sudo apt-get remove linux-headers-4.1.0-* linux-image-4.1.0-*; sudo update-grub

Elementary OS' noise music player

Noise, the official music player of Elementary OS, is a fast and beautiful GTK3 audio player with a focus on music and libraries. It handles external devices, CDs, and album art. Noise utilizes Granite for a consistent and slick UI.

Elementary OS Team has created a few PPAs on launchpad.net so users can easily install and test some Elementary applications on Ubuntu desktop. And here’s how to install Noise music player in Ubuntu 15.04, or Ubuntu 15.10.

Noise in Ubuntu 15.04

Noise in Ubuntu 15.04

1. Open terminal from the Dash, App Launcher, or by pressing Ctrl+Alt+T on keyboard. When it opens, run command to add the Elementary OS daily ppa:

sudo add-apt-repository -y ppa:elementary-os/daily

noise-ppa

2. After adding the PPA, refresh your system repository cache and install the music player via 2 commands:

sudo apt-get update

sudo apt-get install noise

3. Finally, you have to remove the PPA since it contains some unstable and EOS only applications. To do so, run:

sudo add-apt-repository -r ppa:elementary-os/daily && sudo apt-get update

4. (Optional) If you want to remove this music player, simply run:

sudo apt-get remove noise

Tip: Due to a bug related to the Unity overlay scrollbars, there’s a background issue which can be fixed by running below command to edit the launcher file of Noise:

gksudo gedit /usr/share/applications/noise.desktop

Install gksu from Software Center if the command doesn’t work. When the file opens, change the value of Exec to env LIBOVERLAY_SCROLLBAR=0 noise %U so it look likes:

noise-scrollbar

That’s it.

mupdf-icon

MuPDF is a small, fast, and yet complete PDF viewer that supports PDF 1.7 with transparency, encryption, hyperlinks, annotations, searching and more. It also reads XPS and OpenXPS documents.

The renderer in MuPDF is tailored for high quality anti-aliased graphics. It renders text with metrics and spacing accurate to within fractions of a pixel for the highest fidelity in reproducing the look of a printed page on screen.

MuPDF is available in Ubuntu repositories by default, but Canonical does not provide updates for this software. While Ubuntu Software Center provides the 1.6 (or older) release, the latest MuPDF 1.7a was released in last month with below changes:

  • Fixed bug that allocated too much memory when packing paths.
  • Fixed EPUB font scaling bug.
  • Fixed EPUB file type handling in viewers.
  • Improved tolerance for broken and unsupported CSS.
  • Added -z option to mutool clean.

Install MuPDF in Ubuntu:

1. Open terminal from the Dash, Application Menu, or by pressing Ctrl+Alt+T on keyboard. When it opens, run command to add PPA:

sudo add-apt-repository ppa:ubuntuhandbook1/apps

mupdf-ppa

2. After adding the PPA, open Software Updater to automatically check for updates

Checking for Updates

After checking for updates, you’ll see MuPDF in the list available for upgrade if you have a previous version installed.

If you don’t have a previous release installed in your system, install it via Synaptic Package Manager or by running below command in terminal:

sudo apt-get install mupdf mupdf-tools

Once installed, open PDF/XPS files using MuPDF from their context (right-click) menu. For key bindings and other options, run man mupdf in terminal.

mupdf

To set MuPDF as default viewer, go to PDF file’s context menu -> Properties -> Open With tab -> select the viewer from list and click Set as default button.

nvidia-logo-1

NVIDIA driver 352.21 for Linux has been released recently with new GPUs support and numerous bug fixes. Here’s how to install it in Ubuntu 15.04, Ubuntu 14.04 and their derivatives via PPA.

Nvidia 352.21 release highlights:

  • Added support for the following GPUs:
    • GeForce 720A
    • GeForce 920A
    • GeForce 930A
    • GeForce 940A
    • GeForce GTX 950A
    • GeForce GTX 980 Ti
  • Fixed a bug that caused the Display Configuration page of the nvidia-settings control panel to automatically generate layouts with multiple displays occupying the same position when enabling or disabling Base Mosaic.
  • Updated nvidia-settings to allow the use of the standard Display Configuration page when SLI Mosaic is enabled.
  • Fixed a bug that caused the kernel to report errors when unmapping DMA allocations on kernels with CONFIG_DEBUG_DMA_API enabled.
  • Added GLX Protocol support for the following OpenGL extensions:
    • GL_ARB_copy_buffer
    • GL_ARB_texture_buffer_object
  • Fixed a bug that caused a kernel crash if SLI Mosaic and G-SYNC were used at the same time on a configuration with more display devices connected to one GPU than another.
  • Added the ability to configure the swapping behavior for quad-buffered stereo visuals. The driver can be configured to independently swap each eye as it becomes ready, to wait for both eyes to complete rendering before swapping, or to allow applications to specify which of these two behaviors is preferred by setting the swap interval. This setting can be adjusted in the nvidia-settings control panel, or via the NV-CONTROL API.
  • Fixed a regression which caused the GPU fan status display to disappear from the nvidia-settings control panel.
  • Added reporting of ECC error counts to the nvidia-settings control panel.
  • Fixed a bug that sometimes prevented OpenGL sampler objects from being properly deallocated when destroying OpenGL contexts.
  • Fixed a bug that caused GLX_EXT_framebuffer_sRGB to incorrectly report sRGB support in 30 bit-per-pixel framebuffer configurations.
  • Added support for G-SYNC with sync-to-vblank disabled. This allows applications to use G-SYNC to eliminate tearing for frame rates below the monitor’s maximum refresh rate but allow tearing above the maximum refresh rate in order to minimize latency.
  • When G-SYNC is active and sync-to-vblank is enabled, the frame rate is limited to the monitor’s maximum refresh rate.
  • GLSL gl_Fog.scale is now +infinity when gl_Fog.end equals gl_Fog.start. Previously, the value 0 was used, but this broke certain applications such as the game XIII running on Wine (Wine bug #37068).
  • Enabled G-SYNC by default when Unified Back Buffer (UBB) is disabled.
  • Updated the NVIDIA GPU driver to avoid using video memory already in use by vesafb.
  • Fixed a bug in nvidia-settings that caused the application to crash when saving the EDID to a file.
  • Fixed a bug that prevented the “mkprecompiled” utility included in the driver package from reading files correctly.
  • Fixed a bug that could cause an Xid error when terminating a video playback application using the overlay presentation queue in VDPAU.
  • Updated nvidia-installer to avoid recursing too deeply into kernel source trees under /usr/lib/modules, mirroring an existing restriction on recursion under /lib/modules.
  • Fixed a rare deadlock condition when running applications that use OpenGL in multiple threads on a Quadro GPU.
  • Fixed a kernel memory leak that occurred when looping hardware- accelerated video decoding with VDPAU on Maxwell-based GPUs.
  • Fixed a bug that caused the X server to crash if a RandR 1.4 output provided by a Sink Output provider was selected as the primary output on X.Org xserver 1.17 and higher.
  • Fixed a bug that caused waiting on X Sync Fence objects in OpenGL to hang indefinitely in some cases.
  • Fixed a bug that prevented OpenGL from properly recovering from hardware errors or sync object waits that had timed out.

Install NVIDIA 352.21 via PPA:

NOTE: If you’re just looking for a working driver for your graphics card, the default Nvidia package in Ubuntu repository may interact better with the rest of your distribution’s framework.

Open terminal from the Dash, Application Menu, or by pressing Ctrl+Alt+T on keyboard. When it opens, run below commands one by one to add the PPA, and install the driver:

sudo add-apt-repository ppa:graphics-drivers/ppa

sudo apt-get update

sudo apt-get install nvidia-352 nvidia-settings

openbroadcastsoftware-icon

This is a quick tutorial for Ubuntu users how to install Open Broadcaster Software (OBS), a free and open source software for recording and live streaming. Stream to Twitch, YouTube and many other providers or recording services.

OBS features:

  • Encoding using H264 (x264) and AAC.
  • Support for Intel Quick Sync Video (QSV) and NVENC.
  • Unlimited number of scenes and sources.
  • Live RTMP streaming to Twitch, YouTube, DailyMotion, Hitbox and more.
  • File output to MP4 or FLV.
  • GPU-based game capture for high performance game streaming.
  • DirectShow capture device support (webcams, capture cards, etc).
  • Windows 8 high speed monitor capture support.
  • Bilinear or lanczos3 resampling.
Sorry that OBS doesn't work for my laptop's integrated graphics card. Picture from linux distro community forum

Sorry that OBS doesn’t work for my laptop’s integrated graphics card. Picture from linux distro community forum

Install Open Broadcaster Software in Ubuntu:

Open terminal from the Dash, Application Menu, or by pressing Ctrl+Alt+T on keyboard. When it opens, copy and paste (Ctrl+Alt+V) below commands and run one by one:

1. OBS requires ffmpeg, Ubuntu 14.04 and Ubuntu 14.10 need to add below PPA via command:

sudo add-apt-repository ppa:kirillshkrogalev/ffmpeg-next

ffmpeg-ppa

2. OBS has an official Ubuntu PPA that currently supports Ubuntu 14.04, Ubuntu 14.10, and Ubuntu 15.04. To add the PPA, run:

sudo add-apt-repository ppa:obsproject/obs-studio

obs-ppa

3. Finally, refresh your system package cache and install the OBS package by running below two commands one by one:

sudo apt-get update

sudo apt-get install obs-studio

For 14.04 Trusty and 14.10 Utopic, above command also installs the ffmpeg libraries from the PPA you added in step 1.

Not clear enough? See the video by Osirez Tech:

ubuntu-touch-clock

Up-Clock is a beautiful linux application inspired by the Ubuntu Touch Lockscreen. It’s a desktop clock widget that was carefully built to be pretty and smart.

The configuration is really simple, you can change the color, set alarm, change the clock type, tranparency, and more…

Up Clock on Ubuntu

Install Up-Clock in Ubuntu:

There’s a PPA contains the packages for this app, available for Ubuntu 12.04, Ubuntu 14.04, Ubuntu 15.04.

To add the PPA and install up-clock, open terminal (Ctrl+Alt+T) and run below commands one by one:

sudo add-apt-repository ppa:apandada1/up-clock 

sudo apt-get update

sudo apt-get install up-clock

If you don’t want to add PPA, grab and install the .deb package directly from the launchpad page.

Speed Dreams racing simulator Ubuntu 14.04

Speed Dreams is an open source 3D racing game which is initially forked from TORCS. It features high quality graphics, 3D real-time motorsport simulator for gamers and researchers, and a variety of input devices support (e.g, keyboards, mouses, joypads, joysticks, racing wheels and pedals.).

Speed dreams 2.1 in Ubuntu

Speed Dreams works on Linux, Microsoft Windows, AmigaOS 4, AROS, MorphOS and Haiku. For Ubuntu, it can be easily installed from PlayDeb repository and below is how:

1. Add PlayDeb repository.

Open terminal from the Dash/Launcher or by pressing Ctrl+Alt+T on keyboard. When it opens, run:

echo deb http://archive.getdeb.net/ubuntu vivid-getdeb games | sudo tee /etc/apt/sources.list.d/playdeb.list

2. Import the keyring:

wget -q -O- http://archive.getdeb.net/getdeb-archive.key | sudo apt-key add -

add-playdeb-repository

3. Launch Synaptic Package Manager (install it from Ubuntu Software Center if need), search for install speed dreams after checking for updates:

install-speed-dreams

You may install all the packages listed in the above picture to get more cars and tracks.

Komodo Edit 9 Ubuntu

A new release of Komodo Edit text editor has been announced with UI and user experience improvements and bug fixes.

Changes in Komodo Edit 9.1 according to the release note:

  • Select Commando (Go to Anything) results by pressing ALT+number.
  • The Commando user experience has had significant usability improvements. Most notably when starting Commando you will now be presented with a convenient list of scopes that you can use to narrow down your search results.
  • Color Schemes: Use foreground color for caret color
  • Commando: Don’t preserve query when navigating backwards.
  • Commando: Escape now clears the current search.
  • SDK: Added the “shell” SDK, allowing you to easily run shell commands.
  • UI: Improved scrollbar contrast on dark color schemes.
  • UI: “Ugly border” showing around notifications on windows
  • CodeIntel: Improve PHPDoc tooltip legibility – contributed by Defman

komodo ubuntu

Install/upgrade Komodo Edit in Ubuntu:

Komodo Edit 9 with Unity integration has been made into PPA, available for Ubuntu 12.04, Ubuntu 14.04, Ubuntu 14.10 and Ubuntu 15.04.

To install it, open terminal from the Dash/Launcher or by pressing Ctrl+Alt+T on keyboard. When it opens, follow below steps:

1. Add the PPA repository, run command:

sudo add-apt-repository -y ppa:mystic-mirage/komodo-edit

2. Refresh system cache via Software Updater or by running below command:

sudo apt-get update

3. Upgrade the editor through Software Updater, or install it via below command:

sudo apt-get install komodo-edit

Done.

spotify console client

The beta version of the next major 1.x release of Spotify client for Linux has been announced a few hours ago, available for test in its testing repository.

According to the announcement, the 1.x client brings below changes to Linux users:

  • Various text/mouse input bugs in current stable release (e.g. client doesn’t give up mouse focus, crash on drag/drop, text input not work on some window managers) have been fixed.
  • “Now playing” notifications can be switched off in the settings page
  • The WM_CLASS property should be set correctly

As a beta release (version 1.0.7.153.gb9e8174a at the moment), there are some known issues/limitations:

  • Login with Facebook Connect does not work (will be fixed soon)
  • There is no application menu
  • There is no tray icon
  • Some key bindings do not work yet, like ctrl+s for shuffle, etc.
  • The application is super tiny on hi-res displays
  • 32-bit builds are not available yet

spotify-1.x

If you want to try this new client in Ubuntu 14.04/15.04, follow bellow steps to add Spotify testing repository and keep the client up-to-date via Software Updater.

1. To add the testing repository, open terminal and run:

echo deb http://repository.spotify.com testing non-free | sudo tee /etc/apt/sources.list.d/spotify.list

spotify-testing-repository

2. After that, you can install the 1.x client either via Synaptic Package Manager or by running below commands one by one:

sudo apt-get update

sudo apt-get install spotify-client

3. (Optional) To remove the testing repository, just run:

sudo rm /etc/apt/sources.list.d/spotify.list

For those who don’t want to add the repository, download the .deb package at web page.

unity-desktop-icon

For those who are interested in testing the latest Unity 8, the next generation Unity shell running on the Mir display, you can now install a preview from PPA.

A Launchpad project, Unity8 Desktop Preview in LXC, is a set of tools and scripts to run the Unity 8 desktop preview ISO in a Linux container on released Ubuntu versions starting with Trusty (14.04). User can log in to the Unity 8 LXC session from LightDM greeter just as they would any normal session.

Install Unity 8 Preview via PPA:

A PPA has been created for Ubuntu 14.04, Ubuntu 14.10, Ubuntu 15.04 and next Ubuntu 15.10.

1. To add the PPA, open terminal (Ctrl+Alt+T) from the Dash/launcher and run:

sudo apt-add-repository ppa:unity8-desktop-session-team/unity8-preview-lxc

2. update your system cache by running command:

sudo apt-get update; sudo apt-get upgrade

3. Install the package for Unity 8 in lxc:

sudo apt-get install unity8-lxc

Note: This installs a slightly modified version of lightdm that works allows the lxc container login.

4. To set up the Unity8 Desktop Preview LXC, you need to run:

sudo unity8-lxc-setup

What this does is setup the configuration for the LXC, downloads the ISO and then extracts it, and then any last bits of setup necessary to make it work.

Finally restart your computer and you should be able to select log in “Unity 8 in LXC” session from lightdm login screen. For more, read the wiki page.