Přenos 2FA tokenů z FreeOTP do nového zařízení
Jak relativně snadno přenést či zazálohovat tokeny pro dvoufaktorovou autentizaci (Two Factor Auth) z Android aplikace FreeOTP (https://freeotp.github.io/), která to sama o sobě neumožňuje.
…Jak relativně snadno přenést či zazálohovat tokeny pro dvoufaktorovou autentizaci (Two Factor Auth) z Android aplikace FreeOTP (https://freeotp.github.io/), která to sama o sobě neumožňuje.
…Jak spustit ntopng v kontejneru pod Fedorou 31 pro monitorování lokálního síťového rozhraní s použitím docker-compose.
…If you need to know how to turn off modern Linux systems, which run systemd, without root or sudo programmatically (Python or Bash shown here) or from a command line. Without using deprecated approaches like HAL and/or ConsoleKit. Then read this my blog post.
…In this blog post I will show you how to update UEFI BIOS on your Lenovo Thinkpad laptop without need to boot into Windows or use bootable CD/DVD.
ThinkPad T440s brings a new big clickable touchpad that also contains tree buttons you use when manipulate with trackpoint. This post shows how to enable scrolling with TrackPoint on this laptop under Fedora 21.
I’ve just switched my laptop Lenovo ThinkPad L430 to the Fedora 20 and found that the TrackPoint is not working (again!).
dmesg shows only bunch of errors like this one psmouse serio1: Touchpad at isa0060/serio1/input0 lost sync at byte 6
In Ubuntu, there was a user PPA repository called ThinkPad Extras that contains a package tp-trackpoint-elantech, that solves the problem. Fedora doesn’t have such package. But the package is not any magic black-box and basically does two things that will be described next. Original info what the package does can be found at the ubuntuusers.de wiki page about TrackPoint. Unfortunately, the procedure must be slightly modified, because in the Fedora has the psmouse module build in the kernel and it is not loaded as an external module.
Create a /usr/share/X11/xorg.conf.d/11-trackpoint-elantech.conf which will contain:
Section "InputClass"
Identifier "Elantech Trackpoint"
MatchProduct "PS/2 Generic Mouse"
MatchDevicePath "/dev/input/event*"
Option "EmulateWheel" "true"
Option "EmulateWheelButton" "2"
Option "EmulateWheelTimeout" "200"
Option "YAxisMapping" "4 5"
Option "XAxisMapping" "6 7"
EndSection
Open the /etc/default/grub and add psmouse.proto=bare option to the GRUB_CMDLINE_LINUX and then run the “grub2-mkconfig -o /boot/grub2/grub.cfg”
For example, a snippet of my GRUB_CMDLINE_LINUX:
GRUB_CMDLINE_LINUX="psmouse.proto=bare vconsole.font=latarcyrheb-sun16 ....
and then run as root:
$ grub2-mkconfig -o /boot/grub2/grub.cfg
And it should be all.
Note: This blog post was updated. The first (original) part describes an unsuccessful installation of the proprietary Catalyst driver on Fedora 20 and how to switch back to the open-source Radeon driver. The (new) second part, describes how to modify Catalyst driver’s source code and walk around the API incompatibility in the Fedora 20 kernel headers.
Update 7.2.2014: The current Latest Beta Driver (amd-catalyst-14.1-betav1.3) seems to be working well, without a need of additional modifications! Hooray!
Yesterday, I tried to install the official “AMD Catalyst™ 13.12 Proprietary Linux x86 Display Driver” (fglrx) from ATI’s support page.
I checked the release notes for system requirements:
I checked my system:
$ Xorg -version
X.Org X Server 1.14.4
Release Date: 2013-10-31
X Protocol Version 11, Revision 0
$ uname -a
Linux localhost.localdomain 3.11.10-301.fc20.x86_64
Everything looked promising.
I downloaded the driver, started the installation and… saw an error message.
Sadly, it turned out that Catalyst driver cannot be installed because the kernel module compilation failed – Fedora 20 kernel headers have different API than the Catalyst 13.12 driver expects.
This was the good part of the story.
The bad part was that after reboot, I found out that my display uses resolution 1024×768 instead of 1920×1080 and that the Cinnamon crashes immediately after logging in. Quickly I found that instead of Radeon, the Vesa driver is used.
It took me a some time to figure out what the ATI Catalyst driver installer have done in system and fix it.
So in short, when you wanna switch from the proprietary ATI Catalyst (fglrx) driver back to the open-source Radeon driver. Even if the installation of the ATI Catalyst (fglrx) driver wasn’t successful! You have to:
You may remove some other files, generated by the installer, too:
Update: Or you could use the uninstall script (/usr/share/ati/amd-uninstall.sh), if it was installed.
I’ve looked at the thread linked by Castagna in the comments below and apply the mentioned method. And it works!
Thank you Castangna!
What I’ve done:
I’ve started the Catalyst installation script again. It failed again as expected. But it has done everything I’ve needed: It has created the previously deleted /etc/X11/org.conf and blacklisted the Radeon driver again.
The compilation and installation of the module I’ve done by hand. After the (failed) installation, I have a fglrx driver module’s source code on my system in /lib/modules/fglrx/build_mod/, so I’ve just modified it, compiled it and installed it by hand. There are the used steps:
Note 1: As tac mentioned in the comment bellow, you must have kernel-devel, kernel-headers and gcc packages installed:
yum install kernel-devel kernel-headers gcc -y
Note 2: Check the comments below, Andrey posted a patch there.
Note 3: To be able to load the fglrx module, you have to disable the secure boot feature in BIOS (if you have it enabled).
Update (7.2.2014): The current “Latest Beta Driver” (amd-catalyst-14.1-betav1.3) with date 2/1/2014 (where the 2 is month and the 1 is day – oh, I really hate this date format order!) seems to be working out of the box without a need of this modifications!