clarifications

This commit is contained in:
Malin Freeborn 2022-11-06 14:28:09 +01:00
parent e021020aa3
commit 670ddfb423
Signed by: andonome
GPG Key ID: 52295D2377F4D70F
9 changed files with 79 additions and 98 deletions

View File

@ -1,16 +1,19 @@
--- ---
title: "w3m" title: "w3m"
tags: [ "Documentation", "data" ] tags: [ "Documentation", "browsers" ]
--- ---
'H' for help. Open a search tab:
Ctrl+u to go to new url. > w3m ddg.gg
tab between fields. <Tab> then enter to start typing.
B to go back.
o for the love of options. | Key | Thing |
|:---------|:---------------------|
T for a new tab. | H | help |
'{' and '}' to change tabs. | Tab | switch fields |
| o | options |
| B | back |
| T | new tab |
| { / } | switch tabs |

View File

@ -4,12 +4,6 @@ tags: [ "Documentation", "Distros" ]
--- ---
# Overview # Overview
Forks include CentOS, scientific Linux, Oracle, and Fedora.
Major features: reliable, shit package selection.
# Basically yum
> yum search [package] > yum search [package]
> yum list openssh > yum list openssh
@ -20,5 +14,5 @@ Major features: reliable, shit package selection.
> yum update > yum update
yum remove [package1] [package2] > yum remove [package1] [package2]

View File

@ -10,7 +10,8 @@ Look for cowsay
> xbps-query -Rs cowsay > xbps-query -Rs cowsay
Upgrade current packages. -R looks at repositories, -s makes things sloppy. Upgrade current packages.
`-R` looks at repositories, `-s` makes a sloppy search (for rough matches).
> xbps-install -Suv > xbps-install -Suv
@ -30,16 +31,12 @@ Reconfigure all packages. Useful for breakages.
> xbps-pkgdb -a > xbps-pkgdb -a
Remove all dependencies. Remove all orphaned dependencies.
> xbps-remove -o > xbps-remove -o
Show information about cowsay Show information about cowsay
> xbps-query -RS cowsay
Search for cows
> xbps-query -Rs cows > xbps-query -Rs cows
List packages requiring updates. List packages requiring updates.
@ -58,7 +55,7 @@ Clean.
> xbps-remove -O > xbps-remove -O
apt update Update list of available packages ('sync')
> xbps-install -S > xbps-install -S
@ -66,10 +63,6 @@ Remove package information.
> xbps-query -R > xbps-query -R
Display all cowsay files
> xbps-query -Rf cowsay
Do I have cowsay installed? Do I have cowsay installed?
> xbps-query -s cowsay > xbps-query -s cowsay
@ -80,10 +73,10 @@ What packages are pointless?
> xbps-install -Sn cowsay > xbps-install -Sn cowsay
A dry-run of installing cowsay, without actually intalling.
# Advanced # Advanced
A dry-run of installing cowsay, without actually intalling.
> xbps-query -x cowsay > xbps-query -x cowsay
Show cowsay's dependencies. The -R flag's required for a remote package. Show cowsay's dependencies. The -R flag's required for a remote package.
@ -106,14 +99,7 @@ Look for broken packages.
> sudo xbps-pkgdb -a > sudo xbps-pkgdb -a
And if you've found any, you might try: And if you've found any, you might reconfigure all packages forcefully:
> sudo xbps-reconfigure -af > sudo xbps-reconfigure -af
This reconfigures all packages forcefully.
If that doesn't help the issue, try to find the broken package and forcefully reinstall:
> xbps-query -s gnutls
> sudo xbps-install -f gnutls

View File

@ -29,7 +29,7 @@ Remap, e.g., the right Windows key, to Alt_Gr.
key <RWIN> {[ ISO_Level3_Shift ]}; key <RWIN> {[ ISO_Level3_Shift ]};
``` ```
# Set Global Keymap # Set TTY Keymap
Copy your keymap, e.g. if it's polish-1, then: Copy your keymap, e.g. if it's polish-1, then:

View File

