Skip to main content

Limiting Fan Speed in Dell Poweredge Series

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.

Function ipmitool raw command
Enable manual fan control ipmitool raw 0x30 0x30 0x01 0x00
Disable manual fan control ipmitool raw 0x30 0x30 0x01 0x01
Set manual fan speed step ipmitool raw 0x30 0x30 0x02 0xff 0x??

I'm using Dell r720xd and setting 0x?? to 0x26 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.

Run Linux GUI Applications within Docker Containers

Introduction

Running GUI applications inside docker might be useful when sandbox mechanism is needed or debugging complex and tricky container networking related issues.

Generally there are 3 major ideas when trying to run GUI applications in docker, which are:

  1. Penetrate in the host X11 sockets (most straight forward but not fully secure)
  2. Expose SSH connection and use X11Forwarding configuration
  3. Run VNC server inside the container and use VNC client to access the GUI application inside

Read more…

PDF Compression with Ghostscript

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.

We can use ghostscript command to compress (actually rewrite) a PDF file with a lot of images embedded.

Read more…

Multi-boot from ISO on USB with Grub 2

Last time we've talked about how to Manually UEFI Boot Linux and Windows 10 USB from Grub, today we'd like to talk about creating a multi-boot usb stick with grub 2.

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.

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.

Read more…

Linux Device Tree Pinctrl Tutorial

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.

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.

Read more…

Manually UEFI Boot Linux and Windows 10 USB from Grub

Introduction

Dead boot of Linux or Windows needs a lot of labor when sometimes it just does not work.

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.

With this tutorial you may:

  1. Learn how to boot from a blank computer into grub via changing BIOS options
    • You need a working computer with Linux
    • Note: it may differ from BIOS to BIOS, but the basic idea does not change
  2. Learn how to boot from multiple different Linux distribution ISO images from a UEFI compatible USB device
  3. Learn how to boot Windows 10 USB in grub

Read more…