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

  • 04/25(木) Interface
  • 04/27() 2100 - 2100 ALL JA
  • 04/28() tokuda net 誕生日
  • 04/28() 自動車保険期限 (OS/Browser 制限有)
  • 04/30(火) NTT 東 払込期日
  • 04/30(火) ○ 固定資産税振替・支払
  • 05/01(水) atactl check
  • 05/01(水) 不燃ごみ
  • 05/03(金) 0900-1500 東京コンテスト
  • 05/14(火) All JA ログ締切
  • 05/15(水) 不燃ごみ
  • 05/18() 木之本会議
  • 05/19() CQ Ham Radio
  • 05/19() 別冊 CQ
  • 05/25() Interface
  • 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
  • 215 NetBSD/ofppc
便利なツール
Emacs
らくらく 入門
rakuraku-emacs-cover

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

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

#1 [pkgsrc] graphic monitor for bulkbuild count

  • Web server
  • net-snmp on master machine
  • simple shell script to retrieve success and error count on master machine
    % cat bin/count-bulkbuild.1
    #!/bin/sh
    SUCCESS=`wc  -l /export/CHROOT/P/bulklog/meta/success | awk '{print $1}'`
    #ERROR=`wc  -l /export/CHROOT/P/bulklog/meta/error   | awk '{print $1}'`
    echo ${SUCCESS}
    
    % cat bin/count-bulkbuild.2
    #!/bin/sh
    #SUCCESS=`wc  -l /export/CHROOT/P/bulklog/meta/success | awk '{print $1}'`
    ERROR=`wc  -l /export/CHROOT/P/bulklog/meta/error   | awk '{print $1}'`
    echo ${ERROR}
    
  • part of /usr/pkg/etc/snmpd.conf
    extend bulkbuild-count.1 /home/makoto/bin/count-bulkbuild.1
    extend bulkbuild-count.2 /home/makoto/bin/count-bulkbuild.2
    
  • To find mib number
    %  snmpwalk   -c COMMUNITY -v 1 master.example.com .1.3.6.1.4.1 | grep bulk
     NET-SNMP-EXTEND-MIB::nsExtendCommand."bulkbuild-count.1" = STRING: /home/makoto/bin/count-bulkbuild.1
     NET-SNMP-EXTEND-MIB::nsExtendCommand."bulkbuild-count.2" = STRING: /home/makoto/bin/count-bulkbuild.2
    
    I have no idea how to put "bulkbuild-count.2" (etc) string on mrtg config (quotation is the problem to me), so, I placed all digits in below cfg file.
     %  snmpwalk -On -c COMMUNITY -v 1 master.example.com .1.3.6.1.4.1 | grep bulk
    .1.3.6.1.4.1.8072.1.3.2.2.1.2.17.98.117.108.107.98.117.105.108.100.45.99.111.117.110.116.46.49 
       = STRING: /home/makoto/bin/count-bulkbuild.1
    .1.3.6.1.4.1.8072.1.3.2.2.1.2.17.98.117.108.107.98.117.105.108.100.45.99.111.117.110.116.46.50 
       = STRING: /home/makoto/bin/count-bulkbuild.2
    
  • mrtg config (name: bulkbuild-count.cfg) to get info over snmp
  • crontab to run mrtg to generate web page
    */5 * * * *       /usr/pkg/bin/mrtg /PATH/TO/bulkbuild-count.cfg
    


2015年05月05日(火) 旧暦 [n年日記] [更新:"2015/05/05 14:52:11"]

#1 [pkgsrc] kde3 status

modena@makoto 23:36:10/150505(..cvs.netbsd.org/pkgsrc)% foreach i (`ls -ad */*kde3* |grep -v x11/`)
echo -n $i "\t" && ( cd $i; /export/git-repository/check-update/check-update )
end
audio/amarok-kde3                     amarok             (=) (3236 ) Now:   1.4.10 ->  1.4.10 Todo: not-to-list
chat/konversation-kde3          konversation             (=) (3236 ) Now:      1.1 ->     1.6 Todo: 
devel/kdiff3-kde3                     kdiff3             (=) (3236 ) Now:   0.9.91 ->  0.9.98 Todo: 
editors/kile-kde3                       kile             (=) (3236 ) Now:    2.0.2 ->   2.1.3 Todo: 
graphics/digikam-doc-kde3        digikam-doc             (=) (3236 ) Now:    0.9.5 ->     0.0 Todo: not-to-list
graphics/digikam-kde3                digikam             (=) (3236 ) Now:    0.9.6 ->     0.0 Todo: 4.9.0 
graphics/gwenview-i18n-kde3    gwenview-i18n             (=) (3236 ) Now:    1.4.2 ->     0.0 Todo: not-to-list
graphics/gwenview-kde3              gwenview             (=) (3236 ) Now:    1.4.2 ->   1.4.2 Todo: not-to-list
    /kipi-plugins-calendar-kde3  =>-calendar  (kipi-plugins) (3236 ) Now:    0.1.7 ->   1.9.0 Todo: 
