13 Keyboard Shortcut Every Ubuntu 18.04 User Should Know

Knowing keyboard shortcuts increase your productivity. Here are some useful Ubuntu shortcut keys that will help you use Ubuntu like a pro.

You can use an operating system with the combination of keyboard and mouse

Note: The keyboard shortcuts mentioned in the list is intended for Ubuntu 18.04 GNOME edition. Usually, most of them (if not all) should work on other Ubuntu versions as well, but I cannot vouch for it.

Ubuntu keyboard shortcuts

Useful Ubuntu keyboard shortcuts

Let’s have a look at some of the must knowkeyboard shortcut for Ubuntu GNOME. I have not included universal keyboard shortcuts like Ctrl+C (copy), Ctrl+V (paste) or Ctrl+S (save).

Note: Super key in Linux refers to the key with Windows logo. I have used capital letters in the shortcuts but it doesn’t mean you have to press the shift key. For example, T means ‘t’ key only, not Shift+t.

You can also watch a video of these Ubuntu shortcuts in action. And if you like the video, subscribe to our YouTube channel for more Ubuntu and Linux related videos.

1. Super key: Opens Activities search

If you have to use just one keyboard shortcut on Ubuntu, this has to be the one.

You want to open an application? Press the super key and search for the application. If the application is not installed, it will even suggest applications from software center.

You want to see the running applications? Press super key and it will show you all the running GUI applications.

You want to use workspaces? Simply press the super key and you can see the workspaces option on the right-hand side.

2. Ctrl+Alt+T: Ubuntu terminal shortcut

Ubuntu Terminal ShortcutUse Ctrl+alt+T to open terminal

You want to open a new terminal. The combination of three keys Ctrl+Alt+T is what you need. This is my favorite keyboard shortcut in Ubuntu. I even mention it in various tutorials on It’s FOSS when it involves opening a terminal.

3. Super+L or Ctrl+Alt+L: Locks the screen

Locking screen when you are not at your desk is one of the most basic security tips. Instead of going to the top right corner and then choosing the lock screen option, you can simply use the Super+L key combination.

Some systems also use Ctrl+Alt+L keys for locking the screen.

4. Super+D or Ctrl+Alt+D: Show desktop

Pressing Super+D minimizes all running application windows and shows the desktop.

Pressing Super+D again will open all the running applications windows as it was previously.

You may also use Ctrl+Alt+D for this purpose.

5. Super+A: Shows the application menu

You can open the application menu in Ubuntu 18.04 GNOME by clicking on the 9 dots on the left bottom of the screen. However, a quicker way would be to use Super+A key combination.

It will show the application menu where you can see the installed applications on your systems and can also search for them.

You can use Esc key to move out of the application menu screen.

6. Super+Tab or Alt+Tab: Switch between running applications

If you have more than one applications running, you can switch between the applications using the Super+Tab or Alt+Tab key combinations.

Keep holding the super key and press tab and you’ll the application switcher appearing. While holding the super key, keep on tapping the tab key to select between applications. When you are at the desired application, release both super and tab keys.

By default, the application switcher moves from left to right. If you want to move from right to left, use the Super+Shift+Tab key combination.

You can also use Alt key instead of Super here.

