Linux Today – How to install the NVIDIA drivers on Ubuntu 18.10 Cosmic Cuttlefish Linux

Oct 23, 2018, 06:00

The objective of this article is to install the NVIDIA drivers on Ubuntu 18.10 Cosmic Cuttlefish Linux. This article will discuss three methods of Nvidia driver installation in the following order: 1. Automatic Install using standard Ubuntu Repository. 2. Automatic Install using PPA repository to install Nvidia Beta drivers. 3. Manual Install using the Official nvidia.com driver.

Complete Story

Related Stories:

Source

Corsair Force MP510 240GB NVMe SSD Ubuntu Linux Benchmarks Review

Last week Corsair announced the Force Series MP510 M.2 PCIe NVMe solid-state drives as the company’s fastest SSDs to date. While being Corsair’s latest and fastest NVMe SSDs, the pricing is competitive with the 240GB model starting out at $70 USD, 480GB for $130 USD, $239 for 960GB, or $475 for a 1920GB version.

 

 

Given a number of Phoronix readers asking about MP510 Linux benchmarks (including some premium supporters), I ended up buying a MP510 240GB solid-state drive for carrying out some Linux tests as Corsair hadn’t supplied any review samples for Linux benchmarking.

 

 

The Corsair Force MP510 240GB model is rated for sequential reads up to 3100MB/s, sequential writes up to 1050MB/s, random writes up to 240K IOPS, and random reads up to 180k IOPS. The MP510 SSD relies upon 3D TLC NAND Toshiba memory and a Phison PS5012-E12 controller. The MP510 drive is rated for 400 TBW endurance, 1.8 million hours MTBF, and is backed by Corsair with a five-year warranty.

 

 

These fresh NVMe SSD benchmarks were done on Ubuntu 18.10 while using an EXT4 file-system and the stock Linux 4.18 kernel. Tests were done using a Ryzen 7 2700X system and the different solid-state drives benchmarked for this comparison included the following NVMe SSDs: Corsair Force MP500 120GB, Corsair Force MP500 240GB, Intel 600p 256GB, Intel 800p 128GB, Samsung 950 PRO 256GB, and Samsung 970 EVO 256GB. Some older SATA 3.0 SSDs were also freshly benchmarked for reference purposes on Ubuntu 18.10. Those SATA 3.0 SSDs included the Toshiba TR-150 120GB, Samsung 860 EVO 500GB, and Samsung 850 PRO 256GB.

 

All of these solid-state drive benchmarks were carried out via the Phoronix Test Suite. If you want to see how your own Linux storage performance compares to the benchmarks shown in this article, simply install the Phoronix Test Suite and then run phoronix-test-suite benchmark 1810208-SK-CORSAIR5106 for your own fully-automated, side-by-side benchmark comparison.

Source

Install The ngx_cache_purge Module In Nginx

Ngx_cache_purge is a module which will allow the fastcgi_cache, proxy, SCGI and uWSGI caches to have content purged from them. The caches allow precompiled code to be served as opposed to running a new version each time. This can greatly reduce the amount of processing power per page request. This specific module allows that cached content to be purged when needed. To compile this module from source if you have done a source build of Nginx like this Nginx Compile From Source On CentOS. Adding the module is pretty straightforward. You can read more about the module here

First get the ngx_cache_purge package

wget -O /usr/src/ngx_cache_purge-2.3.tar.gz http://labs.frickle.com/files/ngx_cache_purge-2.3.tar.gz

Uncompress the package

tar xfvz ngx_cache_purge-2.3.tar.gz

cd to your Nginx build directory

cd /usr/src/nginx-1.11.13

Get the prior build configuration options

