{"id":6253,"date":"2024-07-04T01:01:00","date_gmt":"2024-07-04T05:01:00","guid":{"rendered":"https:\/\/www.both.org\/?p=6253"},"modified":"2024-07-03T16:14:22","modified_gmt":"2024-07-03T20:14:22","slug":"holiday-fireworks","status":"publish","type":"post","link":"https:\/\/www.both.org\/?p=6253","title":{"rendered":"Holiday Fireworks"},"content":{"rendered":"<div class=\"pld-like-dislike-wrap pld-template-1\">\r\n    <div class=\"pld-like-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-like-trigger pld-like-dislike-trigger  \" title=\"\" data-post-id=\"6253\" data-trigger-type=\"like\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                        <i class=\"fas fa-thumbs-up\"><\/i>\r\n                <\/a>\r\n    <span class=\"pld-like-count-wrap pld-count-wrap\">    <\/span>\r\n<\/div><\/div>\n<p class=\"wp-block-paragraph\">I realized just a few days ago that Both.org should do something to celebrate the U.S. Independence day holiday on the 4th of July. And what better way to do that than some on-screen fireworks.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I had figured this out a few years ago &#8212; well, perhaps not so few &#8212; so I decided to try it again. It&#8217;s actually quite easy. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you have Xscreensaver installed you&#8217;re already set to go. If not, install it now. I use Fedora so installed it as the root user with DNF.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># <strong>dnf -y install xscreensaver<\/strong><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">That installs the Xscreensaver program and a large number of animations. It&#8217;s these animations we want. It&#8217;s not necessary to start the screensaver to make this work, in fact it&#8217;s better that you don&#8217;t. But you may want to disable any existing screensavers that are already running.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The animations are located in the \/usr\/libexec\/xscreensaver\/ directory so, as a non-root user, make that the PWD. List the contents of that directory so you can see all the fun animations that are available. All of these files are <a href=\"https:\/\/en.wikipedia.org\/wiki\/Executable_and_Linkable_Format\" data-type=\"link\" data-id=\"https:\/\/en.wikipedia.org\/wiki\/Executable_and_Linkable_Format\" target=\"_blank\" rel=\"noreferrer noopener\">ELF Executable and Linkable Format<\/a>  binaries. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We&#8217;re only interested in one animation for now, fireworkx. Launch this as a non-root user using the command below. The &#8211;shoot option causes the program to display trails of the shells as they rise from the mortars. The ampersand ( &amp; ) causes the operating system to run the program &#8220;in the background&#8221; which basically means independently of the shell (the Bash one).<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ <strong>.\/fireworkx --shoot &amp;<\/strong><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">As far as I can tell, there&#8217;s no sound to accompany the on-screen display. For readers in the U.S., use this fun program to add a little sparkle to your Independence day. For our other readers, add some fun to your own holidays.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Since we&#8217;re already playing around, try some of the other animations. Each animation has a man page with a list of its options. With a decent bit of GPU hardware, it&#8217;s possible to have multiple animations running. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>I realized just a few days ago that Both.org should do something to celebrate the U.S. Independence day<\/p>\n","protected":false},"author":2,"featured_media":6255,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[69,5],"tags":[474,473],"class_list":["post-6253","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-fun","category-linux","tag-fireworks","tag-fireworkx"],"modified_by":"David Both","_links":{"self":[{"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/posts\/6253","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6253"}],"version-history":[{"count":10,"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/posts\/6253\/revisions"}],"predecessor-version":[{"id":6270,"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/posts\/6253\/revisions\/6270"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/media\/6255"}],"wp:attachment":[{"href":"https:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6253"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6253"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6253"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}