Tip: If there are multiple instances of an application, you can switch between those instances by using Super+` key combination.

7. Super+Arrow keys: Snap windows

This is available in Windows as well. While using an application, press Super and left arrow key and the application will go to the left edge of the screen, taking half of the screen.

Similarly, pressing Super and right arrow keys will move the application to the right edge.

Super and up arrow keys will maximize the application window and super and down arrow will bring the application back to its usual self.

8. Super+M: Toggle notification tray

GNOME has a notification tray where you can see notifications for various system and application activities. You also have the calendar here.

Notification Tray Ubuntu 18.04 GNOMENotification Tray

With Super+M key combination, you can open this notification area. If you press these keys again, an opened notification tray will be closed.

You can also use Super+V for toggling the notification tray.

9. Super+Space: Change input keyboard (for multilingual setup)

If you are multilingual, perhaps you have more than one keyboards installed on your system. For example, I use Hindi on Ubuntu along with English and I have Hindi (Devanagari) keyboard installed along with the default English one.

If you also use a multilingual setup, you can quickly change the input keyboard with the Super+Space shortcut.

10. Alt+F2: Run console

This is for power users. If you want to run a quick command, instead of opening a terminal and running the command there, you can use Alt+F2 to run the console.

Alt+F2 to run commands in UbuntuConsole

This is particularly helpful when you have to use applications that can only be run from the terminal.

11. Ctrl+Q: Close an application window

If you have an application running, you can close the application window using the Ctrl+Q key combination. You can also use Ctrl+W for this purpose.

Alt+F4 is more ‘universal’ shortcut for closing an application window.

It not work on a few applications such as the default terminal in Ubuntu.

12. Ctrl+Alt+arrow: Move between workspaces

Workspace switchingWorkspace switching

If you are one of the power users who use workspaces, you can use the Ctrl+Alt+Up arrow and Ctrl+Alt+Down arrow keys to switch between the workspaces.

13. Ctrl+Alt+Del: Log out

No! Like Windows, the famous combination of Ctrl+Alt+Del won’t bring task manager in Linux (unless you use custom keyboard shortcuts for it).

Log Out UbuntuLog Out

In the normal GNOME desktop environment, you can bring the power off menu using the Ctrl+Alt+Del keys but Ubuntu doesn’t always follow the norms and hence it opens the logout dialogue box when you use Ctrl+Alt+Del in Ubuntu.

Use custom keyboard shortcuts in Ubuntu

You are not limited to the default keyboard shortcuts. You can create your own custom keyboard shortcuts as you like.

Go to Settings->Devices->Keyboard. You’ll see all the keyboard shortcuts here for your system. Scroll down to the bottom and you’ll see the Custom Shortcuts option.

Add custom keyboard shortcut in Ubuntu

You have to provide an easy-to-recognize name of the shortcut, the command that will be run when the key combinations are used and of course the keys you are going to use for the shortcut.

What are your favorite keyboard shortcuts in Ubuntu?

There is no end to shortcuts. If you want, you can have a look at all the possible GNOME shortcuts here and see if there are some more shortcuts you would like to use.

You can, and you should also learn keyboard shortcuts for the applications you use most of the time. For example, I use Kazam for screen recording, and the keyboard shortcuts help me a lot in pausing and resuming the recording.

What are your favorite Ubuntu shortcuts that you cannot live without?

Source

Download Telegram Desktop Linux 1.4.4

Telegram Desktop is an open source, multiplatform, modern and free graphical application that allows any Linux user to easily and quickly talk with friends, co-workers and family members who use the Telegram messenger, from the comfort of their GNU/Linux desktops.

Telegram is a revolutionary messaging system that can be easily described as fast, highly secure, cloud-based, distributed, free, open source, encrypted, powerful, and cross-platform, available on all the important mobile devices (Android, iOS (iPhone/iPad), Windows Phone) and operating systems (Linux, Mac OS X and Microsoft Windows).

With Telegram you will be able to connect from remote locations, synchronize your conversations on all of your devices, create groups of up to 200 members, send documents of any type, send encrypted information that cannot be intercepted by government agencies, store media files in the cloud, as well as to choose to destruct certain messages.

Supports 64-bit and 32-bit Linux distributions

As its name suggests, the Telegram Desktop application has been tailored for desktop users, allowing them to log into their Telegram accounts, in addition to the mobile app, and chat with their buddies in a more comfortable matter.

For your convenience, the software is distributed as pre-built binaries that work on computers supporting either of the 32-bit (x86) or 64-bit (x86_64) hardware architectures. The source code of the app is available via GitHub.

Installing Telegram Desktop is out of the question, as after downloading the file that corresponds to your hardware platform, and unpack it, you will only have to double-click on the Telegram file to open the app.

Getting started with Telegram Desktop

Click the big blue ‘Start Messaging’ button to login. The application will ask for your telephone number, which if it is already registered, the application will open and you can start chatting. If the phone number is not registered with Telegram, you can register it from within the app in two simple steps.

From the settings screen, you will be able to add a photo of you, so your contacts can easily recognize you, as well as to choose a unique username, enable or disable desktop notifications, message previews, sounds, automatic updates, viewing of the sender’s name, and other chat options.

Unfortunately, there’s no system tray area integration, and we prefer to install the application system wide instead of running it from a folder. If these two issues will be implemented in upcoming versions, Telegram Desktop will become our favorite chat software and we will give it five stars.

Source

​Revised Linux Code of Conduct is Now Officially Part of Linux | Linux.com

Some organizations might not include their Code of Conductin the software source code tree, but the Linux developers aren’t your ordinary group. In the Linux 4.19 announcement, Greg Kroah-Hartman, Linux’s leader for this release and maintainer of the stable branch, added in the Code of Conduct and some minor changes.

Kroah-Hartman explained why the Linux developers felt they needed to add a Code of Conduct:

We all need to remember that, every year new people enter our community with the goal, or requirement, to get stuff done for their job, their hobby, or just because they want to help contribute to the tool that has taken over the world and enabled everyone to have a solid operating system base on which to build their dreams.

.. That goal has been, is now, and will continue to be to produce the best possible code. Some in the community have feared that a Code of Conduct would force Linux to accept poor-quality code just to fulfill some kind of quota. In his keynote speech at the Open Source Europe Summit in Scotland, Jon Corbet, Linux kernel developer and editor of LWN, replied to this: “These fears will prove to be unfounded.”

Read more at ZDNet

Source

NodeJS with Redis | Linux Hint

Redis is widely used as a caching server. At times, Redis is used as a database as well. It stores the data in a computer’s memory (RAM) directly. The advantage is that it can access the data very fast. The disadvantage is that the data it stores is temporary. If you reboot your computer, then all the data will be gone.

In this article, I will show you how to use Redis with Node.js. I will be using Node.js 10.x on Debian 9 Stretch in this article. But any modern version of Node.js should work. So, let’s get started. To get started you must have the following requirements:

  • js and NPM installed on your computer.
  • Redis installed on your computer.

You should be able to find articles on installing Node.js and NPM on your desired Linux distribution on LinuxHint.com. I’ve written a dedicated article on installing Redis on Ubuntu/Debian.

Starting Redis:

You can check whether redis service is running with the following command:

$ sudo systemctl status redis

As you can see, redis service is running.

If redis service is not running in your case, start it with the following command:

$ sudo systemctl start redis

Initializing the Project Directory:

First, create a project directory (let’s call it node-redis) with the following command:

Now navigate to the project directory ~/node-redis

Now create a package.json file:

Installing Redis Node.js Module:

There are many Redis clients for Node.js. The official website of Redis recommends redis. You can easily install the redis Node.js module using NPM (Node Package Manager).

To install redis Node.js module, run the following NPM command:

$ npm install redis –save

redis Node.js module should be installed.

Connecting to Redis using Node.js:

In this section, I am going to show you how to connect to Redis data store using Node.js.

First, create a new file connect.js in your project directory and type in the following commands in it:

Here, line 1 imports the redis module.

Line 2 creates a Redis client. As I am running Redis on the same computer as the Node.js programs are running, I didn’t have to specify the hostname or IP address and port where the Redis server is running. If you’re running Redis server on a different computer or server, then you will have to specify it here.

For example, let’s say, your Redis server is running on port 6379 on a computer which has the IP address 192.168.10.87, then you would write line 2 as:

let client = redis.createClient(6379, ‘192.168.10.87’);

Line 4-6 is used to print a message to the console if we can connect to the Redis server.

Line 9-10 is used to print a message to the console if we are unable to connect to the Redis server.

Now, run the connect.js Node.js script as follows:

As you can see, I am connected to the Redis server.

Storing Data in Redis Using Node.js:

In this section, I will show you how to store data (key-value pairs) in Redis data store with Node.js

First, create set1.js file in your project directory and type in the following lines in it:

Here, line 1 and 2 are the same as in connect.js.

On line 4, I set the callback function of the connect event to storeData. So, when our Redis client is connected to the Redis server, the function storeData is called.

On line 6-10, the callback function storeData is defined.

On line 7 and 8, I used set(key, value) method of RedisClient object to set the key name and country to value Mary Smith and USA respectively.

Now, run set1.js as follows:

As you can see, the key-value pairs are set.

Retrieving Data from Redis Using Node.js

In this section, I will show you how to retrieve data from Redis data store using Node.js.

First, create a new file get1.js in your project directory and type in the following lines:

Here, on line 4, getData function is set as a callback function for the connect event of RedisClient.

On line 6-9, the getData function is defined.

On line 7, I called the get(key, callback) method of RedisClient object. name here is the key of the value you want to retrieve. get() method calls the printValue callback function before it finishes running.

On line 11-18, the error first style callback function printValue() is defined. It accepts 2 arguments, error and result. If any error occurs, then it’s printed on the console and the function exits. If there’s no error, then the value for the certain key is printed on the console.

On line 8, the same thing happens.

Now, run get1.js as follows:

As you can see, the values for the keys name and country is retrieved from the Redis data store.

Storing Objects in Redis with Node.js:

You can store JavaScript objects in Redis data store.

First, create a new file set2.js in your project directory and type in the following lines in it.

Here, everything is the same as in set1.js file that I already explained earlier. The only difference is, I used client.hmset(key, object) method of RedisClient object in setData() callback function.

In line 7-10, I used client.hmset() method to store a JavaScript object in the Redis data store against the key C011.

Now run set2.js Node.js script as follows:

As you can see, the object is stored.

Retrieving Objects from Redis with Node.js:

In this section, I am going to show you how to retrieve objects from Redis data store.

Fist, create a new file get2.js in your project directory and type in the following lines in it.

Here, everything is the same as in get1.js script I explained earlier.

You can retrieve a JavaScript object very easily with client.hgetall(key, callback) method of RedisClient as in line 7-9.

Now run get2.js Node.js script as follows:

As you can see, the JavaScript object is retrieved from the Redis data store.

I showed you how to setup Redis with Node.js in this article. Now you should be able to read the redis Node.js module documentation at http://redis.js.org and learn more about it. Thanks for reading this article.

Source

How to Design a Logo Online – DesignEvo Logo Maker Review – NoobsLab

The logo creates a small window through which people recognize the identity of your company. Now to create a logo is a very important step for building brand identity, especially if you start an online business. Find yourself that you do not have any knowledge of Photoshop or any other design program, then think about hiring a professional designer to design your own logo, but find that you have a limited budget. Is there any other way to do it? In the post, we will talk about a free online logo service called

DesignEvo

Unlike other graphic design software, DesignEvo works online without downloading so you can design a special logo directly in your browser. DesignEvo contains thousands of professionally designed templates that can be easily modified to matches your brand, your company or your website.

DesignEvo is easy to use, and any computer user with internet knowledge can design his own logo. To get started, click the “Make a Free Logo” button on the homepage. It will take you to a new page where you will find more than 7000 ready-to-use templates. There are many categories available such as agriculture, animals, pets, technology, food, fashion, and education. You can also use the search box to find any particular logo. Once the logo template is selected, you will be taken to the editing canvas where you can make edits to your logo.

How to Edit Logo Text

To make the logo your own, you need to enter the name or slogan of your business. There are 100+ text fonts available from which you can choose to use and edit with a different style. By changing the size, color, spacing, alignment or adding a letter outline and curved effect, you will get the unique and perfect typography.

Add Icons and Shapes

DesignEvo offers millions of searchable icons. By entering a few keywords, you will find the icons that match your needs. Beyond that, DesignEvo also comes with many shapes, lines, symbols, banners, and other graphics. You can select the one you want and scale it to almost any size without loss of quality as they are all in vector format.

Preview Your Logo before Downloading

When you have finished editing the logo, you can preview how it will look like when placed on different projects. The preview function in DesignEvo offers you a variety of models so you can preview your logo on the business card, t-shirt, letterhead, website, company wall, etc.

Download Your Logo

DesignEvo offers three plans for you when you are going to download your logo. The free plan allows the free download of logos in JPG or PNG format with a maximum resolution of 500 x 500 pixels. For online uses such as putting it as a website banner or social media profile, this is enough. The basic plan costs you $19.99, which will let you download high-resolution logos in 5000px with a transparent background. For $39.99, you can even download a plus logo in vector format (PDF and SVG), and with copyright ownership of your logo. The prices are quite affordable and economical. You can see more details here.

Summary

DesignEvo provides a simple and effective solution for online logo creation. The most important thing is that you can design beautiful logos without the knowledge of any graphics editing program. With the templates provided in the gallery, vast collections of graphics and handy editing feature, everyone who needs a logo can play with DesignEvo and get a really impressive design in a fraction of the time.

Source

Linux Kernel 4.19 Released, Linus Torvalds Is Back, Linspire 8.0 RC1 Is Out, IPFire 2.21 Now Available and Recently Discovered Apache Vulnerability

News briefs for October 22, 2018.

Greg Kroah-Hartman released
Linux kernel 4.19
this morning and handed the kernel tree back to
Linus, writing “You can have the joy of dealing with the merge window.”

Linus Torvalds “is meeting with Linux’s top 40 or so
developers at the Maintainers’ Summit”, at the Open Source Summit Europe in
Edinburgh, Scotland, ZDNet
reports
. He isn’t scheduled to speak, but “this is his first step back
in taking over Linux’s reins.”

Linspire
8.0 RC1 was released
over the weekend. The stable release is
expected in December (don’t use this release in production environments),
and RC2, which should be more feature-complete, is expected in November.
Among other changes, in this version, iMac Pro support has been improved
and Oracle Java is now in the repositories. It uses the MATE 1.20.1
desktop, kernel 4.15 and Chrome 69.

IPFire 2.21 – Core Update 124 is out, and according to the release
announcement
, it “brings new features and immensely improves security and
performance of the whole system”. It’s now available on AWS
EC2
, is
updated to kernel version 4.14.72 and the security of its SSH daemon has
been improved, among other new features.

A recently discovered Apache vulnerability could affect thousands of
applications. Dark
Reading reports
that the issue is with “the way that thousands of code
projects are using Apache .htaccess, leaving them vulnerable to
unauthorized access and a subsequent file upload attack in which
auto-executing code is uploaded to an application.”

Source

NVIDIA GeForce RTX 2070 Linux Gaming Benchmarks Review

 

 

Last week following the launch of the RTX 2070 Turing graphics cards, I carried out some initial RTX 2070 compute benchmarks including of TensorFlow and more common OpenCL/CUDA workloads. The GPU compute performance for this $499+ Turing GPU was quite good and especially for INT16 test cases often beating the GTX 1080 Ti. Available now are the Linux gaming benchmarks for the GeForce RTX 2070 compared to an assortment of other NVIDIA GeForce and AMD Radeon graphics cards on Ubuntu 18.10.

 

 

As a quick recap, the GeForce RTX 2070 has 2304 CUDA cores, 1410MHz base clock, 1620MHz boost clock, and is capable of 42T RTX-OPS and 6 Giga Rays/s for ray-tracing, granted it will likely be some time before seeing any serious Linux games with RTX/ray-tracing support. The GeForce RTX 2070 graphics cards rely upon 8GB of GDDR6 video memory yielding 448GB/s of memory bandwidth.

 

 

The base pricing of the GeForce RTX 2070 starts at $499 USD while the Founder’s Edition retails for $599. With not receiving a review sample, I ended up buying the EVGA GeForce RTX 2070 XC GAMING (08G-P4-2172-KR). This EVGA GeForce RTX 2070 model ended up costing $549 USD and was the cheapest model available on launch day but since then more RTX 2070 graphics cards from NVIDIA’s AIB partners have become available, including around the $500 price point.

 

 

These GeForce RTX 2070 Linux gaming benchmarks were done using Ubuntu 18.10. All of the NVIDIA tests were done with the latest NVIDIA 410.66 driver while on the Radeon side was using the Linux 4.18 kernel and Mesa 18.2.2 as shipped by Ubuntu 18.10; while normally I am using Mesa Git for Radeon gaming benchmarks, currently there are several regressions leading to lower performance, etc. So for this comparison Mesa 18.2.2 + Linux 4.18 as the latest stable code makes the most sense.

 

The graphics cards freshly tested this comparison included the:

 

– GeForce GTX 970

– GeForce GTX 980

– GeForce GTX 980 Ti

– GeForce GTX TITAN X

– GeForce GTX 1060

– GeForce GTX 1070

– GeForce GTX 1070 Ti

– GeForce GTX 1080

– GeForce GTX 1080 Ti

– GeForce RTX 2070

– GeForce RTX 2080 Ti

– Radeon RX 580

– Radeon RX Vega 56

– Radeon RX Vega 64

 

 

A variety of Linux-native OpenGL and Vulkan games were tested on the brand new Core i9 9900K system, making for an even more interesting comparison. All of the benchmarks were carried out via the Phoronix Test Suite and in addition to the raw gaming performance are also performance-per-Watt and performance-per-dollar metrics.

 

Before getting to the results, if you appreciate all of my Linux hardware benchmarking, consider showing your support by joining Phoronix Premium to get access to the site ad-free, multi-page articles on a single page, and other benefits — that and PayPal tips also make it possible to purchase hardware such as the EVGA RTX 2070 used in this review.

Source

How create Mysql User, Database and set privileges to user on linux?

How create Mysql User, Database and set privileges to user on linux?

How create Mysql User, Database and set privileges to user

[ravi@linuxforfreshers.com~]$ mysql –u
root –p

password:

mysql> create user ‘ravi’@’localhost’
identified by ‘123456’;

mysql> create database if not
exists `ravidb`;

mysql> grant all on ravidb.* to ravi@linuxforfreshers.com
identified by “123456” with grant option;

[ravi@linuxforfreshers.com~]$ mysql ravidb
-u ravi -p

mysql> show databases;

mysql> use ravidb;

Source

Linux Today – Chrome for Linux, Mac, and Windows Now Features Picture-in-Picture by Default

Oct 22, 2018, 04:00 (Other stories by Marius Nestor)

Google’s engineers have been working for months to add Picture-in-Picture (PiP) support to the Google Chrome web browser, but the long-anticipated feature is finally here, enabled by default in the latest version for Linux, Mac, and Windows operating systems. The feature lets you detach a video in a floating window so you can watch it while doing something else on your computer. Picture-in-Picture (PiP) in Google Chrome works only on websites that implement this feature in their media player, but it can be enabled on any website with the Picture-in-Picture extension created by Fran??ois Beaufort. For YouTube videos, Chrome users will have to right-click twice on the playing video and choose the “Picture in picture” option.

Complete Story

Source

Install mod_deflate on Apache – LinuxAdmin.io

How to install mod_deflate

Mod_deflate is an apache module. Prior to having mod_deflate it was mod_gzip. Post apache 2.0 mod_deflate is used, it provides a slightly better compression than mod_gzip. It allows the size of certain file types to be compressed which in-turn allows clients to be able to download these files faster. This will cause the site itself to load faster for the clients as well as part of the formula for better page ranking. You can read more about mod_deflate on Apache.org.

Requirements:

This guide assumes you already have Apache running as a webserver. If you don’t, please see Install Apache on CentOS

Enable the mod_deflate module

The deflate module is part of the apache core package, so there is no need to compile additional modules, all that is required is to enable in the Apache configuration.

Verify its not already loaded:

# httpd -M 2>&1|grep deflate
#

Edit the main Apache configuration:

nano /etc/httpd/conf/httpd.conf

Un-comment the following line:

LoadModule deflate_module lib/apache/mod_deflate.soRestart apache to confirm the module loaded

service httpd restart

Check for the loaded module again, you should see it return a result

# httpd -M 2>&1|grep deflate
deflate_module (shared)

Configure mod_deflate

Create a new configuration file:

nano /etc/httpd/conf.d/deflate.conf

Add the following

<filesMatch “.(js|.css|html|txt)$”>
SetOutputFilter DEFLATE
</filesMatch>
DeflateCompressionLevel 7
DeflateMemLevel 8
DeflateWindowSize 10

DeflateCompressionLevel – this is the compression level applied, the default is 9, which is the highest level. The higher the compression level the more CPU it will use.
DeflateMemLevel – The amount of memory zlib, the compressing library can use. The default value is also 9, which is the highest.
DeflateWindowSize – The compression window size. By default the value is 15 which is the highest level.

This will compress .js, .css, .html, and .txt files. Attempting to compress images will actually return a larger file size so mod_deflate only really provides an advantage on text based files.

Once you have added the configuration settings, you would then just restart Apache to load everything in.

service httpd restart

That is it for adding mod_deflate to Apache.

Jun 26, 2017LinuxAdmin.io

Source

WP2Social Auto Publish Powered By : XYZScripts.com