Pacharapol Withayasakpunt Pacharapol Withayasakpunt
Thu, September 30, 2021

Latest Docker Compose (v2)

https://docs.docker.com/compose/cli-command/

Now, the command is no longer docker-compose (although there is compose-switch), but rather, a Docker plugin, docker compose.

For some reasons, it had to rebuild my Dockerfile image again, even though I have built (and tagged) it before.

I saw that there that are releases for Windows and macOS (darwin, including arm64) as well; and it is already installed by default on Windows and macOS.

Pacharapol Withayasakpunt Pacharapol Withayasakpunt
Mon, August 2, 2021

If you want to fully backup home folder (or folder specified by $HOME environment variable, or ~), it's as simple as fully backuping everything in that folder, including hidden files and folders. (cp -r $HOME/* $HOME/.* $TARGET/); or better yet, creating a dedicated HOME partition.

However, you won't get a clean reinstall. Also, on changing desktop environments (DE), there may be some (undesirable) changes carried over from the old desktop environment. Not to mention that, there are some cached files and unimportant carried over to the backup, in case of external backup as well.

Therefore, in case of external backup, I recommend using rsync, using commands similar to the following,

rsync -axXv --exclude={"/.cache/","/.local/share/Trash/","/Downloads/"} --exclude-from=excluded.txt $HOME/ $TARGET/ (--dry-run)

Noted that, the trailing slashes are needed, and omitting has a lot of effects.

In case of HOME partition, you might consider deleting some files and folders in ~/.local/share/, if that interferes with desktop environment changing.

Pacharapol Withayasakpunt Pacharapol Withayasakpunt
Fri, May 28, 2021

Currently, I make audio with MIDI sequencer / WAV on Ubuntu with ubuntu-studio-installer. But then

  • ubuntu-studio-installer is for installing linux-lowlatency kernel only.
  • I removed Studio Control, and add KXStudio repo and install Cadence for JACK.
    • Cadence for JACK works well with headphones, but not Bluetooth speakers.
  • QSynth, with installed SoundFonts for MIDI.
  • Instead of Ardour, I use Rosegarden for audio mixing.
  • Rosegarden can edit WAV with Audacity, for WAV transformation.
    • Oddly, I can't find a way for Rosegarden to render MIDI, but the can easily be fixed with Cadence Render.
  • Hydrogen drumkits, to generate MIDI for drums.
  • Frescobaldi, to generate MIDI for piano.
    • Can be simpler to use than Rosegarden's built-in score editor.
  • Both Rosegarden and Hydrogen have lots of examples and demos.
  • pavucontrol or PulseAudio Volume Control, if you need to tweak the loudness.