Desktop
System
- Ansible from scratch
- Ansible
- AWX
- Using Docker
- MySQL Replication
- Nginx
- Percona XtraDB Cluster
- SELinux Samba share
- Sphinx
- Systemd
Bash
Awk
- Getting Started with awk
- Running awk and gawk
- Regular Expressions
- Reading Input Files
- Record number
- Record splitting with standard awk
- Record splitting with gawk
- Fields
- Contents of a field
- How fields are separated
- Each character a separate field
- FS from the command line
- Field-splitting summary
- Record-splitting summary
- Multiple-line records
- Explicit input with getline
- Getline summary
- Input with a timeout
- Printing Output
- Expressions
- Patterns, Actions, and Variables
- Arrays in awk
- Functions
Fedora¶
See also
Adding Repositories¶
Atom¶
rpm --import https://packagecloud.io/AtomEditor/atom/gpgkey
sh -c 'echo -e "[Atom]\nname=Atom Editor\nbaseurl=https://packagecloud.io/AtomEditor/atom/el/7/\$basearch\nenabled=1\ngpgcheck=0\nrepo_gpgcheck=1\ngpgkey=https://packagecloud.io/AtomEditor/atom/gpgkey" > /etc/yum.repos.d/atom.repo'
Tip
Install terminal in Atom with apm, Atom Package Manager
apm update
apm list
apm search terminal
apm install platformio-ide-terminal
Docker¶
dnf config-manager --add-repo https://download.docker.com/linux/fedora/docker-ce.repo
Docker moby-engine¶
dnf remove "docker-*"
dnf config-manager --disable "docker-*"
grubby --update-kernel=ALL --args="systemd.unified_cgroup_hierarchy=0"\n
firewall-cmd --permanent --zone=trusted --add-interface=docker0
firewall-cmd --permanent --zone=FedoraWorkstation --add-masquerade
dnf install moby-engine docker-compose
docker-compose version
RPM Fusion¶
dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm \
https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
RPM Cheat Sheet¶
# Install package
rpm -ivh {rpm-file}
rpm -ivh --test mozilla-mail-1.7.5-17.i586.rpm
# Upgrade package
rpm -Uvh {rpm-file} Upgrade package
rpm -Uvh --test mozilla-mail-1.7.6-12.i586.rpm
# Erase/remove/ an installed package (without checking for dependencies)
rpm -ev {package}
rpm -ev --nodeps {package}
# Display list all installed packages (recently installed)
rpm -qa
rpm -qa --last
rpm -qa | less
# Display installed information along with package version and short description
rpm -qi {package}
rpm -qi evolution
# Find out what package a file belongs to i.e. find what package owns the file
rpm -qf {/path/to/file}
rpm -qf /etc/passwd
rpm -qf /bin/bash
# Display list of configuration file(s) for a package or a command
rpm -qc {package-name}
rpm -qc httpd
rpm -qcf {/path/to/file}
rpm -qcf /usr/X11R6/bin/xeyes
# Find out what dependencies a rpm file has
rpm -qpR {.rpm-file}
rpm -qpR mediawiki-1.4rc1-4.i586.rpm
rpm -qR {package}
rpm -qR bash
# List file in package
rpm -ql evolution
DNF Cheat Sheet¶
# Informations
dnf check-update
dnf info `package`
dnf list installed
dnf provides "/usr/bin/shellcheck"
# History
dnf history list
dnf history info 12
dnf history undo 12
dnf history redo 12