My debian work in Aug/Sep/Oct 2013¶
The software entered to the main Debian archive as following.
related Django REST framework
related OpenStack Swift
Thanks Iwamatsu-san, Thomas-san, Oinuma-san.
The parameter of boot option “auto” had been changed for auto install of wheezy¶
Debian installer is enable to install automatically with preseed as you know. Auto installing needs boot parameter “auto” in the previous version. But the “auto” parameter had been changed in Wheezy.
previous version
auto url=autoserver
Wheezy
auto=true url=autoserver
Honjo-san, Thanks for providing preseed configuration file.
See also¶
The “auto” parameter is not yet modified in following document.
Applying openssh-lpk to Wheezy¶
This blog entry is rewritten version of Wheezy for an article I wrote earlier.
Download this patch why OpenSSH version of Wheezy is 6.0p1. Then apply to source package.
$ wget http://distfiles.gentoo.org/distfiles/openssh-lpk-6.0p1-0.3.14.patch.gz
$ gzip -d openssh-lpk-6.0p1-0.3.14.patch.gz
$ sudo apt-get build-dep openssh
$ sudo apt-get install libldap2-dev quilt fakeroot
$ apt-get source openssh
$ cd openssh-6.0p1
$ patch -p1 < ../openssh-lpk-6.0p1-0.3.14.patch
Modify failed to patch.
version.h¶
Index: openssh-6.0p1/version.h
===================================================================
--- openssh-6.0p1.orig/version.h 2013-06-20 06:11:07.000000000 +0000
+++ openssh-6.0p1/version.h 2013-06-20 06:23:27.808046150 +0000
@@ -3,7 +3,8 @@
#define SSH_VERSION "OpenSSH_6.0"
#define SSH_PORTABLE "p1"
-#define SSH_RELEASE_MINIMUM SSH_VERSION SSH_PORTABLE
+#define SSH_LPK "lpk"
+#define SSH_RELEASE_MINIMUM SSH_VERSION SSH_PORTABLE SSH_LPK
#ifdef SSH_EXTRAVERSION
#define SSH_RELEASE SSH_RELEASE_MINIMUM " " SSH_EXTRAVERSION
#else
Makefile.in¶
Index: openssh-6.0p1/Makefile.in
===================================================================
--- openssh-6.0p1.orig/Makefile.in 2013-06-20 06:11:07.000000000 +0000
+++ openssh-6.0p1/Makefile.in 2013-06-20 06:25:46.242305737 +0000
@@ -94,7 +94,7 @@
sftp-server.o sftp-common.o \
roaming_common.o roaming_serv.o \
sandbox.o sandbox-null.o sandbox-rlimit.o sandbox-systrace.o \
- sandbox-darwin.o sandbox-seccomp-filter.o
+ sandbox-darwin.o sandbox-seccomp-filter.o ldapauth.o
MANPAGES = moduli.5.out scp.1.out ssh-add.1.out ssh-agent.1.out ssh-keygen.1.out ssh-keyscan.1.out ssh.1.out sshd.8.out sftp-server.8.out sftp.1.out ssh-keysign.8.out ssh-pkcs11-helper.8.out ssh-vulnkey.1.out sshd_config.5.out ssh_config.5.out
MANPAGES_IN = moduli.5 scp.1 ssh-add.1 ssh-agent.1 ssh-keygen.1 ssh-keyscan.1 ssh.1 sshd.8 sftp-server.8 sftp.1 ssh-keysign.8 ssh-pkcs11-helper.8 ssh-vulnkey.1 sshd_config.5 ssh_config.5
Execute “dpkg-source –commit”.
In addition to the change at the time of the precise, “confflags + = - with-libs =-lldap” you must append.
confflags += --with-ldap
confflags += --with-libs=-lldap
# (snip)
cflags += -DWITH_LDAP_PUBKEY
Other procedures are the same as for the precise.
My father was passed away¶
My father was passed away on the 20th last March. He had difficulty disease. It was too late to cure the disease when his disease has found.
I went to visit my father in the hospital with his daughter about 2 weeks before my father died was the last face-to-face. My father at home until the last minute, do-it-yourself was doing as much as possible on his own. I regret and I should let them meet my daughter to him more. When I went to visit the week before he died, we exchanged words was his father’s last words.
I: “I also come with my wife and daughter in April.”
Father: “When you come next I hope to be able to chat with the grandchildren.”
I did not fulfill this promise that I have with my father.
Dad, may you rest in peace, we shall never forget you.
(This is not April fools’ joke.)
Hardware sensor of OpenBlockS A series¶
I could get CPU temparature with lm-sensors, and storage temparature with hddtemp. I wrote blog post about hardware sensor at this entry.
CPU temparature¶
Firstly you should install “lm-sensors” package.
$ sudo apt-get install lm-sensors
lm-sensors has sensors command and sensors-detect command. The former prints sensors information, the latter is enable to detect hardware monitoring chips.
sensors command¶
This command is only enable to get CPU temparagure at OpenBlockS AX3. But it seems you can not get the correct values with the latest firmware (kernel-image 3.0.6-8)
kernel image 3.0.6-3¶
$ sensors
axp-hwmon-isa-0000
Adapter: ISA adapter
T-junction: +54.5°C (low = +10.0°C, high = +105.0°C) sensor = thermal dioed
kernel iamge 3.0.6-8¶
$ sensors
axp-hwmon-isa-0000
Adapter: ISA adapter
T-junction: +0.1°C (low = +0.0°C, high = +0.1°C) sensor = thermal diode
OpenBlockS A6 is disable to use sensors.
$ sensors
No sensors found!
Make sure you loaded all the kernel drivers you need.
Try sensors-detect to find out which these are.
sensors-detect command¶
This command is disable to detect any monitoring chips of OpenBlockS A6 and AX3 kernel provided by Plat’Home. On the contrary kernel internal error is occured if you enter YES unconditionally in OpenBlockS AX3.
$ sudo sensors-detect
(snip)
Some Super I/O chips contain embedded sensors. We have to write to
standard I/O ports to probe them. This is usually safe.
Do you want to scan for Super I/O sensors? (YES/no):
Probing for Super-I/O at 0x2e/0x2f
Message from syslogd@obsax3 at Jan 8 00:33:13 ...
kernel:Internal error: : 1028 [#2] SMP
Message from syslogd@obsax3 at Jan 8 00:33:13 ...
kernel:Process sensors-detect (pid: 1397, stack limit = 0xeb8882f0)
kohei@obsax3:~$
Message from syslogd@obsax3 at Jan 8 00:33:13 ...
kernel:Stack: (0xeb889f20 to 0xeb88a000)
Message from syslogd@obsax3 at Jan 8 00:33:13 ...
kernel:9f20: 00000001 eb8f6f00 00205998 eb889f70 eb889f6c eb889f40 c00fafa8 c0268880
(snip)
scanning occurs kernel internal error is following.
Super I/O sensors
IPMI interfaces
ISA I/O ports
OpenBlockS A6 does not occures kernel internal error, but scanning mv64xxx_i2c adopter is not reacted (to stop with SIGINT).
Storage temparature¶
You should install “hddtemp” package.
$ sudo apt-get install hddtemp
debconf setting is like as following.
SUID root: no
interval of check temparature: 0
daemon: yes
listen IP address: 127.0.0.1
port: 7634
hddtemp reads temparature with “S.M.A.R.T.”. It is supported by the following storage;
HalfSlim SSD 16GB MLC installed at OpenBlockS A6 product version and OpenBlockS AX3 rented
MLC SSD 128GB(PH-128G/SSDMA/AX3) installed OpenBlockS AX3 purchased
HalfSlim SSD¶
$ sudo hddtemp /dev/sda
/dev/sda: MRSAJ5A016GC118C00: 40 C
PH-128GB¶
$ sudo hddtemp /dev/sda
/dev/sda: ADATA SP900: 27 C
You can do health check storage if you install “smartmontools” package and use smartctl command.
I2C¶
You should install i2c-tools package.
$ sudo apt-get install i2c-tools
Execute “i2cdetect command” to detect I2C chips.
OpenBlockS AX3¶
$ sudo i2cdetect -l
i2c-0 i2c mv64xxx_i2c adapter I2C adapter
i2c-1 i2c mv64xxx_i2c adapter I2C adapter
$ sudo i2cdetect -y 0
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: 50 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
$ sudo i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: UU UU UU UU UU UU UU UU -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
Execute sensors-detect of lm-sensors.
$ sudo sensors-detect
(snip)
Lastly, we can probe the I2C/SMBus adapters for connected hardware
monitoring devices. This is the most risky part, and while it works
reasonably well on most systems, it has been reported to cause trouble
on some systems.
Do you want to probe the I2C/SMBus adapters now? (YES/no): yes
Sorry, no supported PCI bus adapters found.
Next adapter: mv64xxx_i2c adapter (i2c-0)
Do you want to scan it? (YES/no/selectively):
Client found at address 0x50
Probing for `Analog Devices ADM1033'... No
Probing for `Analog Devices ADM1034'... No
Probing for `SPD EEPROM'... No
Probing for `EDID EEPROM'... No
(snip)
OpenBlockS A6¶
“sudo i2cdetect -y 0” is very very slowly at OpenBlockS A6.
$ sudo i2cdetect -l
i2c-0 i2c mv64xxx_i2c adapter I2C adapter
$ sudo i2cdetect -y 0
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --