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/_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 >}} diff --git a/basics/archives.md b/basics/archives.md deleted file mode 100644 index 974c5b0..0000000 --- a/basics/archives.md +++ /dev/null @@ -1,60 +0,0 @@ -# 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/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 ac1579f..14fba02 100644 --- a/basics/basics.md +++ b/basics/basics.md @@ -1,10 +1,17 @@ -# Absolute Bloody Basics +--- +title: "basics" +tags: [ "Documentation", "basics" ] +--- 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 +25,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 .. diff --git a/basics/clock.md b/basics/clock.md index 7ca71f4..51e1692 100644 --- a/basics/clock.md +++ b/basics/clock.md @@ -1,4 +1,7 @@ -# `date` +--- +title: "clock" +tags: [ "Documentation", "basics" ] +--- 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/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 deleted file mode 100644 index d6b34f8..0000000 --- a/basics/logs.md +++ /dev/null @@ -1,57 +0,0 @@ -# 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/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..5266bc8 100644 --- a/basics/shell.md +++ b/basics/shell.md @@ -1,8 +1,11 @@ -# Shells +--- +title: "shell" +tags: [ "Documentation", "basics" ] +--- -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/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..0095a1e 100644 --- a/chat/profanity.md +++ b/chat/profanity.md @@ -1,3 +1,7 @@ +--- +title: "profanity" +tags: [ "Documentation", "chat" ] +--- # Pre Setup @@ -51,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/arch/signal.md b/chat/signal-cli.md similarity index 87% rename from distros/arch/signal.md rename to chat/signal-cli.md index dc89223..e196a36 100644 --- a/distros/arch/signal.md +++ b/chat/signal-cli.md @@ -1,3 +1,7 @@ +--- +title: "signal" +tags: [ "Documentation", "distros" ] +--- > yay -S signal-cli 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/mdadm.md b/data/mdadm.md new file mode 100644 index 0000000..990c43e --- /dev/null +++ b/data/mdadm.md @@ -0,0 +1,33 @@ +--- +title: "mdadm" +tags: [ "Documentation", "RAID" ] +--- +# 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 + +> sudo mdadm --add /dev/md127 /dev/sdb1 + 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/.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 - - -``` - - 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..4ad3abd 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 @@ -32,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 41afbf6..29980db 100644 --- a/distros/arch/autologin.md +++ b/distros/arch/autologin.md @@ -1,25 +1,29 @@ +--- +title: "autologin" +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/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/debian/apt.md b/distros/debian/apt.md index afc3152..4ada012 100644 --- a/distros/debian/apt.md +++ b/distros/debian/apt.md @@ -1,8 +1,12 @@ +--- +title: "apt" +tags: [ "Documentation", "distros" ] +--- ## apt ### Configurations? -Fucked up a package's configuration files? +Messed up a package's configuration files? > sudo apt-get purge [thing] 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..990156e 100644 --- a/distros/void/autologin.md +++ b/distros/void/autologin.md @@ -1,3 +1,7 @@ +--- +title: "Void Autologin" +tags: [ "Documentation", "Distros", "Void" ] +--- 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/basics/keyboard.md b/hardware/keyboard/keyboard.md similarity index 85% rename from basics/keyboard.md rename to hardware/keyboard/keyboard.md index 4bb7b16..1adc259 100644 --- a/basics/keyboard.md +++ b/hardware/keyboard/keyboard.md @@ -1,3 +1,7 @@ +--- +title: "keyboard" +tags: [ "Documentation", "basics" ] +--- # Set Layout Set layout to British English. diff --git a/hardware/keyboard/keymaps.md b/hardware/keyboard/keymaps.md deleted file mode 100644 index e255adf..0000000 --- a/hardware/keyboard/keymaps.md +++ /dev/null @@ -1,12 +0,0 @@ -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/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 deleted file mode 100644 index c884a3d..0000000 --- a/networking/radio.md +++ /dev/null @@ -1,3 +0,0 @@ -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..58215be 100644 --- a/networking/wireless.md +++ b/networking/wireless.md @@ -1,67 +1,46 @@ - -# 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. +--- +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. + diff --git a/networking/wpa_supplicant.md b/networking/wpa_supplicant.md index f2e64d6..c5d3367 100644 --- a/networking/wpa_supplicant.md +++ b/networking/wpa_supplicant.md @@ -1,4 +1,7 @@ -# Intro +--- +title: "wpa_supplicant" +tags: [ "Documentation", "networking" ] +--- 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/basics/swap.md b/system/swap.md similarity index 92% rename from basics/swap.md rename to system/swap.md index 8d8a4b6..fcb4170 100644 --- a/basics/swap.md +++ b/system/swap.md @@ -1,3 +1,7 @@ +--- +title: "swap" +tags: [ "Documentation", "basics" ] +--- # Making a Swap File > sudo mkdir -v /var/cache/swap diff --git a/system/systemd/basics.md b/system/systemd/basics.md index 3a5b4ea..ddde16c 100644 --- a/system/systemd/basics.md +++ b/system/systemd/basics.md @@ -1,3 +1,7 @@ +--- +title: "systemd" +tags: [ "Documentation", "systemd" ] +--- > 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 similarity index 90% rename from system/systemd/making services.md rename to system/systemd/making-services.md index 089a1a1..5492eb8 100644 --- a/system/systemd/making services.md +++ b/system/systemd/making-services.md @@ -1,3 +1,7 @@ +--- +title: "Making Services" +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..e95f66c 100644 --- a/system/virtualbox.md +++ b/system/virtualbox.md @@ -1,3 +1,7 @@ +--- +title: "virtualbox" +tags: [ "Documentation", "system" ] +--- # Setup ## Arch Linux @@ -8,7 +12,7 @@ > # vboxreload -# Make dd image into vdi +Make dd image into vdi > VBoxManage convertdd base.dd output.vdi --format VDI @@ -16,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: @@ -40,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: 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/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/completion.md b/vim/vim-completion.md similarity index 51% rename from vim/completion.md rename to vim/vim-completion.md index eb06064..53da815 100644 --- a/vim/completion.md +++ b/vim/vim-completion.md @@ -1,3 +1,7 @@ +--- +title: "completion" +tags: [ "Documentation", "vim" ] +--- Complete the word: diff --git a/vim/screens.md b/vim/vim-screens.md similarity index 60% rename from vim/screens.md rename to vim/vim-screens.md index 664547b..aaa990e 100644 --- a/vim/screens.md +++ b/vim/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/vim-search.md similarity index 68% rename from vim/search.md rename to vim/vim-search.md index ecf9262..b6a280e 100644 --- a/vim/search.md +++ b/vim/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/windows.md b/vim/vim-windows.md similarity index 78% rename from vim/windows.md rename to vim/vim-windows.md index 16954ee..9cd879a 100644 --- a/vim/windows.md +++ b/vim/vim-windows.md @@ -1,3 +1,7 @@ +--- +title: "windows" +tags: [ "Documentation", "vim" ] +--- | Command | Keys | |:-----|:----:| 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/virtualization/docker.md b/virtualization/docker.md new file mode 100644 index 0000000..628b35e --- /dev/null +++ b/virtualization/docker.md @@ -0,0 +1,50 @@ +--- +title: "Docker" +tags: [ "Documentation", "Virtualization" ] +--- +> 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 + +# 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* + diff --git a/system/xen/basics.md b/virtualization/xen/basics.md similarity index 86% rename from system/xen/basics.md rename to virtualization/xen/basics.md index 5ca0a74..223bfe7 100644 --- a/system/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/system/xen/xe.md b/virtualization/xen/xe.md similarity index 97% rename from system/xen/xe.md rename to virtualization/xen/xe.md index d34d80a..2f71513 100644 --- a/system/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/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: