فهرست منبع

Update PC applications structure

Håvard O. Nordstrand 5 سال پیش
والد
کامیت
1b4681a5ab

+ 1 - 1
config/linux-server/applications.md

@@ -1,5 +1,5 @@
 ---
-title: Applications
+title: Linux Server Applications
 toc_enable: yes
 breadcrumbs:
 - title: Configuration

+ 139 - 0
config/pc/applications.md

@@ -0,0 +1,139 @@
+---
+title: PC Applications
+toc_enable: yes
+breadcrumbs:
+- title: Configuration
+- title: PC
+---
+{% include header.md %}
+
+## Fancontrol (Linux)
+
+**Warning:** Fancontrol is unreliable and should probably not be used. The fan controller IDs like to change on every reboot which breaks the config.
+
+### Configure Sensors
+
+1. Install `lm-sensors`.
+2. Run `sensors-detect`.
+   1. Answer with the default answers.
+   2. At the end, allow it to add the modules to `/etc/modules`.
+3. Reload the `kmod` service to reload the modules.
+
+### Configure Fancontrol
+
+1. Install `fancontrol`.
+2. (Optional) Install `gnuplot` if you want `pwmconfig` to generate graphical plots.
+3. Run `pwmconfig`.
+   1. Use manual mode for when asked.
+   2. Generate detailed correlations when asked.
+   3. Set up the config file when asked (`/etc/fancontrol`).
+   4. Decide which sensor each controller should depend on.
+   5. Configure all fan controllers.
+   6. Save and quit.
+4. Tweak the config:
+   1. Open `/etc/fancontrol`.
+   2. Round up all numbers, just to make it a little cleaner.
+   3. Set `interval` to around 2 seconds.
+5. Restart the `fancontrol` service.
+
+## Firefox
+
+### Config
+
+- (Linux) Disable middle mouse paste:
+  - Go to `about:config`.
+  - Set `middlemouse.paste` to false.
+
+## Git
+
+### Config
+Location: `~/.gitconfig`
+
+[Example](https://github.com/HON95/configs/blob/master/pc/common/gitconfig).
+
+## Nvidia Settings (Linux)
+
+- To save, use the "save current configuration" button and save it to `/etc/X11/xorg.conf`.
+
+## Oh-My-ZSH (Linux)
+
+1. Install ZSH.
+2. Install Oh-My-ZSH:
+    1. See: [ohmyz.sh](https://ohmyz.sh/)
+3. Install the Powerlevel9k theme:
+    1. Run: `git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k`
+    2. In `~/.zshrc`, set `ZSH_THEME="powerlevel9k/powerlevel9k"`.
+4. Use the Hack font from Nerd Fonts:
+    2. Install it if missing: [https://github.com/ryanoasis/nerd-fonts/tree/master/patched-fonts/Hack](https://github.com/ryanoasis/nerd-fonts/tree/master/patched-fonts/Hack)
+    3. Change your terminal's font to it.
+    4. In `~/.zshrc`, set `POWERLEVEL9K_MODE="nerdfont-complete"`.
+5. Configure `~/.zshrc`: See the example below.
+6. Make zprofile include profile:
+    1. In `/etc/zprofile`, add: `emulate sh -c "source /etc/profile"`
+    2. This prevents Snaps and other profile stuff from breaking.
+
+[Example zshrc](https://github.com/HON95/configs/blob/master/pc/common/zshrc).
+
+## Piper (Linux)
+
+GUI for configuring gaming mice.
+
+### Setup
+
+1. Install the piper [PPA](https://launchpad.net/~libratbag-piper/+archive/ubuntu/piper-libratbag-git).
+2. Install `piper`.
+3. Configure the mouse using the GUI.
+
+## PuTTY (Windows)
+
+- In `Terminal > Features`, activate `Disable application keypad mode`.
+- In `Window > Appearance`, change font to Consolas, regular, size 10.
+- In `Window > Colours`, set all ANSI non-bold colors to the same as the bold ones.
+
+## Speedfan (Windows)
+
+- **Warning:** The controller symlinks likes to change on boot, meaning the config may break every boot. This makes it literally useless.
+- Manually add startup shortcut.
+- Disable `Do SMART Summary Error Log scan on startup` since it may cause the PC to freeze.
+  - Alternatively, use the CLI argument `/NOSMARTSCAN`.
+- Set the PWM mode for fans which will be controlled by Speedfan to manual.
+
+## SSH
+
+### Usage
+
+- New key (RSA): `ssh-keygen -t rsa -b 4096`
+
+### Config
+Location: `~/.ssh/config`
+
+[Example](https://github.com/HON95/configs/blob/master/pc/common/ssh_config).
+
+## Steam (Linux)
+
+- Windows appdata dir: `steamapps/compatdata/<some_id>/pfx/drive_c/users/steamuser/AppData/`
+
+## Vim
+
+### Config
+Location:
+- Global: `/etc/vim/vimrc`
+- User: `~/.vimrc`
+
+[Example](https://github.com/HON95/configs/blob/master/pc/common/vimrc).
+
+## VS Code
+
+### Some Extensions
+
+- GitLens (eamodio.gitlens)
+- HTML CSS Support (ecmel.vscode-html-css)
+
+### Config
+Location:
+- Linux: `~/.config/Code/User/settings.json`
+- Windows: `%APPDATA%\Code\User\settings.json`
+
+[Example](https://github.com/HON95/configs/blob/master/pc/common/vscode_settings.json).
+
+{% include footer.md %}

+ 0 - 58
config/pc/common-applications.md

@@ -1,58 +0,0 @@
----
-title: Common Applications
-toc_enable: yes
-breadcrumbs:
-- title: Configuration
-- title: PC
----
-{% include header.md %}
-
-## Firefox
-
-### Config
-
-- (Linux) Disable middle mouse paste:
-  - Go to `about:config`.
-  - Set `middlemouse.paste` to false.
-
-## Git
-
-### Config
-Location: `~/.gitconfig`
-
-[Example](https://github.com/HON95/configs/blob/master/pc/common/gitconfig).
-
-## SSH
-
-### Usage
-
-- New key (RSA): `ssh-keygen -t rsa -b 4096`
-
-### Config
-Location: `~/.ssh/config`
-
-[Example](https://github.com/HON95/configs/blob/master/pc/common/ssh_config).
-
-## Vim
-
-### Config
-Location:
-- Global: `/etc/vim/vimrc`
-- User: `~/.vimrc`
-
-[Example](https://github.com/HON95/configs/blob/master/pc/common/vimrc).
-
-## VS Code
-
-### Extensions
-
-- HTML CSS Support (ecmel.vscode-html-css)
-
-### Config
-Location:
-- Linux: `~/.config/Code/User/settings.json`
-- Windows: `%APPDATA%\Code\User\settings.json`
-
-[Example](https://github.com/HON95/configs/blob/master/pc/common/vscode_settings.json).
-
-{% include footer.md %}

+ 0 - 82
config/pc/linux-applications.md

@@ -1,82 +0,0 @@
----
-title: Linux Applications
-toc_enable: yes
-breadcrumbs:
-- title: Configuration
-- title: PC
----
-{% include header.md %}
-
-### Using
-{:.no_toc}
-Kubuntu 19.10+
-
-## Fancontrol
-
-**Warning:** Fancontrol is unreliable and should probably not be used. The fan controller IDs like to change on every reboot which breaks the config.
-
-#### Configure Sensors
-
-1. Install `lm-sensors`.
-2. Run `sensors-detect`.
-   1. Answer with the default answers.
-   2. At the end, allow it to add the modules to `/etc/modules`.
-3. Reload the `kmod` service to reload the modules.
-
-#### Configure Fancontrol
-
-1. Install `fancontrol`.
-2. (Optional) Install `gnuplot` if you want `pwmconfig` to generate graphical plots.
-3. Run `pwmconfig`.
-   1. Use manual mode for when asked.
-   2. Generate detailed correlations when asked.
-   3. Set up the config file when asked (`/etc/fancontrol`).
-   4. Decide which sensor each controller should depend on.
-   5. Configure all fan controllers.
-   6. Save and quit.
-4. Tweak the config:
-   1. Open `/etc/fancontrol`.
-   2. Round up all numbers, just to make it a little cleaner.
-   3. Set `interval` to around 2 seconds.
-5. Restart the `fancontrol` service.
-
-## Nvidia Settings
-
-- To save, use the "save current configuration" button and save it to `/etc/X11/xorg.conf`.
-
-## Piper
-
-GUI for configuring gaming mice.
-
-#### Setup
-
-1. Install the piper [PPA](https://launchpad.net/~libratbag-piper/+archive/ubuntu/piper-libratbag-git).
-2. Install `piper`.
-3. Configure the mouse using the GUI.
-
-## Shell
-
-### ZSH (Oh-My-ZSH)
-
-1. Install ZSH.
-2. Install Oh-My-ZSH:
-   1. See: [https://ohmyz.sh/](https://ohmyz.sh/)
-3. Install the Powerlevel9k theme:
-   1. `git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k`
-   2. In `~/.zshrc`: `ZSH_THEME="powerlevel9k/powerlevel9k"`
-4. Use the Hack font from Nerd Fonts:
-   2. Install it if missing: [https://github.com/ryanoasis/nerd-fonts/tree/master/patched-fonts/Hack](https://github.com/ryanoasis/nerd-fonts/tree/master/patched-fonts/Hack)
-   3. Change your terminal's font to it.
-   4. In `~/.zshrc`, set `POWERLEVEL9K_MODE="nerdfont-complete"`.
-5. Configure `~/.zshrc`: See the example below.
-6. Make zprofile include profile:
-   1. In `/etc/zprofile`, add: `emulate sh -c "source /etc/profile"`
-   2. This prevents Snaps and other profile stuff from breaking.
-
-Example: [zshrc](https://github.com/HON95/configs/blob/master/pc/common/zshrc).
-
-## Steam
-
-- Windows appdata dir: `steamapps/compatdata/<number>/pfx/drive_c/users/steamuser/AppData/`
-
-{% include footer.md %}

+ 12 - 10
config/pc/linux-examples.md → config/pc/linux.md

@@ -1,5 +1,5 @@
 ---
-title: Linux Examples
+title: Linux
 toc_enable: yes
 breadcrumbs:
 - title: Configuration
@@ -11,15 +11,17 @@ breadcrumbs:
 {:.no_toc}
 Debian 10 Buster
 
-## Commands
+## Examples
 
-### File Systems and Logical Volume Managers
+### Commands
+
+#### File Systems and Logical Volume Managers
 
 - Partition disk: `gdisk <dev>` (GPT) or `fdisk <dev>` (MBR)
 - Create filesystem: `mkfs.<fs> <dev>`
 - ZFS: See ZFS (**TODO**).
 
-### Files
+#### Files
 
 - Find files:
   - By UID: `find / -user <UID>`
@@ -28,15 +30,15 @@ Debian 10 Buster
 - Recursive search and replace: `find <dir> \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i 's/123/456/g'`
   - `-type d -name .git -prune` skips `.git` directories and can be excluded outside of git repos.
 
-### Fun
+#### Fun
 
 - Pretty colors: `something | lolcat`
 
-### Installations and Packages
+#### Installations and Packages
 
 - Find packages depending on the package: `apt rdepends --installed <package>`
 
-### Performance and Power Efficiency
+#### Performance and Power Efficiency
 
 - Set the CPU frequency scaling governor mode:
     - High performance: `echo performance | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor`
@@ -44,13 +46,13 @@ Debian 10 Buster
 - Monitor system and processes: `htop`
 - Monitor interrupt usage: `irqtop`
 
-### Processes and Memory
+#### Processes and Memory
 
 - Useful ps args: `ps ax o uid,user:12,pid,comm`
 
-## Tasks
+### Tasks
 
-### Burn Windows ISO
+#### Burn Windows ISO
 
 1. Install the graphical application `woeusb` from `ppa:nilarimogard/webupd8`.
 

+ 0 - 28
config/pc/windows-applications.md

@@ -1,28 +0,0 @@
----
-title: Windows Applications
-toc_enable: yes
-breadcrumbs:
-- title: Configuration
-- title: PC
----
-{% include header.md %}
-
-### Using
-{:.no_toc}
-Windows 10
-
-## PuTTY
-
-- In `Terminal > Features`, activate `Disable application keypad mode`.
-- In `Window > Appearance`, change font to Consolas, regular, size 10.
-- In `Window > Colours`, set all ANSI non-bold colors to the same as the bold ones.
-
-## Speedfan
-
-- **Warning:** The controller symlinks likes to change on boot, meaning the config may break every boot. This makes it literally useless.
-- Manually add startup shortcut.
-- Disable `Do SMART Summary Error Log scan on startup` since it may cause the PC to freeze.
-  - Alternatively, use the CLI argument `/NOSMARTSCAN`.
-- Set the PWM mode for fans which will be controlled by Speedfan to manual.
-
-{% include footer.md %}

+ 2 - 4
index.md

@@ -16,12 +16,10 @@
 
 ### PC
 
-- [Common Applications](config/pc/common-applications/)
+- [Applications](config/pc/applications/)
+- [Linux](config/pc/linux/)
 - [Kubuntu](config/pc/kubuntu/)
-- [Linux Applications](config/pc/linux-applications/)
-- [Linux Examples](config/pc/linux-examples/)
 - [Windows](config/pc/windows/)
-- [Windows Applications](config/pc/windows-applications/)
 
 ### IoT