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

  • 02/21(木) mr 誕生日
  • 02/25(月) Interface
  • 02/28(木) NTT 東 払込期日
  • 02/28(木) ○ 固定資産税振替・支払
  • 03/01(金) atactl check
  • 03/02() 0900 ARRL Phone
  • 03/06(水) 不燃ごみ
  • 03/11(月) たれさん誕生日
  • 03/15(金) 所得税申告期限
  • 03/16() 木之本会議
  • 03/19(火) CQ Ham Radio
  • 03/20(水) 不燃ごみ
  • 909 07
  • 403 JNUG 総会/BOF 2017/07/08 (土)
  • 402 用途別 Emacs ( C, LaTeX, 日本語 )
  • 380 cvsweb の移行
  • 370 tamago 辞書登録
  • 368 CROSS (cross/i386-mingw32, cross/powerpc-linux ) Framework --- binutils + gcc
  • 363 Wanderlust+HyperEstraier
  • 360 evbppc 用 patch / 玄箱
  • 335 /dev/battery is missing hack | libgcc_s_pic.a is missing | samba の -PIE 問題335 ntpd monitor
  • 325 tcode頁の更新
  • 322 software |hardware
  • 321 emacs-22 | IPv6
  • 320 bulk build (Mac OS X 10.4 and NetBSD/macppc)
  • 310 Wanderlust の Namazu の挙動
  • 290 WordPress 1.2 -> 1.5 migration
  • 220 Wanderlust で日本語題名の wl-summary-print-buffer
便利なツール
Emacs
らくらく 入門
rakuraku-emacs-cover

先月 2019年02月
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
Namazu for hns による簡易全文検索
詳しくは 詳細指定/ヘルプを参照して下さい
検索式:

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

#1 sudo pkgin install mysql-server

examplehp@makoto 14:48:19/190217(/export/backup)% sudo pkgin install mysql-server
reading local summary...
processing local summary...
pkg_summary.bz2                                                                                                                                     100% 3106KB 194.1KB/s   00:16    
calculating dependencies...done.

5 packages to refresh:
  icu-63.1nb1 perl-5.28.1 mysql-client-5.7.24nb2 lz4-1.8.3 editline-3.1.20150325

1 package to upgrade:
  boost-libs-1.69.0

1 package to install:
  mysql-server-5.7.24nb1

5 to refresh, 1 to upgrade, 1 to install
73M to download, 433M to install

proceed ? [Y/n] y
icu-63.1nb1.tgz                                                                                                                                     100%   16MB   2.0MB/s   00:08    
perl-5.28.1.tgz                                                                                                                                     100%   11MB   2.2MB/s   00:05    
mysql-client-5.7.24nb2.tgz                                                                                                                          100% 2171KB   1.1MB/s   00:02    
lz4-1.8.3.tgz                                                                                                                                       100%   97KB  96.8KB/s   00:01    
editline-3.1.20150325.tgz                                                                                                                           100%  123KB 123.1KB/s   00:00    
boost-libs-1.69.0.tgz                                                                                                                               100% 4646KB   1.5MB/s   00:03    
mysql-server-5.7.24nb1.tgz                                                                                                                          100%   40MB   2.3MB/s   00:17    
refreshing icu-63.1nb1...
refreshing perl-5.28.1...
refreshing mysql-client-5.7.24nb2...
refreshing lz4-1.8.3...
refreshing editline-3.1.20150325...
pkg_install warnings: 0, errors: 0
upgrading boost-libs-1.69.0...
pkg_install warnings: 0, errors: 0
installing mysql-server-5.7.24nb1...
===========================================================================
$NetBSD: MESSAGE,v 1.1 2016/09/16 06:49:12 adam Exp $

After the tables are set up and the MySQL server is running,
please remember to set a password for the MySQL root user!
This is done by running both:

  /usr/pkg/bin/mysqladmin -u root -p password 'new-password'
  /usr/pkg/bin/mysqladmin -h `hostname` -u root -p password 'new-password'