# nginx -V
nginx version: nginx/1.11.13
built by gcc 4.8.5 20150623 (Red Hat 4.8.5-11) (GCC)
built with OpenSSL 1.0.1e-fips 11 Feb 2013
TLS SNI support enabled
configure arguments: –user=nginx –group=nginx –prefix=/etc/nginx –sbin-path=/usr/sbin/nginx –conf-path=/etc/nginx/nginx.conf –pid-path=/var/run/nginx.pid –lock-path=/var/run/nginx.lock –error-log-path=/var/log/nginx/error.log –http-log-path=/var/log/nginx/access.log –with-http_gzip_static_module –with-http_stub_status_module –with-http_ssl_module –with-pcre –with-file-aio –with-http_realip_module –without-http_scgi_module –without-http_uwsgi_module –with-http_realip_module

Copy all of the configure arguments and append –add-module=/path/to/ngx_cache_purge

./configure –user=nginx –group=nginx –prefix=/etc/nginx –sbin-path=/usr/sbin/nginx –conf-path=/etc/nginx/nginx.conf –pid-path=/var/run/nginx.pid –lock-path=/var/run/nginx.lock –error-log-path=/var/log/nginx/error.log –http-log-path=/var/log/nginx/access.log –with-http_gzip_static_module –with-http_stub_status_module –with-http_ssl_module –with-pcre –with-file-aio –with-http_realip_module –without-http_scgi_module –without-http_uwsgi_module –with-http_realip_module –add-module=/usr/src/ngx_cache_purge-2.3

Once configure has finished, You can go ahead perform a make and install it

make

make install

Then restart nginx

/etc/init.d/nginx restart

Run the following to ensure the module is now loaded:

nginx -V 2>&1 | grep ngx_cache_purge -o

It should return ngx_cache_purge if it is.

That is all you need to do to add the module to a Nginx build.

May 28, 2017LinuxAdmin.io

Source

How to Update Firmware on Ubuntu 18.04

Usually, the default software center in Ubuntu and other Linux handle the update of the firmware of your system. But if you encounter errors with it, you can use fwupd command line tool for updating the firmware of your system.

I use Dell XPS 13 Ubuntu edition as my main operating system. I have done a fresh installation of Ubuntu 18.04 on it and I cannot be happier with the hardware compatibility. Bluetooth, external USB headsets and speakers, multi-monitor, everything works out of the box.

The one thing that troubled me was one of the firmware updates that appeared in the Software Center.

Updating firmware in Ubuntu

Clicking on the Update button resulted in an error a few seconds later.

Updating firmware in Ubuntu

The error message was:

Unable to update “Thunderbolt NVM for Xps Notebook 9360”: could not detect device after update: timed out while waiting for device

In this quick tip, I’ll show you how to update the firmware of your system in Ubuntu.

Updating firmware in Ubuntu 18.04

How to update firmware in Ubuntu

One thing you should know that GNOME Software i.e. the software center in Ubuntu 18.04 is also capable of updating the firmware. But in situations when it fails for some reason, you can use the command line tool fwupd.

fwupd is an open source daemon that handles firmware upgrades in Linux based systems. It is created by GNOME developer Richard Hughes. Developers from Dell also contributed to the development of this open source tool.

Basically, it utilizes the LVFS, Linux Vendor Firmware Service. Hardware vendors upload redistributable firmware to the LVFS site and thanks to fwupd, you can upgrade those firmware from inside the operating system itself. fwupd is supported by major Linux distributions like Ubuntu and Fedora.

Step 1: Check if your system is supported by LVFS

Since LVFS depends upon hardware vendors, it’s a good idea to check if your system manufacturer supports this feature or not.

Find out your system model and then go to this web page and see if it’s listed:

Step 2: Using fwupd for updating fimrware

Normally, fwupd should already be installed on your Linux system. If not, install it using the package manager of your distribution.

Open a terminal and update your system first (commands applicable for Debian and Ubuntu-based distributions):

sudo apt update && sudo apt upgrade -y

After that you can use the following commands one by one to start the daemon, refresh the list of available firmware updates and install the firmware updates.

sudo service fwupd start

Once the daemon is running, check if there are any firmware updates available.

sudo fwupdmgr refresh

The output should look like this:

Fetching metadata https://cdn.fwupd.org/downloads/firmware.xml.gz
Downloading… [****************************]
Fetching signature https://cdn.fwupd.org/downloads/firmware.xml.gz.asc

