Using cwm On OpenBSD

cwm actions are initiated either via key or mouse bindings. The following notations are used throughout this page:

C
    Control key.
M
    Meta key.
S
    Shift key.
4
    Mod4 (windows) key.
M1
    Left mouse button.
M2
    Middle mouse button.
M3
    Right mouse button.

The default key bindings are:

CM-Return
    Spawn a new terminal.
CM-Delete
    Lock the screen.
M-Return
    Hide current window.
M-Down
    Lower current window.
M-Up
    Raise current window.
M-slash
    Search for windows.
C-slash
    Search for applications.
CM-n
    Label current window.
M-Tab
    Cycle through currently visible windows.
MS-Tab
    Reverse cycle through currently visible windows.
M-grave
    Cycle through currently visible windows of the same window class.
MS-grave
    Reverse cycle through currently visible windows of the same window class.
CM-x
    Close current window.
CM-[n]
    Toggle visibility of group n, where n is 1-9.
CM-a
    Toggle visibility of all groups.
CM-g
    Toggle group membership of current window.
M-Right
    Cycle through active groups.
M-Left
    Reverse cycle through active groups.
CMS-f
    Toggle freezing geometry of current window.
CM-s
    Toggle stickiness of current window.
CM-f
    Toggle full-screen mode of current window.
CM-m
    Toggle maximization of current window.
CM-equal
    Toggle vertical maximization of current window.
CMS-equal
    Toggle horizontal maximization of current window.
M-[hjkl]
    Move window by a small amount.
MS-[hjkl]
    Move window by a large amount; see cwmrc(5).
CM-[hjkl]
    Resize window by a small amount.
CMS-[hjkl]
    Resize window by a large amount; see cwmrc(5).
M-question
    Spawn “exec program” dialog.
M-period
    Spawn “ssh to” dialog. This parses $HOME/.ssh/known_hosts to provide host auto-completion. ssh(1) will be executed via the configured terminal emulator.
CM-w
    Spawn “exec WindowManager” menu, allowing a switch to another window manager.
CMS-r
    Restart.
CMS-q
    Quit.

The default mouse bindings are:

M-M1
    Move current window.
CM-M1
    Toggle group membership of current window.
M-M2
    Resize current window
M-M3
    Lower current window.
CMS-M3
    Hide current window.

The following key bindings may be used to navigate search and exec dialogs:

[Return]
    Select item.
[Down], C-s or M-j
    Next item.
[Up], C-r or M-k
    Previous item.
[Backspace] or C-h
    Backspace.
C-u
    Clear input.
C-a
    List all available items.
[Esc]
    Cancel.

Enable BitLocker Without A TPM Chip (Password-Based Authentication)

  1. Open Edit group policy.
  2. Navigate to the following directory:
    • Computer Configuration -> Administrative templates -> Windows Components -> BitLocker Drive Encryption -> Operating System Drives
  3. Open/configure the following setting: Require additional authentication at startup. Note, do not open the one named Require additional authentication at startup (Windows Server 2008 and Windows Vista) unless you are using Windows Server 2008 or Vista.
  4. Change the option from Not Configured to Enabled.

If you try encrypting your OS drive without a TPM chip, you’ll now notice you have the option to setup a password or use a drive as a passkey as well.

How To Do IRC Idling Properly

Requirements

  1. An Internet connected server.
    • This can be a VPS or a on-prem. server you control that’s accessable from the Internet. You could do something on your LAN as well, but that’s up to you.
  2. Knowledge of IRC.
  3. Knowledge of tmux session attaching/detaching. You can read my quick article about it here: Persistent SSH Sessions Using tmux.

Steps

  1. Open or attach to a tmux session.
  2. Install weechat or irssi (recommended), depending on your preference.
  3. Open irssi.
  4. Connect to the server you want to join. Example: /connect irc.libera.chat.
  5. Join the channel. Example: /join #blastwave.
  6. Detach from the tmux session and go about your day. Then, come back whenever and reattach.

Bonus article

  1. https://zenhack.net/2017/01/08/public-service-announcement-irc-is-not-a-syncronous-medium.html

Accessing QEMU/KVM From An Android Device Over SSH/SPICE Server

Assuming you have QEMU/KVM setup, you can access your VMs from your Android phone. This is thanks to the SPICE protocol already being enabled by default in (virt-manager created) VMs. It’s pretty simple if you already have your virt-manager + QEMU/KVM environment setup.

  1. Install the aSPICE Free app from the Google Play Store
  2. Open the aSPICE Free app
  3. Create a new connection by pressing the icon next to the Search Connections search bar. It’s a computer monitor with a plus symbol. It looks like this: [+].
  4. Input your server credentials, and be sure to switch the Connection Type from SPICE to SPICE over SSH.
    • Each individual connection shortcut you save is an individual VM. The way SPICE works is by hosting a VM video stream on an iterating port. Usually they start on 5900, then go 5901, and so on for every new VM started. These numbers are freed up and moved around when VMs are turned off, so be aware of changing connection details depending on if your VM was restarted or not.

Watching RTMP Streams In VLC Media Player

“Real-Time Messaging Protocol (RTMP) is a communication protocol for streaming audio, video, and data over the Internet. Originally developed as a proprietary protocol by Macromedia for streaming between Flash Player and the Flash Communication Server, Adobe (which acquired Macromedia) has released an incomplete version of the specification of the protocol for public use.” – Taken from Wikipedia

  1. Install VLC Media Player
  2. Open VLC Media Player
  3. In the top left menu bar under the Media tab, click Open Network Stream…
  4. Paste or type your link in the Please enter a network URL: field
  5. Click Play