hns - 日記自動生成システム - Version 2.19.9

先月 2023年08月 来月
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31
Namazu for hns による簡易全文検索
詳しくは 詳細指定/ヘルプを参照して下さい
検索式:

2023年08月26日() 旧暦 [n年日記] [更新:"2004/08/09 23:43:33"]

#1 [Let's][Encrypt] renewal local server

check before update (followings are actually after):

SX2@makoto 08:56:33/230826(~)%  foreach i (993)
echo $i;  openssl x509 -text -noout -in <(openssl s_client  -connect imap4.z.example.com:$i ) |grep -A3 Valid              
end
993
depth=2 C = US, O = Internet Security Research Group, CN = ISRG Root X1
verify return:1
depth=1 C = US, O = Let's Encrypt, CN = R3
verify return:1
depth=0 CN = *.example.com
verify return:1
DONE
        Validity
            Not Before: Aug 25 22:37:33 2023 GMT
            Not After : Nov 23 22:37:32 2023 GMT
        Subject: CN = *.example.com
SX2@makoto 08:56:55/230826(~)%  foreach i (587)
echo $i;  openssl x509 -text -noout -in <(openssl s_client -starttls smtp -connect imap4.z.example.com:$i ) |grep -A3 Valid
end
587
depth=2 C = US, O = Internet Security Research Group, CN = ISRG Root X1
verify return:1
depth=1 C = US, O = Let's Encrypt, CN = R3
verify return:1
depth=0 CN = *.example.com
verify return:1
250 HELP
DONE
        Validity
            Not Before: Aug 25 22:37:33 2023 GMT
            Not After : Nov 23 22:37:32 2023 GMT
        Subject: CN = *.example.com

prepare DNS update:

issue certbot:

CF-J10-202211@makoto 08:30:45/230826(~)% certbot-3.8 certonly \
     --manual \
     --server https://acme-v02.api.letsencrypt.org/directory \
     --preferred-challenges dns \
     -d '*.example.com' \
     -d example.com \
     -m postmaster@example.com \
     --agree-tos \
     --manual-public-ip-logging-ok 
one of above said depreciated,

update DNS TXT record and restart:

Hit enter:

move around /usr/pkg/etc/letsencrypt:

tweak:

  • full+priv
  • directory permission (live, archive)

restart mail server and smtp server:

verify by the command described at first SUB:



2023年08月25日(金) 旧暦 [n年日記] [更新:"2004/08/09 23:43:33"]

#1 [NetBSD] install media to USB memory

zcat Downloads/NetBSD-9.3-amd64-bios-install.img.gz | time sudo dd of=/dev/rsd0d bs=2m
0+28800 records in
0+28800 records out
1887436800 bytes transferred in 259.666 secs (7268709 bytes/sec)
0.25s 1.82s 4:21.58 0% 7+13k 0+1io 143pf+0w

#2 mrtgcfgmaker

serv@makoto 07:49:21/230825(../home/makoto)% cp /dev/null spare.cfg ; foreach i ( 27 28 30 213 )   
mrtgcfgmaker --global "WorkDir: /home/htdocs/www/mrtg/spare "--ifref=ip public@192.168.1.$i >> spare.cfg
end


2023年08月23日(水) 旧暦 [n年日記] [更新:"2004/08/09 23:43:33"]

#1 [NetBSD] 9.3

SX2@makoto 06:19:21/230823(~)% zcat Downloads/NetBSD-9.3* |sudo dd of=/dev/rsd0d bs=64m
Password: 
0+28800 records in
0+28800 records out
1887436800 bytes transferred in 22.967 secs (82180380 bytes/sec)


2023年08月19日() 旧暦 [n年日記] [更新:"2004/08/09 23:43:33"]

#1 [RAID] RAID1 setup

(NetBSD only disklabel)

stealth014$ sudo fdisk wd0a:

Disk: /dev/rwd0a
NetBSD disklabel disk geometry:
cylinders: 155061, heads: 16, sectors/track: 63 (1008 sectors/cylinder)
total sectors: 156301488, bytes/sector: 512