After this, run the firmware update:

sudo fwupdmgr update

The output of the firmware update could be similar to this:

No upgrades for XPS 13 9360 TPM 2.0, current is 1.3.1.0: 1.3.1.0=same
No upgrades for XPS 13 9360 System Firmware, current is 0.2.8.1: 0.2.8.1=same, 0.2.7.1=older, 0.2.6.2=older, 0.2.5.1=older, 0.2.4.2=older, 0.2.3.1=older, 0.2.2.1=older, 0.2.1.0=older, 0.1.3.7=older, 0.1.3.5=older, 0.1.3.2=older, 0.1.2.3=older
Downloading 21.00 for XPS13 9360 Thunderbolt Controller…
Updating 21.00 on XPS13 9360 Thunderbolt Controller…
Decompressing… [***********]
Authenticating… [***********]
Restarting device… [***********]

This should handle the firmware update in Ubuntu 18.04. I hope this quick tip helped you with firmware updates in Linux.

If you have questions or suggestions, please feel free to use the comment section below.

About Abhishek Prakash

I am a professional software developer, and founder of It’s FOSS. I am an avid Linux lover and Open Source enthusiast. I use Ubuntu and believe in sharing knowledge. Apart from Linux, I love classic detective mysteries. I’m a huge fan of Agatha Christie’s work.

Source

Download Calibre Linux 3.33.1

Calibre is an open source e-book library management application designed for the 21th century, for the digital world that were are living in right now. It lets users to manipulate digital books in any way possible. It helps users to easily read ebooks on their personal computer, convert ebooks from one format to another, create electronic books based on recipes of your very own ideas.

Features at a glance

The software can download news from a sleuth of various sources, and comes with a content server for online access. Syncing ebooks to a supported mobile reader device is also possible with Calibre. E-book library management is the the main component of the application, displayed every time you open the application. From here, you can convert and organize e-books in a simple manner. It imports and exports many ebook formats, including ePub, MOBI, AZW, DOC, XML, etc. Just like any other software that can be extended via plugins, Calibre features an internal collection of add-ons, which provide support for editing metadata of ebooks, or add support for various ebook readers.

Supports a wide range of eBook reader devices

Among the supported devices, we can mention Amazon Kindle, Astak EZReader, Augen The Book, Barnes & Noble Nook, BeBook, Bookeen Cybook, Booq bq, Ectaco JetBook, Jinke Hanlin, Kobo, PocketBook, Sony, Sanda Bambook, as well as any other Android phone or tablet, and Apple’s iPhone, iPod and iPad devices.

Availability and supported OSes

The Calibre software is distributed as sources and binary archives for all major Linux operating systems. If you want to install Calibre on your Linux distribution, you should search the ‘calibre’ package in its default software repositories. However, the latest version will always be available right here on Softpedia.

Bottom line

We strongly suggest to use the Calibre application if you own an e-book reader device (see above supported devices) and you have a very large collection of electronic books.

Source

KDE Holding a Bug Day on October 30, Qt Project Creating Its Own Code of Conduct, Linus Torvalds Discusses His Return, Tails 3.10.1 Is Out and OpenIndiana Hipster 2018.10 Released

News briefs for October 24, 2018.

KDE is holding a Bug
Day
on October 30, 2018. The Bug Day will focus on Konsole, and you can
join the #kde-bugs IRC channel on
Freenode
at any time to participate.

The Qt Project is creating its own Code of Conduct. Phoronix
reports
that the motivation is to “establish a formal line-in-the-sand about what is unacceptable behavior. We want new members of the Qt community to feel comfortable and accepted, and we want to foster a healthy working
environment for both current and new members.” You can find the proposed
Code of Conduct here.

Linus Torvalds discusses his return to Linux in an interview with ZDNet, and says he’s “starting the usual
merge window activity now”.
Regarding the Code of Conduct, he says: “I want to leave
it alone, and wait until we actually have any real issues. I’m hoping there
won’t be any, but even if there are, I want the input to be colored more by
real and *actual* concerns, rather than just people arguing about it.”
See the article for more details on what he’s been doing and other
news from the Maintainers Summit.

