applications.md 5.1 KB


title: PC Applications breadcrumbs:

  • title: Configuration
  • title: PC --- {% include header.md %}

Fancontrol (Linux)

Warning: Don't use this. The fan controller IDs may 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

Nvidia Settings (Linux)

  • To save, use the "save current configuration" button and save it to /etc/X11/xorg.conf.

Piper (Linux)

GUI for configuring gaming mice.

Setup

  1. Install the piper PPA.
  2. Install piper.
  3. Configure the mouse using the GUI application.

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.

SMB

Troubleshooting

  • If using DNS instead of NetBIOS and the client freezes while connecting to a share, try enabling the "Routing and Remote Access" service.

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

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.

VS Code

Setup

  1. Install it.
  2. (Linux) Increase the handle count limit:
    1. Ref.: "Visual Studio Code is unable to watch for file changes in this large workspace" (error ENOSPC).
    2. Get current limit: cat /proc/sys/fs/inotify/max_user_watches
    3. In /etc/sysctl.conf, set fs.inotify.max_user_watches=524288.
    4. Reload the config: sysctl -p

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.

ZSH (personal) (Linux)

This is my personal ZSH setup using Oh-My-ZSH with the Powerlevel9k theme and Hack font.

  1. Install ZSH:
    1. apt install zsh
  2. Make zprofile include profile (to avoid breaking certain things):
    1. In /etc/zprofile or /etc/zsh/zprofile (whichever exists), add: emulate sh -c "source /etc/profile"
  3. Install Oh-My-ZSH:
    1. See ohmyz.sh.
    2. When it asks, set it as your default shell. This won't take effect until the next login.
  4. Setup Powerlevel10k theme:
    1. Download and install fonts: Fonts
    2. Open a new terminal window and set the new font.
    3. Clone it: git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/.oh-my-zsh/themes/powerlevel10k
    4. In ~/.zshrc, set ZSH_THEME="powerlevel10k/powerlevel10k".
    5. Open a new ZSH session (or restart your terminal).
    6. Configure the theme (if it didn't automatically start): p10k configure
  5. Setup syntax highlighting plugin:
    1. Clone it: git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
    2. Add it to plugins in .zshrc (e.g. plugins=(git zsh-syntax-highlighting)).
  6. Configure ~/.zshrc:
    1. See the example below.

Example zshrc.

{% include footer.md %}