add headers to lk

This commit is contained in:
Malin Freeborn 2022-01-16 19:20:39 +01:00
parent bdc4ea87cb
commit aac84da38a
137 changed files with 543 additions and 1 deletions

View File

@ -1,3 +1,7 @@
---
title: "archives"
tags: [ "Documentation", "basics" ]
---
# Tar Archives # Tar Archives
To create an archive file, just remember: To create an archive file, just remember:

View File

@ -1,3 +1,7 @@
---
title: "at"
tags: [ "Documentation", "basics" ]
---
Install with: Install with:
> sudo apt install at > sudo apt install at

View File

@ -1,3 +1,7 @@
---
title: "basics"
tags: [ "Documentation", "basics" ]
---
# Absolute Bloody Basics # Absolute Bloody Basics
You need about a dozen commands to move around Linux. You need about a dozen commands to move around Linux.

View File

@ -1,3 +1,7 @@
---
title: "clock"
tags: [ "Documentation", "basics" ]
---
# `date` # `date`
Show system time: Show system time:

View File

@ -1,3 +1,7 @@
---
title: "conditionals"
tags: [ "Documentation", "basics" ]
---
# If statements # If statements
Test statement equality as so: Test statement equality as so:

View File

@ -1,3 +1,7 @@
---
title: "cron"
tags: [ "Documentation", "basics" ]
---
# Cron # Cron
Various services from cron exist, e.g. Various services from cron exist, e.g.

View File

@ -1,3 +1,7 @@
---
title: "kernel"
tags: [ "Documentation", "basics" ]
---
# Living Space # Living Space
Kernel modules live in lib/modules/$(uname -r) Kernel modules live in lib/modules/$(uname -r)

View File

@ -1,3 +1,7 @@
---
title: "keyboard"
tags: [ "Documentation", "basics" ]
---
# Set Layout # Set Layout
Set layout to British English. Set layout to British English.

View File

@ -1,3 +1,7 @@
---
title: "kill"
tags: [ "Documentation", "basics" ]
---
If you want to kill a program in a graphical environment, open a terminal and typeL If you want to kill a program in a graphical environment, open a terminal and typeL
## Graphical Programs ## Graphical Programs

View File

@ -1,3 +1,7 @@
---
title: "links"
tags: [ "Documentation", "basics" ]
---
Link from X to Y. Link from X to Y.
> ln -s X ../otherdir/Y > ln -s X ../otherdir/Y

View File

@ -1,3 +1,7 @@
---
title: "locale"
tags: [ "Documentation", "basics" ]
---
A list of supported locales is available at /usr/share/i18n/SUPPORTED A list of supported locales is available at /usr/share/i18n/SUPPORTED

View File

@ -1,3 +1,7 @@
---
title: "locating"
tags: [ "Documentation", "basics" ]
---
# Whereis the Program # Whereis the Program
Ask where the `angband` program is, along with all its configuration files: Ask where the `angband` program is, along with all its configuration files:

View File

@ -1,3 +1,7 @@
---
title: "logs"
tags: [ "Documentation", "basics" ]
---
# Syslog Management Protocols # Syslog Management Protocols
Let's look at the programs filling in things on our /var/log/ directory. Let's look at the programs filling in things on our /var/log/ directory.

View File

@ -1,3 +1,7 @@
---
title: "packages"
tags: [ "Documentation", "basics" ]
---
# Looking # Looking
Your package has something to do with unzipping. Find out more: Your package has something to do with unzipping. Find out more:

View File

@ -1,3 +1,7 @@
---
title: "processes"
tags: [ "Documentation", "basics" ]
---
# Free # Free
See free space with: See free space with:

View File

@ -1,3 +1,7 @@
---
title: "shell"
tags: [ "Documentation", "basics" ]
---
# Shells # Shells
Dash - fast but limited funcionality, great for scripts. Dash - fast but limited funcionality, great for scripts.

View File

@ -1,3 +1,7 @@
---
title: "swap"
tags: [ "Documentation", "basics" ]
---
# Making a Swap File # Making a Swap File
> sudo mkdir -v /var/cache/swap > sudo mkdir -v /var/cache/swap

View File

@ -1,3 +1,7 @@
---
title: "time"
tags: [ "Documentation", "basics" ]
---
# systemd # systemd
Set time to synchronize with an ntp server: Set time to synchronize with an ntp server:

View File

@ -1,3 +1,7 @@
---
title: "users"
tags: [ "Documentation", "basics" ]
---
# Basic Information # Basic Information
Let's get some entries with 'getent', e.g. passwd or group. Let's get some entries with 'getent', e.g. passwd or group.

View File

@ -1,3 +1,7 @@
---
title: "email"
tags: [ "Documentation", "chat" ]
---
# Sendmail # Sendmail
Compose a message like this: Compose a message like this:

View File

@ -1,3 +1,7 @@
---
title: "irssi"
tags: [ "Documentation", "chat" ]
---
In program: In program:
> /NETWORK LIST > /NETWORK LIST

View File

@ -1,3 +1,7 @@
---
title: "profanity"
tags: [ "Documentation", "chat" ]
---
# Pre Setup # Pre Setup

View File

@ -1,3 +1,7 @@
---
title: "wgetpaste"
tags: [ "Documentation", "chat" ]
---
See available pastebins: See available pastebins:

View File

@ -1,3 +1,7 @@
---
title: "archives"
tags: [ "Documentation", "data" ]
---
# GPG Archives # GPG Archives
Create an encrypted archive with `gpg`: Create an encrypted archive with `gpg`:

View File

@ -1,3 +1,7 @@
---
title: "git"
tags: [ "Documentation", "data" ]
---
# Starting # Starting
## New Machines ## New Machines

View File

@ -1,3 +1,7 @@
---
title: "gpg"
tags: [ "Documentation", "data" ]
---
# Making keys # Making keys
Generate keys: Generate keys:

View File

@ -1,3 +1,7 @@
---
title: "groff"
tags: [ "Documentation", "data" ]
---
# Basic Documents # Basic Documents
Great a file called `name.ms`, with the following content: Great a file called `name.ms`, with the following content:

View File

@ -1,3 +1,7 @@
---
title: "khard"
tags: [ "Documentation", "data" ]
---
Get the basic config: Get the basic config:
> mkdir ~/.config/khard > mkdir ~/.config/khard

View File