Tails
3.10.1 is now available
. This release fixes several security issues,
so update as soon as possible. Also in this version Linux is updated to
4.8, the Tor Browser is updated to 8.0.3 and Thunderbird to 60.2.1. Tails
version 3.11 is expected in December.

OpenIndiana
Hipster 2018.10 was released
today. Notable changes include MATE
updated to 1.20, Python 3.5 was added, the Image Packaging System received
many updates, and much more. See the release
notes
for more details, and download it from here.

Source

Nginx Caching for WordPress using fastcgi_cache

Fastcgi_cache Nginx

Caching PHP requests can dramatically reduce server resources per request and make the pages load time decrease substantially. In this tutorial we are going to utilize the fastcgi_cache functions in nginx to cache PHP requests making it.

This tutorial assumes you have the following already completed on your server:
Nginx installed, if you do not please follow – Nginx Compile From Source On CentOS
The ngx_cache_purge module already installed – How to install the ngx_cache_purge module in Ningx
FastCGI setup and running – PHP-FPM Installation

It also assumes you already have a WordPress installation as this will just cover setting up the fastcgi_cache to work with WordPress.

Nginx fastcgi_cache Configuration

First make a directory in /var/run , this is where the fastcgi_cache will store the files in memory

mkdir /var/run/nginx-cache

You will then need to edit the Nginx configuration

nano /etc/nginx/nginx.conf

You will want to add the following lines in the http{} block before the server{} configuration

fastcgi_cache_path /var/run/nginx-cache levels=1:2 keys_zone=WORDPRESS:100m inactive=60m;
fastcgi_cache_key “$scheme$request_method$host$request_uri”;
fastcgi_cache_use_stale error timeout invalid_header http_500;
fastcgi_ignore_headers Cache-Control Expires Set-Cookie;

The above lines set the caching directory, cache levels and keys_zone. The fastcgi_cache_use_stale option will try to use cached files even if PHP-FPM has crashed or has been shutdown.

You will then want to add the following to the server{} configuration:

add_header X-Cache $upstream_cache_status;

What this does is allows you to see if Nginx is caching a request later on

if ($request_method = POST) {
set $skip_cache 1;
}

if ($request_uri ~* “/wp-admin/|/xmlrpc.php|wp-.*.php|index.php|/feed/|sitemap(_index)?.xml”) {
set $skip_cache 1;
}

if ($http_cookie ~* “comment_author|wordpress_[a-f0-9]+|wp-postpass|wordpress_no_cache|wordpress_logged_in”) {
set $skip_cache 1;
}

The above statements allow you to bypass the cache when you are logged into the administrative interface etc.

Add the following to location ~ .php$ {} block that sends the PHP requests to PHP-FPM

fastcgi_cache_bypass $skip_cache;
fastcgi_no_cache $skip_cache;
fastcgi_cache WORDPRESS;
fastcgi_cache_valid 200 302 60m;
fastcgi_cache_valid 301 1h;
fastcgi_cache_valid any 1m;

The above block fast_cache_valid entries specify which type of requests to cache and for how long.

And finally add a purge folder to in the server{} configuration:

location ~ /purge(/.*) {
allow 127.0.0.1;
deny all;
fastcgi_cache_purge WORDPRESS “$scheme$request_method$host$1”;
}

Once all of that has been completed, you can go ahead and restart nginx.

/etc/init.d/nginx restart

Nginx Helper Plugin Configuration

You will then want to cd to the wp-content/plugins directory and get the Nginx Helper plugin

wget https://downloads.wordpress.org/plugin/nginx-helper.1.9.10.zip

Uncompress the zip file

unzip nginx-helper.1.9.10.zip

Activate the plugin in WordPress and select the following options:
Under Purging Options select:

Enable Cache

Under Caching Method select:

Nginx FastCGI cache

Under Purge Method select:

Using a GET request to PURGE/url(Default option)

And click save to save the configuration.

