Skip to content

Commit ca4c2eb

Browse files
added mini post on OS installation woes
1 parent 560c99a commit ca4c2eb

File tree

10 files changed

+54
-6
lines changed

10 files changed

+54
-6
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ I'm addicted to reading fantasy/sci-fi books, so I have a [blog](https://learnby
6262

6363
## Mini blog posts
6464

65+
* [OS installation woes](https://learnbyexample.github.io/mini/os-installation-woes/)
6566
* [Basic examples for the Linux date command](https://learnbyexample.github.io/mini/linux-date-command-examples/)
6667
* [CLI text editing with ed](https://learnbyexample.github.io/mini/cli-text-editing-with-ed/)
6768
* [Computing from the Command Line: sales report](https://learnbyexample.github.io/mini/cli-computing-sales/)

atom.xml

+27-1
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,34 @@
55
<link href="https://learnbyexample.github.io/atom.xml" rel="self" type="application/atom+xml"/>
66
<link href="https://learnbyexample.github.io"/>
77
<generator uri="https://www.getzola.org/">Zola</generator>
8-
<updated>2025-02-10T00:00:00+00:00</updated>
8+
<updated>2025-02-12T00:00:00+00:00</updated>
99
<id>https://learnbyexample.github.io/atom.xml</id>
10+
<entry xml:lang="en">
11+
<title>OS installation woes</title>
12+
<published>2025-02-12T00:00:00+00:00</published>
13+
<updated>2025-02-12T00:00:00+00:00</updated>
14+
<link rel="alternate" href="https://learnbyexample.github.io/mini/os-installation-woes/" type="text/html"/>
15+
<id>https://learnbyexample.github.io/mini/os-installation-woes/</id>
16+
<content type="html">&lt;p&gt;I prefer stability and thus I let my Linux LTS distributions to last almost till the entire end of support time. Having learned from previous transition periods, I started maintaining notes on what softwares I install&#x2F;purge and some of the customization stuff. This has vastly reduced the pain of a fresh OS installation, but the fact remains that there&#x27;ll always be some persistent and annoying trouble.&lt;&#x2F;p&gt;
17+
&lt;p&gt;The one I encountered this time around is really perplexing and I&#x27;m afraid of trying to figure out the root cause. For now, I&#x27;m happy with the workaround I ended up with.&lt;&#x2F;p&gt;
18+
&lt;p&gt;I use &lt;code&gt;redshift&lt;&#x2F;code&gt; to set the color temperature of computer display. It is a simple temperature setting that doesn&#x27;t depend on time or place, so my config is simple. However, it wasn&#x27;t working when I moved from good old Ubuntu to Linux Mint (because Ubuntu is no longer user friendly). As per &lt;a href=&quot;https:&#x2F;&#x2F;forums.linuxmint.com&#x2F;viewtopic.php?t=422300&quot;&gt;this discussion on Linux Mint forum&lt;&#x2F;a&gt;, &lt;code&gt;geoclue2&lt;&#x2F;code&gt; no longer works. That shouldn&#x27;t matter for me since I don&#x27;t need location services. Whatever, that same thread mentioned &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;faf0&#x2F;sct&quot;&gt;xsct&lt;&#x2F;a&gt; as a simpler alternative that exactly fits my need (with a bonus of changing screen brightness!).&lt;&#x2F;p&gt;
19+
&lt;p&gt;I installed it and a really really simple command from the terminal was all it needed to work. So, what was the annoying issue? I couldn&#x27;t get it to &lt;a href=&quot;https:&#x2F;&#x2F;wiki.archlinux.org&#x2F;title&#x2F;Xfce#Autostart&quot;&gt;autostart&lt;&#x2F;a&gt; on login no matter what I did! At first, I thought perhaps I needed to use the full path of the command, but that obviously didn&#x27;t solve my troubles. After fruitless search on the internet, I almost thought to ask a question on the forum. Before that though, I had the bright idea (really basic debugging rule) to first check if my autostart setup was working at all. I chose to autostart a terminal on login via the &lt;code&gt;xfce4-terminal&lt;&#x2F;code&gt; command and it did work!&lt;&#x2F;p&gt;
20+
&lt;p&gt;So, why wasn&#x27;t &lt;code&gt;xsct&lt;&#x2F;code&gt; working? No idea. But reading the &lt;code&gt;man&lt;&#x2F;code&gt; page of the terminal emulator showed that I can choose to execute a command with the &lt;code&gt;-e&lt;&#x2F;code&gt; option. So, that was my inelegant workaround! The desktop entry is shown below if you are curious. If you know why &lt;code&gt;Exec=xsct 3500 0.9&lt;&#x2F;code&gt; doesn&#x27;t work compared to &lt;code&gt;Exec=xfce4-terminal -e &#x27;xsct 3500 0.9&#x27;&lt;&#x2F;code&gt;, do let me know!&lt;&#x2F;p&gt;
21+
&lt;pre style=&quot;background-color:#f5f5f5;color:#1f1f1f;&quot;&gt;&lt;code&gt;&lt;span&gt;[Desktop Entry]
22+
&lt;&#x2F;span&gt;&lt;span&gt;Encoding=UTF-8
23+
&lt;&#x2F;span&gt;&lt;span&gt;Version=0.9.4
24+
&lt;&#x2F;span&gt;&lt;span&gt;Type=Application
25+
&lt;&#x2F;span&gt;&lt;span&gt;Name=displaytemperature
26+
&lt;&#x2F;span&gt;&lt;span&gt;Comment=
27+
&lt;&#x2F;span&gt;&lt;span&gt;Exec=xfce4-terminal -e &amp;#39;xsct 3500 0.9&amp;#39;
28+
&lt;&#x2F;span&gt;&lt;span&gt;OnlyShowIn=XFCE;
29+
&lt;&#x2F;span&gt;&lt;span&gt;RunHook=0
30+
&lt;&#x2F;span&gt;&lt;span&gt;StartupNotify=false
31+
&lt;&#x2F;span&gt;&lt;span&gt;Terminal=false
32+
&lt;&#x2F;span&gt;&lt;span&gt;Hidden=false
33+
&lt;&#x2F;span&gt;&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
34+
</content>
35+
</entry>
1036
<entry xml:lang="en">
1137
<title>Understanding Python re(gex)? book announcement</title>
1238
<published>2025-01-22T00:00:00+00:00</published>

mini/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<!doctype html><html lang=en><head><meta content="IE=edge" http-equiv=X-UA-Compatible><meta content="text/html; charset=utf-8" http-equiv=content-type><meta content="width=device-width,initial-scale=1.0,maximum-scale=1" name=viewport><title>learnbyexample</title><link href=https://learnbyexample.github.io/atom.xml rel=alternate title=RSS type=application/atom+xml><script src=https://cdnjs.cloudflare.com/ajax/libs/slideout/1.0.1/slideout.min.js></script><link href=https://learnbyexample.github.io/site.css rel=stylesheet><meta content=learnbyexample property=og:title><meta content=website property=og:type><meta content="Learn Python, Regex, Linux, Scripting, Vim, Ebooks, Self-Publishing and Interesting Tech Nuggets." property=og:description><meta content=https://learnbyexample.github.io property=og:url><meta content=https://learnbyexample.github.io/images/learnbyexample.png property=og:image><meta content=1280 property=og:image:width><meta content=640 property=og:image:height><meta content=summary_large_image property=twitter:card><meta content=@learn_byexample property=twitter:site><link href=https://learnbyexample.github.io/favicon.svg rel=icon><link rel="shortcut icon" href=https://learnbyexample.github.io/favicon.png><body><div class=container><div class=mobile-navbar id=mobile-navbar><div class=mobile-header-logo><a class=logo href=/>learnbyexample</a></div><div class="mobile-navbar-icon icon-out"><span></span><span></span><span></span></div></div><nav class="mobile-menu slideout-menu slideout-menu-left" id=mobile-menu><ul class=mobile-menu-list><li class=mobile-menu-item><a href=https://learnbyexample.github.io/books> Books </a><li class=mobile-menu-item><a href=https://learnbyexample.github.io/mini> Mini </a><li class=mobile-menu-item><a href=https://learnbyexample.github.io/tips> Tips </a><li class=mobile-menu-item><a href=https://learnbyexample.github.io/tags> Tags </a><li class=mobile-menu-item><a href=https://learnbyexample.github.io/about> About </a></ul></nav><header id=header><div class=logo><a href=https://learnbyexample.github.io>learnbyexample</a></div><nav class=menu><ul><li><a href=https://learnbyexample.github.io/books> Books </a><li><a href=https://learnbyexample.github.io/mini> Mini </a><li><a href=https://learnbyexample.github.io/tips> Tips </a><li><a href=https://learnbyexample.github.io/tags> Tags </a><li><a href=https://learnbyexample.github.io/about> About </a></ul></nav></header><main><div class=content id=mobile-panel><div class=about><h1 id=mini-blog-post-links><p style="color: #c05b4d">Mini blog post links</h1><ul><li><a href=https://learnbyexample.github.io/mini/linux-date-command-examples/>Basic examples for the Linux date command</a><li><a href=https://learnbyexample.github.io/mini/cli-text-editing-with-ed/>CLI text editing with ed</a><li><a href=https://learnbyexample.github.io/mini/cli-computing-sales/>Computing from the Command Line: sales report</a><li><a href=https://learnbyexample.github.io/mini/bash-compound-commands-redirection/>Bash compound commands and redirection</a><li><a href=https://learnbyexample.github.io/mini/debug-woes-3/>Debug woes 3: matching uppercase alphabets</a><li><a href=https://learnbyexample.github.io/mini/vim-reference-guide-sales/>Vim Reference Guide: two week sales report</a><li><a href=https://learnbyexample.github.io/mini/pydev-interview/>PyDev of the Week</a><li><a href=https://learnbyexample.github.io/mini/hacker-news-front-page-brag/>Brag post: Hacker News Front Page entries</a><li><a href=https://learnbyexample.github.io/mini/regexp-gotcha-1/>Regexp gotcha 1: grouping common portions</a><li><a href=https://learnbyexample.github.io/mini/vim-prank/>Vim prank: alias vim='vim -y'</a><li><a href=https://learnbyexample.github.io/mini/debug-woes-2/>Debug woes 2: unexpected array in replacement string</a><li><a href=https://learnbyexample.github.io/mini/dreaming-solutions/>Dreaming solutions</a><li><a href=https://learnbyexample.github.io/mini/debug-woes-1/>Debug woes 1: multiple substitutions on the same line</a><li><a href=https://learnbyexample.github.io/mini/perl-oneliner-articles/>Perl one-liner articles</a></ul></div></div></main></div><script src=https://learnbyexample.github.io/even.js></script>
1+
<!doctype html><html lang=en><head><meta content="IE=edge" http-equiv=X-UA-Compatible><meta content="text/html; charset=utf-8" http-equiv=content-type><meta content="width=device-width,initial-scale=1.0,maximum-scale=1" name=viewport><title>learnbyexample</title><link href=https://learnbyexample.github.io/atom.xml rel=alternate title=RSS type=application/atom+xml><script src=https://cdnjs.cloudflare.com/ajax/libs/slideout/1.0.1/slideout.min.js></script><link href=https://learnbyexample.github.io/site.css rel=stylesheet><meta content=learnbyexample property=og:title><meta content=website property=og:type><meta content="Learn Python, Regex, Linux, Scripting, Vim, Ebooks, Self-Publishing and Interesting Tech Nuggets." property=og:description><meta content=https://learnbyexample.github.io property=og:url><meta content=https://learnbyexample.github.io/images/learnbyexample.png property=og:image><meta content=1280 property=og:image:width><meta content=640 property=og:image:height><meta content=summary_large_image property=twitter:card><meta content=@learn_byexample property=twitter:site><link href=https://learnbyexample.github.io/favicon.svg rel=icon><link rel="shortcut icon" href=https://learnbyexample.github.io/favicon.png><body><div class=container><div class=mobile-navbar id=mobile-navbar><div class=mobile-header-logo><a class=logo href=/>learnbyexample</a></div><div class="mobile-navbar-icon icon-out"><span></span><span></span><span></span></div></div><nav class="mobile-menu slideout-menu slideout-menu-left" id=mobile-menu><ul class=mobile-menu-list><li class=mobile-menu-item><a href=https://learnbyexample.github.io/books> Books </a><li class=mobile-menu-item><a href=https://learnbyexample.github.io/mini> Mini </a><li class=mobile-menu-item><a href=https://learnbyexample.github.io/tips> Tips </a><li class=mobile-menu-item><a href=https://learnbyexample.github.io/tags> Tags </a><li class=mobile-menu-item><a href=https://learnbyexample.github.io/about> About </a></ul></nav><header id=header><div class=logo><a href=https://learnbyexample.github.io>learnbyexample</a></div><nav class=menu><ul><li><a href=https://learnbyexample.github.io/books> Books </a><li><a href=https://learnbyexample.github.io/mini> Mini </a><li><a href=https://learnbyexample.github.io/tips> Tips </a><li><a href=https://learnbyexample.github.io/tags> Tags </a><li><a href=https://learnbyexample.github.io/about> About </a></ul></nav></header><main><div class=content id=mobile-panel><div class=about><h1 id=mini-blog-post-links><p style="color: #c05b4d">Mini blog post links</h1><ul><li><a href=https://learnbyexample.github.io/mini/os-installation-woes/>OS installation woes</a><li><a href=https://learnbyexample.github.io/mini/linux-date-command-examples/>Basic examples for the Linux date command</a><li><a href=https://learnbyexample.github.io/mini/cli-text-editing-with-ed/>CLI text editing with ed</a><li><a href=https://learnbyexample.github.io/mini/cli-computing-sales/>Computing from the Command Line: sales report</a><li><a href=https://learnbyexample.github.io/mini/bash-compound-commands-redirection/>Bash compound commands and redirection</a><li><a href=https://learnbyexample.github.io/mini/debug-woes-3/>Debug woes 3: matching uppercase alphabets</a><li><a href=https://learnbyexample.github.io/mini/vim-reference-guide-sales/>Vim Reference Guide: two week sales report</a><li><a href=https://learnbyexample.github.io/mini/pydev-interview/>PyDev of the Week</a><li><a href=https://learnbyexample.github.io/mini/hacker-news-front-page-brag/>Brag post: Hacker News Front Page entries</a><li><a href=https://learnbyexample.github.io/mini/regexp-gotcha-1/>Regexp gotcha 1: grouping common portions</a><li><a href=https://learnbyexample.github.io/mini/vim-prank/>Vim prank: alias vim='vim -y'</a><li><a href=https://learnbyexample.github.io/mini/debug-woes-2/>Debug woes 2: unexpected array in replacement string</a><li><a href=https://learnbyexample.github.io/mini/dreaming-solutions/>Dreaming solutions</a><li><a href=https://learnbyexample.github.io/mini/debug-woes-1/>Debug woes 1: multiple substitutions on the same line</a><li><a href=https://learnbyexample.github.io/mini/perl-oneliner-articles/>Perl one-liner articles</a></ul></div></div></main></div><script src=https://learnbyexample.github.io/even.js></script>

mini/linux-date-command-examples/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,4 @@
5353
</span><span>$ prev_date=</span><span style=color:#d07711;>'2024-02-23'
5454
</span><span>$ date </span><span style=color:#72ab00;>-</span><span>d </span><span style=color:#d07711;>"$prev_date"' +7 days' </span><span style=color:#72ab00;>+%</span><span style=color:#5597d6;>F
5555
</span><span style=color:#b3933a;>2024</span><span style=color:#72ab00;>-</span><span style=color:#b3933a;>03</span><span style=color:#72ab00;>-</span><span style=color:#b3933a;>01
56-
</span></code></pre><br><h2 id=resource-links>Resource links</h2><ul><li><a href=https://www.gnu.org/software/coreutils/manual/coreutils.html#date-invocation>GNU date command manual</a><li><a href=https://www.gnu.org/software/coreutils/manual/coreutils.html#Examples-of-date>"Examples of date" section from the manual</a><li><a href="https://unix.stackexchange.com/questions/tagged/date?tab=Votes">Top voted Q&A on unix.stackexchange for the date command tag</a></ul></div><div class=post-footer><div class=post-tags><a href=https://learnbyexample.github.io/tags/linux/>#linux</a><a href=https://learnbyexample.github.io/tags/command-line/>#command-line</a><a href=https://learnbyexample.github.io/tags/date/>#date</a></div><hr color=#e6e6e6><div class=post-nav><p><a class=next href=https://learnbyexample.github.io/mini/cli-text-editing-with-ed/>CLI text editing with ed →</a><br></div><hr color=#e6e6e6><p>📰 Use <a href=https://learnbyexample.github.io/atom.xml>this link</a> for the Atom feed. <br> ✅ Follow me on <a href=https://twitter.com/learn_byexample>Twitter</a>, <a href=https://github.com/learnbyexample>GitHub</a> and <a href=https://www.youtube.com/c/learnbyexample42>Youtube</a> for interesting tech nuggets. <br> 📧 Subscribe to <a href=https://learnbyexample.gumroad.com/l/learnbyexample-weekly>learnbyexample weekly</a> for programming resources, tips, tools, free ebooks and more (free newsletter, delivered every Friday).<hr color=#e6e6e6></div></article></div></main></div><script src=https://learnbyexample.github.io/even.js></script>
56+
</span></code></pre><br><h2 id=resource-links>Resource links</h2><ul><li><a href=https://www.gnu.org/software/coreutils/manual/coreutils.html#date-invocation>GNU date command manual</a><li><a href=https://www.gnu.org/software/coreutils/manual/coreutils.html#Examples-of-date>"Examples of date" section from the manual</a><li><a href="https://unix.stackexchange.com/questions/tagged/date?tab=Votes">Top voted Q&A on unix.stackexchange for the date command tag</a></ul></div><div class=post-footer><div class=post-tags><a href=https://learnbyexample.github.io/tags/linux/>#linux</a><a href=https://learnbyexample.github.io/tags/command-line/>#command-line</a><a href=https://learnbyexample.github.io/tags/date/>#date</a></div><hr color=#e6e6e6><div class=post-nav><p><a class=previous href=https://learnbyexample.github.io/mini/os-installation-woes/>← OS installation woes</a><br><p><a class=next href=https://learnbyexample.github.io/mini/cli-text-editing-with-ed/>CLI text editing with ed →</a><br></div><hr color=#e6e6e6><p>📰 Use <a href=https://learnbyexample.github.io/atom.xml>this link</a> for the Atom feed. <br> ✅ Follow me on <a href=https://twitter.com/learn_byexample>Twitter</a>, <a href=https://github.com/learnbyexample>GitHub</a> and <a href=https://www.youtube.com/c/learnbyexample42>Youtube</a> for interesting tech nuggets. <br> 📧 Subscribe to <a href=https://learnbyexample.gumroad.com/l/learnbyexample-weekly>learnbyexample weekly</a> for programming resources, tips, tools, free ebooks and more (free newsletter, delivered every Friday).<hr color=#e6e6e6></div></article></div></main></div><script src=https://learnbyexample.github.io/even.js></script>

0 commit comments

Comments
 (0)