Setting user prompted values during apt-get install (e.g. tzdata)

Installing php-fpm on Ubuntu 22:04 prompts for some timezone values during install which makes it more difficult to install during a ‘docker build’ since passing -y to apt-get-install is not enough to respond to the prompts.

Here’s what I’m prompted for if I just run ‘apt-get install php-fpm’:

Configuring tzdata
------------------

Please select the geographic area in which you live. Subsequent configuration
questions will narrow this down by presenting a list of cities, representing
the time zones in which they are located.

1. Africa 3. Antarctica 5. Arctic 7. Atlantic 9. Indian 11. US
2. America 4. Australia 6. Asia 8. Europe 10. Pacific 12. Etc
Geographic area: 8

Please select the city or region corresponding to your time zone.

1. Amsterdam 17. Guernsey 33. Monaco 49. Stockholm
2. Andorra 18. Helsinki 34. Moscow 50. Tallinn
3. Astrakhan 19. Isle_of_Man 35. Nicosia 51. Tirane
4. Athens 20. Istanbul 36. Oslo 52. Tiraspol
5. Belfast 21. Jersey 37. Paris 53. Ulyanovsk
6. Belgrade 22. Kaliningrad 38. Podgorica 54. Uzhgorod
7. Berlin 23. Kirov 39. Prague 55. Vaduz
8. Bratislava 24. Kyiv 40. Riga 56. Vatican
9. Brussels 25. Lisbon 41. Rome 57. Vienna
10. Bucharest 26. Ljubljana 42. Samara 58. Vilnius
11. Budapest 27. London 43. San_Marino 59. Volgograd
12. Busingen 28. Luxembourg 44. Sarajevo 60. Warsaw
13. Chisinau 29. Madrid 45. Saratov 61. Zagreb
14. Copenhagen 30. Malta 46. Simferopol 62. Zaporozhye
15. Dublin 31. Mariehamn 47. Skopje 63. Zurich
16. Gibraltar 32. Minsk 48. Sofia
Time zone: 27


Current default time zone: 'Europe/London'
Local time is now: Tue Sep 24 16:39:08 BST 2024.
Universal Time is now: Tue Sep 24 15:39:08 UTC 2024.
Run 'dpkg-reconfigure tzdata' if you wish to change it.

From answers on this post, the easiest option (rather than setting values for the prompted values) is to run in non-interactive mode, and just default the tz to UTC, with:

DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get install php-fpm

Paul Allen’s Living Computer Museum computer collection being auctioned by Christies – last day tomorrow (12/9/24)

Paul Allen’s computer collection that was previously on display at the Living Computer Museum in Seattle is currently under auction by Christies – the last day to pick up your own DEC PDP-10, IBM 7090 Mainframe or many other historical computers is tomorrow (12 Sept 2024).

The museum has been closed since COVID, and Paul Allen’s estate have decided to sell off the collection. Many of the machines are in working order and were maintained by the museum, so hopefully the machines will find new homes where this computer history can be experienced by many in the future.

Re-tagging and re-organizing mp3 collection by Artist and Album folders using MusicBrainz Picard (after Google Takeout)

Following on from my recent post about downloading our complete CD collection from YouTube Music, the next part of the puzzle was to re-tag and reorganize the files my adding back the majority of the missing mp3 tags, and re-organizing them again into their own folders by Artist and Album.

While the YouTube Music Google Takeout worked fine, the zips of downloaded files have lost their enclosing folders, and in most cases most only have a filename and no mp3 tags. Which is odd, because when we originally ripped our CDs in iTunes I thought they were tagged as well, but apparently not. Or at least something was lost during the import to Google Music, the migration to YouTube Music, or the Google Takeout process.

Anyway, realizing that organizing 40GB of files is not a trivial task, I looked around to find mp3 tagging tools that could help me out. The most recommended seemed to be MusicBrainz Picard which does exactly what I need: it identifies files, adds missing tags, and also moves the files into appropriate folders.

From the source folder of all my downloaded files, you drag the untagged files in to organize and press Scan:

Once a track is scanned (and you can load multiple files for processing in one go), on the righthand side it lists what album the track appears on, base on it’s audio fingerprint. While in most cases it works great, in some cases if a track exists on multiple different releases it might suggest something that’s is correct but maybe not the actual physical disk that you ripped it from. In this base ‘Bad Medicine’ by Bon Jovi is showing as coming from a 4 track record called Bad Medicine, maybe an EP:

Tool has also highlighted where there is a difference in track length between the scanned file and what is on this disc:

In this case, pressing the ‘Lookup in Browser’ button takes you to the MusicBrainz website where you can browse all the identified albums where this track has been identified:

Knowing this track was from my ripped copy of New Jersey, pressing the Open in Tagger icon copies this album into the tool:

Now you can drag the identified track from the misidentified album to the correct album:

Press Save and the file is correctly tagged and moved to it’s correct folder.

While most files seem to be correctly identified, this tool is a massive help to recategorize everything again!