BIOS disk geometry:
cylinders: 1023, heads: 255, sectors/track: 63 (16065 sectors/cylinder)
total sectors: 156301488

Partitions aligned to 16065 sector boundaries, offset 63

Partition table:
0: <UNUSED>
1: <UNUSED>
2: <UNUSED>
3: <UNUSED>
No active partition.
Drive serial number: 0 (0x00000000)

stealth014$ sudo fdisk wd1a:

Disk: /dev/rwd1a
NetBSD disklabel disk geometry:
cylinders: 155061, heads: 16, sectors/track: 63 (1008 sectors/cylinder)
total sectors: 156301488, bytes/sector: 512

BIOS disk geometry:
cylinders: 1023, heads: 255, sectors/track: 63 (16065 sectors/cylinder)
total sectors: 156301488

Partitions aligned to 16065 sector boundaries, offset 63

Partition table:
0: <UNUSED>
1: <UNUSED>
2: <UNUSED>
3: <UNUSED>
No active partition.
Drive serial number: 0 (0x00000000)

stealth014$ sudo disklabel wd0a:

# /dev/rwd0a:
type: unknown
disk: wd
label: fictious
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 155061
total sectors: 156301488
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0 

4 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 a: 156301488         0       RAID                     # (Cyl.      0 - 155060)
 d: 156301488         0     unused      0     0        # (Cyl.      0 - 155060)

stealth014$ sudo disklabel wd1a:

# /dev/rwd1a:
type: unknown
disk: wd
label: fictious
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 155061
total sectors: 156301488
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0 

4 partitions:
#        size    offset     fstype [fsize bsize cpg/sgs]
 a: 156301488         0       RAID                     # (Cyl.      0 - 155060)
 d: 156301488         0     unused      0     0        # (Cyl.      0 - 155060)


2023年08月18日(金) 旧暦 [n年日記] [更新:"2004/08/09 23:43:33"]

#1 [pkgsrc] ham/gnuradio-core

It turned out followings are just warning, and it is NOT a problem.
[ 79%] Building CXX object gr-blocks/python/blocks/bindings/CMakeFiles/blocks_python.dir/
   wavfile_source_python.cc.o
[ 79%] Linking CXX shared module blocks_python.so
   /usr/bin/ld: warning: libstdc++.so.9, needed by 
   /tmp/ham/gnuradio-core/work/.buildlink/lib/libboost_date_time.so, 
   may conflict with libstdc++.so.7
[ 79%] Built target blocks_python
gmake: *** [Makefile:146: all] Error 2
*** Error code 2

Stop.
make[1]: stopped in /amd/pkgsrc/CHROOT/P/pkgsrc/ham/gnuradio-core
*** Error code 1

Stop.
make: stopped in /amd/pkgsrc/CHROOT/P/pkgsrc/ham/gnuradio-core
I've seen the same thing before, but nothing recorded (?)

20230709.1503/gnuradio-network-3.10.6.0nb4/build.log:

backup-u@makoto 23:37:51/230817(..current/NetBSD-9.0)% 
   grep libstdc ./20230709.1503/gnuradio-network-3.10.6.0nb4/build.log
/usr/bin/ld: warning: libstdc++.so.9, needed by 
   /tmp/ham/gnuradio-network/work/.buildlink/lib/libboost_date_time.so, 
   may conflict with libstdc++.so.7
/usr/bin/ld: warning: libstdc++.so.9, needed by 
   /tmp/ham/gnuradio-network/work/.buildlink/lib/libboost_thread.so, 
   may conflict with libstdc++.so.7
/usr/bin/ld: warning: libstdc++.so.9, needed by 
   /tmp/ham/gnuradio-network/work/.buildlink/lib/libboost_program_options.so, 
   may conflict with libstdc++.so.7
/usr/bin/ld: warning: libstdc++.so.9, needed by 
   /tmp/ham/gnuradio-network/work/.buildlink/lib/libboost_thread.so, 
   may conflict with libstdc++.so.7
/usr/bin/ld: warning: libstdc++.so.9, needed by 
   /tmp/ham/gnuradio-network/work/.buildlink/lib/libboost_thread.so, 
   may conflict with libstdc++.so.7