@ -1,3 +1,7 @@
---
title: "pass"
tags: [ "Documentation", "data" ]
---
[Video instructions](https://www.hooktube.com/watch?v=hlRQTj1D9LA) [Video instructions](https://www.hooktube.com/watch?v=hlRQTj1D9LA)
Setup [gpg](./gpg.md) keys. Setup [gpg](./gpg.md) keys.

View File

@ -1,3 +1,7 @@
---
title: "sc-im"
tags: [ "Documentation", "data" ]
---
# Basic Commands # Basic Commands
> H = highest part > H = highest part

View File

@ -1,3 +1,7 @@
---
title: "sdcv"
tags: [ "Documentation", "data" ]
---
# Install New Dictionaries # Install New Dictionaries
If the path doesn't exist then: If the path doesn't exist then:

View File

@ -1,3 +1,7 @@
---
title: "postgresql"
tags: [ "Documentation", "data" ]
---
# Setup # Setup
Install postgres and start it as a service, then start with: Install postgres and start it as a service, then start with:

View File

@ -1,3 +1,7 @@
---
title: "sql"
tags: [ "Documentation", "data" ]
---
MySQL, Aurora and the Maria Database work similarly, and mostly with the same commands. MySQL, Aurora and the Maria Database work similarly, and mostly with the same commands.
MySQL requires 160 Megs of disk space. MySQL requires 160 Megs of disk space.

View File

@ -1,3 +1,7 @@
---
title: "tricks"
tags: [ "Documentation", "data" ]
---
# Find data from any table # Find data from any table

View File

@ -1,3 +1,7 @@
---
title: "task"
tags: [ "Documentation", "data" ]
---
# Contexts # Contexts
Set three contexts by their tags: Set three contexts by their tags:

View File

@ -1,3 +1,7 @@
---
title: "taskd"
tags: [ "Documentation", "data" ]
---
(instructions currently not working) (instructions currently not working)
Switch to root to make things easier. Switch to root to make things easier.

View File

@ -1,3 +1,7 @@
---
title: "timew"
tags: [ "Documentation", "data" ]
---
# Setup # Setup
Below commands mostly deal with timew alone. With taskwarrior installed as well, `locate on-modify-time`, then add it to ~/.task/hooks and make it executable. Below commands mostly deal with timew alone. With taskwarrior installed as well, `locate on-modify-time`, then add it to ~/.task/hooks and make it executable.

View File

@ -1,3 +1,7 @@
---
title: "w3m"
tags: [ "Documentation", "data" ]
---
'H' for help. 'H' for help.
Ctrl+u to go to new url. Ctrl+u to go to new url.

View File

@ -1,3 +1,7 @@
---
title: "arch_pi_install"
tags: [ "Documentation", "distros" ]
---
# Initial Setup # Initial Setup
<!-- modified since testing <!-- modified since testing
--> -->

View File

@ -1,3 +1,7 @@
---
title: "autologin"
tags: [ "Documentation", "distros" ]
---
# Automatic Login # Automatic Login
Edit /etc/systemd/system/getty@tty1.service.d/override.conf by typing: Edit /etc/systemd/system/getty@tty1.service.d/override.conf by typing:

View File

@ -1,3 +1,7 @@
---
title: "basic-install"
tags: [ "Documentation", "distros" ]
---
Keyboard layout changed. Keyboard layout changed.
> ls /usr/share/kbd/keymaps/**/*.map.gz > ls /usr/share/kbd/keymaps/**/*.map.gz

View File

@ -1,3 +1,7 @@
---
title: "blackarch"
tags: [ "Documentation", "distros" ]
---
## Basics ## Basics

View File

@ -1,3 +1,7 @@
---
title: "encrypted"
tags: [ "Documentation", "distros" ]
---
> # taken from https://0x00sec.org/t/arch-linux-with-lvm-on-luks-dm-crypt-disk-encryption-installation-guide-legacy-bios-system/1479 > # taken from https://0x00sec.org/t/arch-linux-with-lvm-on-luks-dm-crypt-disk-encryption-installation-guide-legacy-bios-system/1479
> # if you need wifi > # if you need wifi

View File

@ -1,3 +1,7 @@
---
title: "fonts"
tags: [ "Documentation", "distros" ]
---
# Basics # Basics
Update font-cache: Update font-cache:

View File

@ -1,3 +1,7 @@
---
title: "lxc"
tags: [ "Documentation", "distros" ]
---
# Distro Specifics # Distro Specifics
Arch dependencies: `arch-install-scripts` `dnsmasq` Arch dependencies: `arch-install-scripts` `dnsmasq`

View File

@ -1,3 +1,7 @@
---
title: "pacman"
tags: [ "Documentation", "distros" ]
---
Packages are kept in /var/cache/pacman/pkg. Packages are kept in /var/cache/pacman/pkg.

View File

@ -1,3 +1,7 @@
---
title: "pi-hole-server"
tags: [ "Documentation", "distros" ]
---
> yay -S pi-hole-server > yay -S pi-hole-server

View File

@ -1,3 +1,7 @@
---
title: "problems"
tags: [ "Documentation", "distros" ]
---
Broken Xorg Broken Xorg

View File

@ -1,3 +1,7 @@
---
title: "signal"
tags: [ "Documentation", "distros" ]
---
> yay -S signal-cli > yay -S signal-cli

View File

@ -1,3 +1,7 @@
---
title: "apt"
tags: [ "Documentation", "distros" ]
---
## apt ## apt
### Configurations? ### Configurations?

View File

@ -1,3 +1,7 @@
---
title: "lubuntu"
tags: [ "Documentation", "distros" ]
---
# Videos not working # Videos not working

View File

@ -1,3 +1,7 @@
---
title: "metasploit"
tags: [ "Documentation", "distros" ]
---
> service postgresql start > service postgresql start
> systemctl status postgresql > systemctl status postgresql

View File

@ -1,3 +1,7 @@
---
title: "basics"
tags: [ "Documentation", "distros" ]
---
> cd /etc/yum.repos.d/ > cd /etc/yum.repos.d/

View File

@ -1,3 +1,7 @@
---
title: "npm"
tags: [ "Documentation", "distros" ]
---
package.json is the basic configuration file. package.json is the basic configuration file.
Everything is per-directory. Everything is per-directory.

View File

@ -1,3 +1,7 @@
---
title: "yum"
tags: [ "Documentation", "distros" ]
---
# Overview # Overview
Forks include CentOS, scientific Linux, Oracle, and Fedora. Forks include CentOS, scientific Linux, Oracle, and Fedora.

View File

@ -1,3 +1,7 @@
---
title: "http_server"
tags: [ "Documentation", "distros" ]
---
Nothing interesting. Nothing interesting.
1. Install 1. Install

View File

@ -1,3 +1,7 @@
---
title: "autologin"
tags: [ "Documentation", "distros" ]
---
Make the autologin service: Make the autologin service:

View File

@ -1,3 +1,7 @@
---
title: "basics"
tags: [ "Documentation", "distros" ]
---
# vkpurge # vkpurge

View File

@ -1,3 +1,7 @@
---
title: "extrace"
tags: [ "Documentation", "distros" ]
---
Monitor all processes: Monitor all processes:
> extrace > extrace

View File

@ -1,3 +1,7 @@
---
title: "kernels"
tags: [ "Documentation", "distros" ]
---
# vkpurge # vkpurge

View File

@ -1,3 +1,7 @@
---
title: "keyboard"
tags: [ "Documentation", "distros" ]
---
To list keyboard specs: To list keyboard specs:

View File

@ -1,3 +1,7 @@
---
title: "lxc"
tags: [ "Documentation", "distros" ]
---
# Intro # Intro
Taken from [this](https://r4nd0m6uy.ch/unpriviledged-containers-in-void-linux.html) Taken from [this](https://r4nd0m6uy.ch/unpriviledged-containers-in-void-linux.html)

View File

@ -1,3 +1,7 @@
---
title: "networking"
tags: [ "Documentation", "distros" ]
---
# Bridged adapters # Bridged adapters
Virtual machines can use a bridge to connect to the internet. Access the manual with Virtual machines can use a bridge to connect to the internet. Access the manual with

View File

@ -1,3 +1,7 @@
---
title: "sv"
tags: [ "Documentation", "distros" ]
---
# List Services # List Services
All possible services are in: All possible services are in:

View File

@ -1,3 +1,7 @@
---
title: "lxc"
tags: [ "Documentation", "distros" ]
---
LXC creates miniature virtual machines to play with. LXC creates miniature virtual machines to play with.

View File

@ -1,3 +1,7 @@
---
title: "xbps"
tags: [ "Documentation", "distros" ]
---
Install cowsay Install cowsay
> xbps-install cowsay > xbps-install cowsay

View File

@ -1,3 +1,7 @@
---
title: "basics"
tags: [ "Documentation", "hardware" ]
---
# Motherboard Information # Motherboard Information
> sudo dmidecode > sudo dmidecode

View File

@ -1,3 +1,7 @@
---
title: "brightness"
tags: [ "Documentation", "hardware" ]
---
# Brightness # Brightness
/sys/class/backlight/*/brightness /sys/class/backlight/*/brightness

View File

@ -1,3 +1,7 @@
---
title: "keymaps"
tags: [ "Documentation", "hardware" ]
---
Find easy-to-read keymapping lists in `/usr/share/X11/xkb/keycodes/symbols/pc`. Find easy-to-read keymapping lists in `/usr/share/X11/xkb/keycodes/symbols/pc`.
If this doesn't work, try keymaps. If this doesn't work, try keymaps.

View File

@ -1,3 +1,7 @@
---
title: "xmodmap"
tags: [ "Documentation", "hardware" ]
---
Ensure you're not stuck in CAPS on mode: Ensure you're not stuck in CAPS on mode:
> xmodmap -e 'clear Lock' > xmodmap -e 'clear Lock'

View File

@ -1,3 +1,7 @@
---
title: "monitor"
tags: [ "Documentation", "hardware" ]
---
See screen size See screen size
> xrandr -q > xrandr -q

View File

@ -1,3 +1,7 @@
---
title: "printers"
tags: [ "Documentation", "hardware" ]
---
# Cups: The Common Unix Printing System # Cups: The Common Unix Printing System
Configure cups at /etc/cups/supsd.conf, or visit the local webpage at http://localhost:631 if you want to use the Apple interface, otherwise, it's the printing daemon. Configure cups at /etc/cups/supsd.conf, or visit the local webpage at http://localhost:631 if you want to use the Apple interface, otherwise, it's the printing daemon.

View File

@ -1,3 +1,7 @@
---
title: "basics"
tags: [ "Documentation", "networking" ]
---
# You # You
Check how your computer connects to the net: Check how your computer connects to the net:

View File

@ -1,3 +1,7 @@
---
title: "dns"
tags: [ "Documentation", "networking" ]
---
# Designate DNS # Designate DNS
On Debian, a file might gain DNS services by adding the following to /etc/network/interfaces: On Debian, a file might gain DNS services by adding the following to /etc/network/interfaces:

View File

@ -1,3 +1,7 @@
---
title: "fail2ban"
tags: [ "Documentation", "networking" ]
---
# SSH Daemon Jail # SSH Daemon Jail
> sudo cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.d/ssh.local > sudo cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.d/ssh.local

View File

@ -1,3 +1,7 @@
---
title: "iptables"
tags: [ "Documentation", "networking" ]
---
# Intro # Intro
This is a basic Linux firewall program. This is a basic Linux firewall program.

View File

@ -1,3 +1,7 @@
---
title: "iptables"
tags: [ "Documentation", "networking" ]
---
# Intro # Intro
This is a basic Linux firewall program. This is a basic Linux firewall program.

View File

@ -1,3 +1,7 @@
---
title: "nmap"
tags: [ "Documentation", "networking" ]
---
Example: Example:

View File

@ -1,3 +1,7 @@
---
title: "pihole"
tags: [ "Documentation", "networking" ]
---
View DNS traffic View DNS traffic
> pihole -t > pihole -t

View File

@ -1,3 +1,7 @@
---
title: "pip"
tags: [ "Documentation", "networking" ]
---
Upgrade all packages Upgrade all packages

View File

@ -1,3 +1,7 @@
---
title: "protocols"
tags: [ "Documentation", "networking" ]
---
# Protocols # Protocols
| TCP | UDP | ICMP | | TCP | UDP | ICMP |

View File

@ -1,3 +1,7 @@
---
title: "radio"
tags: [ "Documentation", "networking" ]
---
Install ` gqrx` and `rtl-sdr` Install ` gqrx` and `rtl-sdr`

View File

@ -1,3 +1,7 @@
---
title: "rclone"
tags: [ "Documentation", "networking" ]
---
The manpage's 'Synopsis' provides a fast reference. The manpage's 'Synopsis' provides a fast reference.
We'll assume a folder in Google Drive called 'test', and local folder called 'foo'. We'll assume a folder in Google Drive called 'test', and local folder called 'foo'.

View File

@ -1,3 +1,7 @@
---
title: "screen"
tags: [ "Documentation", "networking" ]
---
start session: screen start session: screen

View File

@ -1,3 +1,7 @@
---
title: "agate"
tags: [ "Documentation", "networking" ]
---
Make sure your dns is in order. Make sure your dns is in order.
My domain name is `belgradecats.tk`, so put your own in there. My domain name is `belgradecats.tk`, so put your own in there.

View File

@ -1,3 +1,7 @@
---
title: "sshfs"
tags: [ "Documentation", "networking" ]
---
# Mount # Mount
> sshfs alfred@192.168.0.14:Sync/Alfred > sshfs alfred@192.168.0.14:Sync/Alfred

View File

@ -1,3 +1,7 @@
---
title: "tricks"
tags: [ "Documentation", "networking" ]
---
Mount a remote filesystem locally with fuse-sshfs: Mount a remote filesystem locally with fuse-sshfs:

View File

@ -1,3 +1,7 @@
---
title: "tor"
tags: [ "Documentation", "networking" ]
---
# Get a hostname # Get a hostname

View File

@ -1,3 +1,7 @@
---
title: "transmission"
tags: [ "Documentation", "networking" ]
---
# Torrench # Torrench
Torrench searches for torrents. Torrench searches for torrents.

View File

@ -1,3 +1,7 @@
---
title: "troubleshooting"
tags: [ "Documentation", "networking" ]
---
# Do you have an IP? # Do you have an IP?

View File

@ -1,3 +1,7 @@
---
title: "unison"
tags: [ "Documentation", "networking" ]
---
# Local Sync # Local Sync

View File

@ -1,3 +1,7 @@
---
title: "nginx"
tags: [ "Documentation", "networking" ]
---
Install nginx: Install nginx:
> sudo apt-get install nginx > sudo apt-get install nginx

View File

@ -1,3 +1,7 @@
---
title: "wifi"
tags: [ "Documentation", "networking" ]
---
# Netstat Stuff # Netstat Stuff
Stats on local net usage within domain. Stats on local net usage within domain.

View File

@ -1,3 +1,7 @@
---
title: "wireless"
tags: [ "Documentation", "networking" ]
---
# Check wifi's working # Check wifi's working
> lspci -k > lspci -k

View File

@ -1,3 +1,7 @@
---
title: "wpa_supplicant"
tags: [ "Documentation", "networking" ]
---
# Intro # Intro
wpa_supplicant configurations are stored in /etc/wpa_supplicant/wpa_supplicant-wlan0 (or equivalent). wpa_supplicant configurations are stored in /etc/wpa_supplicant/wpa_supplicant-wlan0 (or equivalent).

View File

@ -1,3 +1,7 @@
---
title: "basics"
tags: [ "Documentation", "sound" ]
---
# Pulse # Pulse
If you have pulse, use pulse. If you have pulse, use pulse.
Check with `which pulseaudio`. No output means you need to use alsa (below). Check with `which pulseaudio`. No output means you need to use alsa (below).

View File

@ -1,3 +1,7 @@
---
title: "festival"
tags: [ "Documentation", "sound" ]
---
# Basics # Basics
Add your user to the audio group, and install `festival-english`. Add your user to the audio group, and install `festival-english`.

View File

@ -1,3 +1,7 @@
---
title: "ffmpeg"
tags: [ "Documentation", "sound" ]
---
# Basics # Basics
ffmpeg -i [input file] output_file.mkv ffmpeg -i [input file] output_file.mkv

View File

@ -1,3 +1,7 @@
---
title: "mpd"
tags: [ "Documentation", "sound" ]
---
# Setup # Setup
## Configuration ## Configuration

View File

@ -1,3 +1,7 @@
---
title: "ncmpcpp"
tags: [ "Documentation", "sound" ]
---
# Music Player Daemon # Music Player Daemon

Some files were not shown because too many files have changed in this diff Show More