Adding HTTP/HTTPS proxy for docker image downloads

As part of development your lab network or corporate network might be under a proxy network to download docker images.
This article explains on how to add HTTP/HTTPS proxy to download the docker images in a corporate environment.

Add the below lines

[Service]
Environment=”HTTP_PROXY=http://proxy.mycompany.com:80/”

in /etc/systemd/system/docker.service.d/http-proxy.conf

and

[Service]
Environment=”HTTPS_PROXY=https://proxy.mycompany.com:443/”

in /etc/systemd/system/docker.service.d/https-proxy.conf

Replace proxy.mycompany.com with your companies proxy server details.

Additionally add nameserver entry also to resolve hostnames.

#Use your DNS server details.
nameserver 172.10.22.1

in /etc/resolv.conf

Once added restart docker daemon and reload. Commands below.

$ sudo systemctl daemon-reload
$ sudo systemctl restart docker

How to read a specific FRU in IPMI?

You can use ipmitool for reading the specfic FRU details. In this case we wanted to locate a FRU named UCS-M2-HWRAID in Cisco servers.

[Mon Jan 20 20:50:30 root@C240-WZP281799EK:~]$ipmitool -I bmc sdr list fru
FRU_RAM | Log FRU @00h 07.0 | ok
FRU_FP | Log FRU @01h 0c.3 | ok
FRU_MB | Log FRU @02h 07.1 | ok
FRU_TPM | Log FRU @03h 11.1 | ok
FRU_PSU1 | Log FRU @04h 0a.1 | ok
FRU_PSU2 | Log FRU @05h 0a.2 | ok
FRU_VIC_SLOT1 | Log FRU @06h 0b.7 | ok
FRU_VIC_SLOT2 | Log FRU @07h 0b.8 | ok
FRU_VIC_SLOT4 | Log FRU @08h 0b.9 | ok
FRU_VIC_SLOT5 | Log FRU @09h 0b.a | ok
FRU_MLOM | Log FRU @0Ah 0b.3 | ok
FRU_HD_BP | Log FRU @0Bh 0f.0 | ok
FRU_MINI_STORAGE | Log FRU @0Ch 33.1 | ok
FRU_MRAID1 | Log FRU @0Dh 33.2 | ok
FRU_MRAID2 | Log FRU @0Eh 33.3 | ok
FRU_MID_BP | Log FRU @0Fh 0f.4 | ok

FRU device ID formt he above command is 0xC. read directly the FRU.

[Mon Jan 20 20:52:57 root@C240-WZP281799EK:~]$ipmitool -I bmc fru print 0xc
Board Mfg : Cisco Systems Inc
Board Product : UCS-M2-HWRAID
Board Serial : FCH2747790W
Board Part Number : 73-19532-07
Board Extra : A05V02
Board Extra : 0000000000

add -vvv to find how IPMItool is forming the command

ipmitool usage
IPMITool Usage

Specification to find the command details.

Intel IPMI v2 Specification

commands used are Read FRU Data and Get SDR Command

Refer these sections to form and decode the commands
43.8 SDR Type 11h – FRU Device Locator Record
33.5 Reading the SDR Repository

 

PCIe-MI – A new manageability standard by DMTF

DMTF is coming up with a new manageability standard similar to NVMe-MI named PCIe-MI. NVMe-MI as you know is an open standard
for managing the NVMe devices. Similar to the same this standard is expected to manage any PCIe devices. I hope they will come up
with a specification which can allow the link speed and width, thermal characteristics and power characteristics to be read via this standard. Will provide an update later once the specification evolves.
The document identification number is DSP0291.

Draft Specification

How to solve this Dependencies apt –fix-broken install with raspberry pi OS.

Raspberry pi is based on Debian distribution. This article may assist apt repository upgrade failures. When ever there is a broken install, you can use the below command.

apt –fix-broken install
Whatever library it depends on use the below command to resolve it.

dpkg –force-all –configure -a
dpkg –purge –force-depends <library package name>
apt –fix-broken install
apt-get -f install

 

Source: debian – How to solve this Dependencies apt –fix-broken install – Super User

Raspberry Pi – Unable to do apt upgrade 404 error

While using older images of raspberry pi, the upgrade fails with the repository 404 not found.
The reason is the older images repository is moved to legacy.raspbian.org.
I ran into this same issue but didn’t want to go through the work of upgrading versions,
so simply updated the mirror link in my sources.list from mirrordirector.raspbian.org to
legacy.raspbian.org

sources.list
deb http://legacy.raspbian.org/raspbian/ jessie main contrib non-free rpi
# Uncomment line below then ‘apt-get update’ to enable ‘apt-get source’
#deb-src http://archive.raspbian.org/raspbian/ jessie main contrib non-free

Source: linux – Debian apt-get update 404 not found error – Super User