====== TouchPad ======
Для управления тачпадом используется команда synclient
Узнать список параметров можно по команде synclient -l
Включить клик по тапу synclient TapButton1=1
LXDE
Create a new file named /etc/X11/xorg.conf.d/99-synaptics-overrides.conf.
Then, in your favourite text editor, modify this file as such:
Section "InputClass"
Identifier "touchpad overrides"
# This makes this snippet apply to any device with the "synaptics" driver
# assigned
MatchDriver "synaptics"
####################################
## The lines that you need to add ##
# Enable left mouse button by tapping
Option "TapButton1" "1"
# Enable vertical scrolling
Option "VertEdgeScroll" "1"
# Enable right mouse button by tapping lower right corner
Option "RBCornerButton" "3"
####################################
EndSection
[[https://fedoraproject.org/wiki/Input_device_configuration]]
[[https://fedoraproject.org/wiki/How_to_enable_touchpad_click]]
[[http://wiki.russianfedora.pro/index.php?title=Touchpad]]
For more information on tweaking xorg.conf.d files, please read the man page:
man xorg.conf
====== Восстановление данных ======
Для восстановления данных используется утилита testdisk и photorec (оболочка qphotorec).
[[http://www.cgsecurity.org/wiki/Main_Page]]
======= DLNA =======
[[https://wiki.archlinux.org/index.php/ReadyMedia]]
Для включения сортировки по имени:
В файл /etc/minidlna.conf добавить строчку:
# always force SortCriteria to this value, regardless of the SortCriteria passed by the client
force_sort_criteria=+upnp:class,+upnp:originalTrackNumber,+dc:title
====== Samba ======
Проверка состояния расшаренных ресурсов:
smbstatus --shares
net usershare info --long
Информация о подключенных пользователях:
net rpc user
Информация об расшаренных пользователями ресурсах:
smbclient -L
net rpc share list -U $USERNAME
====== LVM ======
Старт во время загрузке на raspberry pi
Workaround:
sudo nano /etc/initramfs-tools/scripts/local-top/vgscan
#!/bin/sh
vgchange -ay
====== Что делать после установки Fedora ======
[[http://www.cio.com/article/3087878/linux/8-things-to-do-after-installing-fedora-24.htm]]
**Update your system**
Linux is known for security because distributions keep libraries and packages updated all the time. It’s a good idea to run updates once a week (I do it daily) to see if there are any packages that need updating.
(Note: Fedora has moved away from yum to dnf as the default package manager, so we will use ‘dnf’ in all commands).
sudo dnf check-update will list all available updates
Now you can install these updates by running sudo dnf upgrade
Unlike Windows, you don’t have to restart your Linux system after upgrades!
**Enable RPM Fusion repositories**
Fedora doesn't include many software packages due to patent and licensing issues. So if you want to install software that isn't pre-installed on Fedora, you need to first install a repository. [[http://rpmfusion.org/|RPM Fusion]] is the best repo for Fedora users.
There are two RPM Fusion repositories available: free and non-free. You should install both of these repositories, but install free first. If you are running Fedora 24, just click on the links below, one by one and it will install the repositories. Alternatively, you can go to this page and install them.
[[http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-24.noarch.rpm|Install RPMFusion free]]
[[http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-24.noarch.rpm|Install RMPFusion non-free]]
**Install mp3 plugins**
What good is a Linux system without entertainment? Before you install a music player on your Fedora system, though, you need to install mp3 plugins. This command will install the required codecs and plugins:
sudo dnf install gstreamer1-plugins-base gstreamer1-plugins-good gstreamer1-plugins-ugly gstreamer1-plugins-bad-free gstreamer1-plugins-bad-free gstreamer1-plugins-bad-freeworld gstreamer1-plugins-bad-free-extras ffmpeg
**Install Tomahawk**
Fedora 24 comes with Rhythmbox as the default music player (of course, you need to install the mp3 plugins before it will work), but there are others that you might prefer to use instead. Clementine used to be my to-go music player, but I experienced some problems on Fedora so I went with Tomahawk. Install Tomahawk with this command: sudo dnf install tomahawk
After installation, Tomahawk offers to install some extra plugins. None are essential but they will extend the functionality of Tomahawk.
**Install VLC**
We have taken care of our music needs, now it’s movie time. Fedora comes with a default movie player, but I heavily recommend VLC. VLC is like a Swiss Army knife for video playback because it can play virtually any video format without requiring any extra codecs or plugins
This command will do the trick: sudo dnf install vlc
**Install Gnome Tweak Tool**
Gnome heavily relies on extensions, but Fedora doesn’t ship with a tool to manage such extensions. Install the Gnome Tweak Tool to manage different aspects of the Gnome desktop, including extensions: sudo dnf install gnome-tweak-tool
Tweak Tool comes with some extensions and you can install more extensions from the [[https://extensions.gnome.org/|Gnome Extension site]].
====== SOPDS ======
Сканирование каталога с книгами:
python3 manage.py sopds_scanner scan --verbose
Запуск/остановка сервера:
python3 manage.py sopds_server start/stop --daemon