Yet another web developer blog

Quick way to install SaltStack minion on Debian / Ubuntu Linux

Here is bash commands to quickly install salt-minion to Ubuntu / Debian systems:

MASTER=salt.SERVER.COM
BRAND=PROJECTNAME
HOSTNAME=hostname.SERVER.COM

hostnamectl set-hostname $HOSTNAME

cd /tmp && wget -O - https://bootstrap.saltproject.io | bash && rm ./bootstrap-salt.log

echo "master: $MASTER
" > /etc/salt/minion.d/$BRAND.conf

echo "$HOSTNAME" > /etc/salt/minion_id

service salt-minion restart

 

How to view and revert installed schema version of module in Drupal 8, 9

After executing hook_update_N functions, Drupal stores last version of installed updates in his key-value storage, if update function executed without exceptions.

You can simply lookup installed version via command-line drush command:

drush ev "var_dump(drupal_get_installed_schema_version('my_module'))"

Sometimes you may need revert version to previous, for re-apply updates, or repeat updates, if they previously executed with problems.

You can set previous version of Drupal module schema version via this cli drush command:

Tags

How to disable auto switching Bluetooth from A2DP to HSP profile on Skype calls in Linux

If you use Bluetooth headset, you probably have bad quality of voice in VoIP calls via Skype and other apps. This happens on Linux and on Windows too.

This happens because when an application starts a call - it create a recording stream with property media.role=phone (telephony applications should set that property for their streams), and PulseAudio switch profile of your Bluetooth Headset from A2DP (Stereo high-quality one-way channel) to HSP/HFP (Mono low-quality 2-way channel for voice-only).

Tags