@ -1,22 +1,24 @@
--- ---
title: "youtube-dl" title: "Download videos"
tags: [ "Documentation", "Scraping" ] tags: [ "Documentation", "Scraping" ]
--- ---
> youtube-dl --write-auto-sub <URL> Install `yt-dlp`.
> yt-dlp --write-auto-sub *<URL>*
It will default to English, but you can specify another language with the flag --sub-lang: It will default to English, but you can specify another language with the flag --sub-lang:
> youtube-dl --sub-lang sv --write-auto-sub <URL> > youtube-dl --sub-lang sv --write-auto-sub *<URL>*
You can list all available subtitles with: You can list all available subtitles with:
> youtube-dl --list-subs <URL> > yt-dlp --list-subs *<URL>*
Its also possible to skip the video and only download the subtitle if you add the flag --skip-download: It's also possible to skip the video and only download the subtitle if you add the flag --skip-download:
> youtube-dl --sub-lang sv --write-auto-sub --skip-download <URL> > yt-dlp --sub-lang sv --write-auto-sub --skip-download *<URL>*
## Alternative ## Alternative
Try `yt-dlp` for some additional features and workarounds. Try `yt-dlp` for some additional features and workarounds.
It uses the same flags as youtube-dl. It uses the same flags as yt-dlp.

View File

@ -5,7 +5,53 @@ tags: [ "Documentation", "Networking" ]
wpa_supplicant configurations are stored in /etc/wpa_supplicant/wpa_supplicant-wlan0 (or equivalent). wpa_supplicant configurations are stored in /etc/wpa_supplicant/wpa_supplicant-wlan0 (or equivalent).
# Generating Keys Manually ## WiFi Connection
> wpa_cli
Once in, scan the network, add an empty place to store credentials, then input them.
> scan
> scan_results
> add_network
This outputs a network number, e.g. '3'. This is the new network you'll work with.
> set_network *3* ssid *"Kosachok Cafe"*
> set_network 3 psk *"Kosachok2019"*
OR (for no password)
> set_network *3* key_mgmt NONE
> enable_network 3
> save_config
This takes a while to connect, so to speed things up, restart the service:
> sudo sv restart wpa_supplicant
# Scripts
You can script like this:
> wpa_cli add_network
That returns an ID, so you can say:
> newNetwork="$(wpa_cli add_network)"
Then `$newNetwork` would equal that number, and you can add/ remove networks with scripts.
But remember to escape the quotes, so adding a network would be:
> wpa_cli set_network *3* psk *\""passphrase"\"*
## Generating Keys Manually
> wpa_passphrase [ssid] [password] > wpa_passphrase [ssid] [password]
@ -22,50 +68,3 @@ Next up, start wpa_supplicant:
> wpa_supplicant -B -iwlan0 -c /etc/wpa_supplicant/wpa_supplicant-wlan0 > wpa_supplicant -B -iwlan0 -c /etc/wpa_supplicant/wpa_supplicant-wlan0
The -B flag runs this as a background process. Remove this to see real-time output in order to solve problems. The -i flag denotes the physical device used for the wifi. The -c flag points to the configuration file for use. The -B flag runs this as a background process. Remove this to see real-time output in order to solve problems. The -i flag denotes the physical device used for the wifi. The -c flag points to the configuration file for use.
## Automatic WiFi Connection
> wpa_cli
This has a number of commands to input. In order:
> scan
> scan_results
> add_network
This outputs a network number, e.g. '3'. This is the new network you'll work with.
> set_network 3 ssid "Kosachok Cafe"
> set_network 3 psk "Kosachok2019"
OR (for no password)
> set_network 3 key_mgmt NONE
> enable_network 3
> save_config
...and for the impatient:
> sudo sv restart wpa_supplicant
## Scripts
You can script like this:
> wpa_cli add_network
That returns an ID, so you can say:
> newNetwork="$(wpa_cli add_network)"
Then `$newNetwork` would equal that number, and you can add/ remove networks with scripts.
But remember to escape the quotes, so adding a network would be:
> wpa_cli set_network 3 psk \""passphrase"\"

View File

@ -3,9 +3,7 @@ title: "Default Programs"
tags: [ "Documentation", "Defaults", "Mime Type" ] tags: [ "Documentation", "Defaults", "Mime Type" ]
--- ---
Install the package `xdg-utils`. Install the package `xdg-utils`, then make very liberal use of the tab button.
In general, type these commands with `bash-completion`, and you'll see the right option.
## Ask ## Ask

View File

@ -1,5 +1,5 @@
--- ---
title: "Basic vim" title: "vim basics"
tags: [ "Documentation", "vim" ] tags: [ "Documentation", "vim" ]
--- ---

View File

@ -12,4 +12,3 @@ tags: [ "Documentation", "vim" ]
| rotate windows | C-w r | | rotate windows | C-w r |
| split open new file | :sf path/file | | split open new file | :sf path/file |