change ``bash headers to ``sh

This commit is contained in:
2025-08-22 15:59:04 +02:00
parent 3e049e1687
commit 8eea348112
80 changed files with 773 additions and 555 deletions

View File

@@ -5,7 +5,7 @@ tags: [ "void" ]
Make the autologin service:
```bash
```sh
cp -R /etc/sv/agetty-tty1 /etc/sv/agetty-autologin-tty1
```

View File

@@ -7,24 +7,24 @@ To automatically stick the logo onto your background, do these commands in the d
Get the void linux logo from wikipedia
```bash
```sh
wget https://upload.wikimedia.org/wikipedia/commons/thumb/0/02/Void_Linux_logo.svg/256px-Void_Linux_logo.svg.png?20170131170632
```
Rename it, and resize it (the standard size is too small for most wallpapers)
```bash
```sh
convert -resize 200% '256px-Void_Linux_logo.svg.png?20170131170632' void-logo.png
```
Download a pretty wallpaper
```bash
```sh
wget http://wallpapercave.com/wp/Wlm9Gv0.jpg
```
Put the void logo on all *jpg and *png images
```bash
```sh
for x in *.jpg
do
composite -compose multiply -gravity Center void-logo.png "$x" "$x"

View File

@@ -6,13 +6,13 @@ tags: [ "void" ]
All possible services are in:
```bash
```sh
ls /etc/sv
```
The computer only uses those in /var/service, so symbolic links are made to start and stop services.
```bash
```sh
ls /var/service
```
@@ -20,13 +20,13 @@ ls /var/service
Enable the sshd service, so that ssh will work every time you boot up:
```bash
```sh
sudo ln -s /etc/sv/sshd /var/service
```
Then start the service:
```bash
```sh
sudo sv start sshd
```
@@ -34,19 +34,19 @@ sudo sv start sshd
Stop `mpd` with:
```bash
```sh
sudo sv stop mpd
```
And stop it automatically loading at startup with:
```bash
```sh
sudo rm /var/service/mpd
```
You can also just make a file called 'down':
```bash
```sh
sudo touch /var/service/mpd/down
```
@@ -63,7 +63,7 @@ If unsure, use `#!/bin/bash` as the first line. When Void Linux says `sh`, it m
Confirm the shell you'll use:
```bash
```sh
ls -l $(which sh)
```

View File

@@ -6,7 +6,7 @@ tags: [ "void" ]
Update all packages with
```bash
```sh
sudo xbps-install -Su
```
@@ -17,7 +17,7 @@ See [xbps](xbps.md) for more.
Void keeps *every* version of everything you install, so you can roll back to them.
Remove old packages with:
```bash
```sh
sudo xbps-remove -O
```
@@ -25,19 +25,19 @@ sudo xbps-remove -O
Old Void kernels are left on the boot partition. List them with:
```bash
```sh
vkpurge list
```
Remove one with:
```bash
```sh
vkpurge 2.8.2_4
```
Remove all but the latest with:
```bash
```sh
vkpurge rm all
```
@@ -48,7 +48,7 @@ You can change this number to change the screen brightness.
For an easy utility, install `brightnessctl`.
```bash
```sh
brightnessctl s 10%-
brightnessctl s 10%+
```

View File

@@ -6,50 +6,50 @@ tags: [ "void" ]
Look for cowsay in the repository:
```bash
```sh
xbps-query --repository --search cowsay
```
Short version:
```bash
```sh
xbps-query -Rs cowsay
```
Search with regex:
```bash
```sh
xbps-query --regex -Rs 'cow(s)?\w'
```
List what's required for cowsay
```bash
```sh
xbps-query -x cowsay
```
What packages are orphaned (i.e. installed as a dependency for another package, which has since been removed)?
```bash
```sh
xbps-query -O
```
Show cowsay's dependencies.
```bash
```sh
xbps-query -x cowsay
```
This shows `perl`.
To see what else depends on perl:
```bash
```sh
xbps-query -X perl
```
List all manually installed software.
```bash
```sh
xbps-query -m
```
@@ -57,14 +57,14 @@ xbps-query -m
Install cowsay
```bash
```sh
xbps-install cowsay
```
Upgrade current packages.
`-R` looks at repositories, `-s` makes a sloppy search (for rough matches).
```bash
```sh
xbps-install -Suv
```
@@ -72,19 +72,19 @@ xbps-install -Suv
Remove cowsay
```bash
```sh
xbps-remove cowsay
```
...and all dependencies
```bash
```sh
xbps-remove -R cowsay
```
Remove all orphaned dependencies.
```bash
```sh
xbps-remove -o
```
@@ -94,19 +94,19 @@ Show information about cowsay
Reinstall cowsay
```bash
```sh
xbps-install -f cowsay
```
Look for broken packages.
```bash
```sh
sudo xbps-pkgdb -a
```
And if you've found any, you might reconfigure all packages forcefully:
```bash
```sh
sudo xbps-reconfigure -af
```