- Install packages if they aren't already installed.
sudo apt install libpam-pwdfile whois
- Backup the Original PAM Configuration File
#!/usr/bin/env bash | |
# Modified from https://github.com/laurent22/joplin/issues/6052#issuecomment-1356864011 | |
# Tested on latest dev branch as of 20213-04-12 | |
function initVars() { | |
REPO="${JOP_REPO:-"laurent22/joplin"}" | |
repoUrl="https://github.com/${REPO}.git" | |
srcBaseDir="joplin" | |
appDesktopPath="packages/app-desktop" | |
packageJsonPath="${appDesktopPath}/package.json" | |
dmgPath="node_modules/dmg-builder/out/dmg.js" |
Here is the best setup (I think so :D) for K-series Keychron keyboards on Linux.
Note: many newer Keychron keyboards use QMK as firmware and most tips here do not apply to them. Maybe the ones related to Bluetooth can be useful, but everything related to Apple's keyboard module (hid_apple
) on Linux, won't work. As far as I know, all QMK-based boards use the hid_generic
module instead. Examples of QMK-based boards are: Q, Q-Pro, V, K-Pro, etc.
Most of these commands have been tested on Ubuntu 20.04 and should also work on most Debian-based distributions. If a command happens not to work for you, take a look in the comment section.
Older Keychron keyboards (those not based on QMK) use the hid_apple
driver on Linux, even in the Windows/Android mode, both in Bluetooth and Wired modes.
###> symfony/mailer ### | |
MAILER_DSN=smtp://YOUR@MAİL.com:PASSWORD@smtp.yandex.com:465?encryption=ssl&auth_mode=login | |
###< symfony/mailer ### |
🚩 NOTE: in late 2022 WD introduced a firmware release in which they locked root user access over "serial connection". The methods described in this post are therefore irrelevant and do not work anymore. Feel free to discus other alternatives in the comments below. This was also the final firmware release for this product as it entered EOL in June 2023.
A simple How-To on turnning your WD My Cloud Home in to fully pledged Linux box and install some usefull apps (SSH & SFTP server, Torrent client, ...).
FFMpeg must be installed.
Instructions:
brew install ffmpeg
Install, build and debug a react native app in WSL2 (Windows Subsystem for Linux) and Ubuntu.
Vagrant.configure("2") do |config| | |
config.vm.box = "ubuntu/bionic64" | |
config.vm.provider :virtualbox do |v| | |
v.gui = true | |
v.memory = 2048 | |
end | |
# Currently "ubuntu/bionic64" on VirtualBox requires `type: "virtualbox"` | |
# to make synced folder works. |
# Automate npm updating when using nvm-windows | |
# Installs npm@latest for the current active node install | |
# Source: https://github.com/coreybutler/nvm-windows/issues/300#issuecomment-368192283 | |
$ErrorActionPreference = "Stop" | |
# Create a folder in the Temp directory and return it | |
# Source: https://stackoverflow.com/a/34559554/9165387 | |
function New-TemporaryDirectory { | |
$parent = [System.IO.Path]::GetTempPath() | |
$name = [System.IO.Path]::GetRandomFileName() |
// This shows an example of how to generate a SSH RSA Private/Public key pair and save it locally | |
package main | |
import ( | |
"crypto/rand" | |
"crypto/rsa" | |
"crypto/x509" | |
"encoding/pem" | |
"golang.org/x/crypto/ssh" |