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
To create an archive file, just remember:

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,3 +1,7 @@
---
title: "keyboard"
tags: [ "Documentation", "basics" ]
---
# Set Layout
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
## Graphical Programs

View File

@ -1,3 +1,7 @@
---
title: "links"
tags: [ "Documentation", "basics" ]
---
Link from X to 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

View File

@ -1,3 +1,7 @@
---
title: "locating"
tags: [ "Documentation", "basics" ]
---
# Whereis the Program
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
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
Your package has something to do with unzipping. Find out more:

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,3 +1,7 @@
---
title: "groff"
tags: [ "Documentation", "data" ]
---
# Basic Documents
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:
> mkdir ~/.config/khard

View File

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

View File

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

View File

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

View File

@ -1,3 +1,7 @@
---
title: "postgresql"
tags: [ "Documentation", "data" ]
---
# Setup
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 requires 160 Megs of disk space.

View File

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

View File

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

View File

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

View File

@ -1,3 +1,7 @@
---
title: "timew"
tags: [ "Documentation", "data" ]
---
# 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.

View File

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

View File

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

View File

@ -1,3 +1,7 @@
---
title: "autologin"
tags: [ "Documentation", "distros" ]
---
# Automatic Login
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.
> ls /usr/share/kbd/keymaps/**/*.map.gz

View File

@ -1,3 +1,7 @@
---
title: "blackarch"
tags: [ "Documentation", "distros" ]
---
## 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
> # if you need wifi

View File

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

View File

@ -1,3 +1,7 @@
---
title: "lxc"
tags: [ "Documentation", "distros" ]
---
# Distro Specifics
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.

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,3 +1,7 @@
---
title: "lxc"
tags: [ "Documentation", "distros" ]
---
# Intro
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
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
All possible services are in:

View File

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

View File

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

View File

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

View File

@ -1,3 +1,7 @@
---
title: "brightness"
tags: [ "Documentation", "hardware" ]
---
# 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`.
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:
> xmodmap -e 'clear Lock'

View File

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

View File

@ -1,3 +1,7 @@
---
title: "printers"
tags: [ "Documentation", "hardware" ]
---
# 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.

View File

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

View File

@ -1,3 +1,7 @@
---
title: "dns"
tags: [ "Documentation", "networking" ]
---
# Designate DNS
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
> sudo cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.d/ssh.local

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,3 +1,7 @@
---
title: "rclone"
tags: [ "Documentation", "networking" ]
---
The manpage's 'Synopsis' provides a fast reference.
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

View File

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

View File

@ -1,3 +1,7 @@
---
title: "sshfs"
tags: [ "Documentation", "networking" ]
---
# Mount
> 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:

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,3 +1,7 @@
---
title: "wpa_supplicant"
tags: [ "Documentation", "networking" ]
---
# Intro
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
If you have pulse, use pulse.
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
Add your user to the audio group, and install `festival-english`.

View File

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

View File

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

View File

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

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