To test you should now try a curl to check the headers to ensure a HIT for the X-Cache header We set earlier.

# Curl -Is http://domain.com |grep X-Cache
X-Cache: MISS

If this is the first request to that page since the cache has been active that is expected. A MISS means the page has not been cached yet.

On subsequent requests you should see

# Curl -Is http://domain.com |grep X-Cache
X-Cache: HIT

If you do get a X-Cache: BYPASS one of the rules we set earlier is causing the cache to be ignored. Try testing your site in one of the various speed test programs such as https://tools.pingdom.com you should notice a much improved load time over a non-cached WordPress install.

May 29, 2017LinuxAdmin.io

Source

Arm adds Linux-on-Cortex-A5 service to MCU-focused DesignStart program

Oct 23, 2018 — by Eric Brown

Arm has extended its Cortex-M oriented DesignStart program to Cortex-A5 SoCs running Linux. The SoC development platform starts at $75,000 for Cortex-A5 IP access and a year of design support.

Arm’s DesignStart, which helps semiconductor manufacturers develop Cortex-M based MCUs, has for the first time been extended to support a Linux-ready Cortex-A processor. DesignStart for Cortex-A5 now offers developers “the lowest cost access to a Linux-capable Arm CPU,” says the chip IP designer.

The DesignStart program for Cortex-A5 starts at $75,000 for IP access and a year of design support. A $150K option extends the access fee and support to three years. DesignStart also provides a web portal and a simplified contract.

Arm diagram showing scope of DesignStart on Cortex-A5
(click image to enlarge)

 

Key benefits of DesignStart program for Cortex-A5 includes access to system IP including:

  • Flexible system IP for area and power-optimized SoC development
  • Low-latency Arm CoreLink NIC-400 interconnect for configurable and low-power connectivity with design flexibility
  • Seamless debugging with CoreSight debug and trace solution
  • System-wide security with TrustZone technology

Arm also notes that its “vast range of Artisan physical IP” is available to help SoC developers more quickly tape out a custom chip. Customers can also access “design enablement platforms being supported by 18 foundry partners with process technology ranging from 250nm to 5nm,” says Arm.

Cortex-A5 enables relatively low fabrication costs, in part by offering a small footprint:

Cortex-A5 block diagram (left) and Microchip’s SAMA5D27 SOM
(click images to enlarge)

Microchip, through its Atmel acquisition, is one of a relatively few vendors that have run with the Cortex-A5. The company has long sold a SAMA5D family of SoCs, and earlier this year, it announced an open source, mainline Linux-ready SAMA5D27 SOM SiP module. The module is based on its -A5-based SAMA5D27 SoC equipped with 128MB RAM.

Given that the low-power -A5 is ideal for many low-end IoT gizmos, it has surprised us that Arm has not done more to promote the IP. Arm’s soft pedaling of Cortex-A5 was likely linked to its very successful efforts to promote Cortex-M on the low end and to boost Cortex-A7 as a Cortex-A5 replacement. Arm wanted to clearly differentiate between the Cortex-M and -A platforms.

With the relatively low-cost Cortex-A5 DesignStart program, Arm is now ready to serve the projected increase in custom IoT SoC development. We’re likely to see a growing number of smaller-volume SoCs aimed at very specific IoT applications. Many of these will be developed by fabless startups.

Two other trends may have also motivated Arm to push Cortex-A5. First, the open source RISC-V platform is emerging as a threat, especially when competing for smaller SoC design shops that cannot afford Arm’s standard IP licenses. Second, Arm now has skin in the game with its new Mbed Linux OS, which like the MCU-oriented Mbed OS that it’s partially based on, will support its Pelion IoT Platform. Cortex-A5 and -A7 are naturals for running the IoT focused Mbed Linux, which is also based on Yocto Project code.

Further information

The DesignStart program for Cortex-A5 is now available, starting at $75,000 per year. More information may be found in Arm’s announcement in Design & Reuse, as well as a more detailed blog announcement and the DesignStart product page.

Source

Lutris 0.4.21 is out to help you manage all your gaming needs on Linux

