Skip to content

Commit

Permalink
Add more missing syntax highlighters, add more meta strings to code (#…
Browse files Browse the repository at this point in the history
…533)

Signed-off-by: Thomas Staudinger <[email protected]>
  • Loading branch information
Staudey authored May 2, 2024
1 parent 7079cf4 commit ceca0e1
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion docs/user/hardware/peripherals/mice-and-touchpads.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ If it returns a result, then success! The synaptics driver is in use instead of

If you wish to switch back to using libinput:

```
```bash
sudo rm /etc/X11/xorg.conf.d/90-synaptics.conf
sudo eopkg rm xorg-driver-input-synaptics
```
4 changes: 2 additions & 2 deletions docs/user/quick-start/boot-management.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ By default, EFI installs will not show the boot menu and boot directly into Solu

The following command will set the timeout of the boot loader to five seconds so that it appears by default:

```
```bash
sudo clr-boot-manager set-timeout 5 && sudo clr-boot-manager update
```

### Adding kernel parameters

Kernel parameters can be appended to boot via creating a file for `clr-boot-manager` to use when updating kernels. For example, to add `nomodeset` to boot options, you would create a file in `/etc/kernel/cmdline.d` (as sudo):

```
```bash
sudo mkdir -p /etc/kernel/cmdline.d
echo 'nomodeset' | sudo tee /etc/kernel/cmdline.d/40_nomodeset.conf
```
Expand Down
2 changes: 1 addition & 1 deletion docs/user/software/desktops/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ sudo eopkg install -c desktop.mate

Solus offers the XFCE desktop environment for users preferring a more lightweight experience. It is recommended for existing MATE users. You can install XFCE with the following command:

```
```bash
# Do NOT attempt to do this if you are running the KDE Plasma Desktop version of Solus!
sudo eopkg install -c desktop.xfce
```
Expand Down
26 changes: 13 additions & 13 deletions docs/user/software/development/postgresql.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,21 @@ summary: A quick guide to using Postgres on Solus

PostgreSQL can be installed either from the Software Center or via terminal:

```
```bash
sudo eopkg install postgresql
```

Management of the server can be done using Systemd:

```
```bash
sudo systemctl enable postgresql # Start the server on boot
sudo systemctl start postgresql # Start the server now
sudo systemctl stop postgresql # Stop the server
```

It is possible to connect to the database using the PostgreSQL user:

```
```bash
sudo -u postgres psql
```

Expand All @@ -37,59 +37,59 @@ Because PostgreSQL is included as a single package, the only way to perform a ma

1. If you have already updated PostgreSQL, downgrade PostgreSQL back to 15.4:

```
```bash
sudo eopkg it https://cdn.getsol.us/repo/shannon/p/postgresql/postgresql-15.4-42-1-x86_64.eopkg \
https://cdn.getsol.us/repo/shannon/p/postgresql/postgresql-libpq-15.4-42-1-x86_64.eopkg
```

2. (Re)start PostgreSQL:

```
```bash
sudo systemctl restart postgresql
```

3. Create a backup of all current data:

```
```bash
sudo -u postgres pg_dumpall -f /tmp/backup.sql
```

The location of the backup may be one of your choosing, but keep in mind that the `postgres` user needs to have write permissions on the given location.

4. Stop PostgreSQL:

```
```bash
sudo systemctl stop postgresql
```

5. Rename the old data directory. This directory contains the old configuration and the original database, but requires significant disk space.

```
```bash
sudo mv /var/db/pgsql/data /var/db/pgsql/data.old
```

6. Create a new data directory:

```
```bash
sudo mkdir /var/db/pgsql/data
sudo chown postgres: /var/db/pgsql/data
```

7. Upgrade PostgreSQL:

```
```bash
sudo eopkg upgrade
```

8. Start PostgreSQL:

```
```bash
sudo systemctl start postgresql
```

9. Restore the data:

```
```bash
sudo -u postgres psql < /tmp/backup.sql
```

Expand All @@ -99,6 +99,6 @@ sudo -u postgres psql < /tmp/backup.sql

12. Remove the backup and data dump:

```
```bash
sudo rm -r /var/db/pgsql/data.old /tmp/backup.sql
```
2 changes: 1 addition & 1 deletion docs/user/software/networking/samba.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ In the _smbd_ manual page (`man 8 smbd`), it is shown how the compiled-in defaul

To use the traditional `/etc/samba/smb.conf` configuration file exclusively (thus bypassing the Solus configuration), edit the `/etc/sysconfig/samba` file to look like so:

```bash
```ini
## Path: Network/Samba
## Description: Samba process options
## Type: string
Expand Down
8 changes: 4 additions & 4 deletions docs/user/software/utilities/kwallet.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ The contents of `~/.config/autostart/ssh-add.desktop` should reflect the SSH key

Below is an example of the contents of `~/.config/autostart/ssh-add.desktop`:

```
```ini
[Desktop Entry]
Exec=ssh-add -q
Name=ssh-add
Expand All @@ -40,7 +40,7 @@ Type=Application

Tip: The above ssh-add.desktop file will only add the default key `~/.ssh/id_rsa`. Assuming you have different keys named key1, key2 etc you need to change the above desktop file to

```
```ini
[Desktop Entry]
Exec=ssh-add -q ~/.ssh/key1 ~/.ssh/key2 ~/.ssh/key3
Name=ssh-add
Expand All @@ -51,7 +51,7 @@ Type=Application

After you created your file inside the autostart folder you have to give it the correct permissions

```
```bash
chmod 700 ~/.config/autostart/ssh-add.desktop
```

Expand All @@ -71,6 +71,6 @@ For this to work, your KDE Wallet password needs to be identical to your login p

ssh key doesn't get triggered, you can force this manually by running this command.

```
```bash
SSH_ASKPASS=/usr/bin/ksshaskpass ssh-add < /dev/null
```
2 changes: 1 addition & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ const config = {
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
additionalLanguages: ["bash"],
additionalLanguages: ["bash", "diff", "ini", "powershell"],
},
}),
};
Expand Down

0 comments on commit ceca0e1

Please sign in to comment.