<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Modest Destiny (Posts about Linux)</title><link>https://blog.modest-destiny.com/</link><description></description><atom:link href="https://blog.modest-destiny.com/categories/cat_linux.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><copyright>Contents © 2021 Adam Basfop Cavendish </copyright><lastBuildDate>Mon, 22 Mar 2021 08:19:52 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Linux Change Username, UID (userid) and GID (groupid)</title><link>https://blog.modest-destiny.com/posts/linux-change-username-uid-gid/</link><dc:creator>Adam Basfop Cavendish</dc:creator><description>&lt;div&gt;&lt;p&gt;Assume we would like to change a user's username, uid and gid into some random number.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://blog.modest-destiny.com/posts/linux-change-username-uid-gid/"&gt;Read more…&lt;/a&gt; (1 min remaining to read)&lt;/p&gt;&lt;/div&gt;</description><category>Linux</category><guid>https://blog.modest-destiny.com/posts/linux-change-username-uid-gid/</guid><pubDate>Mon, 10 Aug 2020 12:41:33 GMT</pubDate></item><item><title>Limiting Fan Speed in Dell Poweredge Series</title><link>https://blog.modest-destiny.com/posts/limiting-fan-speed-in-dell-poweredge-series/</link><dc:creator>Adam Basfop Cavendish</dc:creator><description>&lt;p&gt;Sometimes we need to limit the fan speed in Dell PowerEdge server series maybe for the noise. The followings are the ipmi raw commands to setup the manual fan control which are very much undocumented.&lt;/p&gt;
&lt;figure&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;&lt;th&gt;Function&lt;/th&gt;&lt;th&gt;&lt;code&gt;ipmitool raw&lt;/code&gt; command&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;Enable manual fan control&lt;/td&gt;&lt;td&gt;&lt;code&gt;ipmitool raw 0x30 0x30 0x01 0x00&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Disable manual fan control&lt;/td&gt;&lt;td&gt;&lt;code&gt;ipmitool raw 0x30 0x30 0x01 0x01&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Set manual fan speed step&lt;/td&gt;&lt;td&gt;&lt;code&gt;ipmitool raw 0x30 0x30 0x02 0xff 0x??&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;
&lt;/table&gt;&lt;/figure&gt;
&lt;p&gt;I'm using Dell r720xd and setting &lt;code&gt;0x??&lt;/code&gt; to &lt;code&gt;0x26&lt;/code&gt; effectively limits the fan speed to around 8000 RPM. It is a somewhat safe value before you slowly set down the value to limit further down the fan speed.&lt;/p&gt;</description><category>Linux</category><guid>https://blog.modest-destiny.com/posts/limiting-fan-speed-in-dell-poweredge-series/</guid><pubDate>Sun, 31 May 2020 14:22:40 GMT</pubDate></item><item><title>Run Linux GUI Applications within Docker Containers</title><link>https://blog.modest-destiny.com/posts/run-linux-gui-applications-within-docker-containers/</link><dc:creator>Adam Basfop Cavendish</dc:creator><description>&lt;div&gt;&lt;h1&gt;Introduction&lt;/h1&gt;
&lt;p&gt;Running GUI applications inside docker might be useful when sandbox mechanism is needed or debugging complex and tricky container networking related issues.&lt;/p&gt;
&lt;p&gt;Generally there are 3 major ideas when trying to run GUI applications in docker, which are:&lt;/p&gt;
&lt;ol start=""&gt;
&lt;li&gt;Penetrate in the host X11 sockets (most straight forward but not fully secure)&lt;/li&gt;
&lt;li&gt;Expose SSH connection and use &lt;code&gt;X11Forwarding&lt;/code&gt; configuration&lt;/li&gt;
&lt;li&gt;Run VNC server inside the container and use VNC client to access the GUI application inside&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;a href="https://blog.modest-destiny.com/posts/run-linux-gui-applications-within-docker-containers/"&gt;Read more…&lt;/a&gt; (4 min remaining to read)&lt;/p&gt;&lt;/div&gt;</description><category>Linux</category><guid>https://blog.modest-destiny.com/posts/run-linux-gui-applications-within-docker-containers/</guid><pubDate>Mon, 25 May 2020 01:32:54 GMT</pubDate></item><item><title>Linux Pre-shutdown and Post-bootup Task Automation</title><link>https://blog.modest-destiny.com/posts/linux-pre-shutdown-and-post-bootup-task-automation/</link><dc:creator>Adam Basfop Cavendish</dc:creator><description>&lt;div&gt;&lt;p&gt;There are always plenty to do before a machine is shutdown and after a machine is startup. With systemd adopted by most linux distributions, it is possible to automate these tasks in parallel.&lt;/p&gt;
&lt;p&gt;We can write various shell scripts to automate the tasks and specify them with different systemd units.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://blog.modest-destiny.com/posts/linux-pre-shutdown-and-post-bootup-task-automation/"&gt;Read more…&lt;/a&gt; (1 min remaining to read)&lt;/p&gt;&lt;/div&gt;</description><category>Linux</category><guid>https://blog.modest-destiny.com/posts/linux-pre-shutdown-and-post-bootup-task-automation/</guid><pubDate>Fri, 28 Feb 2020 20:50:57 GMT</pubDate></item><item><title>PDF Compression with Ghostscript</title><link>https://blog.modest-destiny.com/posts/pdf-compression-with-ghostscript/</link><dc:creator>Adam Basfop Cavendish</dc:creator><description>&lt;div&gt;&lt;p&gt;PDF do preserve the original information especially image when exported. The feature makes it very attractive for archive but it might be too large to spread.&lt;/p&gt;
&lt;p&gt;We can use &lt;code&gt;ghostscript&lt;/code&gt; command to compress (actually rewrite) a PDF file with a lot of images embedded.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://blog.modest-destiny.com/posts/pdf-compression-with-ghostscript/"&gt;Read more…&lt;/a&gt; (1 min remaining to read)&lt;/p&gt;&lt;/div&gt;</description><category>Linux</category><guid>https://blog.modest-destiny.com/posts/pdf-compression-with-ghostscript/</guid><pubDate>Fri, 13 Dec 2019 06:47:18 GMT</pubDate></item><item><title>Enabling Linux OOM Killer</title><link>https://blog.modest-destiny.com/posts/enabling-linux-oom-killer/</link><dc:creator>Adam Basfop Cavendish</dc:creator><description>&lt;div&gt;&lt;p&gt;Sometimes we do want to have some process killed to save the overall other works left not saved on Linux.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://blog.modest-destiny.com/posts/enabling-linux-oom-killer/"&gt;Read more…&lt;/a&gt; (2 min remaining to read)&lt;/p&gt;&lt;/div&gt;</description><category>Linux</category><guid>https://blog.modest-destiny.com/posts/enabling-linux-oom-killer/</guid><pubDate>Sun, 13 Oct 2019 18:31:23 GMT</pubDate></item><item><title>Add Ceph RBD Storage Pool to KVM/QEMU/Libvirt</title><link>https://blog.modest-destiny.com/posts/kvm-libvirt-add-ceph-rbd-pool/</link><dc:creator>Adam Basfop Cavendish</dc:creator><description>&lt;div&gt;&lt;p&gt;If you have a &lt;a href="https://ceph.io/"&gt;ceph&lt;/a&gt; cluster and you would like to add a rbd pool to your kvm, qemu or libvirt, you can follow the steps listed as below.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://blog.modest-destiny.com/posts/kvm-libvirt-add-ceph-rbd-pool/"&gt;Read more…&lt;/a&gt; (2 min remaining to read)&lt;/p&gt;&lt;/div&gt;</description><category>kvm</category><category>Linux</category><guid>https://blog.modest-destiny.com/posts/kvm-libvirt-add-ceph-rbd-pool/</guid><pubDate>Mon, 07 Oct 2019 03:03:46 GMT</pubDate></item><item><title>Multi-boot from ISO on USB with Grub 2</title><link>https://blog.modest-destiny.com/posts/multi-boot-from-iso-on-usb-with-grub-2/</link><dc:creator>Adam Basfop Cavendish</dc:creator><description>&lt;div&gt;&lt;p&gt;&lt;span&gt;Last time we've talked about how to &lt;/span&gt;&lt;a href="https://blog.modest-destiny.com/posts/manually-uefi-boot-linux-and-windows-10-usb-from-grub/"&gt;&lt;span&gt;Manually UEFI Boot Linux and Windows 10 USB from Grub&lt;/span&gt;&lt;/a&gt;&lt;span&gt;, today we'd like to talk about creating a multi-boot usb stick with grub 2.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Sometimes we need to create multiple linux distribution installation media or bootable usb stick. However, it is always so annoying to re-flush the usb stick again and again.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;However, grub actually enables us to boot most of the linux distributions through loop format or iso image files. The iso image format is known for its original design for CD disks or DVD disks so that the distributions are bootable through your CD-ROM drivers. If the distribution is bootable through the CD-ROM drivers and the CD or DVD media is not writable, which it effectively means that we can actually boot from the non-writable iso image file as well.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://blog.modest-destiny.com/posts/multi-boot-from-iso-on-usb-with-grub-2/"&gt;Read more…&lt;/a&gt; (3 min remaining to read)&lt;/p&gt;&lt;/div&gt;</description><category>Linux</category><guid>https://blog.modest-destiny.com/posts/multi-boot-from-iso-on-usb-with-grub-2/</guid><pubDate>Wed, 12 Jun 2019 14:36:17 GMT</pubDate></item><item><title>Linux Device Tree Pinctrl Tutorial</title><link>https://blog.modest-destiny.com/posts/linux-device-tree-pinctrl-tutorial/</link><dc:creator>Adam Basfop Cavendish</dc:creator><description>&lt;div&gt;&lt;p&gt;When porting drivers on a specific board for a comparatively new linux kernel, it is common to edit the linux device tree files to put together all the device configurations with register values, working modes and pin control offsets set to expected values.&lt;/p&gt;
&lt;p&gt;Here in this post we focus on the exact steps one needs to find the correct pin control offset for specific devices. Here we'd take TI's AM4379 (AM437x) chip as an example for this tutorial.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://blog.modest-destiny.com/posts/linux-device-tree-pinctrl-tutorial/"&gt;Read more…&lt;/a&gt; (8 min remaining to read)&lt;/p&gt;&lt;/div&gt;</description><category>Device Tree</category><category>Embedded</category><category>Kernel</category><category>Linux</category><guid>https://blog.modest-destiny.com/posts/linux-device-tree-pinctrl-tutorial/</guid><pubDate>Thu, 09 Aug 2018 12:09:17 GMT</pubDate></item><item><title>Manually UEFI Boot Linux and Windows 10 USB from Grub</title><link>https://blog.modest-destiny.com/posts/manually-uefi-boot-linux-and-windows-10-usb-from-grub/</link><dc:creator>Adam Basfop Cavendish</dc:creator><description>&lt;div id="outline-container-org6da3643" class="outline-2"&gt;
&lt;h2 id="org6da3643"&gt;Introduction&lt;/h2&gt;
&lt;div class="outline-text-2" id="text-org6da3643"&gt;
&lt;p&gt;
Dead boot of Linux or Windows needs a lot of labor when sometimes it just does not work.
&lt;/p&gt;