graphics/kipi-plugins-kde3      kipi-plugins             (=) (3236 ) Now:    0.1.7 ->   1.9.0 Todo: 
graphics/libkdcraw-kde3            libkdcraw             (=) (3236 ) Now:    0.1.9 ->     0.0 Todo: not-to-list
graphics/libkexiv2-kde3            libkexiv2             (=) (3236 ) Now:    0.1.9 ->     0.0 Todo: not-to-list
graphics/libkipi-kde3                libkipi             (=) (3236 ) Now:    0.1.6 ->     0.0 Todo: not-to-list
meta-pkgs/kde3  misc/tellico-kde3    tellico             (=) (3236 ) Now:    1.3.6 ->  2.3.10 Todo: 
multimedia/kmplayer-kde3            kmplayer             (=) (3236 ) Now:  0.10.0c ->     0.0 Todo: not-to-list
net/kmldonkey-kde3                 kmldonkey             (=) (3236 ) Now:     0.11 ->     0.0 Todo: not-to-list
net/ktorrent-kde3                   ktorrent             (=) (3236 ) Now:    2.2.8 ->     0.0 Todo: not-to-list
print/kbibtex-kde3                   kbibtex             (=) (3236 ) Now:    0.2.1 ->0.2.3.91 Todo: 
sysutils/filelight-kde3            filelight             (=) (3236 ) Now:      1.0 ->     0.0 Todo: not-to-list
sysutils/k3b-kde3                        k3b             (=) (3236 ) Now:    1.0.5 ->   2.0.2 Todo: 
time/rsibreak-kde3                  rsibreak             (=) (3236 ) Now:    0.8.0 ->     0.0 Todo: not-to-list


2013年05月05日() 旧暦 [n年日記] [更新:"2014/01/19 09:09:56"]

#1 [DragonFly] DragonFly BSD 3.4.1 を入れた

今まで DragonFly の 3.2.2 + gcc47 で pkgsrc を試していたが、 wxGTK28 を作る時、何か変なことを言われるので、環境を新しくした。 xen3 の上で動かしている
> uname -a
DragonFly dragon344.i.ki.nu 3.4-RELEASE DragonFly v3.4.1-RELEASE #1: 
Wed Apr 24 19:18:32 PDT 2013     
root@pkgbox32.dragonflybsd.org:/usr/obj/build/home/justin/src/sys/GENERIC  i386
  • iso file を使って login: installer で始まる操作で設置
  • disk は 15GB しかなくて、Hammer FS は 10GB 以下ではだめだよ、 50GB がおすすめ、と言われたが、Hammer にして見た
  • pkgsrc と wip と personal-pkgsrc を /usr/pkgsrc に置く
  • (cd /usr/pkgsrc/pkgtools/bootstrap; 
       ./bootstrap --prefix=/usr/pkg --pkgdbdir=/var/db/pkg )
    
  • su になって sudo と zsh を bmake package-install
  • その後
    (cd /usr/pkgsrc/x11/wxGTK28; bmake package-install)
    
    しているところ

キー配置がこまったことに:

実は僕は変なことをしていて、US 鍵盤で JA 配置にしている。 installer では、ja.106x というのが何かな、と思って試しにそうして見たが、
  • Ctrl が Shift
  • 下線(_) や縦棒(|) (を入力する鍵)が見つかならない
もっとこまかく言うと、NetBSD の X11 で KINESIS を使っていて、 xmodmap で殆んど入替。DragonFly は vncviewer の画面から操作。 でもやっていられないので、今は ssh で入っている。

実はちょっと変なことになっていて、もう一度最初からやり直そうとは思っている:

  • pkg_info とすると、次のものしか出て来ない
    > pkg_info
    bootstrap-mk-files-20120415 *.mk files for the bootstrap bmake utility
    bmake-20110606nb1   Portable (autoconf) version of NetBSD 'make' utility
    pkg_install-20130131nb1 Package management and administration tools for pkgsrc
    > /usr/pkg/sbin/pkg_info
    bootstrap-mk-files-20120415 *.mk files for the bootstrap bmake utility
    bmake-20110606nb1   Portable (autoconf) version of NetBSD 'make' utility
    pkg_install-20130131nb1 Package management and administration tools for pkgsrc
    
  • 次のようにすると、とても沢山表示される
    > env PKG_DBDIR=/var/db/pkg pkg_info -u |wc
          15     120    1024
    > env PKG_DBDIR=/var/db/pkg pkg_info | wc
         118     807    7314
    
  • /usr/pkg/etc/mk.info には、次の行はある
    # Example /usr/pkg/etc/mk.conf file produced by bootstrap-pkgsrc
    # Thu Apr 25 02:26:49 UTC 2013
    
    #.ifdef BSD_PKG_MK      # begin pkgsrc settings
    
    PKG_DBDIR=              /var/db/pkg
    LOCALBASE=              /usr/pkg
    VARBASE=                /var
    PKG_TOOLS_BIN=          /usr/pkg/sbin
    PKGMANDIR=              man
    
    #.endif                 # end pkgsrc settings
    #.ifdef BSD_PKG_MK      # added by nrelease
    PKG_DEFAULT_OPTIONS=dri inet6
    #.endif                 # added by nrelease
    
    # http://www.na.rim.or.jp/~kano/tmp/docs/pkgsrc/faq.html
    #error
    #   You may confirm with following command that SU_CMD is set or not
    #   bmake show-var VARNAME=SU_CMD
    .if exists(/usr/pkg/bin/sudo)
    SU_CMD=        ${LOCALBASE}/bin/sudo /bin/sh -c
    .endif
    