#2 ham/gnuradio-core

real problems is here:
[58%] Building CXX object
  gr-filter/lib/CMakeFiles/gnuradio-filter.dir/pm_remez.cc.o
  /tmp/ham/gnuradio-core/work/gnuradio-3.10.7.0/gr-filter/lib/pm_remez.cc:
  In function 'constexpr void gr::filter::calc_parms(unsigned int, const
  std::vector<int>&, const std::vector<double>&, const
  std::vector<double>&, const std::vector<double>&,
  std::vector<double>&, std::vector<double>&, std::vector<double>&)':
  /tmp/ham/gnuradio-core/work/gnuradio-3.10.7.0/gr-filter/lib/pm_remez.cc:189:12:
  error: call to non-'constexpr' function 'std::vector<_Tp,
  _Alloc>::reference std::vector<_Tp,
  _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) [with _Tp =
  double; _Alloc = std::allocator<double>; std::vector<_Tp,
  _Alloc>::reference = double&; std::vector<_Tp, _Alloc>::size_type =
  long unsigned int]'

         x[i] = cos(PI2 * Grid[Ext[i]]);
            ^
gmake[2]: ***
  [gr-filter/lib/CMakeFiles/gnuradio-filter.dir/build.make:258:
  gr-filter/lib/CMakeFiles/gnuradio-filter.dir/pm_remez.cc.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:2044:
 gr-filter/lib/CMakeFiles/gnuradio-filter.dir/all] Error 2
Is it c99 problem ?


2023年08月17日(木) 旧暦 [n年日記] [更新:"2004/08/09 23:43:33"]

#1 [NetBSD] 10.99.7 on h97

Upgraded from 10.99.5 to 10.99.7
  • copy INSTALL set from boot media
       11  sudo rsync -avH /mnt/amd64/binary/sets/ /export/CHROOT-10.99.7/usr/INSTALL
       12  umount /mnt
       13  sudo umount /mnt
       14  cd /export/CHROOT-10.99.7
    
  • unpack on CHROOT
    h97@makoto 06:22:59/230817(/export/CHROOT-10.99.7)% foreach i (`cd usr/INSTALL; ls *xz | grep -v kern-`)
    echo $i; sudo pax -pe -r -z -f usr/INSTALL/$i
    end
    base.tar.xz
    comp.tar.xz
    debug.tar.xz
    etc.tar.xz
    games.tar.xz
    gpufw.tar.xz
    man.tar.xz
    misc.tar.xz
    modules.tar.xz
    rescue.tar.xz
    tests.tar.xz
    text.tar.xz
    xbase.tar.xz
    xcomp.tar.xz
    xdebug.tar.xz
    xetc.tar.xz
    xfont.tar.xz
    xserver.tar.xz
    
  • MAKEDEV
    h97@makoto 06:24:28/230817(/export/CHROOT-10.99.7)% sudo chroot ./                                      
    # cd /dev 
    /dev
    # ./MAKEDEV all
    
  • /etc/resolv.conf sudo cp -p /etc/resolv.conf /export/CHROOT-10.99.7/etc
  • tmpfs and pkgsrc /etc/fstab
    /export/pkgsrc  /export/CHROOT-10.99.7/usr/pkgsrc null  rw 
    tmpfs           /export/CHROOT-10.99.7/WRKOBJDIR        tmpfs rw
    
  • vipw -> mkdir /home/userid
  • chroot /export/CHROOT-10.99.7
    cd /usr/pkgsrc/bootstrap
    ./bootstrap --prefix=/usr/pkg_bulk --pkgdbdir=/usr/pkg_bulk/.pkgdbdir
    
  • ===> bootstrap ended:   Wed Aug 16 21:36:23 UTC 2023
    # env PATH=/usr/pkg_bulk/bin:/usr/pkg_bulk/sbin:${PATH} pkg_info
    cwrappers-20220403  pkgsrc compiler wrappers
    mktools-20220614    Collection of pkgsrc mk infrastructure tools
    bootstrap-mk-files-20230509 *.mk files for the bootstrap bmake utility
    bmake-20200524nb1   Portable (autoconf) version of NetBSD 'make' utility
    pkg_install-20211115 Package management and administration tools for pkgsrc
    # 
    
  • /usr/pkg_bulk/etc/mk.conf
     PACKAGES=		/packages_bulk
     SKIP_LICENSE_CHECK=	yes
    
  • make package pbulk
  • make package pbulk-addendum