The "Enter password:" prompt is asking for the existing password.
As there is no existing password, just press the Return key.

There is a script distributed with MySQL that can help you lock down
an installation.  This script has been installed to

  /usr/pkg/bin/mysql_secure_installation.

Please see the manual and the MySQL web site for more instructions.

===========================================================================
pkg_install warnings: 0, errors: 0
reading local summary...
processing local summary...
marking mysql-server-5.7.24nb1 as non auto-removable
exampleh@makoto 14:50:45/190217(/export/backup)% 

log:

cat /var/log/mysqld.log

pkg_info -D mysql-server:

examplehp@makoto 15:03:41/190217(/export/backup)% pkg_info -D mysql-server
Information for mysql-server-5.7.24nb1:

Install notice:
===========================================================================
$NetBSD: MESSAGE,v 1.1 2016/09/16 06:49:12 adam Exp $

After the tables are set up and the MySQL server is running,
please remember to set a password for the MySQL root user!
This is done by running both:

  /usr/pkg/bin/mysqladmin -u root -p password 'new-password'
  /usr/pkg/bin/mysqladmin -h `hostname` -u root -p password 'new-password'

The "Enter password:" prompt is asking for the existing password.
As there is no existing password, just press the Return key.

There is a script distributed with MySQL that can help you lock down
an installation.  This script has been installed to

  /usr/pkg/bin/mysql_secure_installation.

Please see the manual and the MySQL web site for more instructions.