&lt;p&gt;
Legacy boot mode does not support hard drives that provides more than 2TB disk space, and mostly you
would like to use UEFI mode for better Windows 10 support.
&lt;/p&gt;

&lt;p&gt;
With this tutorial you may:
&lt;/p&gt;

&lt;ol class="org-ol"&gt;
&lt;li&gt;Learn how to boot from a blank computer into grub via changing BIOS options
&lt;ul class="org-ul"&gt;
&lt;li&gt;You need a working computer with Linux&lt;/li&gt;
&lt;li&gt;Note: it may differ from BIOS to BIOS, but the basic idea does not change&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;li&gt;Learn how to boot from multiple different Linux distribution ISO images from a UEFI compatible USB device&lt;/li&gt;
&lt;li&gt;Learn how to boot Windows 10 USB in grub&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://blog.modest-destiny.com/posts/manually-uefi-boot-linux-and-windows-10-usb-from-grub/"&gt;Read more…&lt;/a&gt; (11 min remaining to read)&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;</description><category>Grub</category><category>Linux</category><guid>https://blog.modest-destiny.com/posts/manually-uefi-boot-linux-and-windows-10-usb-from-grub/</guid><pubDate>Fri, 28 Apr 2017 04:01:13 GMT</pubDate></item></channel></rss>