2023年08月15日(火) 旧暦 [n年日記] [更新:"2004/08/09 23:43:33"]

#1 [NetBSD] sysinst with RAID1

  • How to setup RAID1
  • partitioning
  • installboot

#2 [NetBSD] sysinst and RAID1

  • 2016/12 に NetBSD -7 で raid1 に sysinst してうまく行っていた
  • 最近は、それがうまく行かないと思っていたー05/04 の日記は、そのことを挙げている
  • 2023/05/20 に更新している日記 には、 9.3 を raid0 で入れることが出来た と書いてある。この時の大切なおまじないは
    raidctl -A softroot raid5 
    
    とある。これが何故か update してあって 10.99.4 になり、今は 10.99.7 になっている。 一度
    raidctl -A no
    
    したはず。そうでないと install media から起動出来ない(起動しても、install 済の方に取られてしまう)
  • ところが、別の個体に 10.99.7 を直接入れようとしても、今は
    NetBSD MBR boot
    Error No active partition
    
    なってしまって、 fdisk で直せるとあるが、その方法は分っていない

    おそらく、 disk の label の形式には、次のようなものがあって

    1. MBR (Master Boot Record)
    2. NeBSD only disklabel
    3. GPT ( more than 2 TB)
    上の問題は 1. を使っていて、その様子は fdisk で見られて、
    その時に、四つある partition に、一つも active partition が設定されていない
    ということかと思う。実は fdisk の操作で active partition を設定する方法は 今は分っていない

    man fdisk より

         -a      Change the active partition.  In interactive mode this question
                 will be asked after the partitions have been processed.
    
    これかな


2023年08月14日(月) 旧暦 [n年日記] [更新:"2004/08/09 23:43:33"]

#1 [raid] raid1 mirror setup on N3150 CPU

  • WDC 2T を二台使う
  • install image を down load NetBSD/amd64 10.99.7 の中の、このようなもの
    NetBSD-10.99.7-amd64-bios-install.img.gz	13-Aug-2023 11:39	862443kB 
    
  • USB hard disk に書く
    zcat NetBSD-10.99.7-amd64-bios-install.img.gz | \
    sudo dd of=/dev/rsd0d bs=2m
    
  • 起動 Serial console を指定して画面の写しを撮れるようにする
    userconf disable i915drmkms 
    consdev com0,115200
    
    will redirect to serila console
  • Utility から d partition DISK を選ぶ
  • もし、何か以前のものが残っていたら、 delete partition で消す
  • 二つの disk を RAID に設定
  • l. Save Changes
    を選ぶ ここから、今回の場合で 5.5 時間かかる
しかし、今回は、うまく行かない raid 側の partition が書かれていなかった


2023年08月12日() 旧暦 [n年日記] [更新:"2004/08/09 23:43:33"]

#1 [いのしし] いのしし目撃情報

2023/08/11 10:00 前後:

道路上
親 1
子 2

2023/08/13 18:30:

林の中
子 3


2023年08月11日(金) 旧暦 [n年日記] [更新:"2004/08/09 23:43:33"]

#1 [pkgsrc] pdflatex wants TeXLive/TLUtils.pm

beebox-03@makoto 11:16:19/230811(..math/R-rstudioapi)% pdftex /dev/null
This is pdfTeX, Version 3.141592653-2.6-1.40.25 (TeX Live 2023/pkgsrc) (preloaded format=pdftex)
 restricted \write18 enabled.

kpathsea: Running mktexfmt pdftex.fmt

