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

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

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
としておく。



最近の日記
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)
以上、1 日分です。
タイトル一覧
カテゴリ分類
Powered by hns-2.19.9, HyperNikkiSystem Project

Count.cgi (since 2000/02/05)