Installation, configuration and testing of Fedora 21 Workstation on a personal or gaming computer
On December 9th, a new Fedora 21 Workstation was released, which, according to a set of parameters, can be called the “freshest and most stable” Linux desktop.
During the use and testing of Fedora, I have gained deep sympathy for this platform and want to share this warmth and knowledge about it with you.
Over the course of the year, I watched her work as a working and playing place in different situations - from stations with dying iron to a new gaming laptop Asus G750JM with Nvidia Optimus. ')
Collected notes turned out to be somewhat rough, trying to cover both Linux newbies and experienced users with developers. Excuse me. I want to bring a lot of information in one article: on the general configuration and installation of Fedora, and on the Nvidia Optimus technology on laptops, wi-fi with proprietary drivers, on setting up nice fonts in Java and IDE from JetBrains, launching games on the Steam on a discrete video card , the results of comparative testing of games, graphics and browsers between Fedora and Windows 8.1, and even the establishment of one "absolute" record.
I want to note that fresh desktop Linuxs also feature high-quality support for high-resolution displays with good drawing of fonts and window elements, provide the highest degree of various personal settings, “hacks” and possibilities of operating with applications. All this allows not only to significantly improve the efficiency of their work, but also to do it comfortably for the eyes.
Since the themes of personal effectiveness, themes that are comfortable for the eyes and various “hacks” are quite extensive and specific, in the future I will devote two or three in-depth articles to them. And in this document there will be a general squeeze of information about how to configure and use Fedora 21 in general.
A quick tour of the features of Gnome 3.14, which is the main runtime environment in Fedora 21 Workstation:
Fedora 21 Workstation is now positioned as an excellent workstation for developers with minimal distraction from work. The system includes a large number of necessary tools, as well as the latest software for use, tests and environmental studies.
Among the notable advantages of Fedora, I want to point out the lack of the need to connect third-party unreliable repositories to get fresh software. The overwhelming majority of useful programs are already in the rpmfusion repository and are well tested for compatibility with the main repository of Fedora. This has a very good effect on the stability and predictability of the entire system.
Of course, it should be noted that the most recent software carries not only new opportunities and advantages in work, but also sometimes "grows" problems with growth (as, for example, it happened some time ago with Gnome 3). However, in most cases, such problems are solved either by using an alternative (in my case then it was KDE), or in other ways.
Returning to Fedor's reliability: starting to work with it after other Linux distributions, you can note a decrease in the speed of updating and installing packages, since The system includes by default additional verification steps before and after installing packages. Before installation - execution of test transactions without making changes to the disk, after - verification of the completed transaction. As I mentioned above, Fedor as a whole, in my opinion, is a very reliable distribution kit, and even in some situations of work on a failed gland, it survives well on it.
Also note that more and more software vendors recently, including proprietary ones, are releasing ready-made packages and testing them specifically for Fedora (and not just for Ubuntu). Among them, Viber, Dropbox and others.
Torrents of all available versions of Fedora 21 images, including the so-called "backs", in which, instead of Gnome, other desktop environments are used: KDE, Xfce, LXDE, Mate, etc .: torrent.fedoraproject.org And more information about the "backs" can be found here: spins.fedoraproject.org
Video of the installation process of Fedora on the workstation and the first acquaintance with it:
Do not forget before starting and installing from a flash drive to check in BIOS the variable "Secure Boot Menu" in the section "Security" - it must be turned off for normal installation of the new system. Also in BIOS for convenient work with a connected monitor, you can enable the “Launch CSM” option in the “Boot” section. At least so these variables look on my laptop.
Now go to the sequential configuration of the system and programs in it.
Sequential tuning
To earn Wi-Fi on a laptop if it doesn't work
If your Wi-Fi chip belongs to the Broadcom's BCM4311-, BCM4312-, BCM4313-, BCM4321-, BCM4322-, BCM43224-, BCM43225-, BCM43227- or BCM43228 series, you will need to install proprietary drivers to make it work correctly.
You can see your card model in the terminal using the lspci command. I have a Broadcom Corporation BCM4352 802.11ac Wireless Network Adapter (rev 03)
After we made sure that our card belongs to the above series, we will install drivers for it. You will need internet via an Ethernet cable or you will have to remove the packages manually through another computer. Below I describe the simplest option when you have internet access via cable.
First you need to connect the rpmfusion repository - information about this is in the article below. After connecting it, go back here.
So, the recommended driver installation option for our wi-fi is as follows:
su - -c "yum install kmod-wl"
The team will ask for the root password. To the question “install with dependencies” answer “y”.
su - -c "yum reinstall kmod-wl akmod-wl" su - -c "yum install akmods kernel-devel" su - -c "yum update"
Reboot.
su - -c "akmods"
(this command reassembles the module for wi-fi, here you may need the akmodsbuild command from the user) Reboot.
su - -c "modprobe wl"
(we load the module for wi-fi)
After that, the wi-fi module finally worked and I was able to disconnect the Ethernet wire, feeling freedom.
For information, I'll leave here one of the fresh, but not proven, recommendations for installing this same driver:
su - -c "yum install broadcom-wl kmod-wl akmod-wl rfkill" su - -c "rfkill list" su - -c "rfkill unblock all"
Further actions are performed after installing Fedora on the hard disk and booting from it.
First, we are updating the system.
It is important! Without updating the system, you may get in trouble when installing the following packages, which are necessary for compiling additional modules and other inconsistencies.
To do this, press Win and write the first letter "te" or "those" (Gnome searches for both Russian and English program names simultaneously), then it remains to press Enter and start the terminal. This is information for newcomers to Gnome 3. Then we go into the execution of commands from the root:
su -
You can speed up the loading of packages from the repository, if you choose the fastest mirrors. To do this, it is enough to install an addition to yum, which tests the response speed of the server and switches to the fastest ones:
yum install yum-plugin-fastestmirror
And finally, we update all installed packages in the system:
yum update
Slow down the mouse
Some of us have mice that support different sensor resolutions (1000 ... 8000 dpi). In Linux, it may turn out that your mouse is too nimble, and it is impossible to reduce its speed using ordinary settings in graphical mode.
For these cases, there is a simple solution to slowing the pointer: It is necessary to register the config for X, in which you specify braking as a constant variable.
In my case, double braking is enough, displayed in the ConstantDeceleration value. It looks like this:
It is possible to set a slowdown through the xinput command, without resorting to configuration x, but this option is limited to the mouse pointer numbers in the system, which change when the mouse is pushed to another port or sometimes when it is restarted.
If you put Fedora in a virtual machine (VirtualBox)
Then in the virtual machine itself in the menu select Devices - Insert Guest Additional CD image VirtualBox downloads the desired guest OS add-on image file. The virtual Fedora will detect the “inserted disk” and will offer an autorun for the installer located on it. After launching this program and proposing to login with a password root, do not forget that you may need to switch back to the English layout (Alt + Shift), since in Fedor there will be Russian input by default (now with the Russian locale selected during installation, Russian is the same language as the default keyboard input).
The results of the installation of the guest OS add-ons installation will be displayed in the same terminal. When modules are successfully installed and after rebooting, Fedor’s guestbook will be convenient for use in a virtual machine - respond to changes in the size of its window, correctly switch to Fullscreen, etc. And it will be possible to proceed to further configuration or experiments.
I remind you that switching to system consoles in a virtual machine is not performed by the usual Ctrl + Alt + F1..F7, but with the help of the host key: right control + F1..F7
General system settings
Add the ability to use sudo
We perform from the root
usermod sampleusername -a -G wheel
where sampleusername is your user login More information on this topic: fedoraproject.org/wiki/Configuring_Sudo After executing the command, log out and log in again.
Tip for newbies: 1. To exit the root in the console, type exit, then either exit again, or close the window (with the mouse or hotkey Alt + F4). 2. To exit Gnome, click right next to the triangle or next to it (it also responds by dropping this menu), then click on the name of our user, “Finish Session” appears below it, click on this item. 3. To enter and correctly specify the password, if you have it in the English layout, do not forget to switch to Alt + Shift again.
After that, all the commands “from root” can be executed via sudo.
Install Midnight Commander (mc)
The MC is very convenient and familiar to me, so on any new system I start with its installation.
sudo yum install mc
If you use MC and are used to getting out of it using F10, then in the Gnome terminal you need to disable the shortcut to open the menu of the Gnom terminal using F10: “Edit” - “Settings” - Enable shortcut for accessing the menu (by default F10) Or reassign it.
Font in the system console
If you chose Russian as the main language of the system during installation, then the system console will also be with the correct Russian.
However, if you set it by selecting English, then Russian characters in the system console will be displayed as squares or redoes. To "cure" it is necessary to prescribe the line in /etc/profile.local
setfont Cyr_a8x16
Gnome 3 - Default Desktop Environment
The main redistributable version of Fedora 21 Workstation is by default based on the Gnome 3.14 environment. This solution has its pros and cons.
Among the benefits - interesting for some of the dynamics of working with windows, desktops, and information. The ability to search simultaneously and programs, and services, and their contacts, and a lot of other information.
But here I will describe what can be done with it for a cozy living. :) If you do not plan to work with Gnome or use the "spin" with another working environment, you can skip this section.
First of all - a utility for configuring Gnome 3 and fonts
Install:
sudo yum install gnome-tweak-tool
Run: Win key, then type "tw" or "add", Enter Tab (button) "Fonts". On it, we can increase all fonts by 1-2 points for better readability, and also choose the anti-aliasing (hinting) option, which is better suited for our monitor and personal preferences. I prefer the “slight” hinting option.
Screenshot of the font fonts window with the specified changes:
Terminal window with open MC after applying changes:
Minimize-maximize windows - buttons and buttons
By installing the Gnome tweaking utility, we can control the display of buttons in the window titles.
In the Gnome Tweak Tool (also called “Advanced Options”) in the “Windows” section, you can turn on the display of the usual “Expand” and “Minimize” buttons in the window header, next to the “Close” button. I do not use these buttons. In Gnome, the standard window shutdown shot: Win + H He also calls me by clicking on the additional button of the mouse. It is also convenient to use Shotkeys Win + arrow, they maximize-restore windows in different directions.
Screenshot Firefox in Gnome 3 without the specified additions:
And after installing add-ons that extend the usable space:
There are other add-on options similar to the above. In general, there are many useful additions to the Gnome. You can find them on the site extensions.gnome.org For example, “Bumblebee” for owners of laptops with Optimus technology, which shows the use of a discrete card in the system with an icon (I will install and configure Nvidia Optimus and Bumblebee benchmarks separately below). Or the addition of accelerating animation work with windows in Gnome. There are reviews - what exactly is it worth to put out of add-ons on Gnome 3. So, if this environment is nice for you, do not be lazy to familiarize yourself with them by entering them through the key phrases you are looking for.
Often, people use the recovery of the usual type of environment - the bottom panel with running programs, the usual tray with a bunch of icons of running programs and an extended menu for operations on the window through it. I don’t need it, as I try to minimize any distractions, and the idea of hiding icons suits me perfectly. In this case, alerts in the system are made unobtrusively and intelligibly, they are not so easy to miss.
The Nautilus File Manager Subtleties
By default, sorting does not set the folder to the list of files, everything is displayed in a mix. We fix: Nautilus - Options -> check the checkbox “Place folders before files”
Also, I prefer to navigate the computer without double clicking the mouse. If you agree with me that the action in 1 click is more pleasant - in the same window switch to the “Behavior” tab, and check in “Behavior” - “Open objects with one click”. After that, you can close the settings window.
The Nautilus file manager has an unobvious opportunity to add your own “entry points” - bookmarks to the addresses you need. To do this, being at the right address or in the right directory, press Ctrl + D or select the icon with horizontal lines with the mouse, and there in the menu click on “Add a bookmark to this address”. After that, a tab with your address or folder will appear at the bottom left. You can organize them by dragging the mouse, delete them by calling the context menu, rename or perform other required operations.
Add software package management tools
The standard tool for managing programs in Gnome is not for packages, but for selected programs. To be able to more fully study the repositories of available software and manage them, you must install Yumex or use the pre-installed Apper in KDE. Install Yumex:
sudo yum install yumex
Network Accounts - Sync with Google Mail, Contacts and Calendar
The Dwarf has built-in excellent integration with your basic data from your Google account, as well as with many other network services. Just go to the main menu of the system and write “Set” - you will be prompted to select the setting of the “Network accounts” section. By specifying your Google access settings and confirming them with a code (if you have two-step authorization), you get integration of the calendar, tasks, contacts and mail with your system. So, when you click on the time will appear information about your upcoming calendar events. And when you drive in a part of the name of one of your contacts in the main menu of the system, his card will appear right before your eyes. Then you can contact him in 2 clicks. And the convenience of network records is not limited to this. Try it!
Fonts
I have LCD monitors and I prefer fonts with a slight smoothing. From here variables in the following config. If you like a different smoothing value (medium, strong or without it), you can substitute the appropriate value for the hintstyle variable instead of hintslight: hintmedium, hintfull or hintnone. You may also need to make changes to the lcdfilter variable. But you can read more about this, for example, here wiki.archlinux.org/index.php/font_configuration
The following config text improves fonts in a variety of programs, including Firefox, KDE with the default setting “As in the system” and in programs launched from under it.
You need to create the /etc/fonts/local.conf file with the following contents:
<?xml version='1.0'?><!DOCTYPE fontconfig SYSTEM 'fonts.dtd'><fontconfig><matchtarget="font"><editmode="assign"name="rgba"><const>rgb</const></edit></match><matchtarget="font"><editmode="assign"name="hinting"><bool>true</bool></edit></match><matchtarget="font"><editmode="assign"name="hintstyle"><const>hintslight</const></edit></match><matchtarget="font"><editmode="assign"name="lcdfilter"><const>lcddefault</const></edit></match><matchtarget="font"><editmode="assign"name="autohint"><bool>false</bool></edit></match><dir>~/.fonts</dir></fontconfig>
After this, we exit the session and enter again. The system is now fully aware of how smoothing fonts you want to use.
In some cases, it is necessary to change the standard dpi of the screen so that the fonts and graphics after the above settings are really excellent. I still leave this moment to you for self-study, if you realize that you need to perform it in order to gain happiness on your system.
We replace thin fonts in IDE from JetBrains (IntelliJ, PyCharm and others) and in Java
Although some people like exactly the version of thin fonts, there is a large group of people who need a more "dense", weighty font rendering. And if, for example, in Eclipse with “dense” fonts, everything is in order, then here are the popular development environments from JetBrains bear the imprint of Java and sometimes cause rejection of their own fonts.
Pycharm with default font - Gnome 3
Pycharm with default font - KDE
Pycharm with the font change described below - KDE
Below, I will describe one of the most workable solutions to this problem (suitable for Mac), with the result that we get “dense” fonts in the programs we need, which some developers think looks much better than in Windows.
The basic idea is simple - if Java does not process the font hinting instructions correctly, then you just need to delete these instructions from the font.
Here is how it is done:
1. Choose your favorite fonts that you want to use in IntelliJ IDEA and other IDEs of this line. For example, Liberation Sans and Liberation Mono.
2. Install the font editing program:
sudo yum install fontforge
3. Launch it and open the font we need to change. For example, the following files are in the / usr / share / fonts / liberation / directory: LiberationSans-Regular.ttf LiberationMono-Regular.ttf
4. Press Ctrl + A, than select all the characters of the font. In the "Hints" menu, select the item "Clear instructions".
5. In the “Element” - “Font Information” menu, add the number “2” to all fields of titles, so that “LiberationSans2” stands in the “Font Name” field. Click OK. Immediately, the program will report that the font does not have a unique identifier, but carries the old one. Click on the "Change" button, and our font will generate a new UID.
6. Menu "File" - "Create Fonts". In the window that appears, on the right, click on the wrench icon and select the "Show hidden files" option. Then go to the home directory and create a folder in it. Fonts (if it is not there yet). Save our font with a new name (for example, LiberationSans2.ttf). I usually choose the type of saved TrueType file. If there are self-intersection type error messages, click OK. Let him save.
Repeat for another selected font. Then we close both windows, refusing to save fonts in the sfd format.
Now our system has two new fonts that look good in the programs we need. Go to the settings IntelliJ and specify to use the new font in the editor.
Brief comparison of the result with the default font in Windows:
Full-sized screenshots with fonts for Gnome 3 and Windows 8.1
Full-sized screenshots with fonts for Gnome 3 and Windows 8.1
Unfortunately, such a font replacement does not work with the popular mind mapping program - Freemind. The fonts in it all the same remain thin.
However, there is a good commercial alternative to this program, which has no problems with fonts - XMind , which can be used both for free and after paying for some advanced features. You can get acquainted with it at www.xmind.net
If you want to try it, download for Fedory Portable version of the program from here www.xmind.net/download/portable Unzip the archive, go to the created folder of the type xmind-portable-3.5 ... then to the folder corresponding to the architecture of your distribution (for example, in XMind_Linux_64bit) and run the XMind file You can create a shortcut for the menu for this program in ~ / .local / share / applications by analogy with the labels from / usr / share / applications
Development environments and editors for the Python programming language
Clementine www.clementine-player.org/ru . Like, there is a plugin for Vkontakte. The installation methods of the plugin are also left to your research. Of the benefits - "easier" the next Amarok.
Windows Firefox — 3306 Chrome — 5525 Chrome — 6527
Linux Firefox — 5167 optirun Firefox — 5468 nosandbox Chrome — 7138 vblank + nosandbox Chrome — 7223 : Desktop Linux with Google Chrome 40 is faster than 99% of all Desktops tested so far.
Windows Firefox: 1281 (Canvas score — Test 1: 77 — Test 2: 630, WebGL score — Test 1: 274 — Test 2: 300) Chrome: 3172 (Canvas score — Test 1: 535 — Test 2: 1537, WebGL score — Test 1: 629 — Test 2: 471)
Linux Firefox: 1116 (Canvas score — Test 1: 188 — Test 2: 354, WebGL score — Test 1: 306 — Test 2: 268) optirun Firefox: 1546 (Canvas score — Test 1: 466 — Test 2: 372, WebGL score — Test 1: 361 — Test 2: 347) vblank . Chrome: 2506 (Canvas score — Test 1: 629 — Test 2: 614, WebGL score — Test 1: 677 — Test 2: 586) :
optirun -b primus google-chrome-beta --disable-gpu-sandbox --enable-webgl --ignore-gpu-blacklist
Chrome: 4240 (Canvas score — Test 1: 794 — Test 2: 2222, WebGL score — Test 1: 677 — Test 2: 547) : Your results compared to other users: You score better than 100% of all users so far! You score better than 100% of the people who use the same browser and OS!
, .
«» vblank_mode=0 +vblank_mode Chrome: 3363 (Canvas score — Test 1: 769 — Test 2: 1443, WebGL score — Test 1: 626 — Test 2: 525)
libGL error: Couldn't dlopen libudev.so.1 or libudev.so.0, driver detection may be broken. Finished uploading minidump (out-of-process): success = no error: libcurl.so: cannot open shared object file: No such file or directory /home/vyacheslav/.local/share/Steam/steam.sh: line 730: 3585 Segmentation fault