Can't locate TeXLive/TLUtils.pm in @INC (you may need to install the
	TeXLive::TLUtils module) (@INC entries checked: /usr/pkg/share/tlpkg
	/usr/pkg/share/texmf-dist/scripts/texlive
	/usr/pkg/lib/perl5/site_perl/5.38.0/x86_64-netbsd-thread-multi
	/usr/pkg/lib/perl5/site_perl/5.38.0
	/usr/pkg/lib/perl5/vendor_perl/5.38.0/x86_64-netbsd-thread-multi
	/usr/pkg/lib/perl5/vendor_perl/5.38.0
	/usr/pkg/lib/perl5/5.38.0/x86_64-netbsd-thread-multi
	/usr/pkg/lib/perl5/5.38.0) at /usr/pkg/bin/mktexfmt line 45.

BEGIN failed--compilation aborted at /usr/pkg/bin/mktexfmt line 45.
I can't find the format file `pdftex.fmt'!
beebox-03@makoto 11:16:22/230811(..math/R-rstudioapi)% pkg_info |grep latex-bin
tex-latex-bin-2020  LaTeX executables
beebox-03@makoto 11:16:37/230811(..math/R-rstudioapi)% pkg_info -qL latex-bin |grep pdf-latex
pkg_info: can't find package `latex-bin'
beebox-03@makoto 11:16:54/230811(..math/R-rstudioapi)% pkg_info -qL tex-latex-bin |grep pdf-latex
beebox-03@makoto 11:17:06/230811(..math/R-rstudioapi)% pkg_info -qL tex-latex-bin |grep pdflatex 
/usr/pkg/bin/pdflatex
beebox-03@makoto 11:17:10/230811(..math/R-rstudioapi)% 
See:


2023年08月09日(水) 旧暦 [n年日記] [更新:"2004/08/09 23:43:33"]

#1 [NetBSD] NetBSD-10.99.7-amd64-bios-install.img.gz

SX2@makoto 21:15:26/230809(~)% \
  zcat Downloads/NetBSD-10.99.7-amd64-bios-install.img.gz | \
  time sudo dd of=/dev/rsd0d bs=64m
Password: 
0+40000 records in
0+40000 records out
2621440000 bytes transferred in 81.715 secs (32080279 bytes/sec)
0.31s 2.63s 1:25.15 3% 5+8k 0+2io 143pf+0w
SX2@makoto 21:17:26/230809(~)% 
===> Summary of results:
         build.sh command:    ./build.sh -j 8 -T /export/T -O /tmp/O 
                               kernel=GENERIC-no-SYNAPTICS-nvmm-pmf-debug
         build.sh started:    Wed Aug  9 22:22:20 JST 2023
         NetBSD version:      10.99.7
         MACHINE:             amd64
         MACHINE_ARCH:        x86_64
         Build platform:      NetBSD 10.99.5 amd64
         HOST_SH:             /bin/sh
         share/mk MAKECONF:   /etc/mk.conf
         MAKECONF file:       /etc/mk.conf
         TOOLDIR path:        /export/T
         DESTDIR path:        /tmp/O/destdir.amd64
         RELEASEDIR path:     /tmp/O/releasedir
         Updated makewrapper: /export/T/bin/nbmake-amd64
         Building kernel without building new tools
         Building kernel:     GENERIC-no-SYNAPTICS-nvmm-pmf-debug
         Build directory:     /tmp/O/sys/arch/amd64/compile/
                              GENERIC-no-SYNAPTICS-nvmm-pmf-debug
         Kernels built from GENERIC-no-SYNAPTICS-nvmm-pmf-debug:
          /tmp/O/sys/arch/amd64/compile/
                              GENERIC-no-SYNAPTICS-nvmm-pmf-debug/netbsd
         build.sh ended:      Wed Aug  9 22:26:00 JST 2023
===> .
h97@makoto 06:51:33/230810(..git-work/netbsd-src)% pwd
/export/git-work/netbsd-src
h97@makoto 06:51:52/230810(..git-work/netbsd-src)% 




最近の日記
2024年04月29日
dkim
2024年03月10日
停電 (瞬電)
2024年03月03日
the second try on bare-metal
useradd
2024年02月29日
opendkim and senmail
2024年01月24日
chat/iam 0.0.8
以上、11 日分です。
タイトル一覧
カテゴリ分類
Powered by hns-2.19.9, HyperNikkiSystem Project

Count.cgi (since 2000/02/05)