Lutris [Official Site], the ‘open gaming platform’ that acts as a front-end to help you manage various games on Linux has a fresh release out.

With Lutris 0.4.21 released yesterday it features an array of improvements, feature adjustments and bug fixes to make it a more pleasent experience overall.

For those using Lutris to help with Wine and DXVK, they fixed an issue where DXVK versions didn’t get updated if DXVK directory wasn’t present and they also added an error message if requested DXVK version does not exist to prevent some confusion.

To help with Wine use overall, they’ve also added a warning for wine games if Wine is not installed on the system, there’s a new Esync toggle for wine builds with Esync patches as it may cause issues for some users, Wine’s own Virtual Desktop configuration is now respected, some improvements to wine download dialog and so on.

They also improved the behavior of Lutris’ background process amongst other improvements to the UI, wording issues and more. Seems like a good release, nice to see it continue to improve!

As a reminder though, Lutris isn’t just for managing Wine games, it also helps with launching your native games, emulators and more.

Source

How to Create a Slideshow of Photos in Ubuntu 18.04 and other Linux Distributions

Creating a slideshow of photos is a matter of a few clicks. Here’s how to make a slideshow of pictures in Ubuntu 18.04 and other Linux distributions.

How to create slideshow of photos in Ubuntu Linux

Imagine yourself in a situation where your friends and family are visiting you and request you to show the pictures of a recent event/trip.

You have the photos saved on your computers, neatly in a separate folder. You invite everyone near the computer. You go to the folder, click on one of the pictures and start showing them the photos one by one by pressing the arrow keys.

But that’s tiring! It will be a lot better if those images get changed automatically every few seconds.

That’s called a slideshow and I am going to show you how to create a slideshow of photos in Ubuntu. This will allow you to loop pictures from a folder and display them in fullscreen mode.

Creating photo slideshow in Ubuntu 18.04 and other Linux distributions

While you could use several image viewers for this purpose, I am going to show you two of the most popular tools that should be available in most distributions.

Method 1: Photo slideshow with GNOME’s default image viewer

If you are using GNOME in Ubuntu 18.04 or any other distribution, you are in luck. The default image viewer of Gnome, Eye of GNOME, is well capable of displaying the slideshow of pictures in the current folder.

Just click on one of the pictures and you’ll see the settings option on the top right side of the application menu. It looks like three bars stacked over the top of one another.

You’ll see several options here. Check the Slideshow box and it will go fullscreen displaying the images.

How to create slideshow of photos in Ubuntu Linux

By default, the images change at an interval of 5 seconds. You can change the slideshow interval by going to the Preferences->Slideshow.

change slideshow interval in UbuntuChanging slideshow interval

Method 2: Photo slideshow with Shotwell Photo Manager

Shotwell is a popular photo management application for Linux. and available for all major Linux distributions.

If it is not installed already, search for Shotwell in your distribution’s software center and install it.

Shotwell works slightly different. If you directly open a photo in Shotwell Viewer, you won’t see preferences or options for a slideshow.

For slideshow and other options, you have to open Shotwell and import the folders containing those pictures. Once you have imported the folder in here, select that folder from left side-pane and then click on View in the menu. You should see the option of Slideshow here. Just click on it to create the slideshow of all the images in the selected folder.

How to create slideshow of photos in Ubuntu Linux

You can also change the slideshow settings. This option is presented when the images are displayed in the full view. Just hover the mouse to the lower bottom and you’ll see a settings option appearing.

It’s easy to create photo slideshow

As you can see, it’s really simple to create slideshow of photos in Linux. I hope you find this simple tip useful. If you have questions or suggestions, please let me know in the comment section below.

About Abhishek Prakash

I am a professional software developer, and founder of It’s FOSS. I am an avid Linux lover and Open Source enthusiast. I use Ubuntu and believe in sharing knowledge. Apart from Linux, I love classic detective mysteries. I’m a huge fan of Agatha Christie’s work.

Source

WP2Social Auto Publish Powered By : XYZScripts.com