===========================================================================
examplehp@makoto 15:51:39/190217(/export/backup)% history
   43  sudo vi /usr/pkg/etc/my.cnf
   44  sudo mysqld -u root -p
   45  sudo vi /usr/pkg/etc/my.cnf
   46  sudo mysqld -u root -p
   47  mkdir /tmp/mysql
   48  sudo chown mysql /tmp/mysql/
   49  sudo mysqld -u root -p
   50  sudo mkdir /var/mysql/tmp
   51  sudo chown mysql  /var/mysql/tmp
   52  sudo mysqld -u root -p
   53  ls -l /var/mysql/iblog/
   54  mkdir /var/mysql/iblog
   55  sudo mkdir /var/mysql/iblog
   56  sudo chown mysql /var/mysql/iblog
   57  sudo mysqld -u root -p
   58  sudo mysqld -u root
  1. sudo mysqld -u root
    
    と入力すると起動する
  2. /usr/pkg/etc/my.cnf の次の行を有効にする (## の文字を消す)
    ## skip-grant-tables
    
  3. sudo mysqld -u root
    
    で起動する
  4. 次のように入力する
    mysql -u root
    use mysql;
    
    
    UPDATE user SET authentication_string=password('  ') WHERE user='root';
    
    flush privileges;
    
    quit
    
    項目 の一時変更を元に戻す
  5. 1194769      4 -rw-r-----    1 root              mysql                   303 Feb 17 16:07 /var/mysql/ib_buffer_pool
    1218011  98400 -rw-r-----    1 root              mysql              50331648 Feb 17 15:50 /var/mysql/iblog/ib_logfile1
    examplehp$ sudo chown mysql /var/mysql/ib_buffer_pool
    examplehp$ sudo chown mysql /var/mysql/iblog/ib_logfile1
    
    examplehp$ sudo /etc/rc.d/mysqld start
    Starting mysqld.
    examplehp$ ps ax|grep mysql
     7371 ?     Ss     0:00.08 sh -c logger -t nbmysqld_safe 
    10188 ?     S      0:00.00 logger -t nbmysqld_safe 
    20232 ?     Ss     0:00.08 /bin/sh /usr/pkg/bin/mysqld_safe --user=mysql --datadir=/var/mysql --pid-file=/var/mysql/.pid 
    22494 ?     Sl     0:00.54 /usr/pkg/sbin/mysqld --basedir=/usr/pkg --datadir=/var/mysql --plugin-dir=/usr/pkg/lib/mysql/plugin --
    10865 pts/1 O+     0:00.00 grep mysql 
    


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

#1 [bc-bench]

time sh -c 'echo "scale=2000; 4*a(1)" | bc -l' > /dev/null
time sh -c 'echo "scale=2000;   e(1)" | bc -l' > /dev/null






πe
MakeMB/ModelCPUclockOSReleasesystemusersystemuser
ASRockH97Inteli7-4790K4.00 GHzNetBSD8.99.251.411.4652.852.851
AppleMini Late 2014Intel

MacOSX
2.052.031.681.68
PanasonicCF-SX3Inteli5-4300U1.90 GHzNetBSD8.99.332.382.394.624.623
PanasonicCF-SX2Inteli5-3340M2.70 GHzNetBSD8.99.332.522.514.544.544
ASRockn3150-ITXInteln31502.70 GHzNetBSD8.02.522.514.544.544
PanasonicCF-J10Inteli5 M 4801.20 GHzNetBSD8.99.302.752.7514.804.878
PanasonicCF-J10Inteli5 M 4802.67 GHzNetBSD8.99.302.752.7684.824.865
HPMicroServerAMDTurion(tm) II Neo N54L2.20 GHzNetBSD8.99.334.524.546.346.338
PanasonicCF-SX2Inteli5-3340M1.20 GHzNetBSD8.99.335.615.62210.2110.236


2019年01月06日() 旧暦 [n年日記] [更新:"2019/01/06 04:49:24"]

#1 [dd] today's dd (きょうの dd)

CF-SX3@makoto 11:13:18/190106(~/Downloads)% \
zcat NetBSD-8.99.30-amd64-install.img.gz | sudo dd of=/dev/rsd0d bs=64k
23200+0 records in
23200+0 records out
1520435200 bytes transferred in 128.238 secs (11856354 bytes/sec)
(doses not mount root with let's note CF-SX2, with USB key boot)
but once getting boot prompt, and then
boot netbsd -a
and type sd0a/sd0b etc, went to installer

but above may not be reproducable, won't start installer now (?)



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

#1 [sysinst] segfaults at Adding disk (RAID setup at sysinst)











NetBSD/amd64 both on 8.0 release and 8.99.28
  1. Have 4 disks attached
  2. All disklabeled as 1GB root and (some) 470GB raid partition
  3. boot from network to start sysinst (netwok is just an example)
  4. e: Utililty
  5. d: Partition a disk
  6. m: Create software RAID (photo 1)
  7. a: Disks: (photo 2)
  8. a: Add: (photo 3)
  • get sysinst and sysinst.core
    -r-xr-xr-x  1 makoto  wheel  2419136 Dec 23 15:25 sysinst
    -rw-------  1 makoto  wheel   563112 Dec 23 15:23 sysinst.core
    
  • gdb sysinst sysinst.core
    CF-SX2@makoto 16:09:47/181223(..prep/sysinst-segfault)% gdb sysinst sysinst.core
    GNU gdb (GDB) 8.0.1
    ..
    warning: exec file is newer than core file.
    [New process 1]
    Core was generated by `sysinst'.
    Program terminated with signal SIGSEGV, Segmentation fault.
    #0  0x00000000004b26a8 in ?? ()
    (gdb) bt
    #0  0x00000000004b26a8 in ?? ()
    #1  0x0000000000000001 in ?? ()
    #2  0x00007f7fffffc140 in ?? ()
    #3  0x0000000000000000 in ?? ()
    (gdb) 
    
  • objdump -d sysinst
      4b2661:       5b                      pop    %rbx
      4b2662:       5d                      pop    %rbp
      4b2663:       41 5c                   pop    %r12
      4b2665:       c3                      retq   
    
      4b2666:       41 55                   push   %r13
      4b2668:       41 54                   push   %r12
      4b266a:       55                      push   %rbp
      4b266b:       53                      push   %rbx
      4b266c:       51                      push   %rcx
      4b266d:       48 89 fd                mov    %rdi,%rbp
      4b2670:       41 89 d4                mov    %edx,%r12d
      4b2673:       85 f6                   test   %esi,%esi
      4b2675:       79 23                   jns    0x4b269a
      4b2677:       31 db                   xor    %ebx,%ebx
      4b2679:       45 31 ed                xor    %r13d,%r13d
      4b267c:       44 89 e2                mov    %r12d,%edx
      4b267f:       44 89 ee                mov    %r13d,%esi
      4b2682:       48 89 ef                mov    %rbp,%rdi
      4b2685:       e8 dc ff ff ff          callq  0x4b2666
      4b268a:       01 c3                   add    %eax,%ebx
      4b268c:       41 ff c5                inc    %r13d
      4b268f:       41 83 fd 10             cmp    $0x10,%r13d
      4b2693:       75 e7                   jne    0x4b267c
      4b2695:       e9 02 01 00 00          jmpq   0x4b279c
      4b269a:       48 8b 3d 17 36 42 00    mov    0x423617(%rip),%rdi        # 0x8d5cb8
      4b26a1:       48 8d 87 a0 01 00 00    lea    0x1a0(%rdi),%rax
      4b26a8:       83 3f 00                cmpl   $0x0,(%rdi)
      4b26ab:       74 34                   je     0x4b26e1
      4b26ad:       48 3b 6f 10             cmp    0x10(%rdi),%rbp
      4b26b1:       75 2e                   jne    0x4b26e1
      4b26b3:       3b 77 38                cmp    0x38(%rdi),%esi
      4b26b6:       75 29                   jne    0x4b26e1
      4b26b8:       bb 01 00 00 00          mov    $0x1,%ebx
      4b26bd:       45 85 e4                test   %r12d,%r12d
      4b26c0:       0f 84 d6 00 00 00       je     0x4b279c
      4b26c6:       48 c7 47 10 00 00 00    movq   $0x0,0x10(%rdi)
      4b26cd:       00 
      4b26ce:       48 83 c7 18             add    $0x18,%rdi
      4b26d2:       be 94 37 5a 00          mov    $0x5a3794,%esi
      4b26d7:       e8 94 3e 09 00          callq  0x546570
      4b26dc:       e9 bb 00 00 00          jmpq   0x4b279c
      4b26e1:       48 83 c7 68             add    $0x68,%rdi
      4b26e5:       48 39 f8                cmp    %rdi,%rax
      4b26e8:       75 be                   jne    0x4b26a8
      4b26ea:       48 8b 05 87 35 42 00    mov    0x423587(%rip),%rax        # 0x8d5c78
      4b26f1:       4c 8d 80 80 46 00 00    lea    0x4680(%rax),%r8
      4b26f8:       8b 38                   mov    (%rax),%edi
      4b26fa:       31 d2                   xor    %edx,%edx
      4b26fc:       85 ff                   test   %edi,%edi
      4b26fe:       74 2e                   je     0x4b272e
    
But I did not find human readable labels yet

but this works OK if sysinst is started in userland:

I've copied the suspicious sysinstall binary to normal running 8.0 and started. Works fine ;-( That is also true for /usr/sbin/sysinstall







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

#1 [散財] Lets Note SX3

itemmakemodelspecprice
Let's NotePanasonicSX-3i5-4300U CPU @ 1.90GHz x 4, 4GB, 128GB SSD26,980
SSD DiskSamsung840 EVO120GB2,480
(at Junk/Paradice)



最近の日記
2019年02月16日
sudo pkgin install mysql-server
2019年02月03日

2019年01月06日
today's dd (きょうの dd)
2018年12月23日
segfaults at Adding disk (RAID setup at sysinst)
2018年12月16日
Lets Note SX3
以上、5 日分です。
タイトル一覧
カテゴリ分類
Powered by hns-2.19.9, HyperNikkiSystem Project

Count.cgi (since 2000/02/05)