From c5540ccd954a1b61eecd7fb8be654fcdbf2bebc6 Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Tue, 23 Nov 2021 21:31:25 +0100 Subject: [PATCH 01/26] make virtualization directory --- {system => virtualization}/xen/basics.md | 0 {system => virtualization}/xen/xe.md | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename {system => virtualization}/xen/basics.md (100%) rename {system => virtualization}/xen/xe.md (100%) diff --git a/system/xen/basics.md b/virtualization/xen/basics.md similarity index 100% rename from system/xen/basics.md rename to virtualization/xen/basics.md diff --git a/system/xen/xe.md b/virtualization/xen/xe.md similarity index 100% rename from system/xen/xe.md rename to virtualization/xen/xe.md From 2ea4f2fd526c2f826a051b15e1c5ac1f7efba3a8 Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Wed, 24 Nov 2021 01:57:41 +0100 Subject: [PATCH 02/26] basic docker --- virtualization/docker.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 virtualization/docker.md diff --git a/virtualization/docker.md b/virtualization/docker.md new file mode 100644 index 0000000..b8b307c --- /dev/null +++ b/virtualization/docker.md @@ -0,0 +1,25 @@ + +> sudo pacman -S docker + +> sudo usermod -aG docker $USER + +> sudo systemctl start docker + +You need to either log out and back in again to be in the docker group, or run everything as root. + +> # docker info + +This should show you things are working. + +Search for a distro you want + +> docker search debian + +If you get a hit, pull it. + +> docker pull debian + +Then run a live image: + +> docker run -it debian + From 018152686b4156702d66ffc4cbd7c9cf98275e38 Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Thu, 30 Dec 2021 15:17:09 +0000 Subject: [PATCH 03/26] add docker notes --- virtualization/docker.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/virtualization/docker.md b/virtualization/docker.md index b8b307c..080fa4d 100644 --- a/virtualization/docker.md +++ b/virtualization/docker.md @@ -23,3 +23,25 @@ Then run a live image: > docker run -it debian +# Delete + +Check currently running containers with + +> docker ps + +Check all containers with + +> docker ps -a + +Now we can get a list of all containers. + +To delete one, take the id, e.g. '97796727e883', and run: + +> docker rm 97796727e883 + +# Networking + +Get a list of docker container ips + +> docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' *container_name_or_id* + From a2813e0490698f96c97fab881c1aa479c2f43d3d Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Fri, 14 Jan 2022 12:32:40 +0100 Subject: [PATCH 04/26] add mdadm --- data/mdadm.md | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 data/mdadm.md diff --git a/data/mdadm.md b/data/mdadm.md new file mode 100644 index 0000000..6362db3 --- /dev/null +++ b/data/mdadm.md @@ -0,0 +1,40 @@ +# RAID5 + +You will need 4 disks and the `mdadm` package. +The total size will be equal to the disks x 3, because one will be used for redundancy. + +> sudo mdadm --create --verbose /dev/*md127* --level=5 --raid-devices=*4* */dev/sdb /dev/sdc /dev/sdd /dev/sde* + +Note the variable parts: + +- The name of the device could be `/dev/md12` or whatever +- The number of devices could be larger, but must be at least 4 for raid 5 +- We end by listing all devices in the new `md` device. + +Now look at how the raid status: + +> cat /proc/mdstat + +This will increase until the entire thing is fine. + +Check the health of your `mdadm` array: + +> sudo mdadm --detail /dev/md127 + +You should see `State : clean`. If you see it is `degraded`, then a disk has broken. + +## Replacing a Disk + +First, prepare the disk with both a gpt partition table, and a partition: + +> sudo parted --script /dev/sdb mklabel gpt mkpart primary 1MiB -2048s + +Add the appropriate file system to it, e.g.: + +> sudo mkfs.ext4 /dev/sdb1 + +Then finally, add the disk: + +> sudo mdadm --add /dev/md127 /dev/sdb1 + + From ff5c088e2b1f0f6b0ea3f61f94fd59fdfd63f8cc Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Fri, 14 Jan 2022 14:16:12 +0100 Subject: [PATCH 05/26] place pwd first in basics --- basics/basics.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/basics/basics.md b/basics/basics.md index ac1579f..c6a91d7 100644 --- a/basics/basics.md +++ b/basics/basics.md @@ -4,7 +4,11 @@ You need about a dozen commands to move around Linux. After that, you look up the rest as you go. Don't worry about understanding any of it, just type it in and the habit forms pretty quickly. -You start in a dark room. You have a 'look-see' what's in front of you: +You start in a dark room. You want to know where you are by **p**rinting out your **w**orking '**d**irectory' (i.e. 'location'): + +> pwd + +Have a look at what is here: > ls @@ -18,10 +22,6 @@ Have a look at **a**ll the files: So `.` means 'here' and `..` means 'you see stairs leading downwards' (e.g. 'the directory behind you'). -Find out where you are by **p**rinting out your **w**orking '**d**irectory' (i.e. 'location'): - -> pwd - Change directory (`cd`) down one level: > cd .. From 1047799f0f1c0ced84cf4fcd15c406a5d61af4fa Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Fri, 14 Jan 2022 21:06:31 +0100 Subject: [PATCH 06/26] fix mdadm added disks --- data/mdadm.md | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/data/mdadm.md b/data/mdadm.md index 6362db3..98f0b65 100644 --- a/data/mdadm.md +++ b/data/mdadm.md @@ -25,16 +25,5 @@ You should see `State : clean`. If you see it is `degraded`, then a disk has bro ## Replacing a Disk -First, prepare the disk with both a gpt partition table, and a partition: - -> sudo parted --script /dev/sdb mklabel gpt mkpart primary 1MiB -2048s - -Add the appropriate file system to it, e.g.: - -> sudo mkfs.ext4 /dev/sdb1 - -Then finally, add the disk: - > sudo mdadm --add /dev/md127 /dev/sdb1 - From 01d1f721df4a567e031a606cc2b62a70f32accc4 Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Sun, 16 Jan 2022 18:12:13 +0100 Subject: [PATCH 07/26] remove old note --- data/taskwarrior/.no | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 data/taskwarrior/.no diff --git a/data/taskwarrior/.no b/data/taskwarrior/.no deleted file mode 100644 index 789fb54..0000000 --- a/data/taskwarrior/.no +++ /dev/null @@ -1,30 +0,0 @@ -setting up with: - -- data at /var/taskd -- user: root -- host=localhost -- port=53589 - -- Organization=Andonome -- Name="Malin Freeborn" - -## Next -Copy files to ~/.task -/usr/share/doc/taskd/pki/{ca.cert.pem,Malin_Freeborn.cert.pem,Malin_Freeborn.key.pem} - -And run these commands: - -``` - Malin Freeborn must run these commands: - task config taskd.server localhost:53589 - task config taskd.credentials 'Andonome/Malin Freeborn/36faa2a9-de12-4410-99d5-0bcaa5a4887a' - task config taskd.certificate ~/.task/Malin_Freeborn.cert.pem - task config taskd.key ~/.task/Malin_Freeborn.key.pem - task config taskd.ca ~/.task/ca.cert.pem - task config taskd.trust strict - task config taskd.ciphers NORMAL - - -``` - - From e7919416ceb57d0f1ba793bb46a930ee206bd027 Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Sun, 16 Jan 2022 19:20:39 +0100 Subject: [PATCH 08/26] add headers to lk --- basics/archives.md | 4 ++++ basics/at.md | 4 ++++ basics/basics.md | 4 ++++ basics/clock.md | 4 ++++ basics/conditionals.md | 4 ++++ basics/cron.md | 4 ++++ basics/kernel.md | 4 ++++ basics/keyboard.md | 4 ++++ basics/kill.md | 4 ++++ basics/links.md | 4 ++++ basics/locale.md | 4 ++++ basics/locating.md | 4 ++++ basics/logs.md | 4 ++++ basics/packages.md | 4 ++++ basics/processes.md | 4 ++++ basics/shell.md | 4 ++++ basics/swap.md | 4 ++++ basics/time.md | 4 ++++ basics/users.md | 4 ++++ chat/email.md | 4 ++++ chat/irssi.md | 4 ++++ chat/profanity.md | 4 ++++ chat/wgetpaste.md | 4 ++++ data/archives.md | 4 ++++ data/git.md | 4 ++++ data/gpg.md | 4 ++++ data/groff.md | 4 ++++ data/khard.md | 4 ++++ data/pass.md | 4 ++++ data/sc-im.md | 4 ++++ data/sdcv.md | 4 ++++ data/sql/postgresql.md | 4 ++++ data/sql/sql.md | 4 ++++ data/sql/tricks.md | 4 ++++ data/taskwarrior/task.md | 4 ++++ data/taskwarrior/taskd.md | 4 ++++ data/taskwarrior/timew.md | 4 ++++ data/w3m.md | 4 ++++ distros/arch/arch_pi_install.md | 4 ++++ distros/arch/autologin.md | 4 ++++ distros/arch/basic-install.md | 4 ++++ distros/arch/blackarch.md | 4 ++++ distros/arch/encrypted.md | 4 ++++ distros/arch/fonts.md | 4 ++++ distros/arch/lxc.md | 4 ++++ distros/arch/pacman.md | 4 ++++ distros/arch/pi-hole-server.md | 4 ++++ distros/arch/problems.md | 4 ++++ distros/arch/signal.md | 4 ++++ distros/debian/apt.md | 4 ++++ distros/debian/ubuntu/lubuntu.md | 4 ++++ distros/kali/metasploit.md | 4 ++++ distros/redhat/Oracle/basics.md | 4 ++++ distros/redhat/npm.md | 4 ++++ distros/redhat/yum.md | 4 ++++ distros/suse/http_server.md | 4 ++++ distros/void/autologin.md | 4 ++++ distros/void/basics.md | 4 ++++ distros/void/extrace.md | 4 ++++ distros/void/kernels.md | 4 ++++ distros/void/keyboard.md | 4 ++++ distros/void/lxc.md | 4 ++++ distros/void/networking.md | 4 ++++ distros/void/sv.md | 4 ++++ distros/void/virtualization/lxc.md | 4 ++++ distros/void/xbps.md | 4 ++++ hardware/basics.md | 4 ++++ hardware/brightness.md | 4 ++++ hardware/keyboard/keymaps.md | 4 ++++ hardware/keyboard/xmodmap.md | 4 ++++ hardware/monitor.md | 4 ++++ hardware/printers.md | 4 ++++ networking/basics.md | 4 ++++ networking/dns.md | 4 ++++ networking/fail2ban.md | 4 ++++ networking/iptables.md | 4 ++++ networking/iptables/iptables.md | 4 ++++ networking/nmap.md | 4 ++++ networking/pihole/pihole.md | 4 ++++ networking/pip.md | 4 ++++ networking/protocols.md | 4 ++++ networking/radio.md | 4 ++++ networking/rclone.md | 4 ++++ networking/screen.md | 4 ++++ networking/servers/agate.md | 4 ++++ networking/ssh/sshfs.md | 4 ++++ networking/ssh/tricks.md | 4 ++++ networking/tor.md | 4 ++++ networking/transmission.md | 4 ++++ networking/troubleshooting.md | 4 ++++ networking/unison.md | 4 ++++ networking/website/nginx.md | 4 ++++ networking/wifi.md | 4 ++++ networking/wireless.md | 4 ++++ networking/wpa_supplicant.md | 4 ++++ sound/basics.md | 4 ++++ sound/festival.md | 4 ++++ sound/ffmpeg.md | 4 ++++ sound/mpd.md | 4 ++++ sound/ncmpcpp.md | 4 ++++ sound/youtube-dl.md | 4 ++++ system/X.md | 4 ++++ system/android.md | 4 ++++ system/awk.md | 4 ++++ system/bash_tricks.md | 4 ++++ system/character-encoding.md | 4 ++++ system/compression.md | 4 ++++ system/cronie.md | 4 ++++ system/e-mail.md | 4 ++++ system/editors.md | 4 ++++ system/elvish.md | 4 ++++ system/kernel.md | 4 ++++ system/logs.md | 4 ++++ system/partitions.md | 4 ++++ system/snaps.md | 4 ++++ system/systemd/basics.md | 4 ++++ system/systemd/journal.md | 4 ++++ system/systemd/making services.md | 3 +++ system/systemd/users.md | 4 ++++ system/tmux.md | 4 ++++ system/upx.md | 4 ++++ system/urxvt.md | 4 ++++ system/virtualbox.md | 4 ++++ system/wine.md | 4 ++++ system/xdg.md | 4 ++++ system/xen/basics.md | 4 ++++ system/xen/xe.md | 4 ++++ system/xkbmap.md | 4 ++++ vim/completion.md | 4 ++++ vim/navigate.md | 4 ++++ vim/screens.md | 4 ++++ vim/search.md | 4 ++++ vim/vim.md | 4 ++++ vim/windows.md | 4 ++++ vision/ffmpeg.md | 1 - vision/imagemagick.md | 4 ++++ vision/qrencode.md | 4 ++++ 137 files changed, 543 insertions(+), 1 deletion(-) delete mode 120000 vision/ffmpeg.md diff --git a/basics/archives.md b/basics/archives.md index 974c5b0..b504cf3 100644 --- a/basics/archives.md +++ b/basics/archives.md @@ -1,3 +1,7 @@ +--- +title: "archives" +tags: [ "Documentation", "basics" ] +--- # Tar Archives To create an archive file, just remember: diff --git a/basics/at.md b/basics/at.md index 0ef7e03..dbeb72b 100644 --- a/basics/at.md +++ b/basics/at.md @@ -1,3 +1,7 @@ +--- +title: "at" +tags: [ "Documentation", "basics" ] +--- Install with: > sudo apt install at diff --git a/basics/basics.md b/basics/basics.md index c6a91d7..5a48f6d 100644 --- a/basics/basics.md +++ b/basics/basics.md @@ -1,3 +1,7 @@ +--- +title: "basics" +tags: [ "Documentation", "basics" ] +--- # Absolute Bloody Basics You need about a dozen commands to move around Linux. diff --git a/basics/clock.md b/basics/clock.md index 7ca71f4..0d5f343 100644 --- a/basics/clock.md +++ b/basics/clock.md @@ -1,3 +1,7 @@ +--- +title: "clock" +tags: [ "Documentation", "basics" ] +--- # `date` Show system time: diff --git a/basics/conditionals.md b/basics/conditionals.md index 7f2de73..9795f83 100644 --- a/basics/conditionals.md +++ b/basics/conditionals.md @@ -1,3 +1,7 @@ +--- +title: "conditionals" +tags: [ "Documentation", "basics" ] +--- # If statements Test statement equality as so: diff --git a/basics/cron.md b/basics/cron.md index e6b9b66..bee5715 100644 --- a/basics/cron.md +++ b/basics/cron.md @@ -1,3 +1,7 @@ +--- +title: "cron" +tags: [ "Documentation", "basics" ] +--- # Cron Various services from cron exist, e.g. diff --git a/basics/kernel.md b/basics/kernel.md index 8fce33a..08bca8c 100644 --- a/basics/kernel.md +++ b/basics/kernel.md @@ -1,3 +1,7 @@ +--- +title: "kernel" +tags: [ "Documentation", "basics" ] +--- # Living Space Kernel modules live in lib/modules/$(uname -r) diff --git a/basics/keyboard.md b/basics/keyboard.md index 4bb7b16..1adc259 100644 --- a/basics/keyboard.md +++ b/basics/keyboard.md @@ -1,3 +1,7 @@ +--- +title: "keyboard" +tags: [ "Documentation", "basics" ] +--- # Set Layout Set layout to British English. diff --git a/basics/kill.md b/basics/kill.md index cd1c562..60228cd 100644 --- a/basics/kill.md +++ b/basics/kill.md @@ -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 diff --git a/basics/links.md b/basics/links.md index 201053e..1406760 100644 --- a/basics/links.md +++ b/basics/links.md @@ -1,3 +1,7 @@ +--- +title: "links" +tags: [ "Documentation", "basics" ] +--- Link from X to Y. > ln -s X ../otherdir/Y diff --git a/basics/locale.md b/basics/locale.md index 079e494..fbbb485 100644 --- a/basics/locale.md +++ b/basics/locale.md @@ -1,3 +1,7 @@ +--- +title: "locale" +tags: [ "Documentation", "basics" ] +--- A list of supported locales is available at /usr/share/i18n/SUPPORTED diff --git a/basics/locating.md b/basics/locating.md index 5301422..80c7340 100644 --- a/basics/locating.md +++ b/basics/locating.md @@ -1,3 +1,7 @@ +--- +title: "locating" +tags: [ "Documentation", "basics" ] +--- # Whereis the Program Ask where the `angband` program is, along with all its configuration files: diff --git a/basics/logs.md b/basics/logs.md index d6b34f8..f119c63 100644 --- a/basics/logs.md +++ b/basics/logs.md @@ -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. diff --git a/basics/packages.md b/basics/packages.md index 90a636c..30b86ae 100644 --- a/basics/packages.md +++ b/basics/packages.md @@ -1,3 +1,7 @@ +--- +title: "packages" +tags: [ "Documentation", "basics" ] +--- # Looking Your package has something to do with unzipping. Find out more: diff --git a/basics/processes.md b/basics/processes.md index 786f50b..ef9c20f 100644 --- a/basics/processes.md +++ b/basics/processes.md @@ -1,3 +1,7 @@ +--- +title: "processes" +tags: [ "Documentation", "basics" ] +--- # Free See free space with: diff --git a/basics/shell.md b/basics/shell.md index ede1c82..8a0e4af 100644 --- a/basics/shell.md +++ b/basics/shell.md @@ -1,3 +1,7 @@ +--- +title: "shell" +tags: [ "Documentation", "basics" ] +--- # Shells Dash - fast but limited funcionality, great for scripts. diff --git a/basics/swap.md b/basics/swap.md index 8d8a4b6..fcb4170 100644 --- a/basics/swap.md +++ b/basics/swap.md @@ -1,3 +1,7 @@ +--- +title: "swap" +tags: [ "Documentation", "basics" ] +--- # Making a Swap File > sudo mkdir -v /var/cache/swap diff --git a/basics/time.md b/basics/time.md index 7274bff..d44eb83 100644 --- a/basics/time.md +++ b/basics/time.md @@ -1,3 +1,7 @@ +--- +title: "time" +tags: [ "Documentation", "basics" ] +--- # systemd Set time to synchronize with an ntp server: diff --git a/basics/users.md b/basics/users.md index d254515..b4d8dcf 100644 --- a/basics/users.md +++ b/basics/users.md @@ -1,3 +1,7 @@ +--- +title: "users" +tags: [ "Documentation", "basics" ] +--- # Basic Information Let's get some entries with 'getent', e.g. passwd or group. diff --git a/chat/email.md b/chat/email.md index da6c288..be9100c 100644 --- a/chat/email.md +++ b/chat/email.md @@ -1,3 +1,7 @@ +--- +title: "email" +tags: [ "Documentation", "chat" ] +--- # Sendmail Compose a message like this: diff --git a/chat/irssi.md b/chat/irssi.md index c4a0bc6..c52d544 100644 --- a/chat/irssi.md +++ b/chat/irssi.md @@ -1,3 +1,7 @@ +--- +title: "irssi" +tags: [ "Documentation", "chat" ] +--- In program: > /NETWORK LIST diff --git a/chat/profanity.md b/chat/profanity.md index 58bbae6..b32dda9 100644 --- a/chat/profanity.md +++ b/chat/profanity.md @@ -1,3 +1,7 @@ +--- +title: "profanity" +tags: [ "Documentation", "chat" ] +--- # Pre Setup diff --git a/chat/wgetpaste.md b/chat/wgetpaste.md index 0986c27..265ccc5 100644 --- a/chat/wgetpaste.md +++ b/chat/wgetpaste.md @@ -1,3 +1,7 @@ +--- +title: "wgetpaste" +tags: [ "Documentation", "chat" ] +--- See available pastebins: diff --git a/data/archives.md b/data/archives.md index 5de17e3..00862bd 100644 --- a/data/archives.md +++ b/data/archives.md @@ -1,3 +1,7 @@ +--- +title: "archives" +tags: [ "Documentation", "data" ] +--- # GPG Archives Create an encrypted archive with `gpg`: diff --git a/data/git.md b/data/git.md index 21c9e82..217354b 100644 --- a/data/git.md +++ b/data/git.md @@ -1,3 +1,7 @@ +--- +title: "git" +tags: [ "Documentation", "data" ] +--- # Starting ## New Machines diff --git a/data/gpg.md b/data/gpg.md index 3113489..ef5ace3 100644 --- a/data/gpg.md +++ b/data/gpg.md @@ -1,3 +1,7 @@ +--- +title: "gpg" +tags: [ "Documentation", "data" ] +--- # Making keys Generate keys: diff --git a/data/groff.md b/data/groff.md index df33c8e..657b1da 100644 --- a/data/groff.md +++ b/data/groff.md @@ -1,3 +1,7 @@ +--- +title: "groff" +tags: [ "Documentation", "data" ] +--- # Basic Documents Great a file called `name.ms`, with the following content: diff --git a/data/khard.md b/data/khard.md index cf6df9d..51042a5 100644 --- a/data/khard.md +++ b/data/khard.md @@ -1,3 +1,7 @@ +--- +title: "khard" +tags: [ "Documentation", "data" ] +--- Get the basic config: > mkdir ~/.config/khard diff --git a/data/pass.md b/data/pass.md index 8110ea4..05b6e38 100644 --- a/data/pass.md +++ b/data/pass.md @@ -1,3 +1,7 @@ +--- +title: "pass" +tags: [ "Documentation", "data" ] +--- [Video instructions](https://www.hooktube.com/watch?v=hlRQTj1D9LA) Setup [gpg](./gpg.md) keys. diff --git a/data/sc-im.md b/data/sc-im.md index 95135a0..5510e16 100644 --- a/data/sc-im.md +++ b/data/sc-im.md @@ -1,3 +1,7 @@ +--- +title: "sc-im" +tags: [ "Documentation", "data" ] +--- # Basic Commands > H = highest part diff --git a/data/sdcv.md b/data/sdcv.md index f5f6728..abf11e5 100644 --- a/data/sdcv.md +++ b/data/sdcv.md @@ -1,3 +1,7 @@ +--- +title: "sdcv" +tags: [ "Documentation", "data" ] +--- # Install New Dictionaries If the path doesn't exist then: diff --git a/data/sql/postgresql.md b/data/sql/postgresql.md index 20714f7..c7db904 100644 --- a/data/sql/postgresql.md +++ b/data/sql/postgresql.md @@ -1,3 +1,7 @@ +--- +title: "postgresql" +tags: [ "Documentation", "data" ] +--- # Setup Install postgres and start it as a service, then start with: diff --git a/data/sql/sql.md b/data/sql/sql.md index 3f675f0..ee354c4 100644 --- a/data/sql/sql.md +++ b/data/sql/sql.md @@ -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. diff --git a/data/sql/tricks.md b/data/sql/tricks.md index 7c36dcf..5f51639 100644 --- a/data/sql/tricks.md +++ b/data/sql/tricks.md @@ -1,3 +1,7 @@ +--- +title: "tricks" +tags: [ "Documentation", "data" ] +--- # Find data from any table diff --git a/data/taskwarrior/task.md b/data/taskwarrior/task.md index 8390aaa..c1c5182 100644 --- a/data/taskwarrior/task.md +++ b/data/taskwarrior/task.md @@ -1,3 +1,7 @@ +--- +title: "task" +tags: [ "Documentation", "data" ] +--- # Contexts Set three contexts by their tags: diff --git a/data/taskwarrior/taskd.md b/data/taskwarrior/taskd.md index 2015d36..74e7c2f 100644 --- a/data/taskwarrior/taskd.md +++ b/data/taskwarrior/taskd.md @@ -1,3 +1,7 @@ +--- +title: "taskd" +tags: [ "Documentation", "data" ] +--- (instructions currently not working) Switch to root to make things easier. diff --git a/data/taskwarrior/timew.md b/data/taskwarrior/timew.md index ff6b9d9..61925cc 100644 --- a/data/taskwarrior/timew.md +++ b/data/taskwarrior/timew.md @@ -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. diff --git a/data/w3m.md b/data/w3m.md index 7ceafb5..eba6c76 100644 --- a/data/w3m.md +++ b/data/w3m.md @@ -1,3 +1,7 @@ +--- +title: "w3m" +tags: [ "Documentation", "data" ] +--- 'H' for help. Ctrl+u to go to new url. diff --git a/distros/arch/arch_pi_install.md b/distros/arch/arch_pi_install.md index 3b2b10f..56369cd 100644 --- a/distros/arch/arch_pi_install.md +++ b/distros/arch/arch_pi_install.md @@ -1,3 +1,7 @@ +--- +title: "arch_pi_install" +tags: [ "Documentation", "distros" ] +--- # Initial Setup diff --git a/distros/arch/autologin.md b/distros/arch/autologin.md index 41afbf6..76a4f1f 100644 --- a/distros/arch/autologin.md +++ b/distros/arch/autologin.md @@ -1,3 +1,7 @@ +--- +title: "autologin" +tags: [ "Documentation", "distros" ] +--- # Automatic Login Edit /etc/systemd/system/getty@tty1.service.d/override.conf by typing: diff --git a/distros/arch/basic-install.md b/distros/arch/basic-install.md index 29d4c59..e2235de 100644 --- a/distros/arch/basic-install.md +++ b/distros/arch/basic-install.md @@ -1,3 +1,7 @@ +--- +title: "basic-install" +tags: [ "Documentation", "distros" ] +--- Keyboard layout changed. > ls /usr/share/kbd/keymaps/**/*.map.gz diff --git a/distros/arch/blackarch.md b/distros/arch/blackarch.md index f6fe1d4..657cb51 100644 --- a/distros/arch/blackarch.md +++ b/distros/arch/blackarch.md @@ -1,3 +1,7 @@ +--- +title: "blackarch" +tags: [ "Documentation", "distros" ] +--- ## Basics diff --git a/distros/arch/encrypted.md b/distros/arch/encrypted.md index 7472274..9a8d5f1 100644 --- a/distros/arch/encrypted.md +++ b/distros/arch/encrypted.md @@ -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 diff --git a/distros/arch/fonts.md b/distros/arch/fonts.md index bf3ee69..15b4019 100644 --- a/distros/arch/fonts.md +++ b/distros/arch/fonts.md @@ -1,3 +1,7 @@ +--- +title: "fonts" +tags: [ "Documentation", "distros" ] +--- # Basics Update font-cache: diff --git a/distros/arch/lxc.md b/distros/arch/lxc.md index 03b00e7..48c57b0 100644 --- a/distros/arch/lxc.md +++ b/distros/arch/lxc.md @@ -1,3 +1,7 @@ +--- +title: "lxc" +tags: [ "Documentation", "distros" ] +--- # Distro Specifics Arch dependencies: `arch-install-scripts` `dnsmasq` diff --git a/distros/arch/pacman.md b/distros/arch/pacman.md index d32c6c0..80cddc7 100644 --- a/distros/arch/pacman.md +++ b/distros/arch/pacman.md @@ -1,3 +1,7 @@ +--- +title: "pacman" +tags: [ "Documentation", "distros" ] +--- Packages are kept in /var/cache/pacman/pkg. diff --git a/distros/arch/pi-hole-server.md b/distros/arch/pi-hole-server.md index a8ddb13..b6d712e 100644 --- a/distros/arch/pi-hole-server.md +++ b/distros/arch/pi-hole-server.md @@ -1,3 +1,7 @@ +--- +title: "pi-hole-server" +tags: [ "Documentation", "distros" ] +--- > yay -S pi-hole-server diff --git a/distros/arch/problems.md b/distros/arch/problems.md index 6830ce5..c627091 100644 --- a/distros/arch/problems.md +++ b/distros/arch/problems.md @@ -1,3 +1,7 @@ +--- +title: "problems" +tags: [ "Documentation", "distros" ] +--- Broken Xorg diff --git a/distros/arch/signal.md b/distros/arch/signal.md index dc89223..e196a36 100644 --- a/distros/arch/signal.md +++ b/distros/arch/signal.md @@ -1,3 +1,7 @@ +--- +title: "signal" +tags: [ "Documentation", "distros" ] +--- > yay -S signal-cli diff --git a/distros/debian/apt.md b/distros/debian/apt.md index afc3152..8aa15ea 100644 --- a/distros/debian/apt.md +++ b/distros/debian/apt.md @@ -1,3 +1,7 @@ +--- +title: "apt" +tags: [ "Documentation", "distros" ] +--- ## apt ### Configurations? diff --git a/distros/debian/ubuntu/lubuntu.md b/distros/debian/ubuntu/lubuntu.md index ae172a6..9d7a90d 100644 --- a/distros/debian/ubuntu/lubuntu.md +++ b/distros/debian/ubuntu/lubuntu.md @@ -1,3 +1,7 @@ +--- +title: "lubuntu" +tags: [ "Documentation", "distros" ] +--- # Videos not working diff --git a/distros/kali/metasploit.md b/distros/kali/metasploit.md index e9d96b6..2c264a1 100644 --- a/distros/kali/metasploit.md +++ b/distros/kali/metasploit.md @@ -1,3 +1,7 @@ +--- +title: "metasploit" +tags: [ "Documentation", "distros" ] +--- > service postgresql start > systemctl status postgresql diff --git a/distros/redhat/Oracle/basics.md b/distros/redhat/Oracle/basics.md index 8e86bd7..d66718c 100644 --- a/distros/redhat/Oracle/basics.md +++ b/distros/redhat/Oracle/basics.md @@ -1,3 +1,7 @@ +--- +title: "basics" +tags: [ "Documentation", "distros" ] +--- > cd /etc/yum.repos.d/ diff --git a/distros/redhat/npm.md b/distros/redhat/npm.md index 5a2d38a..b282cb6 100644 --- a/distros/redhat/npm.md +++ b/distros/redhat/npm.md @@ -1,3 +1,7 @@ +--- +title: "npm" +tags: [ "Documentation", "distros" ] +--- package.json is the basic configuration file. Everything is per-directory. diff --git a/distros/redhat/yum.md b/distros/redhat/yum.md index 8a4c2fb..b6c464b 100644 --- a/distros/redhat/yum.md +++ b/distros/redhat/yum.md @@ -1,3 +1,7 @@ +--- +title: "yum" +tags: [ "Documentation", "distros" ] +--- # Overview Forks include CentOS, scientific Linux, Oracle, and Fedora. diff --git a/distros/suse/http_server.md b/distros/suse/http_server.md index 709ed8c..2bbc8bb 100644 --- a/distros/suse/http_server.md +++ b/distros/suse/http_server.md @@ -1,3 +1,7 @@ +--- +title: "http_server" +tags: [ "Documentation", "distros" ] +--- Nothing interesting. 1. Install diff --git a/distros/void/autologin.md b/distros/void/autologin.md index c2a148c..04d1b1b 100644 --- a/distros/void/autologin.md +++ b/distros/void/autologin.md @@ -1,3 +1,7 @@ +--- +title: "autologin" +tags: [ "Documentation", "distros" ] +--- Make the autologin service: diff --git a/distros/void/basics.md b/distros/void/basics.md index 3d57ff2..22a9151 100644 --- a/distros/void/basics.md +++ b/distros/void/basics.md @@ -1,3 +1,7 @@ +--- +title: "basics" +tags: [ "Documentation", "distros" ] +--- # vkpurge diff --git a/distros/void/extrace.md b/distros/void/extrace.md index 72c0247..680828a 100644 --- a/distros/void/extrace.md +++ b/distros/void/extrace.md @@ -1,3 +1,7 @@ +--- +title: "extrace" +tags: [ "Documentation", "distros" ] +--- Monitor all processes: > extrace diff --git a/distros/void/kernels.md b/distros/void/kernels.md index 98ecbb6..60394a4 100644 --- a/distros/void/kernels.md +++ b/distros/void/kernels.md @@ -1,3 +1,7 @@ +--- +title: "kernels" +tags: [ "Documentation", "distros" ] +--- # vkpurge diff --git a/distros/void/keyboard.md b/distros/void/keyboard.md index 43d26d1..8e6804c 100644 --- a/distros/void/keyboard.md +++ b/distros/void/keyboard.md @@ -1,3 +1,7 @@ +--- +title: "keyboard" +tags: [ "Documentation", "distros" ] +--- To list keyboard specs: diff --git a/distros/void/lxc.md b/distros/void/lxc.md index a567868..428765e 100644 --- a/distros/void/lxc.md +++ b/distros/void/lxc.md @@ -1,3 +1,7 @@ +--- +title: "lxc" +tags: [ "Documentation", "distros" ] +--- # Intro Taken from [this](https://r4nd0m6uy.ch/unpriviledged-containers-in-void-linux.html) diff --git a/distros/void/networking.md b/distros/void/networking.md index fce6cff..44cbeec 100644 --- a/distros/void/networking.md +++ b/distros/void/networking.md @@ -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 diff --git a/distros/void/sv.md b/distros/void/sv.md index 4725832..66b33ed 100644 --- a/distros/void/sv.md +++ b/distros/void/sv.md @@ -1,3 +1,7 @@ +--- +title: "sv" +tags: [ "Documentation", "distros" ] +--- # List Services All possible services are in: diff --git a/distros/void/virtualization/lxc.md b/distros/void/virtualization/lxc.md index 065a030..d7ce344 100644 --- a/distros/void/virtualization/lxc.md +++ b/distros/void/virtualization/lxc.md @@ -1,3 +1,7 @@ +--- +title: "lxc" +tags: [ "Documentation", "distros" ] +--- LXC creates miniature virtual machines to play with. diff --git a/distros/void/xbps.md b/distros/void/xbps.md index 0095bb3..e7b177e 100644 --- a/distros/void/xbps.md +++ b/distros/void/xbps.md @@ -1,3 +1,7 @@ +--- +title: "xbps" +tags: [ "Documentation", "distros" ] +--- Install cowsay > xbps-install cowsay diff --git a/hardware/basics.md b/hardware/basics.md index 32ed47c..546a975 100644 --- a/hardware/basics.md +++ b/hardware/basics.md @@ -1,3 +1,7 @@ +--- +title: "basics" +tags: [ "Documentation", "hardware" ] +--- # Motherboard Information > sudo dmidecode diff --git a/hardware/brightness.md b/hardware/brightness.md index d78acfa..5115295 100644 --- a/hardware/brightness.md +++ b/hardware/brightness.md @@ -1,3 +1,7 @@ +--- +title: "brightness" +tags: [ "Documentation", "hardware" ] +--- # Brightness /sys/class/backlight/*/brightness diff --git a/hardware/keyboard/keymaps.md b/hardware/keyboard/keymaps.md index e255adf..90dcfa7 100644 --- a/hardware/keyboard/keymaps.md +++ b/hardware/keyboard/keymaps.md @@ -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. diff --git a/hardware/keyboard/xmodmap.md b/hardware/keyboard/xmodmap.md index 69baf58..671aebd 100644 --- a/hardware/keyboard/xmodmap.md +++ b/hardware/keyboard/xmodmap.md @@ -1,3 +1,7 @@ +--- +title: "xmodmap" +tags: [ "Documentation", "hardware" ] +--- Ensure you're not stuck in CAPS on mode: > xmodmap -e 'clear Lock' diff --git a/hardware/monitor.md b/hardware/monitor.md index 051038c..a01d92e 100644 --- a/hardware/monitor.md +++ b/hardware/monitor.md @@ -1,3 +1,7 @@ +--- +title: "monitor" +tags: [ "Documentation", "hardware" ] +--- See screen size > xrandr -q diff --git a/hardware/printers.md b/hardware/printers.md index b0e5423..f390dc7 100644 --- a/hardware/printers.md +++ b/hardware/printers.md @@ -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. diff --git a/networking/basics.md b/networking/basics.md index 95192a2..438c4cc 100644 --- a/networking/basics.md +++ b/networking/basics.md @@ -1,3 +1,7 @@ +--- +title: "basics" +tags: [ "Documentation", "networking" ] +--- # You Check how your computer connects to the net: diff --git a/networking/dns.md b/networking/dns.md index 0a4b523..7940197 100644 --- a/networking/dns.md +++ b/networking/dns.md @@ -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: diff --git a/networking/fail2ban.md b/networking/fail2ban.md index 2f375f6..260f30a 100644 --- a/networking/fail2ban.md +++ b/networking/fail2ban.md @@ -1,3 +1,7 @@ +--- +title: "fail2ban" +tags: [ "Documentation", "networking" ] +--- # SSH Daemon Jail > sudo cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.d/ssh.local diff --git a/networking/iptables.md b/networking/iptables.md index 1a81abc..5569d1d 100644 --- a/networking/iptables.md +++ b/networking/iptables.md @@ -1,3 +1,7 @@ +--- +title: "iptables" +tags: [ "Documentation", "networking" ] +--- # Intro This is a basic Linux firewall program. diff --git a/networking/iptables/iptables.md b/networking/iptables/iptables.md index 46c3ba3..796509b 100644 --- a/networking/iptables/iptables.md +++ b/networking/iptables/iptables.md @@ -1,3 +1,7 @@ +--- +title: "iptables" +tags: [ "Documentation", "networking" ] +--- # Intro This is a basic Linux firewall program. diff --git a/networking/nmap.md b/networking/nmap.md index de33172..110da97 100644 --- a/networking/nmap.md +++ b/networking/nmap.md @@ -1,3 +1,7 @@ +--- +title: "nmap" +tags: [ "Documentation", "networking" ] +--- Example: diff --git a/networking/pihole/pihole.md b/networking/pihole/pihole.md index 8508058..18a85c1 100644 --- a/networking/pihole/pihole.md +++ b/networking/pihole/pihole.md @@ -1,3 +1,7 @@ +--- +title: "pihole" +tags: [ "Documentation", "networking" ] +--- View DNS traffic > pihole -t diff --git a/networking/pip.md b/networking/pip.md index 64dff4d..423825d 100644 --- a/networking/pip.md +++ b/networking/pip.md @@ -1,3 +1,7 @@ +--- +title: "pip" +tags: [ "Documentation", "networking" ] +--- Upgrade all packages diff --git a/networking/protocols.md b/networking/protocols.md index 70b5725..83731b8 100644 --- a/networking/protocols.md +++ b/networking/protocols.md @@ -1,3 +1,7 @@ +--- +title: "protocols" +tags: [ "Documentation", "networking" ] +--- # Protocols | TCP | UDP | ICMP | diff --git a/networking/radio.md b/networking/radio.md index c884a3d..a57912b 100644 --- a/networking/radio.md +++ b/networking/radio.md @@ -1,3 +1,7 @@ +--- +title: "radio" +tags: [ "Documentation", "networking" ] +--- Install ` gqrx` and `rtl-sdr` diff --git a/networking/rclone.md b/networking/rclone.md index 98f10e1..cae79e2 100644 --- a/networking/rclone.md +++ b/networking/rclone.md @@ -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'. diff --git a/networking/screen.md b/networking/screen.md index 0947656..4813616 100644 --- a/networking/screen.md +++ b/networking/screen.md @@ -1,3 +1,7 @@ +--- +title: "screen" +tags: [ "Documentation", "networking" ] +--- start session: screen diff --git a/networking/servers/agate.md b/networking/servers/agate.md index bf2ac53..8e86637 100644 --- a/networking/servers/agate.md +++ b/networking/servers/agate.md @@ -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. diff --git a/networking/ssh/sshfs.md b/networking/ssh/sshfs.md index 632c648..283260f 100644 --- a/networking/ssh/sshfs.md +++ b/networking/ssh/sshfs.md @@ -1,3 +1,7 @@ +--- +title: "sshfs" +tags: [ "Documentation", "networking" ] +--- # Mount > sshfs alfred@192.168.0.14:Sync/Alfred diff --git a/networking/ssh/tricks.md b/networking/ssh/tricks.md index d4ee46d..cf89ed0 100644 --- a/networking/ssh/tricks.md +++ b/networking/ssh/tricks.md @@ -1,3 +1,7 @@ +--- +title: "tricks" +tags: [ "Documentation", "networking" ] +--- Mount a remote filesystem locally with fuse-sshfs: diff --git a/networking/tor.md b/networking/tor.md index 707abdc..899ae30 100644 --- a/networking/tor.md +++ b/networking/tor.md @@ -1,3 +1,7 @@ +--- +title: "tor" +tags: [ "Documentation", "networking" ] +--- # Get a hostname diff --git a/networking/transmission.md b/networking/transmission.md index d7a9db8..68736cc 100644 --- a/networking/transmission.md +++ b/networking/transmission.md @@ -1,3 +1,7 @@ +--- +title: "transmission" +tags: [ "Documentation", "networking" ] +--- # Torrench Torrench searches for torrents. diff --git a/networking/troubleshooting.md b/networking/troubleshooting.md index af01a4e..0e53ae4 100644 --- a/networking/troubleshooting.md +++ b/networking/troubleshooting.md @@ -1,3 +1,7 @@ +--- +title: "troubleshooting" +tags: [ "Documentation", "networking" ] +--- # Do you have an IP? diff --git a/networking/unison.md b/networking/unison.md index 42a6e73..63776d5 100644 --- a/networking/unison.md +++ b/networking/unison.md @@ -1,3 +1,7 @@ +--- +title: "unison" +tags: [ "Documentation", "networking" ] +--- # Local Sync diff --git a/networking/website/nginx.md b/networking/website/nginx.md index 4262194..1c7ed08 100644 --- a/networking/website/nginx.md +++ b/networking/website/nginx.md @@ -1,3 +1,7 @@ +--- +title: "nginx" +tags: [ "Documentation", "networking" ] +--- Install nginx: > sudo apt-get install nginx diff --git a/networking/wifi.md b/networking/wifi.md index ed4ae94..b841dda 100644 --- a/networking/wifi.md +++ b/networking/wifi.md @@ -1,3 +1,7 @@ +--- +title: "wifi" +tags: [ "Documentation", "networking" ] +--- # Netstat Stuff Stats on local net usage within domain. diff --git a/networking/wireless.md b/networking/wireless.md index 7ab1f51..5018424 100644 --- a/networking/wireless.md +++ b/networking/wireless.md @@ -1,3 +1,7 @@ +--- +title: "wireless" +tags: [ "Documentation", "networking" ] +--- # Check wifi's working > lspci -k diff --git a/networking/wpa_supplicant.md b/networking/wpa_supplicant.md index f2e64d6..1d0f4d5 100644 --- a/networking/wpa_supplicant.md +++ b/networking/wpa_supplicant.md @@ -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). diff --git a/sound/basics.md b/sound/basics.md index d74cb7c..b7f91bc 100644 --- a/sound/basics.md +++ b/sound/basics.md @@ -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). diff --git a/sound/festival.md b/sound/festival.md index 839357e..6b49454 100644 --- a/sound/festival.md +++ b/sound/festival.md @@ -1,3 +1,7 @@ +--- +title: "festival" +tags: [ "Documentation", "sound" ] +--- # Basics Add your user to the audio group, and install `festival-english`. diff --git a/sound/ffmpeg.md b/sound/ffmpeg.md index 19e1b51..f4d6a8e 100644 --- a/sound/ffmpeg.md +++ b/sound/ffmpeg.md @@ -1,3 +1,7 @@ +--- +title: "ffmpeg" +tags: [ "Documentation", "sound" ] +--- # Basics ffmpeg -i [input file] output_file.mkv diff --git a/sound/mpd.md b/sound/mpd.md index 14598cd..ecb93e5 100644 --- a/sound/mpd.md +++ b/sound/mpd.md @@ -1,3 +1,7 @@ +--- +title: "mpd" +tags: [ "Documentation", "sound" ] +--- # Setup ## Configuration diff --git a/sound/ncmpcpp.md b/sound/ncmpcpp.md index fece232..60be273 100644 --- a/sound/ncmpcpp.md +++ b/sound/ncmpcpp.md @@ -1,3 +1,7 @@ +--- +title: "ncmpcpp" +tags: [ "Documentation", "sound" ] +--- # Music Player Daemon diff --git a/sound/youtube-dl.md b/sound/youtube-dl.md index a09222d..5730b0a 100644 --- a/sound/youtube-dl.md +++ b/sound/youtube-dl.md @@ -1,3 +1,7 @@ +--- +title: "youtube-dl" +tags: [ "Documentation", "sound" ] +--- > youtube-dl --write-auto-sub It will default to English, but you can specify another language with the flag --sub-lang: diff --git a/system/X.md b/system/X.md index 54602ec..f17c2eb 100644 --- a/system/X.md +++ b/system/X.md @@ -1,3 +1,7 @@ +--- +title: "X" +tags: [ "Documentation", "system" ] +--- X is a server which listens to requests for display. Basic configurations are under /etc/X11, but xorg.conf is generally no longer used. diff --git a/system/android.md b/system/android.md index bfd9507..da2451e 100644 --- a/system/android.md +++ b/system/android.md @@ -1,3 +1,7 @@ +--- +title: "android" +tags: [ "Documentation", "system" ] +--- # mtpfs ## Start diff --git a/system/awk.md b/system/awk.md index a45a831..c20095c 100644 --- a/system/awk.md +++ b/system/awk.md @@ -1,3 +1,7 @@ +--- +title: "awk" +tags: [ "Documentation", "system" ] +--- # Basics See a file's contents: diff --git a/system/bash_tricks.md b/system/bash_tricks.md index c81f73b..e52a214 100644 --- a/system/bash_tricks.md +++ b/system/bash_tricks.md @@ -1,3 +1,7 @@ +--- +title: "bash_tricks" +tags: [ "Documentation", "system" ] +--- # Automatic mp3 Tagging /u/OneTurnMore on Reddit: diff --git a/system/character-encoding.md b/system/character-encoding.md index 7d30ad8..7c88f6c 100644 --- a/system/character-encoding.md +++ b/system/character-encoding.md @@ -1,3 +1,7 @@ +--- +title: "character-encoding" +tags: [ "Documentation", "system" ] +--- Convert a text file from one encoding type to another with: > iconv -f ascii -t utf8 oldfilename > newfilename diff --git a/system/compression.md b/system/compression.md index b0b6d81..1168eab 100644 --- a/system/compression.md +++ b/system/compression.md @@ -1,3 +1,7 @@ +--- +title: "compression" +tags: [ "Documentation", "system" ] +--- # Tar ## Basics diff --git a/system/cronie.md b/system/cronie.md index 1a08f42..52236e2 100644 --- a/system/cronie.md +++ b/system/cronie.md @@ -1,3 +1,7 @@ +--- +title: "cronie" +tags: [ "Documentation", "system" ] +--- Various services from cron exist, e.g. diff --git a/system/e-mail.md b/system/e-mail.md index 842cf9d..a289d5f 100644 --- a/system/e-mail.md +++ b/system/e-mail.md @@ -1,3 +1,7 @@ +--- +title: "e-mail" +tags: [ "Documentation", "system" ] +--- # Terminology |MTA | Mail transfer agent | diff --git a/system/editors.md b/system/editors.md index 19e92b5..03abb07 100644 --- a/system/editors.md +++ b/system/editors.md @@ -1,3 +1,7 @@ +--- +title: "editors" +tags: [ "Documentation", "system" ] +--- The system's default text editor can be defined within /etc/profile. It's given the variable `EDITOR`. Add these lines to /etc/profile: diff --git a/system/elvish.md b/system/elvish.md index 797dcac..69f4b4d 100644 --- a/system/elvish.md +++ b/system/elvish.md @@ -1,3 +1,7 @@ +--- +title: "elvish" +tags: [ "Documentation", "system" ] +--- # Setup To run a shell as non-root, the shell must be listed in /etc/shells. diff --git a/system/kernel.md b/system/kernel.md index 97db674..50ab8cf 100644 --- a/system/kernel.md +++ b/system/kernel.md @@ -1,3 +1,7 @@ +--- +title: "kernel" +tags: [ "Documentation", "system" ] +--- Check which kernet modules are loaded into memory > sudo /sbin/lsmod diff --git a/system/logs.md b/system/logs.md index 6776fb3..5096d11 100644 --- a/system/logs.md +++ b/system/logs.md @@ -1,3 +1,7 @@ +--- +title: "logs" +tags: [ "Documentation", "system" ] +--- # Basic Keeping track of health problems. Mostly under /var/log/. diff --git a/system/partitions.md b/system/partitions.md index 94e0e22..d2851c1 100644 --- a/system/partitions.md +++ b/system/partitions.md @@ -1,3 +1,7 @@ +--- +title: "partitions" +tags: [ "Documentation", "system" ] +--- # FDisk Basics > sudo fdisk /dev/sda diff --git a/system/snaps.md b/system/snaps.md index 174f565..18fca84 100644 --- a/system/snaps.md +++ b/system/snaps.md @@ -1,3 +1,7 @@ +--- +title: "snaps" +tags: [ "Documentation", "system" ] +--- > sudo apt-get purge -y snapd #Hiding from Nautilus diff --git a/system/systemd/basics.md b/system/systemd/basics.md index 3a5b4ea..d4f667a 100644 --- a/system/systemd/basics.md +++ b/system/systemd/basics.md @@ -1,3 +1,7 @@ +--- +title: "basics" +tags: [ "Documentation", "system" ] +--- > systemctl list-units > sudo systemctl status mpd diff --git a/system/systemd/journal.md b/system/systemd/journal.md index ce1f529..361c3b5 100644 --- a/system/systemd/journal.md +++ b/system/systemd/journal.md @@ -1,3 +1,7 @@ +--- +title: "journal" +tags: [ "Documentation", "system" ] +--- Find errors since November diff --git a/system/systemd/making services.md b/system/systemd/making services.md index 089a1a1..8253a5b 100644 --- a/system/systemd/making services.md +++ b/system/systemd/making services.md @@ -1,3 +1,6 @@ +--- +tags: [ "Documentation", "system" ] +--- # Basics A service can consist of two files - the .sh script to run, and the .service file which describes its run conditions. diff --git a/system/systemd/users.md b/system/systemd/users.md index fe0112f..54fcd2d 100644 --- a/system/systemd/users.md +++ b/system/systemd/users.md @@ -1,3 +1,7 @@ +--- +title: "users" +tags: [ "Documentation", "system" ] +--- # Automatic Login > cp /usr/lib/systemd/system/getty@.service /etc/systemd/system/getty1@.service diff --git a/system/tmux.md b/system/tmux.md index 534bc55..0b4948f 100644 --- a/system/tmux.md +++ b/system/tmux.md @@ -1,3 +1,7 @@ +--- +title: "tmux" +tags: [ "Documentation", "system" ] +--- Start with: > tmux diff --git a/system/upx.md b/system/upx.md index c5b8489..3024650 100644 --- a/system/upx.md +++ b/system/upx.md @@ -1,3 +1,7 @@ +--- +title: "upx" +tags: [ "Documentation", "system" ] +--- upx compresses binaries, so they take up less disk space, but take longer to start. Make a binary, such as ls, compressed: diff --git a/system/urxvt.md b/system/urxvt.md index c6c779d..7b5d672 100644 --- a/system/urxvt.md +++ b/system/urxvt.md @@ -1 +1,5 @@ +--- +title: "urxvt" +tags: [ "Documentation", "system" ] +--- Perl scripts typically kept in /usr/lib/urxvt/perl diff --git a/system/virtualbox.md b/system/virtualbox.md index e256c8f..5eb763e 100644 --- a/system/virtualbox.md +++ b/system/virtualbox.md @@ -1,3 +1,7 @@ +--- +title: "virtualbox" +tags: [ "Documentation", "system" ] +--- # Setup ## Arch Linux diff --git a/system/wine.md b/system/wine.md index 75060aa..e1a21d3 100644 --- a/system/wine.md +++ b/system/wine.md @@ -1 +1,5 @@ +--- +title: "wine" +tags: [ "Documentation", "system" ] +--- maybe run \n> sudo dpkg --add-architecture i386 diff --git a/system/xdg.md b/system/xdg.md index eaf0c25..1646fb7 100644 --- a/system/xdg.md +++ b/system/xdg.md @@ -1,3 +1,7 @@ +--- +title: "xdg" +tags: [ "Documentation", "system" ] +--- What filetype is this file? diff --git a/system/xen/basics.md b/system/xen/basics.md index 5ca0a74..223bfe7 100644 --- a/system/xen/basics.md +++ b/system/xen/basics.md @@ -1,3 +1,7 @@ +--- +title: "basics" +tags: [ "Documentation", "system" ] +--- # Make a local iso repository > mkdir -p /var/opt/xen/ISO_Store diff --git a/system/xen/xe.md b/system/xen/xe.md index d34d80a..2f71513 100644 --- a/system/xen/xe.md +++ b/system/xen/xe.md @@ -1,3 +1,7 @@ +--- +title: "xe" +tags: [ "Documentation", "system" ] +--- # Basic VM Management > xe vm-list diff --git a/system/xkbmap.md b/system/xkbmap.md index 4eebd93..d927e5b 100644 --- a/system/xkbmap.md +++ b/system/xkbmap.md @@ -1,3 +1,7 @@ +--- +title: "xkbmap" +tags: [ "Documentation", "system" ] +--- # Language Layouts Polish diff --git a/vim/completion.md b/vim/completion.md index eb06064..53da815 100644 --- a/vim/completion.md +++ b/vim/completion.md @@ -1,3 +1,7 @@ +--- +title: "completion" +tags: [ "Documentation", "vim" ] +--- Complete the word: diff --git a/vim/navigate.md b/vim/navigate.md index 9f699cb..57dcddd 100644 --- a/vim/navigate.md +++ b/vim/navigate.md @@ -1,3 +1,7 @@ +--- +title: "navigate" +tags: [ "Documentation", "vim" ] +--- | Move | Command | |:-----|:-------------| diff --git a/vim/screens.md b/vim/screens.md index 664547b..aaa990e 100644 --- a/vim/screens.md +++ b/vim/screens.md @@ -1,3 +1,7 @@ +--- +title: "screens" +tags: [ "Documentation", "vim" ] +--- Make a horizontal split with: diff --git a/vim/search.md b/vim/search.md index ecf9262..b6a280e 100644 --- a/vim/search.md +++ b/vim/search.md @@ -1,3 +1,7 @@ +--- +title: "search" +tags: [ "Documentation", "vim" ] +--- Search and replace the first 'one' found with 'two': > :%s/one/two/ diff --git a/vim/vim.md b/vim/vim.md index 82d7094..8cd47fa 100644 --- a/vim/vim.md +++ b/vim/vim.md @@ -1,2 +1,6 @@ +--- +title: "vim" +tags: [ "Documentation", "vim" ] +--- Describe what you want, then press as few keys as possible. diff --git a/vim/windows.md b/vim/windows.md index 16954ee..9cd879a 100644 --- a/vim/windows.md +++ b/vim/windows.md @@ -1,3 +1,7 @@ +--- +title: "windows" +tags: [ "Documentation", "vim" ] +--- | Command | Keys | |:-----|:----:| diff --git a/vision/ffmpeg.md b/vision/ffmpeg.md deleted file mode 120000 index 36a2a55..0000000 --- a/vision/ffmpeg.md +++ /dev/null @@ -1 +0,0 @@ -../sound/ffmpeg.md \ No newline at end of file diff --git a/vision/imagemagick.md b/vision/imagemagick.md index ecdea50..515ba28 100644 --- a/vision/imagemagick.md +++ b/vision/imagemagick.md @@ -1,3 +1,7 @@ +--- +title: "imagemagick" +tags: [ "Documentation", "vision" ] +--- [Source](http://lxlinux.com/imagemagick.html) Convert jpg to png. diff --git a/vision/qrencode.md b/vision/qrencode.md index c822138..874f746 100644 --- a/vision/qrencode.md +++ b/vision/qrencode.md @@ -1,3 +1,7 @@ +--- +title: "qrencode" +tags: [ "Documentation", "vision" ] +--- Make a QR Coded message: From 1b8b2a0ae38893ad2713b914e43ff4e5e5a0d477 Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Sun, 16 Jan 2022 20:28:02 +0100 Subject: [PATCH 09/26] clean up lk docs for site --- LICENCE.md | 43 --------------------- README.md | 4 ++ basics/archives.md | 64 ------------------------------- basics/basics.md | 1 - basics/clock.md | 1 - basics/logs.md | 2 +- distros/arch/arch_pi_install.md | 22 +++++------ distros/arch/autologin.md | 12 +++--- distros/void/autologin.md | 4 +- networking/wpa_supplicant.md | 1 - system/systemd/making services.md | 1 + 11 files changed, 25 insertions(+), 130 deletions(-) delete mode 100644 LICENCE.md delete mode 100644 basics/archives.md diff --git a/LICENCE.md b/LICENCE.md deleted file mode 100644 index 139c68e..0000000 --- a/LICENCE.md +++ /dev/null @@ -1,43 +0,0 @@ -## creative commons - -# CC0 1.0 Universal - -CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED HEREUNDER. - -### Statement of Purpose - -The laws of most jurisdictions throughout the world automatically confer exclusive Copyright and Related Rights (defined below) upon the creator and subsequent owner(s) (each and all, an "owner") of an original work of authorship and/or a database (each, a "Work"). - -Certain owners wish to permanently relinquish those rights to a Work for the purpose of contributing to a commons of creative, cultural and scientific works ("Commons") that the public can reliably and without fear of later claims of infringement build upon, modify, incorporate in other works, reuse and redistribute as freely as possible in any form whatsoever and for any purposes, including without limitation commercial purposes. These owners may contribute to the Commons to promote the ideal of a free culture and the further production of creative, cultural and scientific works, or to gain reputation or greater distribution for their Work in part through the use and efforts of others. - -For these and/or other purposes and motivations, and without any expectation of additional consideration or compensation, the person associating CC0 with a Work (the "Affirmer"), to the extent that he or she is an owner of Copyright and Related Rights in the Work, voluntarily elects to apply CC0 to the Work and publicly distribute the Work under its terms, with knowledge of his or her Copyright and Related Rights in the Work and the meaning and intended legal effect of CC0 on those rights. - -1. __Copyright and Related Rights.__ A Work made available under CC0 may be protected by copyright and related or neighboring rights ("Copyright and Related Rights"). Copyright and Related Rights include, but are not limited to, the following: - - i. the right to reproduce, adapt, distribute, perform, display, communicate, and translate a Work; - - ii. moral rights retained by the original author(s) and/or performer(s); - - iii. publicity and privacy rights pertaining to a person's image or likeness depicted in a Work; - - iv. rights protecting against unfair competition in regards to a Work, subject to the limitations in paragraph 4(a), below; - - v. rights protecting the extraction, dissemination, use and reuse of data in a Work; - - vi. database rights (such as those arising under Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, and under any national implementation thereof, including any amended or successor version of such directive); and - - vii. other similar, equivalent or corresponding rights throughout the world based on applicable law or treaty, and any national implementations thereof. - -2. __Waiver.__ To the greatest extent permitted by, but not in contravention of, applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and unconditionally waives, abandons, and surrenders all of Affirmer's Copyright and Related Rights and associated claims and causes of action, whether now known or unknown (including existing as well as future claims and causes of action), in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each member of the public at large and to the detriment of Affirmer's heirs and successors, fully intending that such Waiver shall not be subject to revocation, rescission, cancellation, termination, or any other legal or equitable action to disrupt the quiet enjoyment of the Work by the public as contemplated by Affirmer's express Statement of Purpose. - -3. __Public License Fallback.__ Should any part of the Waiver for any reason be judged legally invalid or ineffective under applicable law, then the Waiver shall be preserved to the maximum extent permitted taking into account Affirmer's express Statement of Purpose. In addition, to the extent the Waiver is so judged Affirmer hereby grants to each affected person a royalty-free, non transferable, non sublicensable, non exclusive, irrevocable and unconditional license to exercise Affirmer's Copyright and Related Rights in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the "License"). The License shall be deemed effective as of the date CC0 was applied by Affirmer to the Work. Should any part of the License for any reason be judged legally invalid or ineffective under applicable law, such partial invalidity or ineffectiveness shall not invalidate the remainder of the License, and in such case Affirmer hereby affirms that he or she will not (i) exercise any of his or her remaining Copyright and Related Rights in the Work or (ii) assert any associated claims and causes of action with respect to the Work, in either case contrary to Affirmer's express Statement of Purpose. - -4. __Limitations and Disclaimers.__ - - a. No trademark or patent rights held by Affirmer are waived, abandoned, surrendered, licensed or otherwise affected by this document. - - b. Affirmer offers the Work as-is and makes no representations or warranties of any kind concerning the Work, express, implied, statutory or otherwise, including without limitation warranties of title, merchantability, fitness for a particular purpose, non infringement, or the absence of latent or other defects, accuracy, or the present or absence of errors, whether or not discoverable, all to the greatest extent permissible under applicable law. - - c. Affirmer disclaims responsibility for clearing rights of other persons that may apply to the Work or any use thereof, including without limitation any person's Copyright and Related Rights in the Work. Further, Affirmer disclaims responsibility for obtaining any necessary consents, permissions or other rights required for any use of the Work. - - d. Affirmer understands and acknowledges that Creative Commons is not a party to this document and has no duty or obligation with respect to this CC0 or use of the Work. diff --git a/README.md b/README.md index c9a1e17..fc6e54f 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,7 @@ +--- +title: "Knowledge Base" +--- + # Linux Knowledgebase This is a list of quickstart guides for Linux programs, designed to get the user up and running as fast as possible. diff --git a/basics/archives.md b/basics/archives.md deleted file mode 100644 index b504cf3..0000000 --- a/basics/archives.md +++ /dev/null @@ -1,64 +0,0 @@ ---- -title: "archives" -tags: [ "Documentation", "basics" ] ---- -# Tar Archives - -To create an archive file, just remember: - -*C*reate *z*e *f*ile! - -> tar czf file.tar.gz file1 file2 - -E*x*tract *z*e *f*iles: - -> tar xzf file.tar.gz - -The .tar extension means two or more files are bundled together into a single file. The .tar.gz means compression. - -Tarballs come with a number of arguments. - -## More Compression - -Extremely compressed files take longer to compress, but take up less disk space. - -> tar cfj super-compressed.tar.bz2 file1 file2 - -# ssh backup of partitions - -Back up an unmounted partition with ssh: - -> sudo dd if=/dev/sda1 | ssh -C ghost@192.168.0.10 "dd of=/home/ghost/backup.img" status=progress - -# `xz` - -Install `xz`. - -Unzip the image with: - -> unxz void.img.xz - -This then deletes the .xz file. To keep it: - -> unxz --keep void.img.xz - -# `zip` - -Zip file1-3, into a zip file called 'newzip.zip'. - -> zip newsip file1 file2 file3 - -# Automatic Backups with `find` - -## `tar` - -Compressing all Latex Files in /home/. - -> sudo find ~ -maxdepth 4 -name "*.txt" | xargs tar cvf latex-bundle.tar.gz - -## `zip` - -Install `zip`. - -> find /home/"$(whoami)" -type f -size -2M | xargs zip -u backup - diff --git a/basics/basics.md b/basics/basics.md index 5a48f6d..14fba02 100644 --- a/basics/basics.md +++ b/basics/basics.md @@ -2,7 +2,6 @@ title: "basics" tags: [ "Documentation", "basics" ] --- -# Absolute Bloody Basics You need about a dozen commands to move around Linux. After that, you look up the rest as you go. diff --git a/basics/clock.md b/basics/clock.md index 0d5f343..51e1692 100644 --- a/basics/clock.md +++ b/basics/clock.md @@ -2,7 +2,6 @@ title: "clock" tags: [ "Documentation", "basics" ] --- -# `date` Show system time: diff --git a/basics/logs.md b/basics/logs.md index f119c63..fd2f11d 100644 --- a/basics/logs.md +++ b/basics/logs.md @@ -2,7 +2,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. diff --git a/distros/arch/arch_pi_install.md b/distros/arch/arch_pi_install.md index 56369cd..4ad3abd 100644 --- a/distros/arch/arch_pi_install.md +++ b/distros/arch/arch_pi_install.md @@ -36,28 +36,28 @@ Move boot files to the first partition: > Unmount the two partitions: > umount boot root -echo belgradecats > /etc/hostname -echo "# /etc/hosts: static lookup table for host names +> echo [ hostname ] > /etc/hostname +Then edit the `/etc/hosts` file. ``` -127.0.0.1 belgradecats.localdomain belgradecats -::1 belgradecats.localdomain belgradecats ip6-localhost +127.0.0.1 localhost.localdomain localhost +::1 localhost.localdomain localhost ip6-localhost ``` -# End of file" > /etc/hosts - # Get audio on -echo dtparam=audio=on >> /boot/config.txt +> echo dtparam=audio=on >> /boot/config.txt -pacman-key --init -pacman-key --populate archlinuxarm +Start pacman keyring. -pacman -Syyu base-devel git alsa-utils xf86-video-fbdev +> pacman-key --init +> pacman-key --populate archlinuxarm -timedatectl set-timezone Europe/Belgrade +> pacman -Syyu base-devel git alsa-utils xf86-video-fbdev + +> timedatectl set-timezone Europe/Belgrade diff --git a/distros/arch/autologin.md b/distros/arch/autologin.md index 76a4f1f..29980db 100644 --- a/distros/arch/autologin.md +++ b/distros/arch/autologin.md @@ -1,29 +1,29 @@ --- title: "autologin" -tags: [ "Documentation", "distros" ] +tags: [ "Documentation", "Distros", "Arch" ] --- + # 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: > sudo systemctl edit getty@tty1 -The put in the following, changing $USER to your username. +The put in the following, changing `[ USER ]` to your username. ``` [Service] ExecStart= -ExecStart=-/usr/bin/agetty --autologin $USER -s %I 115200,38400,9600 vt102 +ExecStart=-/usr/bin/agetty --autologin [ USER ] -s %I 115200,38400,9600 vt102 ``` # Automatically Start X -In `bashrc`. +In `.bashrc`. ``` - if [ -z "$DISPLAY" ] && [ "$(fgconsole)" -eq 1 ]; then exec startx fi diff --git a/distros/void/autologin.md b/distros/void/autologin.md index 04d1b1b..990156e 100644 --- a/distros/void/autologin.md +++ b/distros/void/autologin.md @@ -1,6 +1,6 @@ --- -title: "autologin" -tags: [ "Documentation", "distros" ] +title: "Void Autologin" +tags: [ "Documentation", "Distros", "Void" ] --- Make the autologin service: diff --git a/networking/wpa_supplicant.md b/networking/wpa_supplicant.md index 1d0f4d5..c5d3367 100644 --- a/networking/wpa_supplicant.md +++ b/networking/wpa_supplicant.md @@ -2,7 +2,6 @@ title: "wpa_supplicant" tags: [ "Documentation", "networking" ] --- -# Intro wpa_supplicant configurations are stored in /etc/wpa_supplicant/wpa_supplicant-wlan0 (or equivalent). diff --git a/system/systemd/making services.md b/system/systemd/making services.md index 8253a5b..5492eb8 100644 --- a/system/systemd/making services.md +++ b/system/systemd/making services.md @@ -1,4 +1,5 @@ --- +title: "Making Services" tags: [ "Documentation", "system" ] --- # Basics From cc560bc4217a30489cb62ea6bfe65c8716ee3044 Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Sun, 16 Jan 2022 20:28:26 +0100 Subject: [PATCH 10/26] add basic index for lk --- _index.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 _index.md diff --git a/_index.md b/_index.md new file mode 100644 index 0000000..e6b1676 --- /dev/null +++ b/_index.md @@ -0,0 +1,6 @@ +--- +title: "Linux Knowledge Base" +--- + +{{< ticks >}} +{{< /ticks >}} From cc8e280017052be2eec9908ce2e5d82ebc1ee796 Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Sun, 16 Jan 2022 20:45:55 +0100 Subject: [PATCH 11/26] move and delete items --- basics/shell.md | 5 ++--- distros/arch/signal.md => chat/signal-cli.md | 0 networking/radio.md | 7 ------- 3 files changed, 2 insertions(+), 10 deletions(-) rename distros/arch/signal.md => chat/signal-cli.md (100%) delete mode 100644 networking/radio.md diff --git a/basics/shell.md b/basics/shell.md index 8a0e4af..5266bc8 100644 --- a/basics/shell.md +++ b/basics/shell.md @@ -2,11 +2,10 @@ title: "shell" tags: [ "Documentation", "basics" ] --- -# Shells -Dash - fast but limited funcionality, great for scripts. +Dash - fast but limited funcionality, great for scripts -sh - primitive and ubiquitous. +sh - a simple link to whatever your default shell is bash - the standard diff --git a/distros/arch/signal.md b/chat/signal-cli.md similarity index 100% rename from distros/arch/signal.md rename to chat/signal-cli.md diff --git a/networking/radio.md b/networking/radio.md deleted file mode 100644 index a57912b..0000000 --- a/networking/radio.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "radio" -tags: [ "Documentation", "networking" ] ---- -Install ` gqrx` and `rtl-sdr` - - From 8e780919f11bb6bbdb50b160fcb41b61a49ecc5e Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Fri, 14 Jan 2022 12:32:40 +0100 Subject: [PATCH 12/26] add mdadm --- data/mdadm.md | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 data/mdadm.md diff --git a/data/mdadm.md b/data/mdadm.md new file mode 100644 index 0000000..6362db3 --- /dev/null +++ b/data/mdadm.md @@ -0,0 +1,40 @@ +# RAID5 + +You will need 4 disks and the `mdadm` package. +The total size will be equal to the disks x 3, because one will be used for redundancy. + +> sudo mdadm --create --verbose /dev/*md127* --level=5 --raid-devices=*4* */dev/sdb /dev/sdc /dev/sdd /dev/sde* + +Note the variable parts: + +- The name of the device could be `/dev/md12` or whatever +- The number of devices could be larger, but must be at least 4 for raid 5 +- We end by listing all devices in the new `md` device. + +Now look at how the raid status: + +> cat /proc/mdstat + +This will increase until the entire thing is fine. + +Check the health of your `mdadm` array: + +> sudo mdadm --detail /dev/md127 + +You should see `State : clean`. If you see it is `degraded`, then a disk has broken. + +## Replacing a Disk + +First, prepare the disk with both a gpt partition table, and a partition: + +> sudo parted --script /dev/sdb mklabel gpt mkpart primary 1MiB -2048s + +Add the appropriate file system to it, e.g.: + +> sudo mkfs.ext4 /dev/sdb1 + +Then finally, add the disk: + +> sudo mdadm --add /dev/md127 /dev/sdb1 + + From 37c8daf6559c744b2bce8fb1a4d497e838c1691d Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Fri, 14 Jan 2022 14:16:12 +0100 Subject: [PATCH 13/26] place pwd first in basics --- basics/basics.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/basics/basics.md b/basics/basics.md index ac1579f..c6a91d7 100644 --- a/basics/basics.md +++ b/basics/basics.md @@ -4,7 +4,11 @@ You need about a dozen commands to move around Linux. After that, you look up the rest as you go. Don't worry about understanding any of it, just type it in and the habit forms pretty quickly. -You start in a dark room. You have a 'look-see' what's in front of you: +You start in a dark room. You want to know where you are by **p**rinting out your **w**orking '**d**irectory' (i.e. 'location'): + +> pwd + +Have a look at what is here: > ls @@ -18,10 +22,6 @@ Have a look at **a**ll the files: So `.` means 'here' and `..` means 'you see stairs leading downwards' (e.g. 'the directory behind you'). -Find out where you are by **p**rinting out your **w**orking '**d**irectory' (i.e. 'location'): - -> pwd - Change directory (`cd`) down one level: > cd .. From 6b76fc4ca08c02f91e29362e426d387e6c6068aa Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Fri, 14 Jan 2022 21:06:31 +0100 Subject: [PATCH 14/26] fix mdadm added disks --- data/mdadm.md | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/data/mdadm.md b/data/mdadm.md index 6362db3..98f0b65 100644 --- a/data/mdadm.md +++ b/data/mdadm.md @@ -25,16 +25,5 @@ You should see `State : clean`. If you see it is `degraded`, then a disk has bro ## Replacing a Disk -First, prepare the disk with both a gpt partition table, and a partition: - -> sudo parted --script /dev/sdb mklabel gpt mkpart primary 1MiB -2048s - -Add the appropriate file system to it, e.g.: - -> sudo mkfs.ext4 /dev/sdb1 - -Then finally, add the disk: - > sudo mdadm --add /dev/md127 /dev/sdb1 - From bdc4ea87cb283f66f78d72d0960bfc96da8e2726 Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Sun, 16 Jan 2022 18:12:13 +0100 Subject: [PATCH 15/26] remove old note --- data/taskwarrior/.no | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 data/taskwarrior/.no diff --git a/data/taskwarrior/.no b/data/taskwarrior/.no deleted file mode 100644 index 789fb54..0000000 --- a/data/taskwarrior/.no +++ /dev/null @@ -1,30 +0,0 @@ -setting up with: - -- data at /var/taskd -- user: root -- host=localhost -- port=53589 - -- Organization=Andonome -- Name="Malin Freeborn" - -## Next -Copy files to ~/.task -/usr/share/doc/taskd/pki/{ca.cert.pem,Malin_Freeborn.cert.pem,Malin_Freeborn.key.pem} - -And run these commands: - -``` - Malin Freeborn must run these commands: - task config taskd.server localhost:53589 - task config taskd.credentials 'Andonome/Malin Freeborn/36faa2a9-de12-4410-99d5-0bcaa5a4887a' - task config taskd.certificate ~/.task/Malin_Freeborn.cert.pem - task config taskd.key ~/.task/Malin_Freeborn.key.pem - task config taskd.ca ~/.task/ca.cert.pem - task config taskd.trust strict - task config taskd.ciphers NORMAL - - -``` - - From aac84da38a12163077cfffa8f75a160fb0a023c9 Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Sun, 16 Jan 2022 19:20:39 +0100 Subject: [PATCH 16/26] add headers to lk --- basics/archives.md | 4 ++++ basics/at.md | 4 ++++ basics/basics.md | 4 ++++ basics/clock.md | 4 ++++ basics/conditionals.md | 4 ++++ basics/cron.md | 4 ++++ basics/kernel.md | 4 ++++ basics/keyboard.md | 4 ++++ basics/kill.md | 4 ++++ basics/links.md | 4 ++++ basics/locale.md | 4 ++++ basics/locating.md | 4 ++++ basics/logs.md | 4 ++++ basics/packages.md | 4 ++++ basics/processes.md | 4 ++++ basics/shell.md | 4 ++++ basics/swap.md | 4 ++++ basics/time.md | 4 ++++ basics/users.md | 4 ++++ chat/email.md | 4 ++++ chat/irssi.md | 4 ++++ chat/profanity.md | 4 ++++ chat/wgetpaste.md | 4 ++++ data/archives.md | 4 ++++ data/git.md | 4 ++++ data/gpg.md | 4 ++++ data/groff.md | 4 ++++ data/khard.md | 4 ++++ data/pass.md | 4 ++++ data/sc-im.md | 4 ++++ data/sdcv.md | 4 ++++ data/sql/postgresql.md | 4 ++++ data/sql/sql.md | 4 ++++ data/sql/tricks.md | 4 ++++ data/taskwarrior/task.md | 4 ++++ data/taskwarrior/taskd.md | 4 ++++ data/taskwarrior/timew.md | 4 ++++ data/w3m.md | 4 ++++ distros/arch/arch_pi_install.md | 4 ++++ distros/arch/autologin.md | 4 ++++ distros/arch/basic-install.md | 4 ++++ distros/arch/blackarch.md | 4 ++++ distros/arch/encrypted.md | 4 ++++ distros/arch/fonts.md | 4 ++++ distros/arch/lxc.md | 4 ++++ distros/arch/pacman.md | 4 ++++ distros/arch/pi-hole-server.md | 4 ++++ distros/arch/problems.md | 4 ++++ distros/arch/signal.md | 4 ++++ distros/debian/apt.md | 4 ++++ distros/debian/ubuntu/lubuntu.md | 4 ++++ distros/kali/metasploit.md | 4 ++++ distros/redhat/Oracle/basics.md | 4 ++++ distros/redhat/npm.md | 4 ++++ distros/redhat/yum.md | 4 ++++ distros/suse/http_server.md | 4 ++++ distros/void/autologin.md | 4 ++++ distros/void/basics.md | 4 ++++ distros/void/extrace.md | 4 ++++ distros/void/kernels.md | 4 ++++ distros/void/keyboard.md | 4 ++++ distros/void/lxc.md | 4 ++++ distros/void/networking.md | 4 ++++ distros/void/sv.md | 4 ++++ distros/void/virtualization/lxc.md | 4 ++++ distros/void/xbps.md | 4 ++++ hardware/basics.md | 4 ++++ hardware/brightness.md | 4 ++++ hardware/keyboard/keymaps.md | 4 ++++ hardware/keyboard/xmodmap.md | 4 ++++ hardware/monitor.md | 4 ++++ hardware/printers.md | 4 ++++ networking/basics.md | 4 ++++ networking/dns.md | 4 ++++ networking/fail2ban.md | 4 ++++ networking/iptables.md | 4 ++++ networking/iptables/iptables.md | 4 ++++ networking/nmap.md | 4 ++++ networking/pihole/pihole.md | 4 ++++ networking/pip.md | 4 ++++ networking/protocols.md | 4 ++++ networking/radio.md | 4 ++++ networking/rclone.md | 4 ++++ networking/screen.md | 4 ++++ networking/servers/agate.md | 4 ++++ networking/ssh/sshfs.md | 4 ++++ networking/ssh/tricks.md | 4 ++++ networking/tor.md | 4 ++++ networking/transmission.md | 4 ++++ networking/troubleshooting.md | 4 ++++ networking/unison.md | 4 ++++ networking/website/nginx.md | 4 ++++ networking/wifi.md | 4 ++++ networking/wireless.md | 4 ++++ networking/wpa_supplicant.md | 4 ++++ sound/basics.md | 4 ++++ sound/festival.md | 4 ++++ sound/ffmpeg.md | 4 ++++ sound/mpd.md | 4 ++++ sound/ncmpcpp.md | 4 ++++ sound/youtube-dl.md | 4 ++++ system/X.md | 4 ++++ system/android.md | 4 ++++ system/awk.md | 4 ++++ system/bash_tricks.md | 4 ++++ system/character-encoding.md | 4 ++++ system/compression.md | 4 ++++ system/cronie.md | 4 ++++ system/e-mail.md | 4 ++++ system/editors.md | 4 ++++ system/elvish.md | 4 ++++ system/kernel.md | 4 ++++ system/logs.md | 4 ++++ system/partitions.md | 4 ++++ system/snaps.md | 4 ++++ system/systemd/basics.md | 4 ++++ system/systemd/journal.md | 4 ++++ system/systemd/making services.md | 3 +++ system/systemd/users.md | 4 ++++ system/tmux.md | 4 ++++ system/upx.md | 4 ++++ system/urxvt.md | 4 ++++ system/virtualbox.md | 4 ++++ system/wine.md | 4 ++++ system/xdg.md | 4 ++++ system/xkbmap.md | 4 ++++ vim/completion.md | 4 ++++ vim/navigate.md | 4 ++++ vim/screens.md | 4 ++++ vim/search.md | 4 ++++ vim/vim.md | 4 ++++ vim/windows.md | 4 ++++ virtualization/xen/basics.md | 4 ++++ virtualization/xen/xe.md | 4 ++++ vision/ffmpeg.md | 1 - vision/imagemagick.md | 4 ++++ vision/qrencode.md | 4 ++++ 137 files changed, 543 insertions(+), 1 deletion(-) delete mode 120000 vision/ffmpeg.md diff --git a/basics/archives.md b/basics/archives.md index 974c5b0..b504cf3 100644 --- a/basics/archives.md +++ b/basics/archives.md @@ -1,3 +1,7 @@ +--- +title: "archives" +tags: [ "Documentation", "basics" ] +--- # Tar Archives To create an archive file, just remember: diff --git a/basics/at.md b/basics/at.md index 0ef7e03..dbeb72b 100644 --- a/basics/at.md +++ b/basics/at.md @@ -1,3 +1,7 @@ +--- +title: "at" +tags: [ "Documentation", "basics" ] +--- Install with: > sudo apt install at diff --git a/basics/basics.md b/basics/basics.md index c6a91d7..5a48f6d 100644 --- a/basics/basics.md +++ b/basics/basics.md @@ -1,3 +1,7 @@ +--- +title: "basics" +tags: [ "Documentation", "basics" ] +--- # Absolute Bloody Basics You need about a dozen commands to move around Linux. diff --git a/basics/clock.md b/basics/clock.md index 7ca71f4..0d5f343 100644 --- a/basics/clock.md +++ b/basics/clock.md @@ -1,3 +1,7 @@ +--- +title: "clock" +tags: [ "Documentation", "basics" ] +--- # `date` Show system time: diff --git a/basics/conditionals.md b/basics/conditionals.md index 7f2de73..9795f83 100644 --- a/basics/conditionals.md +++ b/basics/conditionals.md @@ -1,3 +1,7 @@ +--- +title: "conditionals" +tags: [ "Documentation", "basics" ] +--- # If statements Test statement equality as so: diff --git a/basics/cron.md b/basics/cron.md index e6b9b66..bee5715 100644 --- a/basics/cron.md +++ b/basics/cron.md @@ -1,3 +1,7 @@ +--- +title: "cron" +tags: [ "Documentation", "basics" ] +--- # Cron Various services from cron exist, e.g. diff --git a/basics/kernel.md b/basics/kernel.md index 8fce33a..08bca8c 100644 --- a/basics/kernel.md +++ b/basics/kernel.md @@ -1,3 +1,7 @@ +--- +title: "kernel" +tags: [ "Documentation", "basics" ] +--- # Living Space Kernel modules live in lib/modules/$(uname -r) diff --git a/basics/keyboard.md b/basics/keyboard.md index 4bb7b16..1adc259 100644 --- a/basics/keyboard.md +++ b/basics/keyboard.md @@ -1,3 +1,7 @@ +--- +title: "keyboard" +tags: [ "Documentation", "basics" ] +--- # Set Layout Set layout to British English. diff --git a/basics/kill.md b/basics/kill.md index cd1c562..60228cd 100644 --- a/basics/kill.md +++ b/basics/kill.md @@ -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 diff --git a/basics/links.md b/basics/links.md index 201053e..1406760 100644 --- a/basics/links.md +++ b/basics/links.md @@ -1,3 +1,7 @@ +--- +title: "links" +tags: [ "Documentation", "basics" ] +--- Link from X to Y. > ln -s X ../otherdir/Y diff --git a/basics/locale.md b/basics/locale.md index 079e494..fbbb485 100644 --- a/basics/locale.md +++ b/basics/locale.md @@ -1,3 +1,7 @@ +--- +title: "locale" +tags: [ "Documentation", "basics" ] +--- A list of supported locales is available at /usr/share/i18n/SUPPORTED diff --git a/basics/locating.md b/basics/locating.md index 5301422..80c7340 100644 --- a/basics/locating.md +++ b/basics/locating.md @@ -1,3 +1,7 @@ +--- +title: "locating" +tags: [ "Documentation", "basics" ] +--- # Whereis the Program Ask where the `angband` program is, along with all its configuration files: diff --git a/basics/logs.md b/basics/logs.md index d6b34f8..f119c63 100644 --- a/basics/logs.md +++ b/basics/logs.md @@ -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. diff --git a/basics/packages.md b/basics/packages.md index 90a636c..30b86ae 100644 --- a/basics/packages.md +++ b/basics/packages.md @@ -1,3 +1,7 @@ +--- +title: "packages" +tags: [ "Documentation", "basics" ] +--- # Looking Your package has something to do with unzipping. Find out more: diff --git a/basics/processes.md b/basics/processes.md index 786f50b..ef9c20f 100644 --- a/basics/processes.md +++ b/basics/processes.md @@ -1,3 +1,7 @@ +--- +title: "processes" +tags: [ "Documentation", "basics" ] +--- # Free See free space with: diff --git a/basics/shell.md b/basics/shell.md index ede1c82..8a0e4af 100644 --- a/basics/shell.md +++ b/basics/shell.md @@ -1,3 +1,7 @@ +--- +title: "shell" +tags: [ "Documentation", "basics" ] +--- # Shells Dash - fast but limited funcionality, great for scripts. diff --git a/basics/swap.md b/basics/swap.md index 8d8a4b6..fcb4170 100644 --- a/basics/swap.md +++ b/basics/swap.md @@ -1,3 +1,7 @@ +--- +title: "swap" +tags: [ "Documentation", "basics" ] +--- # Making a Swap File > sudo mkdir -v /var/cache/swap diff --git a/basics/time.md b/basics/time.md index 7274bff..d44eb83 100644 --- a/basics/time.md +++ b/basics/time.md @@ -1,3 +1,7 @@ +--- +title: "time" +tags: [ "Documentation", "basics" ] +--- # systemd Set time to synchronize with an ntp server: diff --git a/basics/users.md b/basics/users.md index d254515..b4d8dcf 100644 --- a/basics/users.md +++ b/basics/users.md @@ -1,3 +1,7 @@ +--- +title: "users" +tags: [ "Documentation", "basics" ] +--- # Basic Information Let's get some entries with 'getent', e.g. passwd or group. diff --git a/chat/email.md b/chat/email.md index da6c288..be9100c 100644 --- a/chat/email.md +++ b/chat/email.md @@ -1,3 +1,7 @@ +--- +title: "email" +tags: [ "Documentation", "chat" ] +--- # Sendmail Compose a message like this: diff --git a/chat/irssi.md b/chat/irssi.md index c4a0bc6..c52d544 100644 --- a/chat/irssi.md +++ b/chat/irssi.md @@ -1,3 +1,7 @@ +--- +title: "irssi" +tags: [ "Documentation", "chat" ] +--- In program: > /NETWORK LIST diff --git a/chat/profanity.md b/chat/profanity.md index 58bbae6..b32dda9 100644 --- a/chat/profanity.md +++ b/chat/profanity.md @@ -1,3 +1,7 @@ +--- +title: "profanity" +tags: [ "Documentation", "chat" ] +--- # Pre Setup diff --git a/chat/wgetpaste.md b/chat/wgetpaste.md index 0986c27..265ccc5 100644 --- a/chat/wgetpaste.md +++ b/chat/wgetpaste.md @@ -1,3 +1,7 @@ +--- +title: "wgetpaste" +tags: [ "Documentation", "chat" ] +--- See available pastebins: diff --git a/data/archives.md b/data/archives.md index 5de17e3..00862bd 100644 --- a/data/archives.md +++ b/data/archives.md @@ -1,3 +1,7 @@ +--- +title: "archives" +tags: [ "Documentation", "data" ] +--- # GPG Archives Create an encrypted archive with `gpg`: diff --git a/data/git.md b/data/git.md index 21c9e82..217354b 100644 --- a/data/git.md +++ b/data/git.md @@ -1,3 +1,7 @@ +--- +title: "git" +tags: [ "Documentation", "data" ] +--- # Starting ## New Machines diff --git a/data/gpg.md b/data/gpg.md index 3113489..ef5ace3 100644 --- a/data/gpg.md +++ b/data/gpg.md @@ -1,3 +1,7 @@ +--- +title: "gpg" +tags: [ "Documentation", "data" ] +--- # Making keys Generate keys: diff --git a/data/groff.md b/data/groff.md index df33c8e..657b1da 100644 --- a/data/groff.md +++ b/data/groff.md @@ -1,3 +1,7 @@ +--- +title: "groff" +tags: [ "Documentation", "data" ] +--- # Basic Documents Great a file called `name.ms`, with the following content: diff --git a/data/khard.md b/data/khard.md index cf6df9d..51042a5 100644 --- a/data/khard.md +++ b/data/khard.md @@ -1,3 +1,7 @@ +--- +title: "khard" +tags: [ "Documentation", "data" ] +--- Get the basic config: > mkdir ~/.config/khard diff --git a/data/pass.md b/data/pass.md index 8110ea4..05b6e38 100644 --- a/data/pass.md +++ b/data/pass.md @@ -1,3 +1,7 @@ +--- +title: "pass" +tags: [ "Documentation", "data" ] +--- [Video instructions](https://www.hooktube.com/watch?v=hlRQTj1D9LA) Setup [gpg](./gpg.md) keys. diff --git a/data/sc-im.md b/data/sc-im.md index 95135a0..5510e16 100644 --- a/data/sc-im.md +++ b/data/sc-im.md @@ -1,3 +1,7 @@ +--- +title: "sc-im" +tags: [ "Documentation", "data" ] +--- # Basic Commands > H = highest part diff --git a/data/sdcv.md b/data/sdcv.md index f5f6728..abf11e5 100644 --- a/data/sdcv.md +++ b/data/sdcv.md @@ -1,3 +1,7 @@ +--- +title: "sdcv" +tags: [ "Documentation", "data" ] +--- # Install New Dictionaries If the path doesn't exist then: diff --git a/data/sql/postgresql.md b/data/sql/postgresql.md index 20714f7..c7db904 100644 --- a/data/sql/postgresql.md +++ b/data/sql/postgresql.md @@ -1,3 +1,7 @@ +--- +title: "postgresql" +tags: [ "Documentation", "data" ] +--- # Setup Install postgres and start it as a service, then start with: diff --git a/data/sql/sql.md b/data/sql/sql.md index 3f675f0..ee354c4 100644 --- a/data/sql/sql.md +++ b/data/sql/sql.md @@ -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. diff --git a/data/sql/tricks.md b/data/sql/tricks.md index 7c36dcf..5f51639 100644 --- a/data/sql/tricks.md +++ b/data/sql/tricks.md @@ -1,3 +1,7 @@ +--- +title: "tricks" +tags: [ "Documentation", "data" ] +--- # Find data from any table diff --git a/data/taskwarrior/task.md b/data/taskwarrior/task.md index 8390aaa..c1c5182 100644 --- a/data/taskwarrior/task.md +++ b/data/taskwarrior/task.md @@ -1,3 +1,7 @@ +--- +title: "task" +tags: [ "Documentation", "data" ] +--- # Contexts Set three contexts by their tags: diff --git a/data/taskwarrior/taskd.md b/data/taskwarrior/taskd.md index 2015d36..74e7c2f 100644 --- a/data/taskwarrior/taskd.md +++ b/data/taskwarrior/taskd.md @@ -1,3 +1,7 @@ +--- +title: "taskd" +tags: [ "Documentation", "data" ] +--- (instructions currently not working) Switch to root to make things easier. diff --git a/data/taskwarrior/timew.md b/data/taskwarrior/timew.md index ff6b9d9..61925cc 100644 --- a/data/taskwarrior/timew.md +++ b/data/taskwarrior/timew.md @@ -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. diff --git a/data/w3m.md b/data/w3m.md index 7ceafb5..eba6c76 100644 --- a/data/w3m.md +++ b/data/w3m.md @@ -1,3 +1,7 @@ +--- +title: "w3m" +tags: [ "Documentation", "data" ] +--- 'H' for help. Ctrl+u to go to new url. diff --git a/distros/arch/arch_pi_install.md b/distros/arch/arch_pi_install.md index 3b2b10f..56369cd 100644 --- a/distros/arch/arch_pi_install.md +++ b/distros/arch/arch_pi_install.md @@ -1,3 +1,7 @@ +--- +title: "arch_pi_install" +tags: [ "Documentation", "distros" ] +--- # Initial Setup diff --git a/distros/arch/autologin.md b/distros/arch/autologin.md index 41afbf6..76a4f1f 100644 --- a/distros/arch/autologin.md +++ b/distros/arch/autologin.md @@ -1,3 +1,7 @@ +--- +title: "autologin" +tags: [ "Documentation", "distros" ] +--- # Automatic Login Edit /etc/systemd/system/getty@tty1.service.d/override.conf by typing: diff --git a/distros/arch/basic-install.md b/distros/arch/basic-install.md index 29d4c59..e2235de 100644 --- a/distros/arch/basic-install.md +++ b/distros/arch/basic-install.md @@ -1,3 +1,7 @@ +--- +title: "basic-install" +tags: [ "Documentation", "distros" ] +--- Keyboard layout changed. > ls /usr/share/kbd/keymaps/**/*.map.gz diff --git a/distros/arch/blackarch.md b/distros/arch/blackarch.md index f6fe1d4..657cb51 100644 --- a/distros/arch/blackarch.md +++ b/distros/arch/blackarch.md @@ -1,3 +1,7 @@ +--- +title: "blackarch" +tags: [ "Documentation", "distros" ] +--- ## Basics diff --git a/distros/arch/encrypted.md b/distros/arch/encrypted.md index 7472274..9a8d5f1 100644 --- a/distros/arch/encrypted.md +++ b/distros/arch/encrypted.md @@ -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 diff --git a/distros/arch/fonts.md b/distros/arch/fonts.md index bf3ee69..15b4019 100644 --- a/distros/arch/fonts.md +++ b/distros/arch/fonts.md @@ -1,3 +1,7 @@ +--- +title: "fonts" +tags: [ "Documentation", "distros" ] +--- # Basics Update font-cache: diff --git a/distros/arch/lxc.md b/distros/arch/lxc.md index 03b00e7..48c57b0 100644 --- a/distros/arch/lxc.md +++ b/distros/arch/lxc.md @@ -1,3 +1,7 @@ +--- +title: "lxc" +tags: [ "Documentation", "distros" ] +--- # Distro Specifics Arch dependencies: `arch-install-scripts` `dnsmasq` diff --git a/distros/arch/pacman.md b/distros/arch/pacman.md index d32c6c0..80cddc7 100644 --- a/distros/arch/pacman.md +++ b/distros/arch/pacman.md @@ -1,3 +1,7 @@ +--- +title: "pacman" +tags: [ "Documentation", "distros" ] +--- Packages are kept in /var/cache/pacman/pkg. diff --git a/distros/arch/pi-hole-server.md b/distros/arch/pi-hole-server.md index a8ddb13..b6d712e 100644 --- a/distros/arch/pi-hole-server.md +++ b/distros/arch/pi-hole-server.md @@ -1,3 +1,7 @@ +--- +title: "pi-hole-server" +tags: [ "Documentation", "distros" ] +--- > yay -S pi-hole-server diff --git a/distros/arch/problems.md b/distros/arch/problems.md index 6830ce5..c627091 100644 --- a/distros/arch/problems.md +++ b/distros/arch/problems.md @@ -1,3 +1,7 @@ +--- +title: "problems" +tags: [ "Documentation", "distros" ] +--- Broken Xorg diff --git a/distros/arch/signal.md b/distros/arch/signal.md index dc89223..e196a36 100644 --- a/distros/arch/signal.md +++ b/distros/arch/signal.md @@ -1,3 +1,7 @@ +--- +title: "signal" +tags: [ "Documentation", "distros" ] +--- > yay -S signal-cli diff --git a/distros/debian/apt.md b/distros/debian/apt.md index afc3152..8aa15ea 100644 --- a/distros/debian/apt.md +++ b/distros/debian/apt.md @@ -1,3 +1,7 @@ +--- +title: "apt" +tags: [ "Documentation", "distros" ] +--- ## apt ### Configurations? diff --git a/distros/debian/ubuntu/lubuntu.md b/distros/debian/ubuntu/lubuntu.md index ae172a6..9d7a90d 100644 --- a/distros/debian/ubuntu/lubuntu.md +++ b/distros/debian/ubuntu/lubuntu.md @@ -1,3 +1,7 @@ +--- +title: "lubuntu" +tags: [ "Documentation", "distros" ] +--- # Videos not working diff --git a/distros/kali/metasploit.md b/distros/kali/metasploit.md index e9d96b6..2c264a1 100644 --- a/distros/kali/metasploit.md +++ b/distros/kali/metasploit.md @@ -1,3 +1,7 @@ +--- +title: "metasploit" +tags: [ "Documentation", "distros" ] +--- > service postgresql start > systemctl status postgresql diff --git a/distros/redhat/Oracle/basics.md b/distros/redhat/Oracle/basics.md index 8e86bd7..d66718c 100644 --- a/distros/redhat/Oracle/basics.md +++ b/distros/redhat/Oracle/basics.md @@ -1,3 +1,7 @@ +--- +title: "basics" +tags: [ "Documentation", "distros" ] +--- > cd /etc/yum.repos.d/ diff --git a/distros/redhat/npm.md b/distros/redhat/npm.md index 5a2d38a..b282cb6 100644 --- a/distros/redhat/npm.md +++ b/distros/redhat/npm.md @@ -1,3 +1,7 @@ +--- +title: "npm" +tags: [ "Documentation", "distros" ] +--- package.json is the basic configuration file. Everything is per-directory. diff --git a/distros/redhat/yum.md b/distros/redhat/yum.md index 8a4c2fb..b6c464b 100644 --- a/distros/redhat/yum.md +++ b/distros/redhat/yum.md @@ -1,3 +1,7 @@ +--- +title: "yum" +tags: [ "Documentation", "distros" ] +--- # Overview Forks include CentOS, scientific Linux, Oracle, and Fedora. diff --git a/distros/suse/http_server.md b/distros/suse/http_server.md index 709ed8c..2bbc8bb 100644 --- a/distros/suse/http_server.md +++ b/distros/suse/http_server.md @@ -1,3 +1,7 @@ +--- +title: "http_server" +tags: [ "Documentation", "distros" ] +--- Nothing interesting. 1. Install diff --git a/distros/void/autologin.md b/distros/void/autologin.md index c2a148c..04d1b1b 100644 --- a/distros/void/autologin.md +++ b/distros/void/autologin.md @@ -1,3 +1,7 @@ +--- +title: "autologin" +tags: [ "Documentation", "distros" ] +--- Make the autologin service: diff --git a/distros/void/basics.md b/distros/void/basics.md index 3d57ff2..22a9151 100644 --- a/distros/void/basics.md +++ b/distros/void/basics.md @@ -1,3 +1,7 @@ +--- +title: "basics" +tags: [ "Documentation", "distros" ] +--- # vkpurge diff --git a/distros/void/extrace.md b/distros/void/extrace.md index 72c0247..680828a 100644 --- a/distros/void/extrace.md +++ b/distros/void/extrace.md @@ -1,3 +1,7 @@ +--- +title: "extrace" +tags: [ "Documentation", "distros" ] +--- Monitor all processes: > extrace diff --git a/distros/void/kernels.md b/distros/void/kernels.md index 98ecbb6..60394a4 100644 --- a/distros/void/kernels.md +++ b/distros/void/kernels.md @@ -1,3 +1,7 @@ +--- +title: "kernels" +tags: [ "Documentation", "distros" ] +--- # vkpurge diff --git a/distros/void/keyboard.md b/distros/void/keyboard.md index 43d26d1..8e6804c 100644 --- a/distros/void/keyboard.md +++ b/distros/void/keyboard.md @@ -1,3 +1,7 @@ +--- +title: "keyboard" +tags: [ "Documentation", "distros" ] +--- To list keyboard specs: diff --git a/distros/void/lxc.md b/distros/void/lxc.md index a567868..428765e 100644 --- a/distros/void/lxc.md +++ b/distros/void/lxc.md @@ -1,3 +1,7 @@ +--- +title: "lxc" +tags: [ "Documentation", "distros" ] +--- # Intro Taken from [this](https://r4nd0m6uy.ch/unpriviledged-containers-in-void-linux.html) diff --git a/distros/void/networking.md b/distros/void/networking.md index fce6cff..44cbeec 100644 --- a/distros/void/networking.md +++ b/distros/void/networking.md @@ -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 diff --git a/distros/void/sv.md b/distros/void/sv.md index 4725832..66b33ed 100644 --- a/distros/void/sv.md +++ b/distros/void/sv.md @@ -1,3 +1,7 @@ +--- +title: "sv" +tags: [ "Documentation", "distros" ] +--- # List Services All possible services are in: diff --git a/distros/void/virtualization/lxc.md b/distros/void/virtualization/lxc.md index 065a030..d7ce344 100644 --- a/distros/void/virtualization/lxc.md +++ b/distros/void/virtualization/lxc.md @@ -1,3 +1,7 @@ +--- +title: "lxc" +tags: [ "Documentation", "distros" ] +--- LXC creates miniature virtual machines to play with. diff --git a/distros/void/xbps.md b/distros/void/xbps.md index 0095bb3..e7b177e 100644 --- a/distros/void/xbps.md +++ b/distros/void/xbps.md @@ -1,3 +1,7 @@ +--- +title: "xbps" +tags: [ "Documentation", "distros" ] +--- Install cowsay > xbps-install cowsay diff --git a/hardware/basics.md b/hardware/basics.md index 32ed47c..546a975 100644 --- a/hardware/basics.md +++ b/hardware/basics.md @@ -1,3 +1,7 @@ +--- +title: "basics" +tags: [ "Documentation", "hardware" ] +--- # Motherboard Information > sudo dmidecode diff --git a/hardware/brightness.md b/hardware/brightness.md index d78acfa..5115295 100644 --- a/hardware/brightness.md +++ b/hardware/brightness.md @@ -1,3 +1,7 @@ +--- +title: "brightness" +tags: [ "Documentation", "hardware" ] +--- # Brightness /sys/class/backlight/*/brightness diff --git a/hardware/keyboard/keymaps.md b/hardware/keyboard/keymaps.md index e255adf..90dcfa7 100644 --- a/hardware/keyboard/keymaps.md +++ b/hardware/keyboard/keymaps.md @@ -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. diff --git a/hardware/keyboard/xmodmap.md b/hardware/keyboard/xmodmap.md index 69baf58..671aebd 100644 --- a/hardware/keyboard/xmodmap.md +++ b/hardware/keyboard/xmodmap.md @@ -1,3 +1,7 @@ +--- +title: "xmodmap" +tags: [ "Documentation", "hardware" ] +--- Ensure you're not stuck in CAPS on mode: > xmodmap -e 'clear Lock' diff --git a/hardware/monitor.md b/hardware/monitor.md index 051038c..a01d92e 100644 --- a/hardware/monitor.md +++ b/hardware/monitor.md @@ -1,3 +1,7 @@ +--- +title: "monitor" +tags: [ "Documentation", "hardware" ] +--- See screen size > xrandr -q diff --git a/hardware/printers.md b/hardware/printers.md index b0e5423..f390dc7 100644 --- a/hardware/printers.md +++ b/hardware/printers.md @@ -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. diff --git a/networking/basics.md b/networking/basics.md index 95192a2..438c4cc 100644 --- a/networking/basics.md +++ b/networking/basics.md @@ -1,3 +1,7 @@ +--- +title: "basics" +tags: [ "Documentation", "networking" ] +--- # You Check how your computer connects to the net: diff --git a/networking/dns.md b/networking/dns.md index 0a4b523..7940197 100644 --- a/networking/dns.md +++ b/networking/dns.md @@ -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: diff --git a/networking/fail2ban.md b/networking/fail2ban.md index 2f375f6..260f30a 100644 --- a/networking/fail2ban.md +++ b/networking/fail2ban.md @@ -1,3 +1,7 @@ +--- +title: "fail2ban" +tags: [ "Documentation", "networking" ] +--- # SSH Daemon Jail > sudo cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.d/ssh.local diff --git a/networking/iptables.md b/networking/iptables.md index 1a81abc..5569d1d 100644 --- a/networking/iptables.md +++ b/networking/iptables.md @@ -1,3 +1,7 @@ +--- +title: "iptables" +tags: [ "Documentation", "networking" ] +--- # Intro This is a basic Linux firewall program. diff --git a/networking/iptables/iptables.md b/networking/iptables/iptables.md index 46c3ba3..796509b 100644 --- a/networking/iptables/iptables.md +++ b/networking/iptables/iptables.md @@ -1,3 +1,7 @@ +--- +title: "iptables" +tags: [ "Documentation", "networking" ] +--- # Intro This is a basic Linux firewall program. diff --git a/networking/nmap.md b/networking/nmap.md index de33172..110da97 100644 --- a/networking/nmap.md +++ b/networking/nmap.md @@ -1,3 +1,7 @@ +--- +title: "nmap" +tags: [ "Documentation", "networking" ] +--- Example: diff --git a/networking/pihole/pihole.md b/networking/pihole/pihole.md index 8508058..18a85c1 100644 --- a/networking/pihole/pihole.md +++ b/networking/pihole/pihole.md @@ -1,3 +1,7 @@ +--- +title: "pihole" +tags: [ "Documentation", "networking" ] +--- View DNS traffic > pihole -t diff --git a/networking/pip.md b/networking/pip.md index 64dff4d..423825d 100644 --- a/networking/pip.md +++ b/networking/pip.md @@ -1,3 +1,7 @@ +--- +title: "pip" +tags: [ "Documentation", "networking" ] +--- Upgrade all packages diff --git a/networking/protocols.md b/networking/protocols.md index 70b5725..83731b8 100644 --- a/networking/protocols.md +++ b/networking/protocols.md @@ -1,3 +1,7 @@ +--- +title: "protocols" +tags: [ "Documentation", "networking" ] +--- # Protocols | TCP | UDP | ICMP | diff --git a/networking/radio.md b/networking/radio.md index c884a3d..a57912b 100644 --- a/networking/radio.md +++ b/networking/radio.md @@ -1,3 +1,7 @@ +--- +title: "radio" +tags: [ "Documentation", "networking" ] +--- Install ` gqrx` and `rtl-sdr` diff --git a/networking/rclone.md b/networking/rclone.md index 98f10e1..cae79e2 100644 --- a/networking/rclone.md +++ b/networking/rclone.md @@ -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'. diff --git a/networking/screen.md b/networking/screen.md index 0947656..4813616 100644 --- a/networking/screen.md +++ b/networking/screen.md @@ -1,3 +1,7 @@ +--- +title: "screen" +tags: [ "Documentation", "networking" ] +--- start session: screen diff --git a/networking/servers/agate.md b/networking/servers/agate.md index bf2ac53..8e86637 100644 --- a/networking/servers/agate.md +++ b/networking/servers/agate.md @@ -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. diff --git a/networking/ssh/sshfs.md b/networking/ssh/sshfs.md index 632c648..283260f 100644 --- a/networking/ssh/sshfs.md +++ b/networking/ssh/sshfs.md @@ -1,3 +1,7 @@ +--- +title: "sshfs" +tags: [ "Documentation", "networking" ] +--- # Mount > sshfs alfred@192.168.0.14:Sync/Alfred diff --git a/networking/ssh/tricks.md b/networking/ssh/tricks.md index d4ee46d..cf89ed0 100644 --- a/networking/ssh/tricks.md +++ b/networking/ssh/tricks.md @@ -1,3 +1,7 @@ +--- +title: "tricks" +tags: [ "Documentation", "networking" ] +--- Mount a remote filesystem locally with fuse-sshfs: diff --git a/networking/tor.md b/networking/tor.md index 707abdc..899ae30 100644 --- a/networking/tor.md +++ b/networking/tor.md @@ -1,3 +1,7 @@ +--- +title: "tor" +tags: [ "Documentation", "networking" ] +--- # Get a hostname diff --git a/networking/transmission.md b/networking/transmission.md index d7a9db8..68736cc 100644 --- a/networking/transmission.md +++ b/networking/transmission.md @@ -1,3 +1,7 @@ +--- +title: "transmission" +tags: [ "Documentation", "networking" ] +--- # Torrench Torrench searches for torrents. diff --git a/networking/troubleshooting.md b/networking/troubleshooting.md index af01a4e..0e53ae4 100644 --- a/networking/troubleshooting.md +++ b/networking/troubleshooting.md @@ -1,3 +1,7 @@ +--- +title: "troubleshooting" +tags: [ "Documentation", "networking" ] +--- # Do you have an IP? diff --git a/networking/unison.md b/networking/unison.md index 42a6e73..63776d5 100644 --- a/networking/unison.md +++ b/networking/unison.md @@ -1,3 +1,7 @@ +--- +title: "unison" +tags: [ "Documentation", "networking" ] +--- # Local Sync diff --git a/networking/website/nginx.md b/networking/website/nginx.md index 4262194..1c7ed08 100644 --- a/networking/website/nginx.md +++ b/networking/website/nginx.md @@ -1,3 +1,7 @@ +--- +title: "nginx" +tags: [ "Documentation", "networking" ] +--- Install nginx: > sudo apt-get install nginx diff --git a/networking/wifi.md b/networking/wifi.md index ed4ae94..b841dda 100644 --- a/networking/wifi.md +++ b/networking/wifi.md @@ -1,3 +1,7 @@ +--- +title: "wifi" +tags: [ "Documentation", "networking" ] +--- # Netstat Stuff Stats on local net usage within domain. diff --git a/networking/wireless.md b/networking/wireless.md index 7ab1f51..5018424 100644 --- a/networking/wireless.md +++ b/networking/wireless.md @@ -1,3 +1,7 @@ +--- +title: "wireless" +tags: [ "Documentation", "networking" ] +--- # Check wifi's working > lspci -k diff --git a/networking/wpa_supplicant.md b/networking/wpa_supplicant.md index f2e64d6..1d0f4d5 100644 --- a/networking/wpa_supplicant.md +++ b/networking/wpa_supplicant.md @@ -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). diff --git a/sound/basics.md b/sound/basics.md index d74cb7c..b7f91bc 100644 --- a/sound/basics.md +++ b/sound/basics.md @@ -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). diff --git a/sound/festival.md b/sound/festival.md index 839357e..6b49454 100644 --- a/sound/festival.md +++ b/sound/festival.md @@ -1,3 +1,7 @@ +--- +title: "festival" +tags: [ "Documentation", "sound" ] +--- # Basics Add your user to the audio group, and install `festival-english`. diff --git a/sound/ffmpeg.md b/sound/ffmpeg.md index 19e1b51..f4d6a8e 100644 --- a/sound/ffmpeg.md +++ b/sound/ffmpeg.md @@ -1,3 +1,7 @@ +--- +title: "ffmpeg" +tags: [ "Documentation", "sound" ] +--- # Basics ffmpeg -i [input file] output_file.mkv diff --git a/sound/mpd.md b/sound/mpd.md index 14598cd..ecb93e5 100644 --- a/sound/mpd.md +++ b/sound/mpd.md @@ -1,3 +1,7 @@ +--- +title: "mpd" +tags: [ "Documentation", "sound" ] +--- # Setup ## Configuration diff --git a/sound/ncmpcpp.md b/sound/ncmpcpp.md index fece232..60be273 100644 --- a/sound/ncmpcpp.md +++ b/sound/ncmpcpp.md @@ -1,3 +1,7 @@ +--- +title: "ncmpcpp" +tags: [ "Documentation", "sound" ] +--- # Music Player Daemon diff --git a/sound/youtube-dl.md b/sound/youtube-dl.md index a09222d..5730b0a 100644 --- a/sound/youtube-dl.md +++ b/sound/youtube-dl.md @@ -1,3 +1,7 @@ +--- +title: "youtube-dl" +tags: [ "Documentation", "sound" ] +--- > youtube-dl --write-auto-sub It will default to English, but you can specify another language with the flag --sub-lang: diff --git a/system/X.md b/system/X.md index 54602ec..f17c2eb 100644 --- a/system/X.md +++ b/system/X.md @@ -1,3 +1,7 @@ +--- +title: "X" +tags: [ "Documentation", "system" ] +--- X is a server which listens to requests for display. Basic configurations are under /etc/X11, but xorg.conf is generally no longer used. diff --git a/system/android.md b/system/android.md index bfd9507..da2451e 100644 --- a/system/android.md +++ b/system/android.md @@ -1,3 +1,7 @@ +--- +title: "android" +tags: [ "Documentation", "system" ] +--- # mtpfs ## Start diff --git a/system/awk.md b/system/awk.md index a45a831..c20095c 100644 --- a/system/awk.md +++ b/system/awk.md @@ -1,3 +1,7 @@ +--- +title: "awk" +tags: [ "Documentation", "system" ] +--- # Basics See a file's contents: diff --git a/system/bash_tricks.md b/system/bash_tricks.md index c81f73b..e52a214 100644 --- a/system/bash_tricks.md +++ b/system/bash_tricks.md @@ -1,3 +1,7 @@ +--- +title: "bash_tricks" +tags: [ "Documentation", "system" ] +--- # Automatic mp3 Tagging /u/OneTurnMore on Reddit: diff --git a/system/character-encoding.md b/system/character-encoding.md index 7d30ad8..7c88f6c 100644 --- a/system/character-encoding.md +++ b/system/character-encoding.md @@ -1,3 +1,7 @@ +--- +title: "character-encoding" +tags: [ "Documentation", "system" ] +--- Convert a text file from one encoding type to another with: > iconv -f ascii -t utf8 oldfilename > newfilename diff --git a/system/compression.md b/system/compression.md index b0b6d81..1168eab 100644 --- a/system/compression.md +++ b/system/compression.md @@ -1,3 +1,7 @@ +--- +title: "compression" +tags: [ "Documentation", "system" ] +--- # Tar ## Basics diff --git a/system/cronie.md b/system/cronie.md index 1a08f42..52236e2 100644 --- a/system/cronie.md +++ b/system/cronie.md @@ -1,3 +1,7 @@ +--- +title: "cronie" +tags: [ "Documentation", "system" ] +--- Various services from cron exist, e.g. diff --git a/system/e-mail.md b/system/e-mail.md index 842cf9d..a289d5f 100644 --- a/system/e-mail.md +++ b/system/e-mail.md @@ -1,3 +1,7 @@ +--- +title: "e-mail" +tags: [ "Documentation", "system" ] +--- # Terminology |MTA | Mail transfer agent | diff --git a/system/editors.md b/system/editors.md index 19e92b5..03abb07 100644 --- a/system/editors.md +++ b/system/editors.md @@ -1,3 +1,7 @@ +--- +title: "editors" +tags: [ "Documentation", "system" ] +--- The system's default text editor can be defined within /etc/profile. It's given the variable `EDITOR`. Add these lines to /etc/profile: diff --git a/system/elvish.md b/system/elvish.md index 797dcac..69f4b4d 100644 --- a/system/elvish.md +++ b/system/elvish.md @@ -1,3 +1,7 @@ +--- +title: "elvish" +tags: [ "Documentation", "system" ] +--- # Setup To run a shell as non-root, the shell must be listed in /etc/shells. diff --git a/system/kernel.md b/system/kernel.md index 97db674..50ab8cf 100644 --- a/system/kernel.md +++ b/system/kernel.md @@ -1,3 +1,7 @@ +--- +title: "kernel" +tags: [ "Documentation", "system" ] +--- Check which kernet modules are loaded into memory > sudo /sbin/lsmod diff --git a/system/logs.md b/system/logs.md index 6776fb3..5096d11 100644 --- a/system/logs.md +++ b/system/logs.md @@ -1,3 +1,7 @@ +--- +title: "logs" +tags: [ "Documentation", "system" ] +--- # Basic Keeping track of health problems. Mostly under /var/log/. diff --git a/system/partitions.md b/system/partitions.md index 94e0e22..d2851c1 100644 --- a/system/partitions.md +++ b/system/partitions.md @@ -1,3 +1,7 @@ +--- +title: "partitions" +tags: [ "Documentation", "system" ] +--- # FDisk Basics > sudo fdisk /dev/sda diff --git a/system/snaps.md b/system/snaps.md index 174f565..18fca84 100644 --- a/system/snaps.md +++ b/system/snaps.md @@ -1,3 +1,7 @@ +--- +title: "snaps" +tags: [ "Documentation", "system" ] +--- > sudo apt-get purge -y snapd #Hiding from Nautilus diff --git a/system/systemd/basics.md b/system/systemd/basics.md index 3a5b4ea..d4f667a 100644 --- a/system/systemd/basics.md +++ b/system/systemd/basics.md @@ -1,3 +1,7 @@ +--- +title: "basics" +tags: [ "Documentation", "system" ] +--- > systemctl list-units > sudo systemctl status mpd diff --git a/system/systemd/journal.md b/system/systemd/journal.md index ce1f529..361c3b5 100644 --- a/system/systemd/journal.md +++ b/system/systemd/journal.md @@ -1,3 +1,7 @@ +--- +title: "journal" +tags: [ "Documentation", "system" ] +--- Find errors since November diff --git a/system/systemd/making services.md b/system/systemd/making services.md index 089a1a1..8253a5b 100644 --- a/system/systemd/making services.md +++ b/system/systemd/making services.md @@ -1,3 +1,6 @@ +--- +tags: [ "Documentation", "system" ] +--- # Basics A service can consist of two files - the .sh script to run, and the .service file which describes its run conditions. diff --git a/system/systemd/users.md b/system/systemd/users.md index fe0112f..54fcd2d 100644 --- a/system/systemd/users.md +++ b/system/systemd/users.md @@ -1,3 +1,7 @@ +--- +title: "users" +tags: [ "Documentation", "system" ] +--- # Automatic Login > cp /usr/lib/systemd/system/getty@.service /etc/systemd/system/getty1@.service diff --git a/system/tmux.md b/system/tmux.md index 534bc55..0b4948f 100644 --- a/system/tmux.md +++ b/system/tmux.md @@ -1,3 +1,7 @@ +--- +title: "tmux" +tags: [ "Documentation", "system" ] +--- Start with: > tmux diff --git a/system/upx.md b/system/upx.md index c5b8489..3024650 100644 --- a/system/upx.md +++ b/system/upx.md @@ -1,3 +1,7 @@ +--- +title: "upx" +tags: [ "Documentation", "system" ] +--- upx compresses binaries, so they take up less disk space, but take longer to start. Make a binary, such as ls, compressed: diff --git a/system/urxvt.md b/system/urxvt.md index c6c779d..7b5d672 100644 --- a/system/urxvt.md +++ b/system/urxvt.md @@ -1 +1,5 @@ +--- +title: "urxvt" +tags: [ "Documentation", "system" ] +--- Perl scripts typically kept in /usr/lib/urxvt/perl diff --git a/system/virtualbox.md b/system/virtualbox.md index e256c8f..5eb763e 100644 --- a/system/virtualbox.md +++ b/system/virtualbox.md @@ -1,3 +1,7 @@ +--- +title: "virtualbox" +tags: [ "Documentation", "system" ] +--- # Setup ## Arch Linux diff --git a/system/wine.md b/system/wine.md index 75060aa..e1a21d3 100644 --- a/system/wine.md +++ b/system/wine.md @@ -1 +1,5 @@ +--- +title: "wine" +tags: [ "Documentation", "system" ] +--- maybe run \n> sudo dpkg --add-architecture i386 diff --git a/system/xdg.md b/system/xdg.md index eaf0c25..1646fb7 100644 --- a/system/xdg.md +++ b/system/xdg.md @@ -1,3 +1,7 @@ +--- +title: "xdg" +tags: [ "Documentation", "system" ] +--- What filetype is this file? diff --git a/system/xkbmap.md b/system/xkbmap.md index 4eebd93..d927e5b 100644 --- a/system/xkbmap.md +++ b/system/xkbmap.md @@ -1,3 +1,7 @@ +--- +title: "xkbmap" +tags: [ "Documentation", "system" ] +--- # Language Layouts Polish diff --git a/vim/completion.md b/vim/completion.md index eb06064..53da815 100644 --- a/vim/completion.md +++ b/vim/completion.md @@ -1,3 +1,7 @@ +--- +title: "completion" +tags: [ "Documentation", "vim" ] +--- Complete the word: diff --git a/vim/navigate.md b/vim/navigate.md index 9f699cb..57dcddd 100644 --- a/vim/navigate.md +++ b/vim/navigate.md @@ -1,3 +1,7 @@ +--- +title: "navigate" +tags: [ "Documentation", "vim" ] +--- | Move | Command | |:-----|:-------------| diff --git a/vim/screens.md b/vim/screens.md index 664547b..aaa990e 100644 --- a/vim/screens.md +++ b/vim/screens.md @@ -1,3 +1,7 @@ +--- +title: "screens" +tags: [ "Documentation", "vim" ] +--- Make a horizontal split with: diff --git a/vim/search.md b/vim/search.md index ecf9262..b6a280e 100644 --- a/vim/search.md +++ b/vim/search.md @@ -1,3 +1,7 @@ +--- +title: "search" +tags: [ "Documentation", "vim" ] +--- Search and replace the first 'one' found with 'two': > :%s/one/two/ diff --git a/vim/vim.md b/vim/vim.md index 82d7094..8cd47fa 100644 --- a/vim/vim.md +++ b/vim/vim.md @@ -1,2 +1,6 @@ +--- +title: "vim" +tags: [ "Documentation", "vim" ] +--- Describe what you want, then press as few keys as possible. diff --git a/vim/windows.md b/vim/windows.md index 16954ee..9cd879a 100644 --- a/vim/windows.md +++ b/vim/windows.md @@ -1,3 +1,7 @@ +--- +title: "windows" +tags: [ "Documentation", "vim" ] +--- | Command | Keys | |:-----|:----:| diff --git a/virtualization/xen/basics.md b/virtualization/xen/basics.md index 5ca0a74..223bfe7 100644 --- a/virtualization/xen/basics.md +++ b/virtualization/xen/basics.md @@ -1,3 +1,7 @@ +--- +title: "basics" +tags: [ "Documentation", "system" ] +--- # Make a local iso repository > mkdir -p /var/opt/xen/ISO_Store diff --git a/virtualization/xen/xe.md b/virtualization/xen/xe.md index d34d80a..2f71513 100644 --- a/virtualization/xen/xe.md +++ b/virtualization/xen/xe.md @@ -1,3 +1,7 @@ +--- +title: "xe" +tags: [ "Documentation", "system" ] +--- # Basic VM Management > xe vm-list diff --git a/vision/ffmpeg.md b/vision/ffmpeg.md deleted file mode 120000 index 36a2a55..0000000 --- a/vision/ffmpeg.md +++ /dev/null @@ -1 +0,0 @@ -../sound/ffmpeg.md \ No newline at end of file diff --git a/vision/imagemagick.md b/vision/imagemagick.md index ecdea50..515ba28 100644 --- a/vision/imagemagick.md +++ b/vision/imagemagick.md @@ -1,3 +1,7 @@ +--- +title: "imagemagick" +tags: [ "Documentation", "vision" ] +--- [Source](http://lxlinux.com/imagemagick.html) Convert jpg to png. diff --git a/vision/qrencode.md b/vision/qrencode.md index c822138..874f746 100644 --- a/vision/qrencode.md +++ b/vision/qrencode.md @@ -1,3 +1,7 @@ +--- +title: "qrencode" +tags: [ "Documentation", "vision" ] +--- Make a QR Coded message: From ac653b4bedb10700643d98cd6bed6780342c8b55 Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Sun, 16 Jan 2022 20:28:02 +0100 Subject: [PATCH 17/26] clean up lk docs for site --- LICENCE.md | 43 --------------------- README.md | 4 ++ basics/archives.md | 64 ------------------------------- basics/basics.md | 1 - basics/clock.md | 1 - basics/logs.md | 2 +- distros/arch/arch_pi_install.md | 22 +++++------ distros/arch/autologin.md | 12 +++--- distros/void/autologin.md | 4 +- networking/wpa_supplicant.md | 1 - system/systemd/making services.md | 1 + 11 files changed, 25 insertions(+), 130 deletions(-) delete mode 100644 LICENCE.md delete mode 100644 basics/archives.md diff --git a/LICENCE.md b/LICENCE.md deleted file mode 100644 index 139c68e..0000000 --- a/LICENCE.md +++ /dev/null @@ -1,43 +0,0 @@ -## creative commons - -# CC0 1.0 Universal - -CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED HEREUNDER. - -### Statement of Purpose - -The laws of most jurisdictions throughout the world automatically confer exclusive Copyright and Related Rights (defined below) upon the creator and subsequent owner(s) (each and all, an "owner") of an original work of authorship and/or a database (each, a "Work"). - -Certain owners wish to permanently relinquish those rights to a Work for the purpose of contributing to a commons of creative, cultural and scientific works ("Commons") that the public can reliably and without fear of later claims of infringement build upon, modify, incorporate in other works, reuse and redistribute as freely as possible in any form whatsoever and for any purposes, including without limitation commercial purposes. These owners may contribute to the Commons to promote the ideal of a free culture and the further production of creative, cultural and scientific works, or to gain reputation or greater distribution for their Work in part through the use and efforts of others. - -For these and/or other purposes and motivations, and without any expectation of additional consideration or compensation, the person associating CC0 with a Work (the "Affirmer"), to the extent that he or she is an owner of Copyright and Related Rights in the Work, voluntarily elects to apply CC0 to the Work and publicly distribute the Work under its terms, with knowledge of his or her Copyright and Related Rights in the Work and the meaning and intended legal effect of CC0 on those rights. - -1. __Copyright and Related Rights.__ A Work made available under CC0 may be protected by copyright and related or neighboring rights ("Copyright and Related Rights"). Copyright and Related Rights include, but are not limited to, the following: - - i. the right to reproduce, adapt, distribute, perform, display, communicate, and translate a Work; - - ii. moral rights retained by the original author(s) and/or performer(s); - - iii. publicity and privacy rights pertaining to a person's image or likeness depicted in a Work; - - iv. rights protecting against unfair competition in regards to a Work, subject to the limitations in paragraph 4(a), below; - - v. rights protecting the extraction, dissemination, use and reuse of data in a Work; - - vi. database rights (such as those arising under Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, and under any national implementation thereof, including any amended or successor version of such directive); and - - vii. other similar, equivalent or corresponding rights throughout the world based on applicable law or treaty, and any national implementations thereof. - -2. __Waiver.__ To the greatest extent permitted by, but not in contravention of, applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and unconditionally waives, abandons, and surrenders all of Affirmer's Copyright and Related Rights and associated claims and causes of action, whether now known or unknown (including existing as well as future claims and causes of action), in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each member of the public at large and to the detriment of Affirmer's heirs and successors, fully intending that such Waiver shall not be subject to revocation, rescission, cancellation, termination, or any other legal or equitable action to disrupt the quiet enjoyment of the Work by the public as contemplated by Affirmer's express Statement of Purpose. - -3. __Public License Fallback.__ Should any part of the Waiver for any reason be judged legally invalid or ineffective under applicable law, then the Waiver shall be preserved to the maximum extent permitted taking into account Affirmer's express Statement of Purpose. In addition, to the extent the Waiver is so judged Affirmer hereby grants to each affected person a royalty-free, non transferable, non sublicensable, non exclusive, irrevocable and unconditional license to exercise Affirmer's Copyright and Related Rights in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the "License"). The License shall be deemed effective as of the date CC0 was applied by Affirmer to the Work. Should any part of the License for any reason be judged legally invalid or ineffective under applicable law, such partial invalidity or ineffectiveness shall not invalidate the remainder of the License, and in such case Affirmer hereby affirms that he or she will not (i) exercise any of his or her remaining Copyright and Related Rights in the Work or (ii) assert any associated claims and causes of action with respect to the Work, in either case contrary to Affirmer's express Statement of Purpose. - -4. __Limitations and Disclaimers.__ - - a. No trademark or patent rights held by Affirmer are waived, abandoned, surrendered, licensed or otherwise affected by this document. - - b. Affirmer offers the Work as-is and makes no representations or warranties of any kind concerning the Work, express, implied, statutory or otherwise, including without limitation warranties of title, merchantability, fitness for a particular purpose, non infringement, or the absence of latent or other defects, accuracy, or the present or absence of errors, whether or not discoverable, all to the greatest extent permissible under applicable law. - - c. Affirmer disclaims responsibility for clearing rights of other persons that may apply to the Work or any use thereof, including without limitation any person's Copyright and Related Rights in the Work. Further, Affirmer disclaims responsibility for obtaining any necessary consents, permissions or other rights required for any use of the Work. - - d. Affirmer understands and acknowledges that Creative Commons is not a party to this document and has no duty or obligation with respect to this CC0 or use of the Work. diff --git a/README.md b/README.md index c9a1e17..fc6e54f 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,7 @@ +--- +title: "Knowledge Base" +--- + # Linux Knowledgebase This is a list of quickstart guides for Linux programs, designed to get the user up and running as fast as possible. diff --git a/basics/archives.md b/basics/archives.md deleted file mode 100644 index b504cf3..0000000 --- a/basics/archives.md +++ /dev/null @@ -1,64 +0,0 @@ ---- -title: "archives" -tags: [ "Documentation", "basics" ] ---- -# Tar Archives - -To create an archive file, just remember: - -*C*reate *z*e *f*ile! - -> tar czf file.tar.gz file1 file2 - -E*x*tract *z*e *f*iles: - -> tar xzf file.tar.gz - -The .tar extension means two or more files are bundled together into a single file. The .tar.gz means compression. - -Tarballs come with a number of arguments. - -## More Compression - -Extremely compressed files take longer to compress, but take up less disk space. - -> tar cfj super-compressed.tar.bz2 file1 file2 - -# ssh backup of partitions - -Back up an unmounted partition with ssh: - -> sudo dd if=/dev/sda1 | ssh -C ghost@192.168.0.10 "dd of=/home/ghost/backup.img" status=progress - -# `xz` - -Install `xz`. - -Unzip the image with: - -> unxz void.img.xz - -This then deletes the .xz file. To keep it: - -> unxz --keep void.img.xz - -# `zip` - -Zip file1-3, into a zip file called 'newzip.zip'. - -> zip newsip file1 file2 file3 - -# Automatic Backups with `find` - -## `tar` - -Compressing all Latex Files in /home/. - -> sudo find ~ -maxdepth 4 -name "*.txt" | xargs tar cvf latex-bundle.tar.gz - -## `zip` - -Install `zip`. - -> find /home/"$(whoami)" -type f -size -2M | xargs zip -u backup - diff --git a/basics/basics.md b/basics/basics.md index 5a48f6d..14fba02 100644 --- a/basics/basics.md +++ b/basics/basics.md @@ -2,7 +2,6 @@ title: "basics" tags: [ "Documentation", "basics" ] --- -# Absolute Bloody Basics You need about a dozen commands to move around Linux. After that, you look up the rest as you go. diff --git a/basics/clock.md b/basics/clock.md index 0d5f343..51e1692 100644 --- a/basics/clock.md +++ b/basics/clock.md @@ -2,7 +2,6 @@ title: "clock" tags: [ "Documentation", "basics" ] --- -# `date` Show system time: diff --git a/basics/logs.md b/basics/logs.md index f119c63..fd2f11d 100644 --- a/basics/logs.md +++ b/basics/logs.md @@ -2,7 +2,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. diff --git a/distros/arch/arch_pi_install.md b/distros/arch/arch_pi_install.md index 56369cd..4ad3abd 100644 --- a/distros/arch/arch_pi_install.md +++ b/distros/arch/arch_pi_install.md @@ -36,28 +36,28 @@ Move boot files to the first partition: > Unmount the two partitions: > umount boot root -echo belgradecats > /etc/hostname -echo "# /etc/hosts: static lookup table for host names +> echo [ hostname ] > /etc/hostname +Then edit the `/etc/hosts` file. ``` -127.0.0.1 belgradecats.localdomain belgradecats -::1 belgradecats.localdomain belgradecats ip6-localhost +127.0.0.1 localhost.localdomain localhost +::1 localhost.localdomain localhost ip6-localhost ``` -# End of file" > /etc/hosts - # Get audio on -echo dtparam=audio=on >> /boot/config.txt +> echo dtparam=audio=on >> /boot/config.txt -pacman-key --init -pacman-key --populate archlinuxarm +Start pacman keyring. -pacman -Syyu base-devel git alsa-utils xf86-video-fbdev +> pacman-key --init +> pacman-key --populate archlinuxarm -timedatectl set-timezone Europe/Belgrade +> pacman -Syyu base-devel git alsa-utils xf86-video-fbdev + +> timedatectl set-timezone Europe/Belgrade diff --git a/distros/arch/autologin.md b/distros/arch/autologin.md index 76a4f1f..29980db 100644 --- a/distros/arch/autologin.md +++ b/distros/arch/autologin.md @@ -1,29 +1,29 @@ --- title: "autologin" -tags: [ "Documentation", "distros" ] +tags: [ "Documentation", "Distros", "Arch" ] --- + # 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: > sudo systemctl edit getty@tty1 -The put in the following, changing $USER to your username. +The put in the following, changing `[ USER ]` to your username. ``` [Service] ExecStart= -ExecStart=-/usr/bin/agetty --autologin $USER -s %I 115200,38400,9600 vt102 +ExecStart=-/usr/bin/agetty --autologin [ USER ] -s %I 115200,38400,9600 vt102 ``` # Automatically Start X -In `bashrc`. +In `.bashrc`. ``` - if [ -z "$DISPLAY" ] && [ "$(fgconsole)" -eq 1 ]; then exec startx fi diff --git a/distros/void/autologin.md b/distros/void/autologin.md index 04d1b1b..990156e 100644 --- a/distros/void/autologin.md +++ b/distros/void/autologin.md @@ -1,6 +1,6 @@ --- -title: "autologin" -tags: [ "Documentation", "distros" ] +title: "Void Autologin" +tags: [ "Documentation", "Distros", "Void" ] --- Make the autologin service: diff --git a/networking/wpa_supplicant.md b/networking/wpa_supplicant.md index 1d0f4d5..c5d3367 100644 --- a/networking/wpa_supplicant.md +++ b/networking/wpa_supplicant.md @@ -2,7 +2,6 @@ title: "wpa_supplicant" tags: [ "Documentation", "networking" ] --- -# Intro wpa_supplicant configurations are stored in /etc/wpa_supplicant/wpa_supplicant-wlan0 (or equivalent). diff --git a/system/systemd/making services.md b/system/systemd/making services.md index 8253a5b..5492eb8 100644 --- a/system/systemd/making services.md +++ b/system/systemd/making services.md @@ -1,4 +1,5 @@ --- +title: "Making Services" tags: [ "Documentation", "system" ] --- # Basics From 009b38ee599ea50569c513507b3371acab6d445b Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Sun, 16 Jan 2022 20:28:26 +0100 Subject: [PATCH 18/26] add basic index for lk --- _index.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 _index.md diff --git a/_index.md b/_index.md new file mode 100644 index 0000000..e6b1676 --- /dev/null +++ b/_index.md @@ -0,0 +1,6 @@ +--- +title: "Linux Knowledge Base" +--- + +{{< ticks >}} +{{< /ticks >}} From d3d12936e7063de4fedab91a12ba6090ea2c2654 Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Sun, 16 Jan 2022 20:45:55 +0100 Subject: [PATCH 19/26] move and delete items --- basics/shell.md | 5 ++--- distros/arch/signal.md => chat/signal-cli.md | 0 networking/radio.md | 7 ------- 3 files changed, 2 insertions(+), 10 deletions(-) rename distros/arch/signal.md => chat/signal-cli.md (100%) delete mode 100644 networking/radio.md diff --git a/basics/shell.md b/basics/shell.md index 8a0e4af..5266bc8 100644 --- a/basics/shell.md +++ b/basics/shell.md @@ -2,11 +2,10 @@ title: "shell" tags: [ "Documentation", "basics" ] --- -# Shells -Dash - fast but limited funcionality, great for scripts. +Dash - fast but limited funcionality, great for scripts -sh - primitive and ubiquitous. +sh - a simple link to whatever your default shell is bash - the standard diff --git a/distros/arch/signal.md b/chat/signal-cli.md similarity index 100% rename from distros/arch/signal.md rename to chat/signal-cli.md diff --git a/networking/radio.md b/networking/radio.md deleted file mode 100644 index a57912b..0000000 --- a/networking/radio.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: "radio" -tags: [ "Documentation", "networking" ] ---- -Install ` gqrx` and `rtl-sdr` - - From 9fa6c0d7c296bc425c2a4cc7eab6e3a781e2eb34 Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Tue, 18 Jan 2022 13:31:03 +0100 Subject: [PATCH 20/26] rename vim files --- vim/{completion.md => vim completion.md} | 0 vim/{screens.md => vim screens.md} | 0 vim/{search.md => vim search.md} | 0 vim/{windows.md => vim windows.md} | 0 4 files changed, 0 insertions(+), 0 deletions(-) rename vim/{completion.md => vim completion.md} (100%) rename vim/{screens.md => vim screens.md} (100%) rename vim/{search.md => vim search.md} (100%) rename vim/{windows.md => vim windows.md} (100%) diff --git a/vim/completion.md b/vim/vim completion.md similarity index 100% rename from vim/completion.md rename to vim/vim completion.md diff --git a/vim/screens.md b/vim/vim screens.md similarity index 100% rename from vim/screens.md rename to vim/vim screens.md diff --git a/vim/search.md b/vim/vim search.md similarity index 100% rename from vim/search.md rename to vim/vim search.md diff --git a/vim/windows.md b/vim/vim windows.md similarity index 100% rename from vim/windows.md rename to vim/vim windows.md From fa49b80090cb05718ea843db9a2f05066c195a13 Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Tue, 18 Jan 2022 13:36:01 +0100 Subject: [PATCH 21/26] add header for docker --- virtualization/docker.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/virtualization/docker.md b/virtualization/docker.md index 080fa4d..628b35e 100644 --- a/virtualization/docker.md +++ b/virtualization/docker.md @@ -1,4 +1,7 @@ - +--- +title: "Docker" +tags: [ "Documentation", "Virtualization" ] +--- > sudo pacman -S docker > sudo usermod -aG docker $USER From 30d08edad9b817f644cd55447c1f9342f5c5c658 Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Tue, 18 Jan 2022 13:51:14 +0100 Subject: [PATCH 22/26] add header to mdadm.md --- data/mdadm.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/data/mdadm.md b/data/mdadm.md index 98f0b65..990c43e 100644 --- a/data/mdadm.md +++ b/data/mdadm.md @@ -1,3 +1,7 @@ +--- +title: "mdadm" +tags: [ "Documentation", "RAID" ] +--- # RAID5 You will need 4 disks and the `mdadm` package. From 2411171084934607586501c845e59d56331c3c34 Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Tue, 18 Jan 2022 16:28:10 +0100 Subject: [PATCH 23/26] cleanup --- basics/logs.md | 61 ----------------------- {basics => hardware/keyboard}/keyboard.md | 0 hardware/keyboard/keymaps.md | 16 ------ {basics => system}/swap.md | 0 system/systemd/basics.md | 4 +- 5 files changed, 2 insertions(+), 79 deletions(-) delete mode 100644 basics/logs.md rename {basics => hardware/keyboard}/keyboard.md (100%) delete mode 100644 hardware/keyboard/keymaps.md rename {basics => system}/swap.md (100%) diff --git a/basics/logs.md b/basics/logs.md deleted file mode 100644 index fd2f11d..0000000 --- a/basics/logs.md +++ /dev/null @@ -1,61 +0,0 @@ ---- -title: "logs" -tags: [ "Documentation", "basics" ] ---- -## Syslog Management Protocols - -Let's look at the programs filling in things on our /var/log/ directory. - -* rsyslog (common) - -* syslog (old) - -* syslog-ng (lots of content-based filtering) - -* klogd (kernel-focussed) - -# `rsyslog` - -The config rests in /etc/rsyslog.conf, which then references /etc/rsyslog.d/. - -# Systemd -This thing makes its own logs with journald, and the journal's own logging system writes to /var/log/journal/ directory, which is then filled with nonsense. - -You can obtain nonsense in systemd's own format by entering: - -journalctl -e - -This thing generates so much nonsense it can crash your system, but can at least be checked with: - -> journalctl --disk-usage - -... in case you can't remember the `du` command. - -You can limit the nonsense by editing the /etc/systemd/journald.conf file, and finding `#SystemMaxFileSize=` - -# Logger - -You can log things at any time with the logger: - -> logger Server is being a dick! - -Put things into a specific log with `-p`. They can enter into, e.g., lpr (printer) log file with a priority of "critical", with: - -> logger -p lpr.crit Help! - -Logfiles rotate around and eventually get deleted. Rotation means they get compressed. - -Edit the config in /etc/logrotate.conf. - -A few apps have their own special log rotation rules, kept in /etc/logrotate.d/. - -The major variables to change are `weekly`, which compresses log files weekly, and `rotate 4`, which keeps 4 weeks worth of backlogs before deletion. - -# Force Log Rotation - -> sudo systemctl kill --kill-who=main --signal=SIGUSR2 systemd-journald.service - -or just - -> sudo systemctl restart systemd-journald.service - diff --git a/basics/keyboard.md b/hardware/keyboard/keyboard.md similarity index 100% rename from basics/keyboard.md rename to hardware/keyboard/keyboard.md diff --git a/hardware/keyboard/keymaps.md b/hardware/keyboard/keymaps.md deleted file mode 100644 index 90dcfa7..0000000 --- a/hardware/keyboard/keymaps.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -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. - -Keymaps codes can be found in `/usr/share/X11/xkb/keycodes/evdev`. -Swap the numbers to swap symbols. - -Check keymap with: - -> setxkbmap -print -verbose 10 - - diff --git a/basics/swap.md b/system/swap.md similarity index 100% rename from basics/swap.md rename to system/swap.md diff --git a/system/systemd/basics.md b/system/systemd/basics.md index d4f667a..ddde16c 100644 --- a/system/systemd/basics.md +++ b/system/systemd/basics.md @@ -1,6 +1,6 @@ --- -title: "basics" -tags: [ "Documentation", "system" ] +title: "systemd" +tags: [ "Documentation", "systemd" ] --- > systemctl list-units From 8f8f987eabccb73c10dd586cc5dde5c04a5f69a9 Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Sat, 22 Jan 2022 19:57:34 +0100 Subject: [PATCH 24/26] cleanup --- chat/profanity.md | 2 +- distros/debian/apt.md | 2 +- networking/wireless.md | 109 ++++++++++++++++------------------------- 3 files changed, 44 insertions(+), 69 deletions(-) diff --git a/chat/profanity.md b/chat/profanity.md index b32dda9..0095a1e 100644 --- a/chat/profanity.md +++ b/chat/profanity.md @@ -55,7 +55,7 @@ Or if you already havea conversation windows open, switch to otr using: Finally, verify! -/otr question "Who the fuck are you?" bob +/otr question "Who are you?" bob Bob is verified upon the answer, 'bob'. diff --git a/distros/debian/apt.md b/distros/debian/apt.md index 8aa15ea..4ada012 100644 --- a/distros/debian/apt.md +++ b/distros/debian/apt.md @@ -6,7 +6,7 @@ tags: [ "Documentation", "distros" ] ### Configurations? -Fucked up a package's configuration files? +Messed up a package's configuration files? > sudo apt-get purge [thing] diff --git a/networking/wireless.md b/networking/wireless.md index 5018424..58215be 100644 --- a/networking/wireless.md +++ b/networking/wireless.md @@ -2,70 +2,45 @@ title: "wireless" tags: [ "Documentation", "networking" ] --- - -# Check wifi's working -> lspci -k - -Or for usb wifi: - -> dmesg | grep usbcore - -... and hopefully it'll say the new interface is registered. - -# Check if a wifi interface has been created - -> ip link - -or - -> iw dev - -Assuming it's wlan0, bring it up with - -> ip link set wlan0 up - -Error messages probably means your wireless chipset requires a firmware to function. In this case, check the kernel messages for firmware being loaded - -> dmesg | grep firmware - -# Utilities - -iw doesn't do wpa/wpa2. wpa_supplicant does everything. iwd does everything except WEXT encryption. - -# Connecting - -Get the link status: - -> iw dev wlan0 link - -Scan for available points: - -> iw dev wlan0 scan - -The connecting commands do not cover wpa2. - -# Fucking Hell - -I really need to script this. Something like: - -1. Auto-check wireless device. - -2. Auto-check scan for devices and grab names - -3. Display names - -4. Prompt for name selection (e.g. '1'). - -5. Auto-connect to wireless associated with selection n. - -6. Prompt for password. - -7. Try to connect. - -8. Ask if user wants a password copy stored in /tmp/. - - -# Connection -This is a shitshow. Focus: netctl is the Arch project to get this going. - -Okay - can't be fucked. Most of this is systemd based. + +# Check wifi's working +> lspci -k + +Or for usb wifi: + +> dmesg | grep usbcore + +... and hopefully it'll say the new interface is registered. + +# Check if a wifi interface has been created + +> ip link + +or + +> iw dev + +Assuming it's wlan0, bring it up with + +> ip link set wlan0 up + +Error messages probably means your wireless chipset requires a firmware to function. In this case, check the kernel messages for firmware being loaded + +> dmesg | grep firmware + +# Utilities + +iw doesn't do wpa/wpa2. wpa_supplicant does everything. iwd does everything except WEXT encryption. + +# Connecting + +Get the link status: + +> iw dev wlan0 link + +Scan for available points: + +> iw dev wlan0 scan + +The connecting commands do not cover wpa2. + From 98d04f76894cfa6c238f53b929b246a452fc4a72 Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Sat, 22 Jan 2022 20:01:57 +0100 Subject: [PATCH 25/26] fix vbox syntax --- system/virtualbox.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/system/virtualbox.md b/system/virtualbox.md index 5eb763e..e95f66c 100644 --- a/system/virtualbox.md +++ b/system/virtualbox.md @@ -12,7 +12,7 @@ tags: [ "Documentation", "system" ] > # vboxreload -# Make dd image into vdi +Make dd image into vdi > VBoxManage convertdd base.dd output.vdi --format VDI @@ -20,7 +20,7 @@ If this doesn't work, try to make a new bite size with just > sudo dd if=image.dd of=image2.dd bs=512 conv=sync -# CLI Management +## CLI Management List boxes: @@ -44,7 +44,7 @@ You can do a number of things to virtualboxes this way: - poweroff -# Creating Disks +## Creating Disks Creating a VM requires registering it: From fef198856a45b616949d9802cd718060d8cff8b8 Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Tue, 25 Jan 2022 19:10:52 +0100 Subject: [PATCH 26/26] rename pages with space --- system/systemd/{making services.md => making-services.md} | 0 vim/{vim completion.md => vim-completion.md} | 0 vim/{vim screens.md => vim-screens.md} | 0 vim/{vim search.md => vim-search.md} | 0 vim/{vim windows.md => vim-windows.md} | 0 5 files changed, 0 insertions(+), 0 deletions(-) rename system/systemd/{making services.md => making-services.md} (100%) rename vim/{vim completion.md => vim-completion.md} (100%) rename vim/{vim screens.md => vim-screens.md} (100%) rename vim/{vim search.md => vim-search.md} (100%) rename vim/{vim windows.md => vim-windows.md} (100%) diff --git a/system/systemd/making services.md b/system/systemd/making-services.md similarity index 100% rename from system/systemd/making services.md rename to system/systemd/making-services.md diff --git a/vim/vim completion.md b/vim/vim-completion.md similarity index 100% rename from vim/vim completion.md rename to vim/vim-completion.md diff --git a/vim/vim screens.md b/vim/vim-screens.md similarity index 100% rename from vim/vim screens.md rename to vim/vim-screens.md diff --git a/vim/vim search.md b/vim/vim-search.md similarity index 100% rename from vim/vim search.md rename to vim/vim-search.md diff --git a/vim/vim windows.md b/vim/vim-windows.md similarity index 100% rename from vim/vim windows.md rename to vim/vim-windows.md