.ifdef を外してあるのは、もしかして有効になっていない不安は外すため。

bootstrap:

あれ、もしかして bootstrap しなくてもいいのかな。
> ls -l /usr/*bin/pkg*
-r-xr-xr-x  1 root  wheel  2032 Apr 25 04:24 /usr/bin/pkg_radd
-r-xr-xr-x  1 root  wheel  5829 Apr 25 04:24 /usr/bin/pkg_search
> ls -l /usr/pkg/*bin/pkg*
-rwxr-xr-x  1 root  wheel  528320 May  4 23:41 /usr/pkg/bin/pkg-config
-r-xr-xr-x  1 root  wheel    2192 Apr 25 04:28 /usr/pkg/bin/pkg_leaves
-r-xr-xr-x  1 root  wheel    6172 Apr 25 04:29 /usr/pkg/bin/pkg_tarup
-r-xr-xr-x  1 root  wheel     224 Apr 25 04:29 /usr/pkg/bin/pkg_tarup_all
-r-xr-xr-x  1 root  wheel  131392 Apr 25 04:31 /usr/pkg/bin/pkgin
-rwxr-xr-x  1 root  wheel  241133 May  4 22:44 /usr/pkg/sbin/pkg_add
-rwxr-xr-x  1 root  wheel  235793 May  4 22:44 /usr/pkg/sbin/pkg_admin
-rwxr-xr-x  1 root  wheel  187268 May  4 22:44 /usr/pkg/sbin/pkg_create
-rwxr-xr-x  1 root  wheel  183222 May  4 22:44 /usr/pkg/sbin/pkg_delete
-rwxr-xr-x  1 root  wheel  219114 May  4 22:44 /usr/pkg/sbin/pkg_info

My first pkgin (初めての pkgin):

I've never been exposed to pkgin.
実は pkgin は使ったことがない(なかった)
> which emacs
emacs: Command not found.
> pkgin add emacs24
pkgin: Can't open database /var/db/pkgin/pkgin.db: unable to open database file: 
   No such file or directory
'pkgin -h' gives more information than 'man pkgin', right ?
man pkgin より pkgin -h の方が情報が多い (?)
> pkgin -h
Usage: pkgin [-cdfFhlnPtvVy] command [package ...]

Commands and shortcuts:
list                (ls  ) -  List installed packages.
avail               (av  ) -  List available packages.
install             (in  ) -  Perform packages installation or upgrade.
update              (up  ) -  Create and populate the initial database.
remove              (rm  ) -  Remove packages and depending packages.
upgrade             (ug  ) -  Upgrade main packages to their newer versions.
full-upgrade        (fug ) -  Upgrade all packages to their newer versions.
show-deps           (sd  ) -  Display direct dependencies.
show-full-deps      (sfd ) -  Display dependencies recursively.
show-rev-deps       (srd ) -  Display reverse dependencies recursively.
show-category       (sc  ) -  Show packages belonging to category.
show-pkg-category   (spc ) -  Show package's category.
show-all-categories (sac ) -  Show all categories.
keep                (ke  ) -  Mark package as "non auto-removable".
unkeep              (uk  ) -  Mark package as "auto-removable".
show-keep           (sk  ) -  Display "non auto-removable" packages.
show-no-keep        (snk ) -  Display "auto-removable" packages.
search              (se  ) -  Search for a package.
clean               (cl  ) -  Clean packages cache.
autoremove          (ar  ) -  Autoremove orphan dependencies.
export              (ex  ) -  Export "non auto-removable" packages to stdout.
import              (im  ) -  Import "non auto-removable" package list from file.
provides            (prov) -  Show what files a package provides.
requires            (req ) -  Show what files a package requires.
pkg-content         (pc  ) -  Show remote package's content.
pkg-descr           (pd  ) -  Show remote package's long-description.
pkg-build-defs      (pbd ) -  Show remote package's build definitions.
> sudo pkgin list
Database needs to be updated.
proceed ? [Y/n] 
reading local summary...
processing local summary...
updating database: 100%
pkgin: Could not fetch
  http://mirror-master.dragonflybsd.org/packages/i386/DragonFly-3.4/stable/All//pkg_summary.gz
Following URL is surely available, instead. これならあるようだ

repositories.conf:

> (cd /usr/pkg/etc/pkgin/; diff -u repositories.conf{.orig,})
--- repositories.conf.orig      2013-04-25 04:31:05.000000000 +0900
+++ repositories.conf   2013-05-05 12:24:54.990719000 +0900
@@ -23,4 +23,4 @@
 # Local repository (must contain a pkg_summary.gz or bz2)
 #
 # file:///usr/pkgsrc/packages/All
-http://mirror-master.dragonflybsd.org/packages/$arch/DragonFly-$osrelease/stable/All/
+http://mirror-master.dragonflybsd.org/packages/$arch/DragonFly-$osrelease/pkgsrc-2013Q1/All/
Above change makes things OK
これで行けた。
> sudo pkgin list
Database needs to be updated.
proceed ? [Y/n] 
reading local summary...
processing local summary...
updating database: 100%
pkg_summary.bz2                              100% 1779KB 444.8KB/s 903.3KB/s   00:04    
processing remote summary 
  (http://mirror-master.dragonflybsd.org/packages/i386/DragonFly-3.4/pkgsrc-2013Q1/All/)...
updating database:  85%
...
updating database: 100%
bmake-20110606nb1    Portable (autoconf) version of NetBSD 'make' utility
bootstrap-mk-files-20120415 *.mk files for the bootstrap bmake utility
pkg_install-20130131nb1 Package management and administration tools for pkgsrc
Probably, 'pkgin update' is the first thing to do.
本当は最初に update を使うのかな。

sudo pkgin install emacs24:

sudo pkgin install xauth
> diff -up /etc/ssh/sshd_config{.orig,}
--- /etc/ssh/sshd_config.orig   2013-05-05 13:27:17.498222000 +0900
+++ /etc/ssh/sshd_config        2013-05-05 13:25:31.816598000 +0900
@@ -120,7 +120,7 @@ UsePrivilegeSeparation sandbox              # Defaul
 #PermitTunnel no
 #ChrootDirectory none
 
-#XAuthLocation /usr/pkg/bin/xauth
+XAuthLocation /usr/pkg/bin/xauth
 
 # no default banner path
 #Banner none
sudo /etc/rc.d/sshd restart
Then I could do 'ssh -Y dragonfly-host' then emacs from outside
and gives me X11 emacs.
これで外から ssh -Y dragonfly-host で入ると、emacs が X11 環境で使える。 ただ、一番上の文字がとうふになっている。とうふというよりは?かな (同じか)。

pkg_radd and pkg_search:

> ls -l /usr/bin/*pkg*
-r-xr-xr-x  1 root  wheel  2032 Apr 25 04:24 /usr/bin/pkg_radd
-r-xr-xr-x  1 root  wheel  5829 Apr 25 04:24 /usr/bin/pkg_search
> pkg_search fldigi
No pkgsrc(7) tree found.
Fetching pkg_summary(5) file.
fetch: 
   http://mirror-master.dragonflybsd.org/packages/i386/DragonFly-3.4/stable/All/pkg_summary.bz2: 
   Not Found
fetch: 
   http://mirror-master.dragonflybsd.org/packages/i386/DragonFly-3.4/stable/All/pkg_summary.bz2: 
   Not Found
/usr/bin/pkg_search: cannot open /usr/pkgsrc/pkg_summary.bz2: No such file or directory
awk: can't open file /usr/pkgsrc/pkg_summary
 source line number 10

fldigi on DragonFly crashes (modular) xorg server:

で、何を調べたかったかと言うと、wip/fldigi や ham/fldigi を DragonFly の上で動くかを確めたい。
実は今は、 NetBSD/amd64 modular xorg server から ssh -Y dragonfly して fldigi と入力すると、何の表示も出る前に、マウスがかたまり、しばらくして、 (当然それしかないが) 手元の側の xorg server が再起動してしまう。 これは DragonFly 3.2.2 + gcc47 の話だったけれど、
DragonFly 3.4.1 でも同じだった。fldigi は 3.21.70 とか何でも。
本当は ssh -Y でなく、 単体で確めても見たいが、ちょっと大変なので、後ほど、ということで、 次に NetBSD/amd64 で gcc47 を使って作って見ようと思う。
USE_PKGSRC_GCC=yes
GCC_REQD=4.7
というようなことを /etc/mk.conf に書いておけば良いようだけれど、このままでは、 pbulk するのに、circular dependency になってしまうので、まずは gcc47 を、これの設定なしに作っておくことにする。
関連全部作り直しということで /etc/mk.conf に、次のように書いて
PACKAGES=/packages-gcc47
これに合せるように /usr/pkg_bulk/etc/pbulk.conf にも、
packages=/packages-gcc47
としておく。


2010年05月05日(水) 旧暦 [n年日記] [更新:"2010/05/05 17:27:53"]

#3 [emacs] pretest 23.1.97 on NetBSD/amd64 (STABLE_5.0)

still core dumps while making it:
Directory /export/pkgsrc/personal-pkgsrc/emacs-pretest/work/emacs-23.1.97/lisp/./mh-e
Directory /export/pkgsrc/personal-pkgsrc/emacs-pretest/work/emacs-23.1.97/lisp/./mail
Directory /export/pkgsrc/personal-pkgsrc/emacs-pretest/work/emacs-23.1.97/lisp/./language
Fatal error (11)[1]   Segmentation fault (core dumped) EMACSLOADPATH=/e...
gmake[3]: *** [custom-deps] Error 139
gmake[3]: Leaving directory `/export/pkgsrc/personal-pkgsrc/emacs-pretest/work/emacs-23.1.97/lisp'
gmake[2]: *** [/export/pkgsrc/personal-pkgsrc/emacs-pretest/work/emacs-23.1.97/lisp/cus-load.el] Error 2
gmake[2]: Leaving directory `/export/pkgsrc/personal-pkgsrc/emacs-pretest/work/emacs-23.1.97/lisp'
gmake[1]: *** [lisp] Error 2
gmake[1]: Leaving directory `/export/pkgsrc/personal-pkgsrc/emacs-pretest/work/emacs-23.1.97'
gmake: *** [bootstrap] Error 2
*** Error code 2
modena@makoto 17:24:19/100505(..personal-pkgsrc/emacs-pretest)%  \
gdb  work/emacs-23.1.97/src/emacs ./work/emacs-23.1.97/lisp/emacs.core
GNU gdb 6.5
...
Program terminated with signal 11, Segmentation fault.
#0  0x00007f7ff9c3440a in kill () from /usr/lib/libc.so.12
(gdb) bt
#0  0x00007f7ff9c3440a in kill () from /usr/lib/libc.so.12
#1  <signal handler called>
#2  0x000000000051a3dc in re_search_2 ()
#3  0x0000000000510f7f in search_buffer ()
#4  0x0000000000512943 in search_command ()
#5  0x0000000000512b7e in Fre_search_forward ()
#6  0x000000000053a28a in Ffuncall ()
#7  0x000000000057075b in Fbyte_code ()
#8  0x0000000000539d27 in funcall_lambda ()
#9  0x000000000053a0e6 in Ffuncall ()
#10 0x000000000057075b in Fbyte_code ()
#11 0x0000000000539d27 in funcall_lambda ()
#12 0x000000000053a0e6 in Ffuncall ()
#13 0x000000000057075b in Fbyte_code ()
#14 0x0000000000539d27 in funcall_lambda ()
#15 0x000000000053a0e6 in Ffuncall ()
#16 0x000000000057075b in Fbyte_code ()
#17 0x0000000000539d27 in funcall_lambda ()
#18 0x0000000000539e8c in apply_lambda ()
#19 0x0000000000539537 in Feval ()
#20 0x0000000000538ac4 in internal_condition_case ()
#21 0x00000000004d805a in top_level_1 ()
#22 0x0000000000538bc7 in internal_catch ()
#23 0x00000000004d80fb in command_loop ()
#24 0x00000000004d84ba in recursive_edit_1 ()
#25 0x00000000004d860e in Frecursive_edit ()
#26 0x00000000004cd31e in main ()
(gdb) 
The same as 23.1.96

#2 [pkgsrc] 'CVS password:' asked but it should be empty.

If we have to type return for following prompt,
=> Extracting cached CVS archive "auctex-auctex-2010-04-28.tar.gz".
=> Logging in to :pserver:anonymous@cvs.savannah.gnu.org:/sources/auctex.
Logging in to :pserver:anonymous@cvs.savannah.gnu.org:2401/sources/auctex
CVS password:
It might be missing just colon(:), which gives empty password.
-CVS_ROOT.auctex=       :pserver:anonymous@cvs.savannah.gnu.org:/sources/auctex
+CVS_ROOT.auctex=       :pserver:anonymous:@cvs.savannah.gnu.org:/sources/auctex
see

#1 [comp] ssh -Y を ~/.ssh/ssh_config に設定

4/28 の日記 (同 3/23) に、ssh -Y 等のことに関連して、
  • ssh 元 (client) の /etc/ssh/ssh_config に次のように書いておいて
    47  # If you use xorg from pkgsrc then uncomment the following line.
    48      XAuthLocation /usr/pkg/bin/xauth
    
  • ssh -Y hostname を使っている
と書いた。ここから二段階進む話。 これらは ~/.ssh/config に設定が可能で、例えば、
ForwardX11Trusted yes
ForwardX11 yes
XAuthLocation /usr/pkg/bin/xauth
と書いておけば、/etc/ssh/ssh_config は変更する必要がないし、 -Y も付ける必要がなく、単に
ssh hostname
で行けることが分った。 (server 側の /etc/ssh/sshd_config には次の行が必要)
X11Forwarding yes
ただし、いつもこのように ~/.ssh/config に書いておくのが安全かどうかは良く考えていない。
この ~/.ssh/config の書き方としては man sshd_config が参考になるけれど、 Match 文は書けないようだ。

Comments related this article

Re: ssh -Y を ~/.ssh/ssh_config に設定 by soda    2010/05/05 18:52
対象サーバのroot権限があれば、画面もキー入力も盗むことができますので、安全じゃあ...
Re: ssh -Y を ~/.ssh/ssh_config に設定 by makoto fujiwara    2010/05/10 10:58
反応ありがとうございます。 「対象サーバの root 権限がある」 のはかなり限られると...
Re: ssh -Y を ~/.ssh/ssh_config に設定 by soda    2010/05/10 11:48
まあ家のサーバとか、会社の Intranet 内のサーバであれば、(運用にもよりますが) OK ...

2008年05月05日(月) 旧暦 [n年日記] [更新:"2008/05/06 07:01:47"]

#2 [NetBSD] kuro-box/PRO で NetBSD を起動

やっと( 清原版 で) kernel を読んで起動するところまでは出来た
Marvell>> bootp 0x8000
BOOTP broadcast 1
Using egiga0 device
TFTP from server 192.168.1.216; our IP address is 192.168.1.36
Filename '/netbsd-arm.bin'.
Load address: 0x8000
Loading: #################################################################
 ....
done
Bytes transferred = 4844852 (49ed34 hex)
Marvell>> go 0x8000
## Starting application at 0x00008000 ...

NetBSD/evbarm (kuroboxarm) booting ...
Loaded initial symtab at 0xc0409360, strtab at 0xc044344c, # entries 14760
pmap_postinit: Allocated 35 static L1 descriptor tables
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 4.99.58 (KUROBOXARM) #0: Tue May  6 01:00:08 JST 2008
        root@modena:/export/20080328/src/sys/arch/evbarm/compile/obj/KUROBOXARM
..
dmesg の続き evbarm では *.bin を作るのが当り前のようだ。(上のは手で変換したけれど)。

#1 [NetBSD] 今日の wget

wget -nc -q -r --no-host-directories \
	ftp://ftp5.jp.netbsd.org/pub/NetBSD-daily/HEAD/200804270000Z
-nc			同じものがあれば取得しない
-q			表示は最少限
-r			再帰的に取得
--no-host-directories	保存する時に機械の名前の directory を作らない


2005年05月05日(木) 旧暦 [n年日記] [更新:"2005/05/06 00:49:49"]

#1 [bulk-build][NetBSD][pkgsrc] bulk build with chroot

と気が付いたのは最近のこと。 いままで使っていた 1.2GHz の 机上機に 3.99.3 を入れ、 /export を 22G くらい空けて 実行開始。

いまメール読書きや、これを書いているのは Mac mini

distfiles はいつもは NFS mount しているがそれは使えないかな と思っていたが IRC で聞いたら、fukaumi さんが mount_null を使えば と教えてくれた。

# sudo mount_null /amd/host/distfiles /export/chroot/usr/pkgsrc/distfiles のようにしたら見えるようになった。

23:42 現在の状況:

OSReleaseCPUBeginelapsedbuiltdone/totalexpected to fin
Mac OS X10.4G4/8004/29 22:006 days18863095/54635/09
NetBSD/macppc3.99.3G4/1.2GHz5/05 17:006 H205250/54705/11


2003年05月05日(月) 旧暦 [n年日記]

#3 [無題] 錦糸町からMOA+

都立現代美術館 にて サム・フランシス展
都バスにて白河二丁目から秋葉原まで
結局何も買わずにそのまま帰る。

#2 [機械] 一台機械室に移動

3000/200 に入っている 1.6Q を物理的に移動

#1 [NetBSD] build.sh 20030502-ts

cc -O2 -pipe -Werror -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-uninitialized -Wno-main -msoft-float -ffreestanding -I. -I/export/20
030502ts/src/sys/arch -I/export/20030502ts/src/sys -nostdinc -DDIAGNOSTIC -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -Dmacppc -c /export/20030502ts/src/sys/arch/ma
cppc/macppc/disksubr.c
/export/20030502ts/src/sys/arch/macppc/macppc/disksubr.c:509: conflicting types for `readdisklabel'
/export/20030502ts/src/sys/sys/disklabel.h:501: previous declaration of `readdisklabel'
*** Error code 1

Stop.
nbmake: stopped in /export/20030502ts/src/sys/arch/macppc/compile/GENERIC

src/sys/arch/macppc/macppc/disksubr.c:

507 const char *
508 readdisklabel(dev, strat, lp, osdep)
509         dev_t dev;
510         void (*strat)(struct buf *);
511         struct disklabel *lp;
512         struct cpu_disklabel *osdep;

src/sys/sys/disklabel.h:

500 char    *readdisklabel __P((dev_t, void (*)(struct buf *), struct disklabel *,
501             struct cpu_disklabel *));
const が付いただけかな。1.81 になれば付いている。
cvs update -A src/sys/sys/disklabel.h
(もしかして椿井さんが先に合わせた ?)

ZS_CONSOLE_ABORT が GENERIC に入っている:

:

cc -msoft-float -ffreestanding -O2 -Wreturn-type -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wno-sign-compare -Wno-uninitialized -Dmacppc -I. -I../../../../arch -I../../../.. -nostdinc -DLKM -DDIAGNOSTIC -DZS_CONSOLE_ABORT -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -c ../../../../dev/ccd.c
cc1: warnings being treated as errors
../../../../dev/ccd.c: In function `ccdgetdisklabel':
../../../../dev/ccd.c:1418: warning: assignment discards qualifiers from pointer target type
*** Error code 1
cvs update -D 20030504-UTC sys/dev/ccd.c
cvs update -D 20030504-UTC sys/dev/vnd.c


2002年05月05日() 旧暦 [n年日記]

#2 [買物] ヨドバシカメラで office


#1 [館山] 混んでいるので 465 号で

 7:58 発
17:00 戻
知人宅で ADSL の申込をしておく


2001年05月05日() 旧暦 [n年日記]

#4 [Mailing-List] macosx-jp の古いメールを取寄せる

get last:500 して (mp = Multi-Part は付けない)
touch /tmp/aa
makoto@tateyama ■14:10:36/010505(~...ml/macosx-jp)> foreach i ( 35 36 37 38 39 40 )
foreach? echo $i
foreach? sed '1,/^$/d' $i | sed '/^$/d' >> /tmp/aa
foreach? end
cd /tmp
uudecode aa
tar ztvf /tmp/msend.tar.gz
その中で、
Subject: [macosx-jp:07258] Re: XFree86 キー入力 (Re: Network   関係の挙動不審)
From: akashi@boarderz.com
Date: Fri, 27 Apr 2001 19:18:29 +0900
X-ML-Name: macosx-jp
X-Mail-Count: 07258
のメールに、自分用に書足したもの。
  • 次のようにして XFree86/4.0.3 + darwin を入手する
    4.0.2/source/4.0.3 の差分 を当てて出来た XFree86-4.0.3 に、更に 4.0.3 からの Darwin 差分 を当てる
  • (あるいは) AppleからCVSで XFree86 をもってくる
    http://www.publicsource.apple.com/tools/cvs/read-only.html (次の一行目の user は 自分の userid を記入する
    [localhost:~/cvs] makoto% setenv CVSROOT :pserver:user@anoncvs.opensource.apple.com:/cvs/Darwin
    [localhost:~/cvs] makoto% cvs login
    (Logging in to mef@anoncvs.opensource.apple.com)
    CVS password:
    [localhost:~/cvs] makoto% cvs checkout -c    
    
    とすると、 一覧が表示 される。
    cvs -z3 checkout XFree86 とすればいいと思う。
  • cvs の方はなかを見たら既に 4.0.3 のようだったので xlocaleのパッチだけをあてる
    http://www.ab.wakwak.com/~tino/darwin/XFree86-4.0.3-xlocale.diff
  • XFree86/xc/config/cf/darwin.cf の StandardDefines に
    -DX_LOCALE を追加
  • cd XFree86/xc;make World;
    real 48m58.128s (Web 閲覧しながらですけど)。僕の場合は次のようにした。
    [localhost:~/cvs/XFree86/xc] makoto% time make World >& ../make-world-log
    1936.390u 863.220s 1:53:44.75 41.0%     0+0k 9053+13014io 0pf+0w
    
    [localhost:cvs/XFree86/xc] root# make install >&../make-install-log
    
    45 分とか 1:15 という話を見ていたが、このようにかかってしまった。 41% とは変。(多分 disk が遅いということ)
  • XAquaをとってくる
    http://sourceforge.net/projects/xonx/
  • 井上さんの画面から接続されて いる Web に 記述 の設置方法 にしたがって設置する
    XDarwin.dmg を開けられない。
    Application -> Diskcopy に載せたら、開いた。
  • /usr/X11R6/bin/XDarwinStartup -quartz -rootless&
  • setenv DISPLAY localhost:0.0
  • /usr/X11R6/bin/xclock&
    これで時計を表示する
  • window manager は無かな。それが rootless ?
  • どこかで読んだ通り鍵が入力出来ない
  • sleep して戻してもだめ

[macosx-jp:07187] Binary of XFree86-4.0.3 with X locale:

でも良く読んでいたら、組立済のものもあったと思う。 こっちの方が日付・番号としては古いが...
X-ML-Name: macosx-jp
X-Mail-Count: 07187
http://misc.toanet.org/darwin/epkg-0.1.0-darwin-ppc.tar.gz
http://www.ab.wakwak.com/~tino/darwin/xlocale.html

#3 [SPAM] (Virus) 3/25 日頃に受取った Virus 入の From: 無のメールは

Content-Type: multipart/mixed; の後が、次のようになっている。
2707: boundary="--VEDQJS1A3S16B8PQ38PMBSPU3GLYZ"
2708: boundary="--VEO5UBKHIJS9IF0X"
2709: boundary="--VEDQJS1A3S16B8PQ38PMBSPU3GLYZ"
2715: boundary="--VE927CHAFCT6389MNGPU7KL"
2716: boundary="--VE8XENGDIBS56V"
2717: boundary="--VE927CHAFCT6389MNGPU7KL"
2718: boundary="--VE8XENGDIBS56V"
--VE って何が作っているのだろう。Virus Enabled だったりして。 きょう来たものも
Received: from cello.ocn.ne.jp (cello.ocn.ne.jp [210.190.142.43])
...
Received: from x53w000w (p46-dna04oumehigasi.tokyo.ocn.ne.jp [211.129.128.46])
        by cello.ocn.ne.jp (8.9.1a/OCN/) with SMTP id LAA26511
...
Date: Sat, 5 May 2001 11:58:25 +0900 (JST)
Message-Id: <200105050258.LAA26511@cello.ocn.ne.jp>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="--VEOTUF41I3SLAZG1"

----VEOTUF41I3SLAZG1
Content-Type: text/plain; charset="us-ascii"



----VEOTUF41I3SLAZG1
Content-Type: application/octet-stream; name="ICHPFJIC.EXE"
Content-Disposition: attachment; filename="ICHPFJIC.EXE"
Content-Transfer-Encoding: base64
--VEO になっている。

#2 [MacOSX] emacs-21.0.100 を組立てた人がいるというので真似をして見る

leim-21.0.100 がなかったので leim-21.0.101 で代用
checking the machine- and system-dependent files to find out
 - which libraries the lib-src programs will want, and
 - whether the GNU malloc routines are usable
conftest.c:2: /Users/makoto/src/emacs-21.0.100/src/s/darwin.h: No such file or directory
conftest.c:3: /Users/makoto/src/emacs-21.0.100/src/m/powermac.h: No such file or directory
conftest.c:2: /Users/makoto/src/emacs-21.0.100/src/s/darwin.h: No such file or directory
conftest.c:3: /Users/makoto/src/emacs-21.0.100/src/m/powermac.h: No such file or directory
....
  What compiler should emacs be built with?               cc  -g -O2 
  Should Emacs use the GNU version of malloc?             yes
  Should Emacs use a relocating allocator for buffers?    yes
  Should Emacs use mmap(2) for buffer allocation?         no
  What window system should Emacs use?                    none
  What toolkit should Emacs use?                          none
  Where do we find X Windows header files?                NONE
  Where do we find X Windows libraries?                   NONE
  Does Emacs use -lXaw3d?                                 no
  Does Emacs use -lXpm?                                   no
  Does Emacs use -ljpeg?                                  no
  Does Emacs use -ltiff?                                  no
  Does Emacs use -lungif?                                 no
  Does Emacs use -lpng?                                   no
  Does Emacs use X toolkit scroll bars?                   no
...

ちょっと甘かった。作った人に頼んで直してもらった。
creating src/Makefile
In file included from junk.c:11:
config.h:102: warning: `HAVE_MENUS' redefined
config.h:61: warning: this is the location of the previous definition
[localhost:~/src/emacs-21.0.100] makoto% less junk.c
junk.c: No such file or directory
.....
time make
.....
macterm.h:223: conflicting types for `x_display_info_for_display'
xterm.h:377: previous declaration of `x_display_info_for_display'
macterm.h:224: conflicting types for `x_display_info_for_name'
xterm.h:378: previous declaration of `x_display_info_for_name'
こういう時は
./configure --without-x ; time make
とすればいいそうだ。
Updating /Users/makoto/src/emacs-21.0.100/leim/leim-list.el ... done
699.110u 56.080s 24:35.58 51.1% 0+0k 1692+1977io 0pf+0w
しかし起動すると、Fatal error (6).Abort になってしまう。

#1 [MacOSX] xonx patch



2000年05月05日(金) 旧暦 [n年日記]

#1 [URL] digital カメラを買いたい人がいたので




最近の日記
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
2024年01月21日
uselocale vs setlocale (textproc/R-readxl)
以上、10 日分です。
タイトル一覧
カテゴリ分類
Powered by hns-2.19.9, HyperNikkiSystem Project

Count.cgi (since 2000/02/05)