diff --git a/NetBSD8/adduser/.fvwm2rc b/NetBSD8/adduser/.fvwm2rc new file mode 100644 index 0000000..5e40827 --- /dev/null +++ b/NetBSD8/adduser/.fvwm2rc @@ -0,0 +1,4 @@ +# +# .fvwm2rc file for e.sakata-kango.jp +# +include(`.fvwm2rc.default') diff --git a/NetBSD8/adduser/.xinitrc b/NetBSD8/adduser/.xinitrc new file mode 100755 index 0000000..56fe46c --- /dev/null +++ b/NetBSD8/adduser/.xinitrc @@ -0,0 +1,7 @@ +#!/bin/sh +PATH=$PATH:/usr/local/bin:/usr/sbin:/usr/local/bin/Xc:/usr/local/bin/FVWM +export PATH +/usr/local/bin/FVWM/fvwm2 & +kterm -C -T console: -g 80x30-0+0 & +kterm -g 80x30+0-200 -e $HOME/adduser.sh +sleep 4 diff --git a/NetBSD8/adduser/adduser b/NetBSD8/adduser/adduser new file mode 100755 index 0000000..8c0d420 --- /dev/null +++ b/NetBSD8/adduser/adduser @@ -0,0 +1,66 @@ +#!/bin/sh +final() { + stty echo + exit +} + +trap final INT QUIT TERM TERM EXIT + +readp() { + prompt=${1:-"Password: "} + while true; do + stty -echo + echo -n "$prompt" >&2 + read x + case "$x" in + ????????*) ;; + *) echo "Password too short. Longer one please." >&2 + continue ;; + esac + case "$x" in + *[A-Za-z]**) ;; + *) echo "Password should have some Alphabet." >&2 + continue ;; + esac + case "$x" in + *[0-9]**) ;; + *) echo "Password should have some number(digit)." >&2 + continue ;; + esac + break + done + stty echo + echo "$x" + echo >&2 +} + +# Reading user +while true; do + echo -n "New user name: " + read user + if getent passwd "$user" >/dev/null 2>&1; then + echo "User [$user] already exists. Try another name." + continue + fi + break +done +# Read password +while true; do + p1=`readp "New Password: "` + p2=`readp "Password Again: "` + if [ x"$p1" != x"$p2" ]; then + echo "Password mismatch!! Try again..." >&2 + continue + fi + enc=`pwhash "$p1"` + if useradd -p "$enc" -g users -G operator -m -s /bin/zsh $user; then + chmod 755 /home/$user # Workaround for NetBSD8 + cat<<-EOF + ===================================================== + User [$user] successfully created + ===================================================== + EOF + sleep 4 + break + fi +done diff --git a/NetBSD8/adduser/adduser.sh b/NetBSD8/adduser/adduser.sh new file mode 100755 index 0000000..da9aee9 --- /dev/null +++ b/NetBSD8/adduser/adduser.sh @@ -0,0 +1,3 @@ +#!/bin/sh +mydir=`(cd $(dirname $0); pwd -P)` +sudo $mydir/adduser diff --git a/NetBSD8/cloneuser/.fvwm2rc b/NetBSD8/cloneuser/.fvwm2rc new file mode 100644 index 0000000..5e40827 --- /dev/null +++ b/NetBSD8/cloneuser/.fvwm2rc @@ -0,0 +1,4 @@ +# +# .fvwm2rc file for e.sakata-kango.jp +# +include(`.fvwm2rc.default') diff --git a/NetBSD8/cloneuser/.xinitrc b/NetBSD8/cloneuser/.xinitrc new file mode 100755 index 0000000..b762b48 --- /dev/null +++ b/NetBSD8/cloneuser/.xinitrc @@ -0,0 +1,9 @@ +#!/bin/sh +PATH=$PATH:/usr/local/bin:/usr/local/bin/Xc:/usr/local/bin/FVWM +export PATH +/usr/local/bin/FVWM/fvwm2 & +kterm -C -T console: -g 80x30-0+0 & +kterm -g 80x30+0-200 -e /root/clone_me_gpt.sh +sleep 3 +shutdown -r now +kterm diff --git a/NetBSD8/etc/master.passwd-add b/NetBSD8/etc/master.passwd-add new file mode 100644 index 0000000..c0c9a88 --- /dev/null +++ b/NetBSD8/etc/master.passwd-add @@ -0,0 +1,2 @@ +clone:$sha1$22916$39V170on$HBvcW3WvxCJGmhh7v5TvNOhkX84d:0:100::0:0::/etc/cloneuser:/bin/sh +adduser:$sha1$23105$Y0NHPQUv$Ymo/ToSzjO6XHw.a99IBpg/C5Yfm:1000:100::0:0::/etc/adduser:/bin/sh diff --git a/NetBSD8/etc/skel/.Xdefaults b/NetBSD8/etc/skel/.Xdefaults new file mode 100644 index 0000000..8736905 --- /dev/null +++ b/NetBSD8/etc/skel/.Xdefaults @@ -0,0 +1,7 @@ +!! +!! .Xdefaults for koeki-u.ac.jp users +!! + + + +#include "/etc/skel/.Xdefaults.default" diff --git a/NetBSD8/etc/skel/.Xdefaults.default b/NetBSD8/etc/skel/.Xdefaults.default new file mode 100644 index 0000000..3ff8cfb --- /dev/null +++ b/NetBSD8/etc/skel/.Xdefaults.default @@ -0,0 +1,178 @@ +OpenWindows.WorkspaceColor: #40a0c0 +OpenWindows.IconLocation: bottom +!!!openIm causes MOJIBAKE +!!!KTerm*openIm: true +kterm*allowSendEvents: true +kterm*vt100*translations: #override\ + Mod1F1: set-vt-font(d) \n\ + Mod1F2: set-vt-font(2) \n\ + Mod1F3: set-vt-font(3) \n\ + Mod1F4: set-vt-font(4) \n\ + Mod1F5: set-vt-font(5) \n\ + Mod1F6: set-vt-font(6) \n\ + Mod1F8: set-reverse-video(toggle) \n\ + Mod1F9: hard-reset() \n\ + Mod1e: set-kanji-mode(euc) \n\ + Mod1s: set-kanji-mode(sjis) \n\ + Ctrl: scroll-back(1,page) \n\ + Ctrl: scroll-forw(1,page) \n\ + : scroll-back(1,halfpage) \n\ + : scroll-forw(1,halfpage) \n\ + Shiftspace: begin-conversion(JAPANESE_CONVERSION) +kterm*vt100*ShiftF29: scroll-back(1,page) \n\ + ShiftF35: scroll-forw(1,page) \n\ + ShiftF31: select-cursor-start() \ + select-cursor-end(PRIMARY,CUT_BUFFER0) \n\ + ShiftF27: scroll-back(1,1) \n\ + ShiftF33: scroll-forw(1,1) +!kterm*ScrollBar: on +kterm*saveLines: 1000 +kterm*reverseVideo: on +xterm*reverseVideo: on +kterm*bordercolor: blue +!kterm*statusLine: True +!kterm*statusNormal: True +kterm*title: Kterm: +!kterm*titeInhibit: true +!kterm*romanKanaFont: a14 +kterm*KanjiMode: utf8 +!kterm*cursorColor: LemonChiffon +kterm*pointerColor: spring green +kterm*borderColor: cyan +kterm*background: gray25 +!kterm*textColor4: red +!KTerm.vt100.fontList: -microsoft-min-medium-r-normal--32-*-*-*-c-*-*-* +!KTerm.vt100.boldFontList: -microsoft-min-bold-r-normal--32-*-*-*-c-*-*-* +!kterm*fontList: -*-fixed-medium-normal--16-iso* +kterm*kanjiFont: kanji16 +kterm*font: 8x16 +kterm*foreground: ivory +kterm*VT100*textColor4: SkyBlue1 +kterm*VT100*textColor1: lightpink +canna*reverseVideo: on +emacs*reverseVideo: on +Kinput2*conversionEngine: canna +Kinput2*Iroha.irohafile: /home/okoma/yuuji/.canna +Kinput2*wnnEnvrc: /usr2/local/lib/ja_JP/wnnenvrc +Kinput2*modeLocation: tracktext +!Kinput2*XlcConversionStartKey: Ctrlsemicolon +Kinput2*SeparateConversion.input: false +Kinput2*selectionShell.input: false +Kinput2*auxShell.input: false +Kinput2*ConversionStartKeys: Ctrlo\n\ + Shiftspace\n\ + Kanji + +#include "script/Xdefaults/tgif" +Xpbiff*mhscan: on +Xpbiff*scan_command: scan -file +mule*lineSpace: 0+0 +Emacs*reverseVideo: off +xemacs*reverseVideo: off +!Emacs*foreground: ivory +!Emacs*background: gray20 +Emacs*cursorColor: ivory +Emacs*pointerColor: pink +Emacs*menubar.font: lucidasans-bolditalic-12 +Emacs*menubar.background: cadet blue +Emacs*menubar.foreground: black +Emacs*menu.popup.font: lucidasans-italic-12 +Emacs.italic.attributeBackground: cadet blue +xemacs.modeline.attributeForeground: gray20 +xemacs.modeline.attributeBackground: mistyrose +xemacs.default.attributeForeground: ivory +xemacs.default.attributeBackground: gray30 +!mule*foreground: black +!mule*background: wheat +! Mule-2.0 +Emacs*FontSetList: i,16,14,18,24,48 +Emacs*FontSet-14:\ + -*-fixed-medium-r-*--14-*-iso8859-1,\ + -*-fixed-medium-r-*--14-*-iso8859-2,\ + -*-fixed-medium-r-*--14-*-iso8859-3,\ + -*-fixed-medium-r-*--14-*-iso8859-4,\ + -*-fixed-medium-r-*--14-*-iso8859-5,\ + -*-fixed-medium-r-*--14-*-iso8859-7,\ + -*-fixed-medium-r-*--14-*-iso8859-8,\ + -*-fixed-medium-r-*--14-*-iso8859-9,\ + -*-fixed-medium-r-*--14-*-viscii1.1-1,\ + -*-fixed-medium-r-*--14-*-mulearabic-0,\ + -*-fixed-medium-r-*--14-*-mulearabic-1,\ + -*-fixed-medium-r-*--14-*-mulearabic-2,\ + -*-fixed-medium-r-*--14-*-muleipa-1,\ + -*-fixed-medium-r-*--14-*-jisx0201.1976-*,\ + -*-fixed-medium-r-*--14-*-jisx0208.1983-*,\ + -*-fixed-medium-r-*--14-*-jisx0212.1990-*, +Emacs.Fontset-0: -*-fixed-medium-r-normal--16-*-*-*-*-*-fontset-16,\ + ascii:-*-fixed-medium-r-normal-*-16-*-iso8859-1,\ + japanese-jisx0208:-*-fixed-medium-r-normal-*-16-*-jisx0208*,\ + chinese-gb2312:-*-*-medium-r-normal--16-*-*-*-*-*-gb2312*,\ + korean-ksc5601:-*-*-medium-r-normal--16-*-*-*-*-*-ksc5601* +Emacs.Fontset-1: -*-fixed-medium-r-normal--14-*-*-*-*-*-fontset-14,\ + ascii:-*-fixed-medium-r-normal-*-14-*-iso8859-1,\ + japanese-jisx0208:-*-fixed-medium-r-normal-*-14-*-jisx0208*,\ + chinese-gb2312:-*-*-medium-r-normal--14-*-*-*-*-*-gb2312*,\ + korean-ksc5601:-*-*-medium-r-normal--14-*-*-*-*-*-ksc5601* +Emacs.Fontset-2: -*-fixed-medium-r-normal--24-*-*-*-*-*-fontset-24,\ + ascii:-*-fixed-medium-r-normal-*-24-*-iso8859-1,\ + japanese-jisx0208:-*-fixed-medium-r-normal-*-24-*-jisx0208*,\ + chinese-gb2312:-*-*-medium-r-normal--24-*-*-*-*-*-gb2312*,\ + korean-ksc5601:-*-*-medium-r-normal--24-*-*-*-*-*-ksc5601* +Emacs.Fontset-3: -*-hgseikaishotai-medium-r-normal--16-*-*-*-*-*-fontset-mojikyo,\ + ascii:-*-fixed-medium-r-normal-*-16-*-iso8859-1,\ + japanese-jisx0208:-*-hgseikaishotai-medium-r-normal-*-16-*-jisx0208*,\ + chinese-gb2312:-*-*-medium-r-normal--16-*-*-*-*-*-gb2312*,\ + korean-ksc5601:-*-*-medium-r-normal--16-*-*-*-*-*-ksc5601* +Emacs.Fontset-9: -*-hgseikaishotai-medium-r-normal--16-*-*-*-*-*-fontset-sk,\ + ascii:-*-fixed-medium-r-normal-*-16-*-iso8859-1,\ + japanese-jisx0208:-*-hgseikaishotai-medium-r-normal-*-0-*-jisx0208*,\ + chinese-gb2312:-*-*-medium-r-normal--*-*-*-*-*-*-gb2312*,\ + korean-ksc5601:-*-*-medium-r-normal--*-*-*-*-*-*-ksc5601* +!!Emacs.Fontset-5: -*-hgheiseikakugothictaiw3-medium-r-normal--16-*-*-*-*-*-fontset-normal,\ +Emacs.Fontset-5: -*-fixed-medium-r-normal--16-*-*-*-*-*-fontset-normal,\ + japanese-jisx0208:-*-fixed-medium-r-normal-*-16-*-jisx0208* +Emacs.Fontset-6: -*-fixed-medium-i-normal--16-*-*-*-*-*-fontset-normal,\ + japanese-jisx0208:-*-hgheiseikakugothictaiw3-medium-o-normal-*-0-*-jisx0208* +Emacs.Fontset-7: -*-fixed-bold-r-normal--16-*-*-*-*-*-fontset-normal,\ + japanese-jisx0208:-*-hgheiseikakugothictaiw7-bold-r-normal-*-0-*-jisx0208* +Emacs.Fontset-8: -*-fixed-bold-i-normal--16-*-*-*-*-*-fontset-normal,\ + japanese-jisx0208:-*-hgheiseikakugothictaiw7-bold-i-normal-*-0-*-jisx0208* +Emacs.Font: fontset-standard +Emacs*FontSet-16i: -*-fixed-medium-i-normal--16-*-iso8859-1\ + -*-fixed-medium-r-*--16-*-jisx0208.1983-* +Emacs*FontSet-16:\ + -sony-fixed-medium-r-*--16-*-iso8859-1,\ + -*-fixed-medium-r-*--16-*-iso8859-2,\ + -*-fixed-medium-r-*--16-*-viscii1.1-1,\ + -*-fixed-medium-r-*--16-*-mulearabic-0,\ + -*-fixed-medium-r-*--16-*-mulearabic-1,\ + -*-fixed-medium-r-*--16-*-mulearabic-2,\ + -*-fixed-medium-r-*--16-*-muleipa-1,\ + -*-fixed-medium-r-*--16-*-jisx0201.1976-*,\ + -jis-fixed-medium-r-*--16-*-jisx0208.1983-*,\ + -*-fixed-medium-r-*--16-*-jisx0212.1990-*,\ + -*-medium-r-*--16-*-gb2312.1980-*,\ + -*-mincho-medium-r-*--16-*-ksc5601.1987-*,\ + -*-fixed-medium-r-*--16-*-tis620.2529-1 +Emacs*FontSet-24:\ + -sony-fixed-medium-r-*--24-*-iso8859-1,\ + -*-fixed-medium-r-*--24-*-iso8859-2,\ + -*-fixed-medium-r-*--24-*-iso8859-3,\ + -*-fixed-medium-r-*--24-*-iso8859-4,\ + -*-fixed-medium-r-*--24-*-iso8859-5,\ + -*-fixed-medium-r-*--24-*-iso8859-7,\ + -*-fixed-medium-r-*--24-*-iso8859-8,\ + -*-fixed-medium-r-*--24-*-iso8859-9,\ + -*-fixed-medium-r-*--24-*-viscii1.1-1,\ + -*-fixed-medium-r-*--24-*-mulearabic-0,\ + -*-fixed-medium-r-*--24-*-mulearabic-1,\ + -*-fixed-medium-r-*--24-*-mulearabic-2,\ + -*-fixed-medium-r-*--24-*-muleipa-1,\ + -*-fixed-medium-r-*--24-*-jisx0201.1976-*,\ + -*-fixed-medium-r-*--24-*-jisx0208.1983-*,\ + -*-fixed-medium-r-*--24-*-jisx0212.1990-*,\ + -*-medium-r-*--24-*-gb2312.1980-*,\ + -*-mincho-medium-r-*--24-*-ksc5601.1987-*,\ + -*-fixed-medium-r-*--24-*-tis620.2529-1 + +Dtwm*VCLSalFrame*secondariesOnTop: True diff --git a/NetBSD8/etc/skel/.canna b/NetBSD8/etc/skel/.canna new file mode 100644 index 0000000..0fdb46e --- /dev/null +++ b/NetBSD8/etc/skel/.canna @@ -0,0 +1,69 @@ +;; Copyright 1992 NEC Corporation, Tokyo, Japan. +;; +;; Permission to use, copy, modify, distribute and sell this software +;; and its documentation for any purpose is hereby granted without +;; fee, provided that the above copyright notice appear in all copies +;; and that both that copyright notice and this permission notice +;; appear in supporting documentation, and that the name of NEC +;; Corporation not be used in advertising or publicity pertaining to +;; distribution of the software without specific, written prior +;; permission. NEC Corporation makes no representations about the +;; suitability of this software for any purpose. It is provided "as +;; is" without express or implied warranty. +;; +;; NEC CORPORATION DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, +;; INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN +;; NO EVENT SHALL NEC CORPORATION BE LIABLE FOR ANY SPECIAL, INDIRECT OR +;; CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF +;; USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +;; OTHER TORTUOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +;; PERFORMANCE OF THIS SOFTWARE. + +;; $Id: default.ca,v 1.4 1994/09/12 05:37:39 kuma Exp $ + +(setq romkana-table "script/canna/wxiia7.cbp") + +(use-dictionary + "gcannaf" + "gcanna" + "iroha" + "fuzokugo" + "hojomwd" + "hojoswd" + "keishiki" + "station" + :bushu "bushu" +;:katakana "katakana" + :user "user" + ) + + +;; ����ɽ�����֤��顢ʸ�����̤�Ԥ��� +(set-key 'ichiran-mode "\C-o" '(quit extend)) +(set-key 'ichiran-mode "\C-i" '(quit shrink)) +(setq stay-after-validate nil) +(setq allow-next-input t) +(setq index-hankaku t) +(setq kakutei-if-end-of-bunsetsu t) +(setq gakushu t) +(setq cursor-wrap nil) +(setq quit-if-end-of-ichiran t) +;;(setq auto t) ; �༡��ư�Ѵ� +(setq inhibit-list-callback t) +(setq chikuji-continue nil) +(setq renbun-continue nil) + +(global-set-key "\C-t" 'katakana) +(global-set-key "\C-h" 'delete-previous) +(global-set-key "\Delete" 'delete-previous) + + +;; ����ܥ����� +(defsymbol + ?[ "��" "��" "[" "��" "��" + ?] "��" "��" "]" "��" "��" ) + + +(defsymbol + ?. "��" "." "��" + ?, "��" "," "��" ) diff --git a/NetBSD8/etc/skel/.config/mimeapps.list b/NetBSD8/etc/skel/.config/mimeapps.list new file mode 100644 index 0000000..3c3663e --- /dev/null +++ b/NetBSD8/etc/skel/.config/mimeapps.list @@ -0,0 +1,27 @@ +[Default Applications] +x-scheme-handler/http=userapp-Firefox-9RB3HZ.desktop +x-scheme-handler/https=userapp-Firefox-9RB3HZ.desktop +x-scheme-handler/ftp=userapp-Firefox-9RB3HZ.desktop +x-scheme-handler/chrome=userapp-Firefox-9RB3HZ.desktop +text/html=userapp-Firefox-9RB3HZ.desktop +application/x-extension-htm=userapp-Firefox-9RB3HZ.desktop +application/x-extension-html=userapp-Firefox-9RB3HZ.desktop +application/x-extension-shtml=userapp-Firefox-9RB3HZ.desktop +application/xhtml+xml=userapp-Firefox-9RB3HZ.desktop +application/x-extension-xhtml=userapp-Firefox-9RB3HZ.desktop +application/x-extension-xht=userapp-Firefox-9RB3HZ.desktop +application/x-ruby=userapp-emacs-CGVO1Z.desktop + +[Added Associations] +x-scheme-handler/http=userapp-Firefox-9RB3HZ.desktop; +x-scheme-handler/https=userapp-Firefox-9RB3HZ.desktop; +x-scheme-handler/ftp=userapp-Firefox-9RB3HZ.desktop; +x-scheme-handler/chrome=userapp-Firefox-9RB3HZ.desktop; +text/html=userapp-Firefox-9RB3HZ.desktop; +application/x-extension-htm=userapp-Firefox-9RB3HZ.desktop; +application/x-extension-html=userapp-Firefox-9RB3HZ.desktop; +application/x-extension-shtml=userapp-Firefox-9RB3HZ.desktop; +application/xhtml+xml=userapp-Firefox-9RB3HZ.desktop; +application/x-extension-xhtml=userapp-Firefox-9RB3HZ.desktop; +application/x-extension-xht=userapp-Firefox-9RB3HZ.desktop; +application/x-ruby=userapp-emacs-CGVO1Z.desktop; diff --git a/NetBSD8/etc/skel/.config/xfe/xferc b/NetBSD8/etc/skel/.config/xfe/xferc new file mode 100644 index 0000000..8825eb7 --- /dev/null +++ b/NetBSD8/etc/skel/.config/xfe/xferc @@ -0,0 +1,386 @@ +[OPTIONS] +height=600 +toolstoolbar=1 +folder_warn=1 +panel_view=1 +width=800 +use_startup_notification=1 +preserve_date_warn=1 +confirm_delete=1 +treepanel_tree_pct=0.2 +use_trash_can=1 +auto_save_layout=1 +use_trash_bypass=1 +root_mode=1 +xfv_replaced=1 +confirm_overwrite=1 +paneltoolbar=1 +confirm_delete_emptydir=1 +startdir_mode=0 +ask_before_copy=1 +confirm_execute=1 +locationbar=1 +twopanels_lpanel_pct=0.5 +vert_panels=1 +root_warn=0 +confirm_trash=1 +treetwopanels_lpanel_pct=0.4 +status=1 +treetwopanels_tree_pct=0.2 +generaltoolbar=1 +confirm_drag_and_drop=1 + +[HISTORY] +open=emacs:geeqie:gqview:evince:loffice:::: +run= + +[SETTINGS] +listforecolor=Black +show_pathlinker=1 +hilitecolor=#c6d5ed +single_click=0 +highlightcolor=#eeeeee +textfont="\xEF\xBC\xB9\xEF\xBC\x8E\xEF\xBC\xAF\xEF\xBD\x9A\xEF\xBC\xA6\xEF\xBD\x8F\xEF\xBD\x8E\xEF\xBD\x94 [unknown],140,normal,regular" +bordercolor=Black +relative_resize=1 +font="VL \xE3\x82\xB4\xE3\x82\xB7\xE3\x83\x83\xE3\x82\xAF [unknown],140,normal,regular" +listbackcolor=Gray100 +shadowcolor=#737c8a +tippause=500 +scrollbarcolor=#446a92 +forecolor=Black +basecolor=#a5b2c6 +time_format=%x %X +selbackcolor=#31659c +wheellines=5 +smooth_scroll=1 +use_clearlooks=1 +attentioncolor=Red +backcolor=Gray100 +tiptime=10000 +selforecolor=Gray100 +pbarcolor=#31659c +save_win_pos=0 +file_tooltips=1 + +[RIGHT PANEL] +type_size=100 +deldate_size=150 +origpath_size=200 +liststyle=0 +attr_size=100 +user_size=50 +hiddenfiles=0 +dirs_first=1 +ext_size=100 +grou_size=50 +modd_size=150 +ignore_case=1 +sort_func=ascendingCase +showthumbnails=0 +name_size=200 +size_size=60 + +[KEYBINDINGS] +search_prev=Shift-Ctrl-G +copy_to=F5 +cut=Ctrl-X +new_root_window=Shift-F3 +rename=Ctrl-N +execute_command=Ctrl-E +mirror_horizontally=Ctrl-H +properties=F9 +invert_selection=Ctrl-I +new_window=F3 +help=F1 +go_up=Backspace +move_to=F6 +unmount=Ctrl-U +delete=Shift-Del +copy=Ctrl-C +edit=F4 +thumbnails=Ctrl-F7 +hidden_files=Ctrl-F6 +line_numbers=Ctrl-T +mount=Ctrl-M +new_symlink=Ctrl-J +word_wrap=Ctrl-K +switch_panels=Ctrl-K +one_panel=Ctrl-F1 +goto_line=Ctrl-L +synchronize_panels=Ctrl-Y +redo=Ctrl-Y +new_folder=F7 +search_next=Ctrl-G +hidden_dirs=Ctrl-F5 +clear_location=Ctrl-L +refresh=Ctrl-R +replace=Ctrl-R +add_bookmark=Ctrl-B +terminal=Ctrl-T +new_file=F2 +go_forward=Shift-Backspace +lower_case=Ctrl-U +upper_case=Shift-Ctrl-U +restore_from_trash=Alt-Del +go_to_trash=Ctrl-F8 +two_panels=Ctrl-F3 +paste=Ctrl-V +open=Ctrl-O +select_all=Ctrl-A +full_file_list=F12 +go_home=Ctrl-H +quit=Ctrl-Q +new=Ctrl-N +go_back=Ctrl-Backspace +filter=Ctrl-D +mirror_vertically=Ctrl-V +symlink_to=Ctrl-S +deselect_all=Ctrl-Z +save=Ctrl-S +rotate_right=Ctrl-R +zoom_win=Ctrl-F +big_icons=F10 +go_work=Shift-F2 +view=Shift-F4 +search=Ctrl-F +tree_two_panels=Ctrl-F4 +undo=Ctrl-Z +print=Ctrl-P +close=Ctrl-W +move_to_trash=Del +small_icons=F11 +zoom_100=Ctrl-I +tree_panel=Ctrl-F2 +empty_trash_can=Ctrl-Del +rotate_left=Ctrl-L + +[DIR PANEL] +hidden_dir=0 +sort_func=ascendingCase + +[PROGS] +txteditor=emacs +xterm=kterm + +[LEFT PANEL] +type_size=100 +deldate_size=150 +origpath_size=200 +liststyle=16777216 +attr_size=100 +user_size=50 +hiddenfiles=0 +dirs_first=1 +ext_size=100 +grou_size=50 +modd_size=150 +ignore_case=1 +sort_func=ascendingCase +showthumbnails=0 +name_size=200 +size_size=60 + +[FILETYPES] +ogm=,,;OggMedia Video;video_32x32.png;video_16x16.png;; +flv=,,;Flash Video;video_32x32.png;video_16x16.png;; +epub=fbreader,fbreader,;ePub eBook;epub_32x32.png;epub_16x16.png;; +kdelnk=,,;KDE Link;config_32x32.png;config_16x16.png;; +aup=audacity,audacity,audacity;Sound;sound_32x32.png;sound_16x16.png;; +fb2=fbreader,fbreader,;FB2 eBook;epub_32x32.png;epub_16x16.png;; +py=,,;Python Source;text_32x32.png;text_16x16.png;; +sci=,,;Scilab Function;sci_32x32.png;sci_16x16.png;; +wmv=,,;WMV Video;video_32x32.png;video_16x16.png;; +otg=lodraw,lodraw,lodraw;OpenDocument Template Graphic;odg_32x32.png;odg_16x16.png;; +class=,,;Java Binary;class_32x32.png;class_16x16.png;; +todo=,,;Todo File;info_32x32.png;info_16x16.png;; +chm=xchm,xchm,xchm;Windows Help;chm_32x32.png;chm_16x16.png;; +sdi=loimpress,loimpress,loimpress;StarImpress 5.0 Document;sxi_32x32.png;sxi_16x16.png;; +hxx=,,;C++ Header;h_32x32.png;h_16x16.png;; +core=,,;Core Dump;core_32x32.png;core_16x16.png;; +xm=,,;Audio module;wave_32x32.png;wave_16x16.png;; +html=firefox,firefox,;Hyper Text;html_32x32.png;html_16x16.png;; +smf=lomath,lomath,lomath;StarMath 5.0 Document;sxm_32x32.png;sxm_16x16.png;; +tcl=,,;Tcl Source;tcl_32x32.png;tcl_16x16.png;; +wmf=,,;WMF Image;drw_32x32.png;drw_16x16.png;; +xcf=,,;XCF Image;xcf_32x32.png;xcf_16x16.png;; +bz2=,,;Bzipped File;bz2_32x32.png;bz2_16x16.png;; +po=,,;Locale File;text_32x32.png;text_16x16.png;; +svg=inkscape,inkscape,inkscape;SVG Image;svg_32x32.png;svg_16x16.png;; +hpp=,,;C++ Header;h_32x32.png;h_16x16.png;; +xz=,,;XZipped File;gz_32x32.png;gz_16x16.png;; +ps=evince,gv,;PostScript Document;ps_32x32.png;ps_16x16.png;; +torrent=transmission-gtk,transmission-gtk,;Torrent File;dl_32x32.png;dl_16x16.png;; +flac=,,audacity;FLAC Audio;sound_32x32.png;sound_32x32.png;; +mp4=,,;MPEG4 Video;video_32x32.png;video_16x16.png;; +tbz=,,;Bzipped Tar;tbz2_32x32.png;tbz2_16x16.png;; +js=,,;Javascript;html_32x32.png;html_16x16.png;; +mp3=,,audacity;MPEG Audio;mp3_32x32.png;mp3_16x16.png;; +news=,,;News File;news_32x32.png;news_16x16.png;; +sfd=fontforge,fontforge,fontforge;Fontforge Source Font;font_32x32.png;font_16x16.png;; +trashinfo=,,;Trash info;text_32x32.png;text_16x16.png;; +xlsx=localc,localc,localc;Excel OOXML Spreadsheet;xls_32x32.png;xls_16x16.png;; +xbm=,,;X Bitmap;xbm_32x32.png;xbm_16x16.png;; +m4a=,,audacity;MPEG Audio;mp3_32x32.png;mp3_16x16.png;; +arj=,,;ARJ Archive;arj_32x32.png;arj_16x16.png;; +sce=,,;Scilab Script;sci_32x32.png;sci_16x16.png;; +bugs=,,;Bugs File;bug_32x32.png;bug_16x16.png;; +gz=,,;Gzipped File;gz_32x32.png;gz_16x16.png;; +lzh=,,;LZH Archive;lzh_32x32.png;lzh_16x16.png;; +odb=lobase,lobase,lobase;OpenDocument Database;odf_32x32.png;odf_16x16.png;; +rar=,,;RAR Archive;rar_32x32.png;rar_16x16.png;; +pas=,,;Pascal Source;text_32x32.png;text_16x16.png;; +zip=,,;ZIP Archive;zip_32x32.png;zip_16x16.png;; +makefile=,,;Makefile;make_32x32.png;make_16x16.png;; +copyright=,,;Copyright File;info_32x32.png;info_16x16.png;; +pyo=,,;Python Object;o_32x32.png;o_16x16.png;; +tar=,,;Tar Archive;tar_32x32.png;tar_16x16.png;; +fig=xfig,xfig,xfig;FIG Image;drw_32x32.png;drw_16x16.png;; +cgm=,,;CGM Image;drw_32x32.png;drw_16x16.png;; +dpatch=,,;Debian Patch;text_32x32.png;text_16x16.png;; +rpm=xfp,xfp,xfp;RPM Package;rpm_32x32.png;rpm_16x16.png;; +djvu=djview,djview,;DJVU Document;djvu_32x32.png;djvu_16x16.png;; +ogg=,,audacity;Ogg Vorbis Audio;mp3_32x32.png;mp3_16x16.png;; +mkv=,,;MKV Video;video_32x32.png;video_16x16.png;; +asc=,,;ASCII File;text_32x32.png;text_16x16.png;; +desktop=,,;Desktop Entry;config_32x32.png;config_16x16.png;; +iso=,,;ISO9660 Image;package_32x32.png;package_16x16.png;; +spec=,,;RPM Spec;rpm_32x32.png;rpm_16x16.png;; +h=,,;C Header;h_32x32.png;h_16x16.png;; +ace=,,;ACE Archive;ace_32x32.png;ace_16x16.png;; +readme=,,;Readme File;help_32x32.png;help_16x16.png;; +tif=,,;TIFF Image;tif_32x32.png;tif_16x16.png;; +odt=loffice,lowriter,lowriter;OpenDocument Text;odt_32x32.png;odt_16x16.png;; +ram=realplay,realplay,;RealPlayer Video;video_32x32.png;video_16x16.png;; +changelog=,,;Log File;info_32x32.png;info_16x16.png;; +a=,,;Static Library;a_32x32.png;shared_16x16.png;; +sxi=loimpress,loimpress,loimpress;OpenOffice 1.0 Impress;sxi_32x32.png;sxi_16x16.png;; +cpp=,,;C++ Source;cc_32x32.png;cc_16x16.png;; +xpm=,,;X Pixmap;xpm_32x32.png;xpm_16x16.png;; +mk=,,;Makefile;make_32x32.png;make_16x16.png;; +php=firefox,firefox,;PHP Source;html_32x32.png;html_16x16.png;; +pdf=evince,,;PDF Document;pdf_32x32.png;pdf_16x16.png;; +jpeg=,,;JPEG Image;jpeg_32x32.png;jpeg_16x16.png;; +m=,,;Matlab Source;m_32x32.png;m_16x16.png;; +pm=,,;Perl Module;text_32x32.png;text_16x16.png;; +sxd=lodraw,lodraw,lodraw;OpenOffice 1.0 Draw;sxd_32x32.png;sxd_16x16.png;; +in=,,;Configure Makefile;make_32x32.png;make_16x16.png;; +xferc=,,;Xfe Configuration;config_32x32.png;config_16x16.png;; +pps=loimpress,loimpress,loimpress;PowerPoint Show;ppt_32x32.png;ppt_16x16.png;; +ppt=loimpress,loimpress,loimpress;PowerPoint Presentation;ppt_32x32.png;ppt_16x16.png;; +emf=,,;EMF Image;drw_32x32.png;drw_16x16.png;; +txz=,,;XZipped Tar;tgz_32x32.png;tgz_16x16.png;; +sxm=lomath,lomath,lomath;OpenOffice 1.0 Math;sxm_32x32.png;sxm_16x16.png;; +txt=emacs,,;Plain Text;text_32x32.png;text_16x16.png;; +rm=realplay,realplay,;RealPlayer Video;video_32x32.png;video_16x16.png;; +vhd=,,;Vhdl Source;vhdl_32x32.png;vhdl_16x16.png;; +mpg=,,avidemux --load;MPEG Video;video_32x32.png;video_16x16.png;; +sxw=lowriter,lowriter,lowriter;OpenOffice 1.0 Text;sxw_32x32.png;sxw_16x16.png;; +jpg=geeqie,,;JPEG Image;jpeg_32x32.png;jpeg_16x16.png;; +rtf=lowriter,lowriter,lowriter;RTF Document;doc_32x32.png;doc_16x16.png;; +wav=,,audacity;Wave Audio;wave_32x32.png;wave_16x16.png;; +vsd=lodraw,lodraw,lodraw;Visio Drawing;vsd_32x32.png;vsd_16x16.png;; +aac=,,audacity;AAC Audio;sound_32x32.png;sound_32x32.png;; +log=,,;Log File;info_32x32.png;info_16x16.png;; +sdc=localc,localc,localc;StarCalc 5.0 Document;sxc_32x32.png;sxc_16x16.png;; +doc=lowriter,lowriter,lowriter;Word Document;doc_32x32.png;doc_16x16.png;; +tgz=,,;Gzipped Tar;tgz_32x32.png;tgz_16x16.png;; +gif=,,;GIF Image;gif_32x32.png;gif_16x16.png;; +pot=loimpress,loimpress,loimpress;PowerPoint Template;ppt_32x32.png;ppt_16x16.png;; +pptx=loimpress,loimpress,loimpress;PowerPoint OOXML Presentation;ppt_32x32.png;ppt_16x16.png;; +la=,,;Libtool library file;a_32x32.png;shared_16x16.png;; +conf=,,;Configuration file;config_32x32.png;config_16x16.png;; +vst=lodraw,lodraw,lodraw;Visio Template;vsd_32x32.png;vsd_16x16.png;; +xfirc=,,;Xfe Configuration;config_32x32.png;config_16x16.png;; +htm=firefox,firefox,;Hyper Text;html_32x32.png;html_16x16.png;; +patch=,,;Source Patch;text_32x32.png;text_16x16.png;; +c=,,;C Source;c_32x32.png;c_16x16.png;; +menu.lst=,,;Grub Configuration;config_32x32.png;config_16x16.png;; +pls=,,;XMMS Playlist;mp3_32x32.png;mp3_16x16.png;; +sxc=localc,localc,localc;OpenOffice 1.0 Calc;sxc_32x32.png;sxc_16x16.png;; +java=,,;Java Source;java_32x32.png;java_16x16.png;; +xoj=xournal,xournal,xournal;PDF Edit Information;gz_32x32.png;gz_16x16.png;; +s3m=,,;Audio module;wave_32x32.png;wave_16x16.png;; +dot=lowriter,lowriter,lowriter;Word Template;doc_32x32.png;doc_16x16.png;; +cc=,,;C++ Source;cc_32x32.png;cc_16x16.png;; +install=,,;Install File;info_32x32.png;info_16x16.png;; +mid=timidity,timidity,;MIDI File;midi_32x32.png;midi_16x16.png;; +vob=,,avidemux --load;MPEG Video;video_32x32.png;video_16x16.png;; +configure=,,;Configure Script;make_32x32.png;make_16x16.png;; +watch=,,;Watch File;info_32x32.png;info_16x16.png;; +xfwrc=,,;Xfe Configuration;config_32x32.png;config_16x16.png;; +afm=,,fontforge;Type1 Font Metric;font_32x32.png;font_16x16.png;; +wri=lowriter,lowriter,lowriter;Write Document;doc_32x32.png;doc_16x16.png;; +ini=,,;Configuration file;config_32x32.png;config_16x16.png;; +m3u=,,;Audio Playlist;mp3_32x32.png;mp3_16x16.png;; +makefile.am=,,;Automake Makefile;make_32x32.png;make_16x16.png;; +pfb=fontforge,,fontforge;Type1 Font;font_32x32.png;font_16x16.png;; +config=,,;Configuration file;config_32x32.png;config_16x16.png;; +pl=,,;Perl Source;text_32x32.png;text_16x16.png;; +bas=,,;Basic Source;text_32x32.png;text_16x16.png;; +png=,,;PNG Image;png_32x32.png;png_16x16.png;; +frm=,,;VisualBasic Source;text_32x32.png;text_16x16.png;; +vss=lodraw,lodraw,lodraw;Visio Solution;vsd_32x32.png;vsd_16x16.png;; +sh=,,;Shell Script;shell_32x32.png;shell_16x16.png;; +so=,,;Shared Library;so_32x32.png;shared_16x16.png;; +img=,,;Image File;package_32x32.png;package_16x16.png;; +orb=fbreader,fbreader,;ORB eBook;epub_32x32.png;epub_16x16.png;; +z=,,;Compressed File;z_32x32.png;z_16x16.png;; +deb=xfp,xfp,xfp;DEB Package;deb_32x32.png;deb_16x16.png;; +ogv=,,;Ogg Video;video_32x32.png;video_16x16.png;; +mod=,,;Audio module;wave_32x32.png;wave_16x16.png;; +slc=scribus,scribus,scribus;Scribus Document;sla_32x32.png;sla_16x16.png;; +ml=,,;Caml Source;text_32x32.png;text_16x16.png;; +tex=emacs,,;TeX Document;tex_32x32.png;tex_16x16.png;; +mpeg=,,avidemux --load;MPEG Video;video_32x32.png;video_16x16.png;; +authors=,,;Authors File;info_32x32.png;info_16x16.png;; +mpeg3=,,audacity;MPEG Audio;mp3_32x32.png;mp3_16x16.png;; +eps=gv,gv,;Encapsulated PostScript Document;ps_32x32.png;ps_16x16.png;; +exe=wine,,;Windows EXE;exe_32x32.png;exe_16x16.png;; +wbk=lowriter,lowriter,lowriter;Word Backup Document;doc_32x32.png;doc_16x16.png;; +rb=emacs,,;Ruby Source;text_32x32.png;text_16x16.png;; +tbz2=,,;Bzipped Tar;tbz2_32x32.png;tbz2_16x16.png;; +mov=,,;MPEG Video;video_32x32.png;video_16x16.png;; +control=,,;Control File;info_32x32.png;info_16x16.png;; +o=,,;Object File;o_32x32.png;o_16x16.png;; +vhdl=,,;Vhdl Source;vhdl_32x32.png;vhdl_16x16.png;; +csh=,,;C-Shell Script;shell_32x32.png;shell_16x16.png;; +xml=,,;XML File;text_32x32.png;text_16x16.png;; +pfa=,,;Type1 Font;font_32x32.png;font_16x16.png;; +ico=,,;Icon Image;gif_32x32.png;gif_16x16.png;; +tiff=,,;TIFF Image;tif_32x32.png;tif_16x16.png;; +diff=,,;Diff File;text_32x32.png;text_16x16.png;; +bak=,,;Backup File;bak_32x32.png;bak_16x16.png;; +sdw=lowriter,lowriter,lowriter;Starwriter 5.0 Document;sxw_32x32.png;sxw_16x16.png;; +avi=,,avidemux --load;Video;video_32x32.png;video_16x16.png;; +ac=,,;Configure Makefile;make_32x32.png;make_16x16.png;; +7z=,,;7ZIP Archive;zip_32x32.png;zip_16x16.png;; +rules=,,;Rules Makefile;make_32x32.png;make_16x16.png;; +bmp=,,;BMP Image;bmp_32x32.png;bmp_16x16.png;; +ttf=fontforge,,fontforge;TrueType Font;font_32x32.png;font_16x16.png;; +xls=localc,localc,localc;Excel Spreadsheet;xls_32x32.png;xls_16x16.png;; +ots=localc,localc,localc;OpenDocument Template Spreadsheet;ods_32x32.png;ods_16x16.png;; +midi=timidity,timidity,;MIDI File;midi_32x32.png;midi_16x16.png;; +tox=,,;Video Playlist;video_32x32.png;video_16x16.png;; +otp=loimpress,loimpress,loimpress;OpenDocument Template Presentation;odp_32x32.png;odp_16x16.png;; +odg=lodraw,lodraw,lodraw;OpenDocument Graphic;odg_32x32.png;odg_16x16.png;; +odf=lomath,lomath,lomath;OpenDocument Formula;odf_32x32.png;odf_16x16.png;; +dvi=xdvi,xdvi,;DVI Document;dvi_32x32.png;dvi_16x16.png;; +ott=lowriter,lowriter,lowriter;OpenDocument Template Text;odt_32x32.png;odt_16x16.png;; +docx=lowriter,lowriter,lowriter;Word OOXML Document;doc_32x32.png;doc_16x16.png;; +xlt=localc,localc,localc;Excel Template;xls_32x32.png;xls_16x16.png;; +vlog=,,;Verilog Source;vlog_32x32.png;vlog_16x16.png;; +pfm=,,;Type1 Font Metric;font_32x32.png;font_16x16.png;; +au=play,play,;Sound;sound_32x32.png;sound_16x16.png;; +about-nls=,,;NLS File;info_32x32.png;info_16x16.png;; +sda=lodraw,lodraw,lodraw;StarDraw 5.0 Document;sxd_32x32.png;sxd_16x16.png;; +dia=dia,dia,dia;Dia Drawing;dia_32x32.png;dia_16x16.png;; +ods=loffice,localc,localc;OpenDocument Spreadsheet;ods_32x32.png;ods_16x16.png;; +taz=,,;Compressed Tar;tgz_32x32.png;tgz_16x16.png;; +copying=,,;Copyright File;info_32x32.png;info_16x16.png;; +odp=loffice,loimpress,loimpress;OpenDocument Presentation;odp_32x32.png;odp_16x16.png;; +cxx=,,;C++ Source;cc_32x32.png;cc_16x16.png;; +otf=fontforge,,fontforge;OpenType Font;font_32x32.png;font_16x16.png;; +sla=scribus,scribus,scribus;Scribus Document;sla_32x32.png;sla_16x16.png;; +xfprc=,,;Xfe Configuration;config_32x32.png;config_16x16.png;; + diff --git a/NetBSD8/etc/skel/.config/xfe/xfirc b/NetBSD8/etc/skel/.config/xfe/xfirc new file mode 100644 index 0000000..dbb9002 --- /dev/null +++ b/NetBSD8/etc/skel/.config/xfe/xfirc @@ -0,0 +1,36 @@ +[OPTIONS] +height=600 +fileheight_pct=0.25 +width=800 +modd_size=150 +liststyle=8388608 +hiddenfiles=0 +showtoolbar=1 +grou_size=50 +thumbnails=0 +user_size=50 +filesshown=1 +name_size=200 +type_size=100 +size_size=60 +filelist_before=0 +ext_size=100 +fitwin=1 +vert_panels=1 +filewidth_pct=0.25 +filterimgs=0 +sort_func=ascendingCase +attr_size=100 +fileview=64 + +[Recent Files] +FILE4=/home/irhome/c101/ta01002/nosessions.png +FILE2=/home/irhome/c101/ta01002/chokai.jpg +FILE3=/home/irhome/c101/ta01002/poster2013.pdf +FILE1=/home/irhome/c101/ta01002/chokai-nise.jpg + +[SETTINGS] +basecolor=#ede9e3 +tiptime=10000 +tippause=500 + diff --git a/NetBSD8/etc/skel/.config/xfe/xfwrc b/NetBSD8/etc/skel/.config/xfe/xfwrc new file mode 100644 index 0000000..5733e4d --- /dev/null +++ b/NetBSD8/etc/skel/.config/xfe/xfwrc @@ -0,0 +1,28 @@ +[OPTIONS] +height=600 +textnumberforeground=Black +width=800 +textfont="VL \xE3\x82\xB4\xE3\x82\xB7\xE3\x83\x83\xE3\x82\xAF [unknown],140,normal,regular" +hidetoolbar=0 +textselbackground=#0a246a +texthiliteforeground=Black +wordwrap=0 +stripreturn=0 +hidestatus=0 +textforeground=Black +linesnum=0 +wrapcols=80 +tabcols=8 +texthilitebackground=#ff8080 +textnumberbackground=Gray100 +searchpath= +textcursor=Black +hilitematchtime=3000 +textbackground=Gray100 +textselforeground=Gray100 + +[SETTINGS] +basecolor=#ede9e3 +tiptime=10000 +tippause=500 + diff --git a/NetBSD8/etc/skel/.cshrc b/NetBSD8/etc/skel/.cshrc new file mode 100644 index 0000000..8f348a7 --- /dev/null +++ b/NetBSD8/etc/skel/.cshrc @@ -0,0 +1,33 @@ +# $NetBSD: dot.cshrc,v 1.1.2.1 2000/10/20 17:00:53 tv Exp $ +#csh .cshrc file + +alias h history 25 +alias j jobs -l +alias la ls -a +alias lf ls -FA +alias ll ls -lA +alias su su -m + +setenv EDITOR vi +setenv VISUAL ${EDITOR} +setenv PAGER more + +set path = (/usr/{,s}bin /bin /usr/ccs/bin /usr/ucb /usr/{koeki,local}/bin \ + /usr/koeki/bin/[A-Z]* ) + +if ($?prompt) then + # An interactive shell -- set some stuff up + set filec + set history = 1000 +# set ignoreeof +# set mail = (/var/mail/$USER) + set mch = `hostname|sed 's/\.*//'` + #set prompt = "${mch:q}: {\!} " + if ($?version) then + set rest="(%c)%%" + else + set rest="%" + endif + set prompt = "$mch{$USER}$rest " + umask 2 +endif diff --git a/NetBSD8/etc/skel/.emacs b/NetBSD8/etc/skel/.emacs new file mode 100644 index 0000000..237623a --- /dev/null +++ b/NetBSD8/etc/skel/.emacs @@ -0,0 +1,9 @@ +; +; Private settings here +; + +(load "/etc/skel/.emacs.default") + +;; �����˼�ʬ�Υᥤ�륢�ɥ쥹�Υɥᥤ��̾������Ʋ����� +;; itl.koeki-u.ac.jp ����ʬ��񤭴����ޤ� +(setq mew-mail-domain "itl.koeki-u.ac.jp") diff --git a/NetBSD8/etc/skel/.emacs.default b/NetBSD8/etc/skel/.emacs.default new file mode 100644 index 0000000..e0dbca4 --- /dev/null +++ b/NetBSD8/etc/skel/.emacs.default @@ -0,0 +1,461 @@ +;;; ;;; +; .emacs for GNU Emacs Koeki-u Generic Users ; +;;; ;;; +; Last modified Tue Sep 8 11:56:07 2009 on pan + +;;; +;; Grobal Settings +;;; +;; set 'Do not make back up file' +(setq make-backup-files nil) +;(setq default-major-mode 'lisp-interaction-mode) +(setq require-final-newline t) +(setq visible-bell t) +;(setq-default indent-tabs-mode nil) +(setq completion-ignored-extensions + (cons ".class" completion-ignored-extensions)) +(setq debug-on-error t) + +(setq my-system-type + (cond + ((eq system-type 'ms-dos) (if (boundp 'MULE) 'dos-mule 'demacs)) + ((or (file-exists-p "/386bsd") + (file-exists-p "/kernel")) + (if (boundp 'MULE) 'bsd-mule 'bsd-nemacs)) + (t (if (boundp 'MULE) 'mule 'nemacs)))) +(defconst Emacs-18 (string= "18" (substring emacs-version 0 2))) +(defconst Emacs-19 (string= "19" (substring emacs-version 0 2))) +(defconst Emacs-20 (string< "20" (substring emacs-version 0 2))) +(defconst Emacs-21 (string< "21" (substring emacs-version 0 2))) +(defconst Emacs-22 (string< "22" (substring emacs-version 0 2))) +(defconst Emacs-23 (string< "23" (substring emacs-version 0 2))) +(cond + (Emacs-20 + (set-language-environment "japanese") + (set-terminal-coding-system + ;; (if (string= (getenv "TERM") "xterm") 'utf-8 'junet) + ;;(if (string= (getenv "TERM") "xterm") 'utf-8 'euc-jp) + 'euc-jp + ) + (setq-default buffer-file-coding-system 'utf-8) + (setq default-buffer-file-coding-system 'utf-8 + default-process-coding-system (cons 'undecided 'utf-8) + file-name-coding-system 'utf-8) + (and (fboundp 'prefer-coding-system) + (prefer-coding-system 'utf-8)) + (set-keyboard-coding-system 'utf-8)) + (Emacs-19 + (set-default-process-coding-system *junet* *autoconv*) + (set-display-coding-system *junet*))) +(setq diff-switches "-uab") + +(defvar system-load-path load-path) +(setq my-lisp-dir + (expand-file-name + (cond + ((eq system-type 'ms-dos) "~/src/elisp") + (t "~/elisp")))) + + +;;; +;; text mode +;;; +(setq text-mode-hook + '(lambda () + (turn-on-auto-fill) + (define-key text-mode-map "\e\C-i" 'lisp-complete-symbol) + (or (boundp 'text-mode-hook-running) + (let (text-mode-hook-running) + (hack-local-variables))))) +(setq-default fill-column 72) + +;;; +;; YaTeX version 1.x + +;;; +(autoload 'yatex-mode "yatex" "Yet Another LaTeX mode" t) +(setq ;; YaTeX-prefix "\^L" + ;; YaTeX-fill-prefix " " + YaTeX-kanji-code 2 + YaTeX-nervous t + YaTeX-help-file "~yuuji/src/emacs-lisp/yatex/help/YATEXHLP.jp" + ;;YaTeX-inhibit-prefix-letter t + tex-command "platex" + YaTeX-no-begend-shortcut t + YaTeX-create-file-prefix-g t + dviprint-command-format "dvips %f %t %s.dvi" + dviprint-from-format "-p %b" + dviprint-to-format "-l %e" + dvi2-command (concat "xdvi -geo +50+0 -dis " (getenv "DISPLAY"))) + +;;; +;; yahtml - YaTeX interfaces for html +;;; +(autoload 'yahtml-mode "yahtml" "Yet Another html-mode" t) +(setq yahtml-kanji-code 3 + yahtml-lint-program "htmllint" + yahtml-www-browser "openurl" + yahtml-always-/li t + yahtml-always-/dt t + yahtml-always-/dd t) + +;;; +;; autoload functions for private use +;;; +;(autoload 'insert-header "header" "Set time stamp" t) +(autoload 'status-line-and-col-no-mode "status-line-no" "status" t) +(autoload 'status-line-line-no-mode "status-line-no" "status" t) +(autoload 'status-line-column-no-mode "status-line-no" "status" t) +;--------------- Begins private customization / Functions ---------------- +(if (and (boundp 'MULE) (not (fboundp 'line-move))) + (fset 'line-move 'next-line-internal)) + +(defun next-line (arg) + (interactive "p") + (if (= arg 1) + (let ((opoint (point))) + (forward-line 1) + (if (or (= opoint (point)) + (not (eq (preceding-char) ?\n))) + (ding) + (goto-char opoint) + (line-move arg))) + (line-move arg)) + nil) + +(defun file-complete () + (interactive) + (let*((p (point)) + (s (save-excursion + (skip-chars-backward + (if (eq system-type 'ms-dos) "^ \t\n;\"\'" "^ \t\n:;\"\'")) + (point))) + (path (buffer-substring s p)) + (dir (or (file-name-directory path) "")) + (file (file-name-nondirectory path)) + (res (file-name-completion file dir))) + (cond + ((eq res t) (message "Sole completion")) + ((eq res nil) (ding) (message "No match!")) + ((string= file res) + (message (mapconcat 'princ (file-name-all-completions file dir) " "))) + (t + (delete-region p s) + (insert dir res))))) + +;;; +;; Miscellaneous Settings +;;; +;(setq write-file-hooks (cons 'insert-header write-file-hooks)) +(setq find-file-hooks (cons 'start-line-col find-file-hooks)) +(defun start-line-col () + (if (fboundp 'line-number-mode) + (line-number-mode 1) + (if (> (buffer-size) 20000) + (status-line-column-no-mode 1) + (status-line-and-col-no-mode 1)))) +(setq auto-mode-alist + (list + '("\\.[Tt][Ee][Xx]$" . yatex-mode) + '("\\.[Ss][Tt][Yy]$" . yatex-mode) + '("\\.html?$" . yahtml-mode) + '("\\.[chy]$" . c-mode) + '("\\.el$" . emacs-lisp-mode) + '("_[Ee][Mm][Aa][Cc][Ss]" . emacs-lisp-mode) + '("\\.emacs\\.*" . emacs-lisp-mode) + '("^[Mm]akefile" . makefile-mode) + '("\\.tar$" . tar-mode) + '("diary\\.doc" . diary) + '("\\.[Dd][Oo][Cc]$" . text-mode) + '("\\.[Tt][Ee]?[Xx][Tt]$" . text-mode) + '("\\.[Zz]$" . tar-mode) + '("\\.lsp$" . lisp-mode) + '("\\.rb$" . ruby-mode) + '("\\.f$" . fortran-mode) + '("\\.cob$" . cobol-mode) + '("\\.as$" . actionscript-mode) + '("\\.pl$" . cperl-mode) + '("\\.texi[^\\.]*$" . texinfo-mode) + '("\\.js$" . javascript-mode) + '("/9.*\\.log$\\|/an$" . anmode))) + +;;; +;; Windows +;;; +(setq win:frame-title-function + '(lambda (index) + (format "emacs[%d]" index))) +;(setq win:no-raise-at-save t +; win:new-frame-offset-x 5 +; win:new-frame-offset-y 2 +; win:resumed-frame-offset-x 3 +; win:resumed-frame-offset-y 3 +; win:frame-parameters-to-save-private '(name font)) + +;;;; +;;; Resume +;;;; +;;(defvar revive:save-variables-global-private nil) + +;;;; +;;; xcite +;;;; +(autoload 'xcite "xcite" "Exciting cite" t) +(autoload 'xcite-yank-cur-msg "xcite" "Exciting cite" t) +(define-key global-map "\C-cN" 'xcite) +(define-key global-map "\C-cy" 'xcite-yank-cur-msg) +(setq xcite:insert-header-function 'xcite-insert-header) + +(defun xcite-insert-header () + (format ">> On %s\n>> %s%s %s said:\n" date + (if (string< "" tag) (concat tag "==") "") + id + (if handle (concat "(" handle ")") ""))) + +;;; +;; Scroll in place +;;; +(or (featurep 'scroll-in-place) (load "scroll-in-place" t)) + +;;; +;; font-lock +;;; +(setq frame-background-mode + (cond + ((and window-system (x-display-color-p) + (if (string-match + "on\\|yes\\|true" + (or (x-get-resource "reverseVideo" "ReverseVideo") "false")) + 'dark + 'light))) + (t 'mono)) + hilit-mode-enable-list (list 'not default-major-mode)) +;(if window-system (require 'hilit19)) +(require 'font-lock) +(if (boundp 'global-font-lock-mode) + (global-font-lock-mode t) + (font-lock-mode 1)) + +(custom-set-faces + '(font-lock-comment-face + ((((class color) (background dark)) (:foreground "seashell2")))) + '(font-lock-function-name-face + ((((class static-color)) (:foreground "blue" :background "yellow")) + (((type tty)) (:foreground "blue" :background "yellow")) + (((class color) (background dark)) + (:foreground "yellow" :background "navy")))) + '(font-lock-variable-name-face + ((((type tty)) (:foreground "yellow")) + (((class color) (background dark)) + (:foreground "white" :background "navy")))) + '(font-lock-string-face + ((((type tty)) (:foreground "green")) + (((class color) (background dark)) (:foreground "OliveDrab2")))) + '(font-lock-doc-string-face + ((((type tty)) (:foreground "green")) + (((class color) (background dark)) (:foreground "OliveDrab1"))))) + +;;; +;; Canna +;;; +(cond + ((or (string-match "^\\(irsv\\|pan\\)" (system-name)) + window-system) + (setq canna-use-color t) + (require 'canna) + (canna) + (global-set-key "\C-_" 'canna-undo) + (if window-system + (progn + (define-key global-map [?\C-/] 'canna-undo) + (define-key global-map [?\C- ] 'canna-set-mark-command))))) + +;;; +;; X Window System dependent +;;; +;(setq default-frame-alist +; (cons '(height . 36) default-frame-alist)) + +;;; +;; mew +;;; +(autoload 'mew "mewsetup" nil t) +(setq mew-init-hook + '(lambda () + (define-key mew-summary-mode-map "\e\C-m" 'mew-edit-mail-file) + (define-key mew-draft-mode-map "\C-cy" + 'xcite-yank-cur-msg))) + +(setq mew-mail-domain + (or (getenv "QMAILHOST") + (getenv "MAILHOST") + (cond + ((string-match "^c1\\([0-9][0-9]\\)" user-login-name) + (let ((n (substring user-login-name + (match-beginning 1) (match-end 1)))) + (concat + (cdr (assoc (% (string-to-int n) 4) + '((1 . "e") (2 . "f") (3 . "g") (0 . "h")))) + ".koeki-u.ac.jp"))) + ((string-match "^i20\\([0-9][0-9]\\)" user-login-name) + "itl.koeki-u.ac.jp")) + "e.koeki-u.ac.jp")) + +(setq mew-highlight-lines-use nil + mew-window-use-full t + mew-replyto-to-list '("From:") + mew-replyto-to-list '("Reply-to:") + mew-noreplyto-to-list '("Reply-to:" "From:") + ;; mew-auto-add-content-type t + mew-refile-ctrl-multi nil + mew-mail-domain-list (list mew-mail-domain) + mew-summary-show-direction 'stop + mew-mailbox-type (if (string-match "^i20[0-9][0-9]" user-login-name) + 'mbox + 'pop) + mew-theme-file "mew-theme2" + mew-pop-server "pop.e.koeki-u.ac.jp" + ;;mew-pop-user (concat user-login-name "@" mew-mail-domain) + mew-mbox-command "incm" + ;;mew-fcc nil + mew-dcc (concat user-login-name "@" mew-mail-domain) + mew-mbox-command-arg (format "-d %s/maildir" (getenv "HOME"))) + + +(put 'eval-expression 'disabled nil) + +(setq xcite:cite-hook + '(lambda () + (goto-char (point-min)) + (replace-regexp + (concat "^" xcite:current-citation-prefix "$B!d(B") ">") + (goto-char (point-min)) + (remove-trailing-spaces nil))) + +(defun remove-trailing-spaces (squeeze) + "Remove all trailing spaces of each line after point. +Optional argument SQUEEZE non-nil squeeze the multiple newlines." + (interactive "P") + (save-excursion + (if squeeze + (while (re-search-forward "\\(\n\n\n+\\)\\|\\(\\s +$\\)" nil t) + (if (match-beginning 2) + (replace-match "") + (forward-char -1) + (delete-blank-lines))) + (replace-regexp "[ \t]+$" "")))) + +(defun mew-edit-mail-file () + (interactive) + (save-excursion + (beginning-of-line) + (skip-chars-forward " ") + (let ((n (buffer-substring + (point) (progn (skip-chars-forward "0-9") (point)))) + (folder (substring (buffer-name) 1)) + (rest (buffer-substring (point) (progn (end-of-line) (point))))) + (find-file-other-window + (cond + ((string-match "Guest Book" rest) + (save-window-excursion + (select-window (next-window)) + (save-excursion + (goto-char (point-min)) + (re-search-forward "file=\\(.*\\)") + (concat "~/http/gb/books/" + (buffer-substring (match-beginning 1) (match-end 1)))))))) + ))) + + +;;; +;; gnyognyo +;;; +(setq gnyo:score-file "/usr/koeki/emacs/share/emacs/site-lisp/gnyognyo.score" + gnyo:mute t) +(autoload 'gnyognyo "gnyognyo" "gnyognyo" t) +(autoload 'gnyo-fight "gnyognyo" "gnyognyo fighting mode" t) + +;;; +;; W3 +;;; +(autoload 'w3-preview-this-buffer "w3" "WWW Previewer" t) +(autoload 'w3-follow-url-at-point "w3" "Find document at pt" t) +(autoload 'w3 "w3" "WWW Browser" t) +(autoload 'w3-open-local "w3" "Open local file for WWW browsing" t) +(autoload 'w3-fetch "w3" "Open remote file for WWW browsing" t) +(autoload 'w3-use-hotlist "w3" "Use shortcuts to view WWW docs" t) +(autoload 'w3-show-hotlist "w3" "Use shortcuts to view WWW docs" t) +(autoload 'w3-follow-link "w3" "Follow a hypertext link." t) +(autoload 'w3-batch-fetch "w3" "Batch retrieval of URLs" t) +(autoload 'url-get-url-at-point "url" "Find the url under the cursor" nil) +(autoload 'url-file-attributes "url" "File attributes of a URL" nil) +(autoload 'url-popup-info "url" "Get info on a URL" t) +(autoload 'url-retrieve "url" "Retrieve a URL" nil) +(autoload 'url-buffer-visiting "url" "Find buffer visiting a URL." nil) +(autoload 'gopher-dispatch-object "gopher" "Fetch gopher dir" t) +(setq url-mail-command 'mew-summary-send) +(setq w3-default-homepage "http://www.gentei.org/" + url-personal-mail-address "hogehoge@gentei.org" + w3-mode-hook + '(lambda () +; (define-key w3-mode-map "o" 'w3-fetch) ;open +; (define-key w3-mode-map "w" 'w3-save-url) ;save +; (define-key w3-mode-map "W" 'w3-save-this-url) ; +; (define-key w3-mode-map "j" 'w3-forward-link) ;forward-link +; (define-key w3-mode-map "p" 'w3-back-link) ;previous-link +; (define-key w3-mode-map "k" 'w3-back-link) +; (define-key w3-mode-map "b" 'w3-goto-last-buffer) ;back +; (define-key w3-mode-map "1" 'delete-other-windows) +; (define-key w3-mode-map "0" 'delete-window) + )) + +;;; +;; cobol-mode +;;; +(autoload 'cobol-mode "cobol-mode" "Major mode for Tandem COBOL files." t nil) + +;;; +;; actionscript-mode +;;; +(autoload 'actionscript-mode "actionscript-mode" "actionscript" t nil) + +;;; +;; Mercurial +;;; +(defvar hg-mode-map (make-sparse-keymap)) +(load "mercurial" t) + +;;; +;; javascript mode +;;; +(autoload 'javascript-mode "javascript" "javascript mode" t) +(setq javascript-mode-hook + '(lambda () + (setq javascript-indent-level 2) + (or (fboundp 'saved-javascript-indent-line) + (fset 'saved-javascript-indent-line + (symbol-function 'javascript-indent-line))) + ;; emacs23 can't count column after Kanji characters. + (defun javascript-indent-line () + "Indent the current line as JavaScript source text." + (save-excursion + (saved-javascript-indent-line)) + (skip-chars-forward " \t")))) + +;;; +;; Global +;;; +(load "term/bobcat") +(cond + ((boundp 'minibuffer-local-filename-completion-map) + (define-key minibuffer-local-filename-completion-map + " " 'minibuffer-complete-word) + (define-key minibuffer-local-must-match-filename-map + " " 'minibuffer-complete-word) + (and (fboundp 'partial-completion-mode) (partial-completion-mode t)) + (and (fboundp 'terminal-init-bobcat) (terminal-init-bobcat)))) + +(put 'narrow-to-region 'disabled nil) +(require 'windows) +(win:startup-with-window) +(setq debug-on-error nil) diff --git a/NetBSD8/etc/skel/.fvwm2rc b/NetBSD8/etc/skel/.fvwm2rc new file mode 100644 index 0000000..82f6df6 --- /dev/null +++ b/NetBSD8/etc/skel/.fvwm2rc @@ -0,0 +1,611 @@ +# this is a bare bones sample .fvwm2rc/system.fvwm2rc file for fvwm-2. +# It should be customized before install. See other sample .fvwm2rc files +# for hints, as well as pointers from the various links on the official +# fvwm web page (see the FAQ). + +#TitleStyle ActiveUp HGradient 16 Yellow tomato +# be sure to customize these paths for your installation: +#ModulePath /usr/X11R6/lib/X11/fvwm2 +ImagePath /usr/X11R7/include/X11/pixmaps +ImagePath /usr/local/Xc/fvwm2/share/fvwm/images/button:/usr/koeki/share/images/button:/usr/X11R7/include/X11/bitmaps:/usr/local/share/images/button +# WIDTH + +OpaqueMoveSize 80 +EdgeResistance 250 20 +#EdgeScroll 100 100 +EdgeScroll 20 20 +ClickTime 750 + +# make sure these fonts exist on your system: +WindowFont -misc-*-medium-*-*-*-14-*-*-*-*-*-*-* +IconFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-* + +HilightColor seashell mistyrose lemonchiffon +HilightColor seashell mistyrose lemonchiffon +TitleStyle ActiveUp HGradient 64 2 mistyrose 50 #7faec8 50 mistyrose +#Module FvwmPager + +DeskTopSize 1x1 +MenuStyle * Font -misc-*-*-r-*-*-14-*-*-*-*-*-*-* fvwm +MenuStyle * Foreground lemonchiffon grey60 grey40 +MenuStyle * Menuface BGradient 64 2 #1a6b86 50 #7faec8 50 #1a6b86 +MenuStyle * Hilight3DThick ActiveFore gold + +ColormapFocus FollowsMouse + +# default Styles: +Style "*" BorderWidth 2, HandleWidth 7 +Style "*" Icon unknown1.xpm +Style "*" ForeColor lemonchiffon, BackColor slategray +Style "*" MWMFunctions, MWMDecor, HintOverride +Style "*" DecorateTransient +Style "*" NoPPosition +Style "*" IconBox 0 -10 -280 -1 +Style "*" FocusFollowsMouse +Style "*" SmartPlacement + +# Styles for various Fvwm modules: +Style "Fvwm*" NoTitle, Sticky, WindowListSkip +Style "Fvwm*" BorderWidth 2, CirculateSkipIcon, CirculateSkip +Style "FvwmPager" StaysOnTop +Style "FvwmBanner" StaysOnTop +Style "FvwmButtons" Icon toolbox.xpm, ClickToFocus + +# Styles for your common terminal emulator programs: +Style "XTerm" Icon xterm.xpm, SloppyFocus, IconBox -70 1 -1 -140 +Style "rxvt" Icon term.xpm, SloppyFocus, IconBox -70 1 -1 -140 +Style "rxvt" MWMBorder, MWMButtons + +# Styles for various common programs: +Style "*lock" NoTitle, NoHandles, Sticky, WindowListSkip, ClickToFocus +Style "*alarm" NoTitle, NoHandles, Sticky, WindowListSkip, ClickToFocus, StaysOnTop +Style "*biff*" NoTitle, Sticky, WindowListSkip, ClickToFocus +# kinput2 selection menu (Candidate* & Auxiliary*) +Style "Candidate*" NoTitle, NoHandles, Sticky, WindowListSkip, ClickToFocus +Style "Auxiliary*" NoTitle, NoHandles, Sticky, WindowListSkip, ClickToFocus +Style "xyoubin*" NoTitle, Sticky, WindowListSkip, ClickToFocus +Style "header" NoTitle, Sticky, WindowListSkip, ClickToFocus, NoHandles +Style "MINI*" NoTitle, Sticky, WindowListSkip, ClickToFocus +Style "xcalc" Icon xcalc.xpm, NoButton 2,RandomPlacement,ClickToFocus + +# some simple default key bindings: +Key Next A SCM Next [*] Focus +Key Prior A SCM Prev [*] Focus + +# some simple default mouse bindings: +# for the root window: +Mouse 1 R A Menu RootMenu Nop +Mouse 2 R A Menu Window-Ops Nop +Mouse 3 R A WindowList + +# for the title bar buttons: +Mouse 0 1 A Menu Window-Ops2 Close +Mouse 0 2 A Close +Mouse 0 4 A Maximize-Func +Mouse 0 6 A Iconify + +ButtonStyle All Solid +ButtonStyle 2 Pixmap fv-close.xpm +ButtonStyle 4 Pixmap fv-window-maximize.xpm +ButtonStyle 6 Pixmap fv-window-iconify.xpm + +# for other parts of the window/borders/icons: +Mouse 1 F A Resize-or-Raise +Mouse 1 TS A Move-or-Raise +Mouse 1 I A Move-or-Iconify +Mouse 2 I A Iconify +Mouse 2 FST A Menu Window-Ops2 Nop +Mouse 3 TSIF A RaiseLower + +######################## Initialization Functions ############################ +#AddToFunc InitFunction "I" Module FvwmButtons +#+ "I" exec xsetroot -mod 2 2 -fg \#554055 -bg \#705070 + +#AddToFunc RestartFunction "I" Module FvwmButtons +#+ "I" exec xsetroot -mod 2 2 -fg \#554055 -bg \#705070 + + +######################## Menus ################### +AddToMenu RootMenu "Root Menu" Title ++ "Emacs" Exec exec emacs ++ "kterm" Exec exec kterm ++ "Emacs24" Exec exec emacs -fn fontset-24 -g 75x27+0+0 ++ "Kterm24" Exec exec kterm -fn rk24 -fk kanji24 -fl '-*-fixed-medium-r-normal--24-*' -g 80x24-0+60 ++ "ホーム(xfe)" Exec exec xfe ~ ++ "" Nop ++ "Firefox" Exec exec firefox +#+ "Firefoxその他" Popup Firefox ++ "ファイル管理" Popup FileManager ++ "グラフィクス" Popup Graphics ++ "オフィス(LibreOffice)" Exec exec loffice ++ "" Nop ++ "Fvwm Modules" Popup Module-Popup ++ "Fvwm Window Ops" Popup Window-Ops ++ "Fvwm Simple Config Ops" Popup Misc-Ops ++ "" Nop ++ "Refresh Screen" Refresh ++ "Recapture Screen" Recapture ++ "" Nop ++ "終了メニュー" Popup Quit-Verify + +AddToMenu Graphics "グラフィクスツール" Title ++ "GIMP" Exec exec gimp2 ++ "Geeqie" Exec exec geeqie + +AddToMenu FileManager "ファイル管理" Title ++ "caja" Exec exec caja ++ "thunar" Exec exec thunar + +AddToMenu Firefox "Firefox" Title +ifelse(OSTYPE,NetBSD, +`+ "Firefox(+Flash)" Exec exec firefox-linux',) ++ "firefox-restart(強制再起動)" Exec exec firefox-restart ++ "firefox-refresh(初期化+再起動)" Exec exec firefox-refresh +#+ "Firefox-1.0" Exec exec firefox-1.0 +#+ "Firefox-1.5" Exec exec firefox-1.5 + +AddToMenu Misc-Ops "Misc Config Opts" Title ++ "Sloppy Focus" ChangeDefaultFocus SloppyFocus ++ "Click To Focus" ChangeDefaultFocus ClickToFocus ++ "Focus Follows Mouse" ChangeDefaultFocus FocusFollowsMouse ++ "" Nop ++ "Colormap Follows Mouse" ColormapFocus FollowsMouse ++ "Colormap Follows Focus" ColormapFocus FollowsFocus ++ "" Nop ++ "Full Paging ON" EdgeScroll 100 100 ++ "All Paging OFF" EdgeScroll 0 0 ++ "Horizontal Paging Only" EdgeScroll 100 0 ++ "Vertical Paging Only" EdgeScroll 0 100 ++ "Partial Paging" EdgeScroll 50 50 ++ "Full Paging && Edge Wrap" EdgeScroll 100000 100000 + +AddToMenu Window-Ops "Window Ops" Title ++ "Move" Move ++ "Resize" Resize ++ "Raise" Raise ++ "Lower" Lower ++ "(De)Iconify" Iconify ++ "(Un)Stick" Stick ++ "(Un)Maximize" Maximize ++ "" Nop ++ "Delete" Delete ++ "Close" Close ++ "Destroy" Destroy ++ "" Nop ++ "Refresh Window" RefreshWindow + +AddToMenu Window-Ops2 "&Move" Move ++ "&Resize" Resize ++ "R&aise" Raise ++ "&Lower" Lower ++ "(De)&Iconify" Iconify ++ "(Un)&Stick" Stick ++ "(Un)Ma&ximize" Maximize ++ "" Nop ++ "&Delete" Delete ++ "&Close" Close ++ "Destroy" Destroy ++ "" Nop ++ "ScrollBar" Module FvwmScroll 2 2 ++ "Print" PrintFunction ++ "Print Reverse" PrintReverseFunction + +# be sure to fill these in with your correct machine names: +#AddToMenu Remote-Logins "dopey" Exec rsh dopey rxvt -display $HOSTDISPLAY & +#+ "snoopy" Exec rsh snoopy rxvt -display $HOSTDISPLAY & +#+ "grumpy" Exec rsh grumpy rxvt -display $HOSTDISPLAY & +#+ "happy" Exec rsh happy rxvt -display $HOSTDISPLAY & +#+ "bailey" Exec rsh bailey rxvt -display $HOSTDISPLAY & +#+ "barnum" Exec rsh barnum rxvt -display $HOSTDISPLAY & +#+ "joker" Exec rsh joker rxvt -display $HOSTDISPLAY & +#+ "signal" Exec rxterm signal + +AddToMenu Module-Popup "FvwmModules" Title ++ "Identify" Module FvwmIdent ++ "Talk" Module FvwmTalk ++ "" Nop ++ "Button-Bar" Module FvwmButtons ++ "Pager" Module FvwmPager 0 0 ++ "Pager (2 desks)" Module FvwmPager 0 1 ++ "WinList" Module FvwmWinList ++ "" Nop ++ "Banner" Module FvwmBanner ++ "ScrollBar" Module FvwmScroll 50 50 ++ "Background" Module FvwmBacker ++ "AutoRaise" Module FvwmAuto 200 Raise Nop ++ "Stop AutoRaise" KillModule FvwmAuto ++ "" Nop ++ "IconBox" Module FvwmIconBox ++ "IconMan" Module FvwmIconMan ++ "" Nop ++ "Form - Rlogin" Module FvwmForm Rlogin ++ "Form - MyFvwmTalk" Module FvwmForm MyFvwmTalk ++ "Form - QuitVerify" Module FvwmForm QuitVerify + +AddToMenu Quit-Verify "Really Quit Fvwm?" Title ++ "fvwmを終了" Quit ++ "" Nop ++ "Restart Fvwm2" Restart +#+ "Restart Fvwm" Restart fvwm1 -s +#+ "" Nop ++ "Start twm" Restart twm +#+ "Start ctwm" Restart ctwm +#+ "Start tvtwm" Restart tvtwm +#+ "Start vtwm" Restart vtwm +#+ "Start mwm" Restart mwm +#+ "Start olwm" Restart /usr/openwin/bin/olwm ++ "" Nop ++ "シャットダウン" Exec exec /sbin/shutdown -p now ++ "再起動" Exec exec /sbin/shutdown -r now ++ "" Nop ++ "No, Don't Quit" Nop + +######################## Sample Functions ########################## + +AddToFunc MailFunction "I" Next [$0] Iconify -1 ++ "I" Next [$0] Focus ++ "I" None [$0] Exec $0 $1 + +AddToFunc Move-or-Raise "I" Raise ++ "M" Move ++ "D" Lower + +AddToFunc Move-or-Raise2 "M" Raise ++ "M" Move ++ "D" Lower + +AddToFunc Maximize-Func "M" Maximize 0 100 ++ "C" Maximize 95 95 ++ "D" Maximize 100 100 + +AddToFunc Move-or-Iconify "I" Raise ++ "M" Move ++ "D" Iconify + +AddToFunc Resize-or-Raise "I" Raise ++ "M" Resize ++ "D" Lower + +AddToFunc Resize-or-Raise2 "M" Raise ++ "M" Resize ++ "D" Lower + +AddToFunc PrintFunction "I" Raise ++ "I" Exec xdpr -id $w + +AddToFunc PrintReverseFunction "I" Raise ++ "I" Exec xdpr 1/2 -h -rv -id $w + +AddToFunc Iconify-and-Raise "I" Iconify ++ "I" Raise + +# RLOGIN machine fg bg +AddToFunc RLOGIN "I" Exec xterm -fg $1 -bg $2 -e rlogin $0 -8 + +# TELNET machine fg bg +AddToFunc TELNET "I" Exec xterm -fg $1 -bg $2 -e telnet $0 + +AddToFunc FocusAndWarp "I" Focus ++ "I" WarpToWindow $0 $1 ++ "I" CursorMove +3 +2 +#+ "I" WarpToWindow 2p 2p + +AddToFunc DeiconifyFocusAndWarp "I" Iconify -1 ++ "I" FocusAndWarp $0 $1 + +AddToFunc ChangeDefaultFocus "I" Style "*" $0 ++ "I" Recapture + +################## FvwmButtons button-bar ################################ +*FvwmButtonsBack bisque3 +*FvwmButtons(Frame 2 Padding 2 2 Container(Rows 2 Frame 1 Padding 10 0 \ + Swallow(Respawn))) +*FvwmButtons(NoSize Title Close, Icon bomb.xpm, Action Close) +*FvwmButtons(Title Resize Icon mini.resize.xpm Back bisque4 Action Resize) +#*FvwmButtons(Frame -3 Swallow(Respawn,NoHints) xclock \ +# `Exec exec xclock -bg darkolivegreen -padding 0 -geometry +2000+0`) +*FvwmButtons(3x1 Back darkolivegreen Fore white Frame 2 Padding 2 2 \ + Container(Rows 1 Frame -2 Padding 1 1 Back darkolivegreen)) +#*FvwmButtons(Frame 2 Title(Side,Right) Mail Fore white \ +# Swallow(UseOld,NoRespawn)\ +# xbiff `Exec exec xbiff -bg darkolivegreen -geometry +200+200`) +*FvwmButtons(2x1 Swallow (NoHints) "FvwmTalk" "FvwmTalk") +*FvwmButtons(End) +*FvwmButtons(End) + + +########################## Window-Identifier ############################### +# Just choose colors and a fonts +*FvwmIdentBack MidnightBlue +*FvwmIdentFore Yellow +*FvwmIdentFont -adobe-helvetica-medium-r-*-*-12-*-*-*-*-*-*-* + +########################### Pager ######################################### +*FvwmPagerBack #908090 +*FvwmPagerFore #484048 +*FvwmPagerFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-* +# *FvwmPagerHilight #cab3ca +*FvwmPagerHilight yellow +*FvwmPagerGeometry -1-1 +*FvwmPagerLabel 0 Misc +*FvwmPagerLabel 1 Maker +*FvwmPagerLabel 2 Mail +*FvwmPagerLabel 3 Matlab +*FvwmPagerSmallFont 5x8 + +##########################FvwmWinList################################## +*FvwmWinListBack #908090 +*FvwmWinListFore Black +*FvwmWinListFont -misc-*-*-*-*-*-14-*-*-*-*-*-*-* +*FvwmWinListAction Click1 Iconify -1,Focus +*FvwmWinListAction Click2 Iconify +*FvwmWinListAction Click3 Module "FvwmIdent" FvwmIdent +*FvwmWinListUseSkipList +*FvwmWinListGeometry +0-1 + + +*FvwmBackerDesk 0 -solid steelblue +*FvwmBackerDesk 1 -solid midnightblue + +*FvwmScrollBack grey40 +*FvwmScrollFore green + +############################################################ +############################################################ +# Note that icons are shown in the module +# only if NoIcon commnand is applied. +#Style "*" NoIcon + +############################################################ +*FvwmIconBoxIconBack #cfcfcf +*FvwmIconBoxIconHiFore black +*FvwmIconBoxIconHiBack LightSkyBlue +*FvwmIconBoxBack #5f9ea0 +#*FvwmIconBoxFore blue +*FvwmIconBoxGeometry 5x1+0+0 +*FvwmIconBoxMaxIconSize 64x38 +*FvwmIconBoxFont -adobe-helvetica-medium-r-*-*-12-*-*-*-*-*-*-* +*FvwmIconBoxSortIcons IconName +*FvwmIconBoxPadding 4 +*FvwmIconBoxLines 10 +*FvwmIconBoxSBWidth 11 +*FvwmIconBoxPlacement Left Top +*FvwmIconBoxPixmap fvwm.xpm +#*FvwmIconBoxHideSC Horizontal +*FvwmIconBoxSetWMIconSize +*FvwmIconBoxHilightFocusWin +#*FvwmIconBoxResolution Desk +*FvwmIconBoxMouse 1 Click RaiseLower +*FvwmIconBoxMouse 1 DoubleClick Iconify +*FvwmIconBoxMouse 2 Click Iconify -1, Focus +*FvwmIconBoxMouse 3 Click Module FvwmIdent +*FvwmIconBoxKey r RaiseLower +*FvwmIconBoxKey space Iconify +*FvwmIconBoxKey d Close +*FvwmIconBoxKey n Next +*FvwmIconBoxKey p Prev +*FvwmIconBoxKey h Left +*FvwmIconBoxKey j Down +*FvwmIconBoxKey k Up +*FvwmIconBoxKey l Right +# +# Icon file specifications +# +# Mostly, you don't have to specify icon files, as FvwmIconBox now +# reads icon files specified in Style commands. +# +*FvwmIconBox "Fvwm*" - + +# FvwmForm alias - rlogin to host via xterm +*RloginWarpPointer +*RloginFont *helvetica*m*r*n*14* +*RloginButtonFont *helvetica*m*o*n*14* +*RloginInputFont *cour*m*r*n*14* +*RloginFore Black +*RloginBack Light Gray +*RloginItemFore Wheat +*RloginItemBack Gray50 +# begin items +*RloginLine center +*RloginText "Login to Remote Host" +*RloginLine center +*RloginText "Host:" +*RloginInput HostName 20 "" +*RloginLine center +*RloginSelection UserSel single +*RloginChoice Default Default on "same user" +*RloginChoice Custom Custom off "user:" +*RloginInput UserName 10 "" +*RloginLine expand +*RloginButton quit "Login" ^M +*RloginCommand Exec xterm -T xterm@$(HostName) -e rlogin $(HostName) $(Custom?-l $(UserName)) +*RloginButton restart "Clear" +*RloginCommand Beep +*RloginButton quit "Cancel" +*RloginCommand Nop + +# FvwmForm alias - query exit ala mwm +*QuitVerifyGrabServer +*QuitVerifyWarpPointer +*QuitVerifyFont *helvetica*m*r*n*14* +#*QuitVerifyButtonFont *helvetica*m*o*n*14* +*QuitVerifyButtonFont 7x13bold +*QuitVerifyFore Black +*QuitVerifyBack Light Gray +*QuitVerifyItemFore Wheat +*QuitVerifyItemBack Gray50 +# begin items +*QuitVerifyLine center +*QuitVerifyText "Do you really want to exit FVWM?" +*QuitVerifyLine expand +*QuitVerifyButton quit " Exit " +*QuitVerifyCommand Quit +*QuitVerifyButton quit "Cancel" +*QuitVerifyCommand Nop + +# MyTalk & MyFvwmTalk from Dave Goldberg +# MyTalk Form - dissappears after use +*MyTalkWarpPointer +*MyTalkFont *helvetica*m*r*n*14* +*MyTalkButtonFont *helvetica*m*o*n*14* +*MyTalkInputFont *cour*m*r*n*14* +*MyTalkFore Red +*MyTalkBack Gray +*MyTalkItemFore Blue +*MyTalkItemBack Gray +*MyTalkLine center +*MyTalkText "Fvwm Function" +*MyTalkInput Func 40 "" +*MyTalkLine expand +*MyTalkButton quit "Run" ^M +*MyTalkCommand $(Func) +*MyTalkButton restart "Clear" ^R +*MyTalkButton quit "Cancel" ^C +*MyTalkCommand Nop +# MyFvwmTalk Form - sticks around +*MyFvwmTalkWarpPointer +*MyFvwmTalkFont *helvetica*m*r*n*14* +*MyFvwmTalkButtonFont *helvetica*m*o*n*14* +*MyFvwmTalkInputFont *cour*m*r*n*14* +*MyFvwmTalkFore Red +*MyFvwmTalkBack Gray +*MyFvwmTalkItemFore Blue +*MyFvwmTalkItemBack Gray +*MyFvwmTalkLine center +*MyFvwmTalkText "Fvwm Function" +*MyFvwmTalkInput Func 40 "" +*MyFvwmTalkLine expand +*MyFvwmTalkButton restart "Run" ^M +*MyFvwmTalkCommand $(Func) +*MyFvwmTalkButton restart "Clear" ^R +*MyFvwmTalkCommand Nop +*MyFvwmTalkButton restart "Iconify" ^Z +*MyFvwmTalkCommand Next [MyFvwmTalk] Iconify +*MyFvwmTalkButton quit "Quit" ^C +*MyFvwmTalkCommand Nop + +# to change banner pixmap +#*FvwmBannerPixmap fvwm3.xpm +#*FvwmBannerTimeout 2 + +# Arrow Keys +# press arrow + control anywhere, and scroll by 1 page +Key Left A C Scroll -100 0 +Key Right A C Scroll +100 +0 +Key Up A C Scroll +0 -100 +Key Down A C Scroll +0 +100 + +# press arrow + meta key, and scroll by 1/10 of a page +Key Left A 2 Scroll -10 +0 +Key Right A 2 Scroll +10 +0 +Key Up A 2 Scroll +0 -10 +Key Down A 2 Scroll +0 +10 + +# press shift arrow + control anywhere, and move the pointer by 1% of a page +Key Left A SC CursorMove -1 0 +Key Right A SC CursorMove +1 +0 +Key Up A SC CursorMove +0 -1 +Key Down A SC CursorMove +0 +1 + +# press shift arrow + control anywhere, and move the pointer by 10% of a page +# Key Left A S CursorMove -10 0 +# Key Right A S CursorMove +10 +0 +# Key Up A S CursorMove +0 -10 +# Key Down A S CursorMove +0 +10 + +# press shift arrow + meta key, and move the pointer by 1/10 of a page +Key Left A S2 CursorMove -10 +0 +Key Right A S2 CursorMove +10 +0 +Key Up A S2 CursorMove +0 -10 +Key Down A S2 CursorMove +0 +10 + +# Resize functions +Key r A SC Resize +key z a SC Maximize +Key m A SC Maximize 0 95 +Key m A SC2 Maximize 0 101 +Key t A SC Maximize 100 0 +Key o A SC Move +Key e A SC Move + +# vi-like CursorMove 5% functions +Key h A C2 CursorMove -5 0 +Key j A C2 CursorMove 0 +5 +Key k A C2 CursorMove 0 -5 +Key l A C2 CursorMove +5 0 + +# ws-like CursorMove 2% functions +Key s A C2 CursorMove -2 0 +Key d A C2 CursorMove +2 +0 +Key e A C2 CursorMove +0 -2 +Key x A C2 CursorMove +0 +2 + +# Source +Key s A SC Restart fvwm2 +Key F6 A C Restart fvwm2 + +# Raise or Lower +Key 9 A C RaiseLower +Key 0 A C Iconify + +# vi-like scroll functions +Key h A SC Scroll -50 0 +Key j A SC Scroll 0 +50 +Key k A SC Scroll 0 -50 +Key l A SC Scroll +50 0 + +# Emulate Mouse clicks +Key m A 2 FakeClick depth 0 press 1 wait 100 release 1 +Key comma A 2 FakeClick depth 0 press 2 wait 100 release 2 +Key period A 2 FakeClick depth 0 press 3 wait 100 release 3 + + +# emacs-like circulate bindings. +Key n A SC Next [CurrentDesk *] DeiconifyFocusAndWarp +Key p A SC Prev [CurrentDesk *] DeiconifyFocusAndWarp + +# Keyboard accelerators +Key F1 A C Popup "Window-Ops" +Key F2 A C Popup "Utilities" +Key F4 A C WindowList +Key 1 A SC WindowList +Key F5 A C Move +#Key F6 A N Resize + +# CenterOnCirculate + +Key 1 A C Next [CurrentDesk emacs*]DeiconifyFocusAndWarp 0 0 +Key 2 A C Next [CurrentDesk kterm:]DeiconifyFocusAndWarp 0 0 +Key 3 A C Next [CurrentDesk console:]DeiconifyFocusAndWarp 0 0 +Key 4 A C Next [CurrentDesk Firefox*]DeiconifyFocusAndWarp 0 0 +Key 5 A C Next [CurrentDesk *office*]DeiconifyFocusAndWarp 0 0 +Key 6 A C Next [CurrentDesk caja|thunar|xfe]DeiconifyFocusAndWarp 0 0 +Key h A 2 Next [CurrentDesk kterm-h:]DeiconifyFocusAndWarp 0 0 +Key j A 2 Next [CurrentDesk kterm-j:]DeiconifyFocusAndWarp 0 0 +Key k A 2 Next [CurrentDesk Kterm:]DeiconifyFocusAndWarp 0 0 +Key l A 2 Next [CurrentDesk kterm-l:]DeiconifyFocusAndWarp 0 0 +# Warp to Mule +Key 1 A 2 Next [emacs?1*]DeiconifyFocusAndWarp +Key 2 A 2 Next [emacs?2*]DeiconifyFocusAndWarp +Key 3 A 2 Next [emacs?3*]DeiconifyFocusAndWarp +Key 4 A 2 Next [emacs?4*]DeiconifyFocusAndWarp +Key 5 A 2 Next [emacs?5*]DeiconifyFocusAndWarp +Key 6 A 2 Next [emacs?6*]DeiconifyFocusAndWarp +Key 7 A 2 Next [emacs?7*]DeiconifyFocusAndWarp +Key 8 A 2 Next [emacs?8*]DeiconifyFocusAndWarp +Key 9 A 2 Next [emacs?9*]DeiconifyFocusAndWarp +Key m A 2S Next [*MINI*]DeiconifyFocusAndWarp +# Warp to applications +Key n A 2 Next [!Iconic *etscape*]FocusAndWarp 50 50 +Key n A S2 Next [Iconic *etscape*]DeiconifyFocusAndWarp 50 50 +Key d A 2 Next [CurrentDesk *dvi*]DeiconifyFocusAndWarp 50 50 +Key i A 2 Next [CurrentDesk *mageMagick*]DeiconifyFocusAndWarp 50 50 +Key g A S2 Next [CurrentDesk *hostview*]DeiconifyFocusAndWarp 50 50 +Key g A 2 Next [CurrentDesk *Gimp*]DeiconifyFocusAndWarp 50 50 +Key s A 2 Next [CurrentDesk *VCLSalFrame*]DeiconifyFocusAndWarp 3 10 +Key a A 2 Next [CurrentDesk Acro?ead|evince*|atril*|*pdf*]DeiconifyFocusAndWarp 50 50 +Key o A 2 Next [CurrentDesk *Office*]DeiconifyFocusAndWarp 50 50 +Key t A 2 Next [CurrentDesk Tgif]DeiconifyFocusAndWarp 50 50 +Key f A 2 Next [CurrentDesk Firefox*]DeiconifyFocusAndWarp 50 50 +Key z A 2 Next [CurrentDesk *ozilla*]DeiconifyFocusAndWarp 50 50 +Key p A 2 Next [CurrentDesk *ozilla*]DeiconifyFocusAndWarp 50 50 diff --git a/NetBSD8/etc/skel/.keysnail.js b/NetBSD8/etc/skel/.keysnail.js new file mode 100644 index 0000000..8f357c2 --- /dev/null +++ b/NetBSD8/etc/skel/.keysnail.js @@ -0,0 +1,139 @@ +// ========================== KeySnail Init File =========================== // + +// You can preserve your code in this area when generating the init file using GUI. +// Put all your code except special key, set*key, hook, blacklist. +// ========================================================================= // +//{{%PRESERVE% +// Put your codes here +//}}%PRESERVE% +// ========================================================================= // + +// ========================= Special key settings ========================== // + +key.quitKey = "undefined"; +key.helpKey = "undefined"; +key.escapeKey = "undefined"; +key.macroStartKey = "undefined"; +key.macroEndKey = "undefined"; +key.universalArgumentKey = "undefined"; +key.negativeArgument1Key = "undefined"; +key.negativeArgument2Key = "undefined"; +key.negativeArgument3Key = "undefined"; +key.suspendKey = "undefined"; + +// ================================= Hooks ================================= // + + + +// ============================= Key bindings ============================== // + +key.setGlobalKey('C-m', function (ev) { + key.generateKey(ev.originalTarget, KeyEvent.DOM_VK_RETURN, true); +}, 'Generate the return key code'); + +key.setViewKey([['x', 'l'], ['<']], function (ev) { + var browser = getBrowser(); + if (browser.mCurrentTab.previousSibling) { + browser.moveTabTo(browser.mCurrentTab, browser.mCurrentTab._tPos - 1); + } else { + browser.moveTabTo(browser.mCurrentTab, browser.mTabContainer.childNodes.length - 1); + } +}, 'Move selected tab to left'); + +key.setViewKey([['x', 'h'], ['>']], function (ev) { + var browser = getBrowser(); + if (browser.mCurrentTab.nextSibling) { + browser.moveTabTo(browser.mCurrentTab, browser.mCurrentTab._tPos + 1); + } else { + browser.moveTabTo(browser.mCurrentTab, 0); + } +}, 'Move selected tab to right'); + +key.setGlobalKey(['C-[', 'C-x'], function (ev) { + userscript.reload(); +}, 'Reload the initialization file'); + +key.setGlobalKey(['C-[', 'x'], function (ev, arg) { + shell.input(null, arg); +}, 'List and execute commands', true); + +key.setViewKey('L', function (ev) { + getBrowser().mTabContainer.advanceSelectedTab(1, true); +}, 'Select next tab'); + +key.setViewKey('H', function (ev) { + getBrowser().mTabContainer.advanceSelectedTab(-1, true); +}, 'Select previous tab'); + +key.setViewKey('b', function (ev) { + BrowserBack(); +}, 'Back'); + +key.setViewKey('f', function (ev) { + BrowserForward(); +}, 'Forward'); + +key.setViewKey('q', function (ev) { + document.getElementById("Browser:Stop").doCommand(); +}, 'Stop content loading'); + +key.setViewKey('u', function (ev) { + var uri = getBrowser().currentURI; + if (uri.path == "/") { + return; + } + var pathList = uri.path.split("/"); + if (!pathList.pop()) { + pathList.pop(); + } + loadURI(uri.prePath + pathList.join("/") + "/"); +}, 'Go upper directory'); + +key.setViewKey('Y', function (ev, arg) { + command.setClipboardText(content.location.href); +}, 'copy_document_url'); + +key.setViewKey(['C-x', '1'], function (ev) { + window.loadURI(ev.target.ownerDocument.location.href); +}, 'Show current frame only'); + +key.setViewKey(['C-x', 'u'], function (ev) { + undoCloseTab(); +}, 'Undo closed tab'); + +key.setViewKey('h', function (ev) { + key.generateKey(ev.originalTarget, KeyEvent.DOM_VK_LEFT, true); +}, 'Scroll left'); + +key.setViewKey('j', function (ev) { + key.generateKey(ev.originalTarget, KeyEvent.DOM_VK_DOWN, true); +}, 'Scroll line down'); + +key.setViewKey('k', function (ev) { + key.generateKey(ev.originalTarget, KeyEvent.DOM_VK_UP, true); +}, 'Scroll line up'); + +key.setViewKey('l', function (ev) { + key.generateKey(ev.originalTarget, KeyEvent.DOM_VK_RIGHT, true); +}, 'Scroll right'); + +key.setViewKey('C-h', function (ev) { + goDoCommand("cmd_scrollPageUp"); +}, 'Scroll page up'); + +key.setViewKey('g', function (ev) { + goDoCommand("cmd_scrollTop"); +}, 'Scroll to the top of the page'); + +key.setViewKey('G', function (ev) { + goDoCommand("cmd_scrollBottom"); +}, 'Scroll to the bottom of the page'); + +key.setViewKey('y', function (ev, arg) { + command.setClipboardText(content.document.location.href); + display.echoStatusBar("Yanked " + content.document.location.href); +}, 'Yank current page address', true); + +key.setViewKey('R', function (ev) { + BrowserReloadSkipCache(); +}, 'Reload (Skip cache)'); diff --git a/NetBSD8/etc/skel/.login b/NetBSD8/etc/skel/.login new file mode 100644 index 0000000..e8d898b --- /dev/null +++ b/NetBSD8/etc/skel/.login @@ -0,0 +1,13 @@ +# $NetBSD: dot.login,v 1.1.2.1 2000/10/20 17:00:53 tv Exp $ +#csh .login file + +if ( ! $?SHELL ) then + setenv SHELL /bin/csh +endif + +set noglob +#eval `tset -s -m 'network:?xterm'` +unset noglob +stty status '^T' crt -tostop + +/usr/games/fortune diff --git a/NetBSD8/etc/skel/.mailrc b/NetBSD8/etc/skel/.mailrc new file mode 100644 index 0000000..1a4942a --- /dev/null +++ b/NetBSD8/etc/skel/.mailrc @@ -0,0 +1,9 @@ +# $NetBSD: dot.mailrc,v 1.1.2.1 2000/10/20 17:00:53 tv Exp $ + +ignore message-id received date fcc status resent-date resent-message-id resent-from in-reply-to +set append ask autoprint +set indentprefix="> " +set PAGER=more +set EDITOR=vi +set VISUAL=vi +retain bcc cc date from subject to diff --git a/NetBSD8/etc/skel/.phonerc b/NetBSD8/etc/skel/.phonerc new file mode 100644 index 0000000..9ef04e2 --- /dev/null +++ b/NetBSD8/etc/skel/.phonerc @@ -0,0 +1 @@ +set code euc diff --git a/NetBSD8/etc/skel/.profile b/NetBSD8/etc/skel/.profile new file mode 100644 index 0000000..1577213 --- /dev/null +++ b/NetBSD8/etc/skel/.profile @@ -0,0 +1,14 @@ +# $NetBSD: dot.profile,v 1.1.2.1 2000/10/20 17:00:53 tv Exp $ + +PATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/pkg/bin +PATH=${PATH}:/usr/pkg/sbin:/usr/games:/usr/local/bin:/usr/local/sbin +export PATH + +EDITOR=vi +export EDITOR +EXINIT='set autoindent' +export EXINIT +PAGER=more +export PAGER + +umask 2 diff --git a/NetBSD8/etc/skel/.vimrc b/NetBSD8/etc/skel/.vimrc new file mode 100644 index 0000000..c78469f --- /dev/null +++ b/NetBSD8/etc/skel/.vimrc @@ -0,0 +1,5 @@ +:map g 1G +:set ic +:set sm +:set nowrapscan +:set nobackup fepctrl notitle diff --git a/NetBSD8/etc/skel/.xinitrc b/NetBSD8/etc/skel/.xinitrc new file mode 100644 index 0000000..7c88253 --- /dev/null +++ b/NetBSD8/etc/skel/.xinitrc @@ -0,0 +1,13 @@ +#!/bin/sh +xclock -geometry 60x60-0+0& +##sleep 2 +xmodmap $HOME/.xmodmap +#xset fp+ tcp/localhost:7100 +#xset fp rehash +#setxkbmap -option ctrl:nocaps +#xset bc r s 300 3 +LANG=${LANG:-ja_JP.UTF-8} fvwm2 & +kterm -fg ivory -bg DarkSlateGray -geo 80x37-0+60 -T kterm: -lsp 0& +XMODIFIERS=@im=none emacs -geometry 80x32+0+0 -fn fontset-standard& +(sleep 6;kinput2) & +exec kterm -r -sb -geometry 80x18-80+0 -ls -C -T "console:" diff --git a/NetBSD8/etc/skel/.xmodmap b/NetBSD8/etc/skel/.xmodmap new file mode 100644 index 0000000..3d12bb3 --- /dev/null +++ b/NetBSD8/etc/skel/.xmodmap @@ -0,0 +1,12 @@ +clear mod2 +clear mod4 +clear lock +keysym Zenkaku_Hankaku = Kanji +keycode 51 = bracketright braceright +keycode 64 = Meta_L +keycode 113 = Meta_R +keycode 123 = backslash underscore +keycode 131 = Alt_L +keycode 133 = backslash bar +add mod2 = Alt_L +add mod1 = Meta_L diff --git a/NetBSD8/etc/skel/.zlogin b/NetBSD8/etc/skel/.zlogin new file mode 100644 index 0000000..c49e486 --- /dev/null +++ b/NetBSD8/etc/skel/.zlogin @@ -0,0 +1,3 @@ +# +# +source ${SKELDIR:-/etc/skel}/.zlogin.default diff --git a/NetBSD8/etc/skel/.zlogin.default b/NetBSD8/etc/skel/.zlogin.default new file mode 100644 index 0000000..76aea25 --- /dev/null +++ b/NetBSD8/etc/skel/.zlogin.default @@ -0,0 +1,7 @@ +stty erase '^H' +if df $HOME | grep '' >/dev/null; then + (cd $HOME + for d in public_html; do + rm -rf $d && ln -s /usr/$HOME/$d . + done) +fi diff --git a/NetBSD8/etc/skel/.zshcompctl b/NetBSD8/etc/skel/.zshcompctl new file mode 100644 index 0000000..ce309a5 --- /dev/null +++ b/NetBSD8/etc/skel/.zshcompctl @@ -0,0 +1,485 @@ +# This file gives some examples of compctl commands. +# You can either put the compctl commands in your .zshrc +# or include a separate file from your .zshrc with the +# source command. + +### +# complete database +### +# All completions for zsh. + +if [ -f ~/.rhosts ]; then + hostnames=(`awk '{print $1}' ~/.rhosts` ) +else + hosnames=(localhost) +fi + +if [ -f ~/.netrc ]; then + ftpsites=( `grep '^machine' ~/.netrc | awk '{print $2}'` \ + $hosts ) +else + ftpsites=($hosts) +fi + +# These are just examples, use and modify to personal taste. Copying this +# file without thought will needlessly increase zsh's memory usage and +# startup time. + +# For an explanation of what all this means, read either the +# introduction for some explanation or the manual for a detailed +# description. + +# Strip, profile, and debug only executables. The compctls for the +# debuggers could be better, of course. +compctl -g '*(x-)' strip gprof adb dbx xdbx ups + +# See the func/cdmatch function in the distribution +autoload cdmatch +#compctl -K cdmatch -S '/' -x 'S[/][~]' -g '*(-/)' -- cd pushd +#compctl -g "*(/)" -S / -x 'S[/][~]' -g '*(-/)' -- cd pushd chdir pu +compctl -g "(|.)*(-/)" cd pushd chdir pu apath + +# For rcs users, co and rlog from the RCS directory. We don't want to see +# the RCS and ,v though. +compctl -g 'RCS/*(:t:s/\,v//)' co rlog rcs + +# Anything after nohup is a command by itself with its own completion +# (the one for the trap builtin isn't perfect -- it does not complete +# signal names) +compctl -l '' nohup exec nice eval trap time fep sudo +compctl -l '' -x 'p[1]' -B -- builtin + +# kill takes signal names as the first argument after -, but job names after % +compctl -j -P % -x 's[-] p[1]' -k signals -- kill + +# gzip files, but gzip -d only gzipped or compressed files +compctl -f -x 'R[-*d,^*]' -g '(|.)*.(gz|z|Z) (|.)*(-/)' + -g '(|.)*(-/)' -- gzip +compctl -g '*.gz *.z *.Z' + -g '(|.)*(-/)' gunzip # zcat if you use GNU +compctl -g '*.Z' + -g '(|.)*(-/)' uncompress zmore # zcat if you don't use GNU +## compctl -g '*.F' + -g '(|.)*(-/)' melt fcat + +## # find is very system dependend, this one is for GNU find. +## compctl -x 's[-]' -k "(daystart depth follow maxdepth mindepth noleaf version xdev \ +## amin anewer cmin cnewer ctime empty false fstype gid group inum links lname mmin \ +## mtime name newer nouser nogroup path perm regex size true type uid used user xtype \ +## exec fprint fprint0 fprintf ok print print0 printf prune ls)" - \ +## 'p[1]' -g '. .. *(-/)' - \ +## 'c[-1,-anewer][-1,-cnewer][-1,-newer][-1,-fprint][-1,fprint0][-1,fprintf]' -f - \ +## 'c[-1,-fstype]' -k '(ufs 4.2 4.3 nfs tmp mfs S51K S52K)' - \ +## 'c[-1,-group]' -s '$(groups)' - \ +## 'c[-1,-user]' -u - \ +## 'r[-exec,;][-ok,;]' -l '' -- find + +# xsetroot: gets possible colours, cursors and bitmaps from wherever. +# Uses two auxiliary functions. You might need to change the path names. +## Xcolours() { reply=($(awk '{ print $4 }' < /usr/lib/X11/X11/rgb.txt)) } +## Xcursor() { reply=($(awk '/^#define/ {print $2}' \ +## "3.0" ]]; then + compctl -C -c -x \ + 's[DISPLAY=]' -k hostnames -S ":0" - \ + 's[LANG=]' -k '(japanese C)' - \ + 's[TERM=]' -k '(vt100 kterm xterm news screen pc3 cons25)' - \ + 's[LESSCHARSET=]' -k '(japanese jis sjis ujis)' - \ + 'C[0,[A-Z][A-Z][A-Z_]*]' -v -S = + \ + -k '(LANG JAPANESE LESSCHARSET DISPLAY LD_LIBRARY_PATH)' -S = - \ + 'n[1,=]' -f +else + compctl -C -c -x \ + 's[DISPLAY=]' -k hostnames -S ":0" - \ + 's[LANG=]' -k (japanese C) - \ + 's[TERM=]' -k (vt100 kterm xterm news screen pc3 cons25) - \ + 's[LESSCHARSET=]' -k (japanese jis sjis ujis) - \ + 'C[0,[A-Z][A-Z][A-Z_]*]' -v \ + -k (LANG JAPANESE LESSCHARSET DISPLAY LD_LIBRARY_PATH) -S = - \ + 'n[1,=]' -f +fi +# Default completion maybe right of parameter assignment +compctl -D -f -x \ + 'C[-1,DISPLAY=*]' -k hostnames -S ":0" - \ + 'C[-1,LANG=*]' -k "(japanese C)" - \ + 'C[-1,PAGER=*]' -k "(less more)" - \ + 'C[-1,TERM=*]' -k "(vt100 kterm xterm news screen)" - \ + 'C[-1,*PATH*=*]' -f - \ + 'C[-1,LESSCHARSET=*]' -k "(japanese jis sjis ujis)" + +# setenv (personal function) +compctl -f -x \ + 'p[1]' -v + -k "(LANG DISPLAY TERM LESSCHARSET)" - \ + 'c[-1,DISPLAY]' -k hostnames -S ":0" - \ + 'c[-1,LANG]' -k "(japanese C)" - \ + 'c[-1,PAGER]' -k "(less more)" - \ + 'c[-1,TERM]' -k "(vt100 kterm xterm news screen)" - \ + 'c[-1,LESSCHARSET]' -k "(japanese jis sjis ujis)" -- setenv + +# Similar things for tex, texinfo and dvi files. +compctl -g '*.tex*' + -g '*(-/)' {big,}{J,j,}latex {big,}{J,j,}tex +compctl -g '*.dvi' + -g '*(-/)' -x \ + 'c[-1,-o]' -k "(landscape a5 b4 b4landscape)" -- dvi2ps jdvi2kps + +### +# for archivers and compression tools +### +compctl -f -x 'p[1,2]' \ + -g "*(-/) *.[Ll][Zz][Hh] *.[Ee][Xx][Ee]" -- lha lhp +compctl -f -x 'p[1]' -g "*(-/) *.[Aa][Rr][Cc]" -- arc +compctl -f -x 'p[1,2]' -g "*(-/) *.[Zz][Ii][Pp]" -- zip unzip +compctl -f -x 'p[1,2]' -g "*(-/) *.[Aa][Rr][Jj]" -- unarj +compctl -g "*(-/) *.(Z|z|gz)" zmore zless zgrep zcmp + +### +# for printers +### +printers=(sp620 cclbp{9,c}) +compctl -f -x 's[-P]' -k "($printers)" -- lp{r{,m},q} +compctl -f -x 'p[1]' -k "(abort enable disable help restart status topq \ + clean down start stop up)" - \ + 'p[2]' -k "($printers)" -- lpc +unset printers + +### +# for X-window +### +winopt=(geometry display fg bg fn popup_geometry) +# The next line is the template +# 's[-]' -k winopt - 'c[-1,-display]' -k hostnames -S ':0 ' +compctl -x \ + 's[-]' -k winopt - 'c[-1,-display]' -k hostnames -S ':0 ' - \ + 'c[-1,-geometry]' -k "(+0+0 80x37+0+0 80x26+0+0)" -- kterm xterm +compctl -g '*.dvi *(-/)' -x \ + 's[-]' -k "($winopt s S p l paper keep rv)" - \ + 'c[-1,-paper]' -k "(a4r)" - \ + 'c[-1,-display]' -k hostnames -S ':0 ' -- xdvi +compctl -g "*.ps *.eps ^*.* *(-/)" -x \ + 's[-]' -k winopt - 'c[-1,-display]' -k hostnames -S ':0 ' \ + -- ghostview gs +compctl -caF -x \ + 'p[1]' -k hostnames - \ + 'c[-1,-l]' -k "(yuuji)" - \ + 's[-]' -k winopt - 'c[-1,-display]' -k '($DISPLAY)' -S ' ' - \ + 'p[2,-1]' -l '' -- rsh rs + +compctl -caF -x \ + 'p[1]' -k hostnames - \ + 'c[-1,-l]' -k "(yuuji)" - \ + 'C[-1,-[RL]] C[0,[0-9]*] n[1,:]' -k hostnames -S : - \ + 's[-]' -k winopt - 'c[-1,-display]' -k '($DISPLAY)' -S ' ' - \ + 'C[-2,-[RLlp]][-1,-[fnqPtvxC]]' -k hostnames - \ + 'p[-1]' -l '' -- ssh + +compctl -caF -x 'p[1]' -k hostnames - \ + 'c[-1,kterm] s[-]' -k '(fn fl fk T)' - \ + 'p[2,-1]' -l '' - \ + 'c[-1,-fl]' \ + -k '("-*-fixed-medium-normal--16-iso*")' \ + -S ' -fn 8x16 -fk kanji16&' - \ + -- xon xrsh +compctl -x \ + 's[-]' -k winopt - \ + 'c[-1,-display]' -k hostnames -S ':0 ' - \ + 'c[-1,-file]' -f - \ + 'C[-1,-*geometry]' -k '(+0+0 +400+0 -0+0)' -- xpbiff xbiff + +compctl -f -x \ + 's[-]' -k winopt + -k \ + '(owncmap expand gamma aspect best24 mono wait nolimits 2xlimit)' - \ + 'C[-1,-geometry]' -k '(+1+1)' -- xv xv8 + + +glob_netscape () { + local n a p + read -cA a + read -cn n + p=`echo $a[$n]|sed 's,.*~yuuji/,,'` + reply=(~/http/$^p*(N:s,$HOME/http/,,)) +} + +compctl -x \ + 's[http://vfr/~yuuji/]' -K glob_netscape -- netscape + +# C compilers +compctl -g "*.[cCoa]" -x 's[-I][-L]' -g "*(/)" - \ + 'C[-1,-o]' -g "*.c(:r)" - \ + 's[-l]' -s '${(s.:.)^LD_LIBRARY_PATH}/lib*.a(:t:r:s/lib//) \ + /usr/{,*/}lib/lib*.a(:t:r:s/lib//)' -- cc gcc + +# Java compiler and interpreter +compctl -g "*(-/) *.java" javac +compctl -g "*.class(:r)" -x \ + 'p[2,-1]' -f -- java kaffe + +### +# for netpbm +### +compctl -f -x 's[-]' -k '(interlace transparent)' -- ppmtogif +compctl -f -x 'p[1]' -k '(256 200)' -S ' | ppmtogif' -- ppmquant + +### +# for ImageMagick +### +compctl -f -x \ + 's[-]' -k '(colors delay gamma geometry interlace monochrome \ + quality rotate)' - \ + 'c[-1,-interlace]' -k '(line none plane partition)' -- convert + +### +# Miscellaneous +### +# GNU Emacs +compctl -g "^*[#~] .*" -x \ + 's[-]' -k "(user nw batch e insert kill load display geometry)" - \ + 's[+]' -X "Line number" - \ + 'c[-2,-batch] c[-1,-e]' -k "(batch-byte-compile)" - \ + 'c[-1,-batch]' -k "(-e)" -S ' batch-byte-compile ' - \ + 'c[-1,-e]' -k "(mew mh-rmail mh-smail resume-windows trr)" - \ + 'c[-1,-display]' -k hostnames -S ":0 " - \ + 'c[-1,-geometry]' -k "(+0+0 80x37+0+0 80x26+0+0)" - \ + 'c[-1,-user]' -u -- mule $emacs m1 tamago canna emacs + +compctl -g "*(-/)" -x \ + 's[-]' -k '(fstype name perm prune type user nouser group nogroup \ + size \ + inum atime mtime ctime exec ok print ls cpio ncpio newer \ + xdev depth)' - \ + 'c[-1,-type]' -k '(c b d f p l s)' - 'c[-1,-user]' -u - \ + 'r[-exec,;][-ok,;]' -l '' -- find + +compctl -x \ + 'c[-1,-f]' -g "[Mm]ake* *.[Mm]*[Kk] *(-/)" - \ + 's[CC]' -P "='" -k '(gcc cc)' -S " -pipe" - \ + 'S[CF]' -S "='" -k '(CFLAGS)' - \ + 's[-I],s[-L]' -g "*(-/)" -- make gmake + +compctl -g "(|.)*~*.[ch] *(-/)" rm + +compctl -f -x \ + 'c[-1,-man]' -g "*.[0-9] *.man *(-/)" -- nroff jgroff + +compctl -g "(|*).obj *(-/)" tgif prtgif + +compctl -f -x \ + 's[-]' -k '(s R mv rm mkindex refresh pick flush perf \ + delete reclassify)' - \ + -- ftpurl +compctl -g "(|*).(smc|SMC)(|.gz) *(-/)" snes9x +compctl -g "(|*).(nes|NES)(|.gz) *(-/)" ines +compctl -x 's[if=],s[of=]' -f -- dd +compctl -x \ + 'n[1,freebsd]' -k '(2.2.8 3.1)' - \ + 'n[1,i386]' -k '(-amd-freebsd -intel-freebsd)' - \ + 'n[1,i586]' -k '(-amd-freebsd -intel-freebsd)' - \ + 'n[1,=]' -k '(yes no)' + -f - \ + 's[--]' -k '(prefix disable with-mule program-prefix target \ + with-canna with-canna-libraries with-canna-includes)' -S '=' - \ + 's[i]' -k '(386-amd-freebsd 586-intel-freebsd)' -S '' - \ + 'S[s]' -k '(sparc-sun-netbsd1.3.1 sparc-sun-sunos)' -S '' - \ + -- configure conf + +glob_syncdir () { + local n a p=1 table=${SYNCDIRTABLE:-~/.syncdir} lo + read -cA a #$B%3%^%s%I%i%$%sA4BN$rG[Ns(B a $B$KF~$l$k(B + read -cn n #$B0z?t$N?t$r(B n $B$KF~$l$k(B + while [[ $p -lt $n ]] { + [[ -f $a[$p] && "$lo" = "-f" ]] && table=$a[$p] + lo=$a[$p] + p=$[++p] + } + reply=(`sed -n "/[^A-z]/s/:.*//p" $table`) +} +compctl -g "(.|)*(-/)" -x \ + 's[-]' -k '(d l L e n N p x q f V r a A)' - \ + 'c[-1,-f]' -f - \ + 'c[-1,-V]' -K glob_syncdir -- syncdir diff --git a/NetBSD8/etc/skel/.zshenv b/NetBSD8/etc/skel/.zshenv new file mode 100644 index 0000000..ac442ea --- /dev/null +++ b/NetBSD8/etc/skel/.zshenv @@ -0,0 +1,7 @@ +# +# + +export SKELDIR=/etc/skel +source $SKELDIR/.zshenv.default + +# �Ŀ����꤬����аʲ��˽� diff --git a/NetBSD8/etc/skel/.zshenv.default b/NetBSD8/etc/skel/.zshenv.default new file mode 100644 index 0000000..395b19e --- /dev/null +++ b/NetBSD8/etc/skel/.zshenv.default @@ -0,0 +1,35 @@ +path=(/usr/{,s}bin /{,s}bin /usr/X*/bin(N) /usr/local/{bin,etc} /usr/{koeki,local}/bin/[A-Z]*(N)) +manpath=(/usr/share/man /usr/local/man /usr/{koeki,local}/*/man(N) /var/qmail/man) + +HISTFILE=~/.history +HISTSIZE=100 + +export PAGER=less +export JLESSCHARSET=japanese +export CANNAHOST=unix +export MAILDIR=~/maildir +export LC_CTYPE=ja_JP.UTF-8 LC_MESSAGES=ja_JP.UTF-8 +export XMODIFIERS="@im=kinput2" +export BLOCKSIZE=m + +setopt auto_menu auto_cd correct auto_name_dirs auto_remove_slash +setopt extended_history hist_ignore_dups hist_ignore_space prompt_subst +setopt pushd_ignore_dups rm_star_silent sun_keyboard_hack +setopt extended_glob list_types no_beep always_last_prompt +setopt cdable_vars sh_word_split auto_param_keys + +# This should be in .zshenv for xdm environment. +limit coredumpsize 0 + +case $USER in + c[123][0-9][0-9]*) + yearmod=$[`expr ${USER##c[123]} : '\(..\)'` % 4] + case $yearmod in + 1) QMAILHOST=e.koeki-u.ac.jp ;; + 2) QMAILHOST=f.koeki-u.ac.jp ;; + 3) QMAILHOST=g.koeki-u.ac.jp ;; + 0) QMAILHOST=h.koeki-u.ac.jp ;; + *) QMAILHOST=e.koeki-u.ac.jp ;; + esac + export QMAILHOST +esac diff --git a/NetBSD8/etc/skel/.zshrc b/NetBSD8/etc/skel/.zshrc new file mode 100644 index 0000000..2a0755c --- /dev/null +++ b/NetBSD8/etc/skel/.zshrc @@ -0,0 +1,3 @@ +# +# +source ${SKELDIR:-/etc/skel}/.zshrc.default diff --git a/NetBSD8/etc/skel/.zshrc.default b/NetBSD8/etc/skel/.zshrc.default new file mode 100644 index 0000000..fcc9d25 --- /dev/null +++ b/NetBSD8/etc/skel/.zshrc.default @@ -0,0 +1,14 @@ +bindkey -e +bindkey '^p' history-beginning-search-backward +bindkey '^n' history-beginning-search-forward +alias ls='ls -F' +alias ll='ls -la' +dir() {ls -lF $*|TERM=dumb JLESSCHARSET= more} + +PROMPT='%{[$[32+$RANDOM % 5]m%}%U%B%m'"{`whoami`}%b%%%{%}%u " +RPROMPT="[%U%~%u]" +limit coredumpsize 0 +source ~/.zshcompctl +mesg y + +[[ -f /etc/skel/.zshaux ]] && source /etc/skel/.zshaux diff --git a/NetBSD8/etc/skel/hello.rb b/NetBSD8/etc/skel/hello.rb new file mode 100644 index 0000000..8370399 --- /dev/null +++ b/NetBSD8/etc/skel/hello.rb @@ -0,0 +1,3 @@ +# coding: utf-8 +puts "Hello" +puts "こんにちは世界" diff --git a/NetBSD8/etc/skel/script/Xdefaults/tgif b/NetBSD8/etc/skel/script/Xdefaults/tgif new file mode 100644 index 0000000..6d3e2b8 --- /dev/null +++ b/NetBSD8/etc/skel/script/Xdefaults/tgif @@ -0,0 +1,266 @@ +!Tgif*ReverseVideo: on +Tgif*XLibArc: on +!Tgif*InitialFont: Gothic +Tgif*InitialKanjiFont: Gothic +Tgif*AutoKinput: on +Tgif*KanjiMinchou16: kanji16 +Tgif*KanjiMinchou24: kanji24 +!Tgif*WhereToPrint: LaTeXFigure +Tgif.PreeditType: overthespot +Tgif*SaveWithEPS: on +!Tgif*Background: black +!Tgif*Foreground: white +Tgif*WhereToPrint: EPS +Tgif*InitialFontSize: 16 +Tgif*InitialFont: Ryumin +Tgif*FontSizes: 10 12 14 16 18 20 22 24 26 30 34 36 40 44 48 52 56 60 64 80 100 +Tgif.SquareDoubleByteFonts: \n\ +-ipa-ipamincho-medium-r-*--%d-*-*-*-*-*-jisx0208.1983-*,H,Ryumin-Light-EUC-H\n\ +-ipa-ipamincho-medium-r-*--%d-*-*-*-*-*-jisx0208.1983-*,H,Ryumin-Light-EUC-H\n\ +-ipa-ipamincho-medium-i-*--%d-*-*-*-*-*-jisx0208.1983-*,H,Ryumin-Light-EUC-H\n\ +-ipa-ipamincho-medium-r-*--%d-*-*-*-*-*-jisx0208.1983-*,H,Ryumin-Light-EUC-H\n\ +\n\ +-ipa-ipagothic-medium-r-*--%d-*-*-*-*-*-jisx0208.1983-*,H,GothicBBB-Medium-EUC-H\n\ +-ipa-ipagothic-medium-r-*--%d-*-*-*-*-*-jisx0208.1983-*,H,GothicBBB-Medium-EUC-H\n\ +-ipa-ipagothic-medium-i-*--%d-*-*-*-*-*-jisx0208.1983-*,H,GothicBBB-Medium-EUC-H\n\ +-ipa-ipagothic-medium-r-*--%d-*-*-*-*-*-jisx0208.1983-*,H,GothicBBB-Medium-EUC-H\n\ +\n\ +-ipa-ipamincho-medium-r-*--%d-*-*-*-*-*-jisx0208.1983-*,V,Ryumin-Light-EUC-V\n\ +-ipa-ipamincho-medium-r-*--%d-*-*-*-*-*-jisx0208.1983-*,V,Ryumin-Light-EUC-V\n\ +-ipa-ipamincho-medium-i-*--%d-*-*-*-*-*-jisx0208.1983-*,V,Ryumin-Light-EUC-V\n\ +-ipa-ipamincho-medium-r-*--%d-*-*-*-*-*-jisx0208.1983-*,V,Ryumin-Light-EUC-V\n\ +\n\ +-ipa-ipagothic-medium-r-*--%d-*-*-*-*-*-jisx0208.1983-*,V,GothicBBB-Medium-EUC-V\n\ +-ipa-ipagothic-medium-r-*--%d-*-*-*-*-*-jisx0208.1983-*,V,GothicBBB-Medium-EUC-V\n\ +-ipa-ipagothic-medium-i-*--%d-*-*-*-*-*-jisx0208.1983-*,V,GothicBBB-Medium-EUC-V\n\ +-ipa-ipagothic-medium-r-*--%d-*-*-*-*-*-jisx0208.1983-*,V,GothicBBB-Medium-EUC-V\n\ +-*-hgedomojikanteiryu-medium-r-*--%d-*-*-*-*-*-jisx0208.1983-*,H,Kantei-Medium-EUC-H\n\ +-*-hgedomojikanteiryu-medium-r-*--%d-*-*-*-*-*-jisx0208.1983-*,H,Kantei-Medium-EUC-H\n\ +-*-hgedomojikanteiryu-medium-i-*--%d-*-*-*-*-*-jisx0208.1983-*,H,Kantei-Medium-EUC-H\n\ +-*-hgedomojikanteiryu-medium-r-*--%d-*-*-*-*-*-jisx0208.1983-*,H,Kantei-Medium-EUC-H + +Tgif.DoubleByteInputMethod: kinput2 +Tgif.Lang: ja_JP.EUC +Tgif.Modifiers: false +Tgif.ConvSelection: _JAPANESE_CONVERSION +Tgif.RyuminShowFontChar: \244\242 +!Tgif.PreeditType: root +Tgif.GothicBBBShowFontChar: \244\316 +! #include "TgifColor" +Tgif*MaxColors: 216 +Tgif*Color0:#000000 +Tgif*Color1:#000047 +Tgif*Color2:#005b00 +Tgif*Color3:#330000 +Tgif*Color4:#000084 +Tgif*Color5:#005b47 +Tgif*Color6:#00a300 +Tgif*Color7:#330047 +Tgif*Color8:#335b00 +Tgif*Color9:#660000 +Tgif*Color10:#0000b8 +Tgif*Color11:#005b84 +Tgif*Color12:#00a347 +Tgif*Color13:#00d700 +Tgif*Color14:#330084 +Tgif*Color15:#335b47 +Tgif*Color16:#33a300 +Tgif*Color17:#660047 +Tgif*Color18:#665b00 +Tgif*Color19:#990000 +Tgif*Color20:#0000e0 +Tgif*Color21:#005bb8 +Tgif*Color22:#00a384 +Tgif*Color23:#00d747 +Tgif*Color24:#00f500 +Tgif*Color25:#3300b8 +Tgif*Color26:#335b84 +Tgif*Color27:#33a347 +Tgif*Color28:#33d700 +Tgif*Color29:#660084 +Tgif*Color30:#665b47 +Tgif*Color31:#66a300 +Tgif*Color32:#990047 +Tgif*Color33:#995b00 +Tgif*Color34:#cc0000 +Tgif*Color35:#0000ff +Tgif*Color36:#005be0 +Tgif*Color37:#00a3b8 +Tgif*Color38:#00d784 +Tgif*Color39:#00f547 +Tgif*Color40:#00ff00 +Tgif*Color41:#3300e0 +Tgif*Color42:#335bb8 +Tgif*Color43:#33a384 +Tgif*Color44:#33d747 +Tgif*Color45:#33f500 +Tgif*Color46:#6600b8 +Tgif*Color47:#665b84 +Tgif*Color48:#66a347 +Tgif*Color49:#66d700 +Tgif*Color50:#990084 +Tgif*Color51:#995b47 +Tgif*Color52:#99a300 +Tgif*Color53:#cc0047 +Tgif*Color54:#cc5b00 +Tgif*Color55:#ff0000 +Tgif*Color56:#005bff +Tgif*Color57:#00a3e0 +Tgif*Color58:#00d7b8 +Tgif*Color59:#00f584 +Tgif*Color60:#00ff47 +Tgif*Color61:#3300ff +Tgif*Color62:#335be0 +Tgif*Color63:#33a3b8 +Tgif*Color64:#33d784 +Tgif*Color65:#33f547 +Tgif*Color66:#33ff00 +Tgif*Color67:#6600e0 +Tgif*Color68:#665bb8 +Tgif*Color69:#66a384 +Tgif*Color70:#66d747 +Tgif*Color71:#66f500 +Tgif*Color72:#9900b8 +Tgif*Color73:#995b84 +Tgif*Color74:#99a347 +Tgif*Color75:#99d700 +Tgif*Color76:#cc0084 +Tgif*Color77:#cc5b47 +Tgif*Color78:#cca300 +Tgif*Color79:#ff0047 +Tgif*Color80:#ff5b00 +Tgif*Color81:#00a3ff +Tgif*Color82:#00d7e0 +Tgif*Color83:#00f5b8 +Tgif*Color84:#00ff84 +Tgif*Color85:#335bff +Tgif*Color86:#33a3e0 +Tgif*Color87:#33d7b8 +Tgif*Color88:#33f584 +Tgif*Color89:#33ff47 +Tgif*Color90:#6600ff +Tgif*Color91:#665be0 +Tgif*Color92:#66a3b8 +Tgif*Color93:#66d784 +Tgif*Color94:#66f547 +Tgif*Color95:#66ff00 +Tgif*Color96:#9900e0 +Tgif*Color97:#995bb8 +Tgif*Color98:#99a384 +Tgif*Color99:#99d747 +Tgif*Color100:#99f500 +Tgif*Color101:#cc00b8 +Tgif*Color102:#cc5b84 +Tgif*Color103:#cca347 +Tgif*Color104:#ccd700 +Tgif*Color105:#ff0084 +Tgif*Color106:#ff5b47 +Tgif*Color107:#ffa300 +Tgif*Color108:#00d7ff +Tgif*Color109:#00f5e0 +Tgif*Color110:#00ffb8 +Tgif*Color111:#33a3ff +Tgif*Color112:#33d7e0 +Tgif*Color113:#33f5b8 +Tgif*Color114:#33ff84 +Tgif*Color115:#665bff +Tgif*Color116:#66a3e0 +Tgif*Color117:#66d7b8 +Tgif*Color118:#66f584 +Tgif*Color119:#66ff47 +Tgif*Color120:#9900ff +Tgif*Color121:#995be0 +Tgif*Color122:#99a3b8 +Tgif*Color123:#99d784 +Tgif*Color124:#99f547 +Tgif*Color125:#99ff00 +Tgif*Color126:#cc00e0 +Tgif*Color127:#cc5bb8 +Tgif*Color128:#cca384 +Tgif*Color129:#ccd747 +Tgif*Color130:#ccf500 +Tgif*Color131:#ff00b8 +Tgif*Color132:#ff5b84 +Tgif*Color133:#ffa347 +Tgif*Color134:#ffd700 +Tgif*Color135:#00f5ff +Tgif*Color136:#00ffe0 +Tgif*Color137:#33d7ff +Tgif*Color138:#33f5e0 +Tgif*Color139:#33ffb8 +Tgif*Color140:#66a3ff +Tgif*Color141:#66d7e0 +Tgif*Color142:#66f5b8 +Tgif*Color143:#66ff84 +Tgif*Color144:#995bff +Tgif*Color145:#99a3e0 +Tgif*Color146:#99d7b8 +Tgif*Color147:#99f584 +Tgif*Color148:#99ff47 +Tgif*Color149:#cc00ff +Tgif*Color150:#cc5be0 +Tgif*Color151:#cca3b8 +Tgif*Color152:#ccd784 +Tgif*Color153:#ccf547 +Tgif*Color154:#ccff00 +Tgif*Color155:#ff00e0 +Tgif*Color156:#ff5bb8 +Tgif*Color157:#ffa384 +Tgif*Color158:#ffd747 +Tgif*Color159:#fff500 +Tgif*Color160:#00ffff +Tgif*Color161:#33f5ff +Tgif*Color162:#33ffe0 +Tgif*Color163:#66d7ff +Tgif*Color164:#66f5e0 +Tgif*Color165:#66ffb8 +Tgif*Color166:#99a3ff +Tgif*Color167:#99d7e0 +Tgif*Color168:#99f5b8 +Tgif*Color169:#99ff84 +Tgif*Color170:#cc5bff +Tgif*Color171:#cca3e0 +Tgif*Color172:#ccd7b8 +Tgif*Color173:#ccf584 +Tgif*Color174:#ccff47 +Tgif*Color175:#ff00ff +Tgif*Color176:#ff5be0 +Tgif*Color177:#ffa3b8 +Tgif*Color178:#ffd784 +Tgif*Color179:#fff547 +Tgif*Color180:#ffff00 +Tgif*Color181:#33ffff +Tgif*Color182:#66f5ff +Tgif*Color183:#66ffe0 +Tgif*Color184:#99d7ff +Tgif*Color185:#99f5e0 +Tgif*Color186:#99ffb8 +Tgif*Color187:#cca3ff +Tgif*Color188:#ccd7e0 +Tgif*Color189:#ccf5b8 +Tgif*Color190:#ccff84 +Tgif*Color191:#ff5bff +Tgif*Color192:#ffa3e0 +Tgif*Color193:#ffd7b8 +Tgif*Color194:#fff584 +Tgif*Color195:#ffff47 +Tgif*Color196:#66ffff +Tgif*Color197:#99f5ff +Tgif*Color198:#99ffe0 +Tgif*Color199:#ccd7ff +Tgif*Color200:#ccf5e0 +Tgif*Color201:#ccffb8 +Tgif*Color202:#ffa3ff +Tgif*Color203:#ffd7e0 +Tgif*Color204:#fff5b8 +Tgif*Color205:#ffff84 +Tgif*Color206:#99ffff +Tgif*Color207:#ccf5ff +Tgif*Color208:#ccffe0 +Tgif*Color209:#ffd7ff +Tgif*Color210:#fff5e0 +Tgif*Color211:#ffffb8 +Tgif*Color212:#ccffff +Tgif*Color213:#fff5ff +Tgif*Color214:#ffffe0 +Tgif*Color215:#ffffff diff --git a/NetBSD8/etc/skel/script/canna/Makefile b/NetBSD8/etc/skel/script/canna/Makefile new file mode 100644 index 0000000..e3f5977 --- /dev/null +++ b/NetBSD8/etc/skel/script/canna/Makefile @@ -0,0 +1,18 @@ +# +# Makefile for atok7 simulating WXII+ key assign table of Canna. +# + +all: wxiia7.cbp + +wxiia7.cbp: wxiia7.rdef + mkromdic wxiia7.rdef + +buche: wxiia7.rdef emuegg.rdef + mkromdic -DBYU wxiia7.rdef + +bu: + rm wxiia7.kp + mkromdic -DBYU wxiia7.rdef + +clean: + rm -f wxiia7.kp diff --git a/NetBSD8/etc/skel/script/canna/wxiia7.cbp b/NetBSD8/etc/skel/script/canna/wxiia7.cbp new file mode 100644 index 0000000..adc7aab --- /dev/null +++ b/NetBSD8/etc/skel/script/canna/wxiia7.cbp Binary files differ diff --git a/NetBSD8/etc/skel/script/canna/wxiia7.rdef b/NetBSD8/etc/skel/script/canna/wxiia7.rdef new file mode 100644 index 0000000..9dcc18e --- /dev/null +++ b/NetBSD8/etc/skel/script/canna/wxiia7.rdef @@ -0,0 +1,335 @@ +@568 ����88��1 + +1 1 +2 2 +3 3 +4 4 +5 5 +6 6 +7 7 +8 8 +9 9 +0 0 + +a �� +i �� +u �� +e �� +o �� +ka �� +ki �� +ku �� +ke �� +ko �� +sa �� +si �� +su �� +se �� +so �� +ta �� +ti �� +tu �� + +te �� +to �� +na �� +ni �� +nu �� +ne �� +no �� +ha �� +hi �� +hu �� +he �� +ho �� +ma �� +mi �� +mu �� +me �� +mo �� +ya �� + +yi �� + +yu �� +ye ���� +yo �� +ra �� +ri �� +ru �� +re �� +ro �� +wa �� +wu �� +wo �� +ga �� +gi �� +gu �� +ge �� +go �� +za �� +zi �� +zu �� +ze �� +zo �� +da �� +di �� +du �� +de �� +do �� +ba �� +bi �� +bu �� +be �� +bo �� +pa �� +pi �� +pu �� +pe �� +po �� +fa �դ� +fi �դ� +fu �� +fe �դ� +fo �դ� +ja ���� +ji �� +ju ���� +je ���� +jo ���� + +kya ���� +kyi ���� +kyu ���� +kye ���� +kyo ���� +gya ���� +gyi ���� +gyu ���� +gye ���� +gyo ���� +sya ���� +syi ���� +syu ���� +sye ���� +syo ���� +zya ���� +zyi ���� +zyu ���� +zye ���� +zyo ���� + +tya ���� +tyi ���� +tyu ���� +tye ���� +tyo ���� + +dya �¤� +dyi �¤� +dyu �¤� +dye �¤� +dyo �¤� +nya �ˤ� +nyi �ˤ� +nyu �ˤ� +nye �ˤ� +nyo �ˤ� +hya �Ҥ� +hyi �Ҥ� +hyu �Ҥ� +hye �Ҥ� +hyo �Ҥ� + +bya �Ӥ� +byi �Ӥ� +byu �Ӥ� +bye �Ӥ� +byo �Ӥ� +pya �Ԥ� +pyi �Ԥ� +pyu �Ԥ� +pye �Ԥ� +pyo �Ԥ� +mya �ߤ� +myi �ߤ� +myu �ߤ� +mye �ߤ� +myo �ߤ� +rya ��� +ryi �ꤣ +ryu ��� +rye �ꤧ +ryo ��� +tsa �Ĥ� +tsi �Ĥ� +tsu �� +tse �Ĥ� +tso �Ĥ� + +sha ���� +shi �� +shu ���� +she ���� +sho ���� + +cha ���� +chi �� +chu ���� +che ���� +cho ���� + +ca �� +ce �� +co �� + +jya ���� +jyi ���� +jyu ���� +jye ���� +jyo ���� +tha �Ƥ� +thi �Ƥ� +thu �Ƥ� +the �Ƥ� +tho �Ƥ� +dha �Ǥ� +dhi �Ǥ� +dhu �Ǥ� +dhe �Ǥ� +dho �Ǥ� +wi ���� +we ���� + +la �� +le �� +li �� +lo �� +ltu �� +ltsu �� +lu �� +lya �� +lye �� +lyi �� +lyo �� +lyu �� + +qi �� +qe �� +va ���� +vi ���� +vu ���� +ve ���� +vo ���� +vya ���� +vyu ���� +vyo ���� +n �� +mn �� + +nn �� +kk �� k +gg �� g +jj �� j +ss �� s +zz �� z +tt �� t +dd �� d +bb �� b +tch �� ch +ff �� f +hh �� h +pp �� p +cch �� ch +ssh �� sh + + +, �� +. �� + +x[ [ +[ �� +x] ] +] �� + +z1 �� +z2 �� +z3 �� +z4 �� +z5 �� +z6 �� +z7 �� +z8 �� +z9 �� +z0 �� +z- �� +z= �� +z! �� +z@ �� +z# �� +z$ �� +z% �� +z^ �� +z& �� +z\* �� +z\( �� +z\) �� +Z_ �� +z+ �� +zq �� +zw �� +zr �� +zt �� +zp �� +z[ �� +z] �� +zs \ +zd �� +zf �� +zh �� +zj �� +zk �� +zl �� +z'' \�� +z\` \�� +zx :-) +z; \ ^^; +zc �� +zv �� +zb �� +zn �� +zm �� +z, �� +z. �� +z/ �� +Z. �� +Z, �� + + +/* ɸ��� egg-rc �Ϥ����ޤ� */ + +n\' �� \0 ' +Z{ �� +Z} �� +Z^ �� +Z< �� +Z> �� +- �� +x- - +Z- �� +Zs �� +\\ �� +Z\\ �� +z\\ \\ +x, , +x. . +Z|| �� +Z| �� +x8 �� +;> > +;< < +;& & +;ap ���ץꥱ������� +;ut �桼�ƥ���ƥ� +;dir �ǥ��쥯�ȥ� +;@ @gentei.org diff --git a/NetBSD8/etc/skel/script/keydef/106.map b/NetBSD8/etc/skel/script/keydef/106.map new file mode 100644 index 0000000..10a5b8a --- /dev/null +++ b/NetBSD8/etc/skel/script/keydef/106.map @@ -0,0 +1,16 @@ +clear lock +add control = Caps_Lock +keycode 49 = Escape +keycode 64 = Meta_L Meta_L +keycode 123 = grave asciitilde +keycode 133 = backslash bar +keycode 131 = Alt_L +keycode 120 = Meta_L +keycode 129 = Alt_R +keycode 113 = Meta_R +clear mod1 +clear mod3 +add mod1 = Meta_L +add mod1 = Meta_R +add mod3 = Alt_L +add mod3 = Alt_R diff --git "a/NetBSD8/etc/skel/\343\201\246\343\202\211\343\201\223\343\201\243\343\201\237\343\201\270\343\202\210\343\201\206\343\201\223\343\201\235.odt" "b/NetBSD8/etc/skel/\343\201\246\343\202\211\343\201\223\343\201\243\343\201\237\343\201\270\343\202\210\343\201\206\343\201\223\343\201\235.odt" new file mode 100644 index 0000000..fa7a333 --- /dev/null +++ "b/NetBSD8/etc/skel/\343\201\246\343\202\211\343\201\223\343\201\243\343\201\237\343\201\270\343\202\210\343\201\206\343\201\223\343\201\235.odt" Binary files differ diff --git "a/NetBSD8/etc/skel/\343\201\246\343\202\211\343\201\223\343\201\243\343\201\237\343\201\270\343\202\210\343\201\206\343\201\223\343\201\235.pdf" "b/NetBSD8/etc/skel/\343\201\246\343\202\211\343\201\223\343\201\243\343\201\237\343\201\270\343\202\210\343\201\206\343\201\223\343\201\235.pdf" new file mode 100644 index 0000000..2d26f4f --- /dev/null +++ "b/NetBSD8/etc/skel/\343\201\246\343\202\211\343\201\223\343\201\243\343\201\237\343\201\270\343\202\210\343\201\206\343\201\223\343\201\235.pdf" Binary files differ diff --git a/NetBSD8/root/clone_me.sh b/NetBSD8/root/clone_me.sh new file mode 100755 index 0000000..121bd53 --- /dev/null +++ b/NetBSD8/root/clone_me.sh @@ -0,0 +1,266 @@ +#!/bin/sh +# +# This script should be located in $rootfs/root +# +disk="${1:-sd1}" +case $disk in + sd*) defaultboot=${disk%%[0-9]*}0 ;; # heuristics of determining bootdisk + wd*) defaultboot=$disk ;; + *) defaultboot=wd0 ;; +esac +bootdisk=${BOOTDISK:-$defaultboot} +MNTROOT=${MNTROOT:-/.mnt/$disk} +WAIT=${WAIT:-5} +[ "$YES" ] && WAIT=0 +ofs=63 +ofs=2048 +id=169 +dosid=11 +v=${V:+v} +z=${Z:-512} # DOS partition size in MB +Apart=${A:-1024} # root partition size in MB +dossz=`expr $z \* 1024 \* 2` +mydir=`dirname $0` +rootfs=`cd $mydir/..; pwd -P` +fstab=$rootfs/etc/fstab +rootinfstab=`awk '$2 == "/"{print $1}' $fstab | sed 's,/dev/,,'` +diskinfstab=${rootinfstab%a} # is maybe sd0 +SITE_LOCAL_DIR=../SITE_LOCAL # Relative to rootfs + + +aboutamount=9g +##echo $dossz + +mkdir_ifnot() { + [ -d "$1" ] || mkdir "$1" +} + +mntsetup() { + if [ ! -d $MNTROOT ]; then + mkdir -p $MNTROOT + CLEAN="rmdir $MNTROOT" + fi +} + +sysfinal() { + echo -n "Unmounting new-root fs..." + umount $MNTROOT + echo done + eval "$CLEAN" +} +sysconfig() { + mntsetup + trap sysfinal INT QUIT HUP + mount /dev/${disk}a $MNTROOT + if [ ! -d $MNTROOT/etc -o ! -s $MNTROOT/etc/fstab ]; then + echo "Initial installation not finished...abort" 1>&2 + exit 1 + fi + if [ x"$HOSTNAME" != x"" ]; then + echo "$HOSTNAME" > $MNTROOT/etc/myname + fi + if [ x"$NEWUSER" != x"" ]; then + cp=`echo -n hogehoge|pwhash -b 4` + gc=${GECOS:-"Default user"} + rcfile="etc/rc.d/firstsetup" + setup="$setup"" +userdel -r $NEWUSER >/dev/null 2>&1 +useradd -m -s /bin/zsh -b /usr/home -G operator -G wheel -c '$gc' -p '$cp' $NEWUSER +echo '$NEWUSER ALL = ALL(ALL)' >> /etc/sudoers +chmod og-r /etc/sudoers +" + fi + if [ x"$GATEWAY" != x"" ]; then + echo "$GATEWAY" > $MNTROOT/etc/mygate + fi + if [ x"$DNS" != x"" ]; then + for ns in $DNS; do + case $ns in + *.*.*.*) + echo "nameserver $ns" + esac + done > $MNTROOT/etc/resolv.conf + fi + if [ x"$IFCONFIG" != x"" ]; then + echo "$IFCONFIG" > $MNTROOT/etc/ifconfig.IF + setup="$setup"" +for IF in \`ifconfig -lb\`; do + ifconfig \$IF | grep -iq 'media: ethernet.*(.*)' && break + IF='' +done +if [ x\"\$IF\" != x\"\" ]; then + ln -s ifconfig.IF /etc/ifconfig.\$IF + /etc/rc.d/network start +fi +" + fi + if [ x"$setup" != x"" ]; then + cat>$MNTROOT/root/firstsetup</dev/null 2>&1; then + if [ ! "$FDISK" -a ! "$YES" ]; then + echo -n "NetBSD partition already exists. Proceed?: " + read ans + case "$ans" in + [Yy]*) ;; + *) echo Abort.; exit 1 ;; + esac + fi +fi + +if [ ! "$NOFDISK" ]; then + eval `fdisk -S /dev/$disk 2>/dev/null` + nbofs=`expr $dossz + $ofs` + nbsz=`expr $BDLSIZE - $nbofs` + sopt1="-s $dosid/$ofs/$dossz/Zdrive" + sopt2="-s $id/$nbofs/$nbsz/NetBSD" + echo $sopt1 $sopt2 + echo fdisk -a0iuf $sopt /dev/$disk + [ "$z" -gt 0 ] && fdisk -i0uf $sopt1 /dev/$disk >/dev/null 2>&1 + fdisk -u2f -s 0/0/0 /dev/$disk >/dev/null 2>&1 + fdisk -u3f -s 0/0/0 /dev/$disk >/dev/null 2>&1 + fdisk -a1uf $sopt2 /dev/$disk >/dev/null 2>&1 +fi + +if [ ! "$NODISKLABEL" ]; then + echo -n Creating disklabel... + Epart=`expr $nbsz - ${Apart} \* 1024 \* 2` + [ "$z" -gt 0 ] && useM=yes + disklabel -iI /dev/$disk >/dev/null 2>&1 <<_EOF_ +a +4.2BSD +$nbofs +${Apart}m +e +4.2BSD +a +${Epart} +f +unused +0 +0 +${useM:+"m +MSDOS +$ofs +$dossz"} +W +y +Q +_EOF_ + #disklabel -r $disk + echo done +fi + +if [ ! "$NONEWFS" ]; then + echo -n Formatting partitions... + newfs -O2 -b 32768 -f 4k /dev/r${disk}a + ## newfs -b 65536 /dev/r${disk}e + ## newfs -i 1024 /dev/r${disk}e + #newfs -O2 /dev/r${disk}e + newfs -O2 -b 32k -f 4k /dev/r${disk}e + [ "$z" -gt 0 ] && newfs_msdos -L Zdrive /dev/r${disk}m + echo done + $skip +fi +installboot -v -o timeout=3 /dev/r${disk}a /usr/mdec/bootxx_ffsv2 + +cat $fstab | sed -e "s,/dev/${diskinfstab},/dev/${bootdisk}," +disklabel /dev/$disk | sed '1,/^$/d' +while true; do + printf "\rStarting copy in %s seconds...Type C-c to break." $WAIT + [ $WAIT -eq 0 ] && break + WAIT=$((WAIT - 1)) + sleep 1 +done +printf "\nCopying tree...\n" + +final () { + echo -n "Unmounting disks(takes a while)..." + umount $MNTROOT/usr + [ "$z" -gt 0 ] && umount $MNTROOT/Windows + umount $MNTROOT + echo done + eval $CLEAN +} +cd $mydir +cd .. +mntsetup # mkdir $MNTROOT +trap final INT QUIT HUP + + +mount -o log,noatime /dev/${disk}a $MNTROOT +mkdir_ifnot $MNTROOT/usr +mount -o log,noatime /dev/${disk}e $MNTROOT/usr +mkdir_ifnot $MNTROOT/usr/opt +if [ "$z" -gt 0 ]; then + mkdir_ifnot $MNTROOT/Windows + chmod 777 $MNTROOT/Windows + mount -t msdos -o -l /dev/${disk}m $MNTROOT/Windows +fi +ln -s usr/opt $MNTROOT +[ -d ./rootfs ] && cd rootfs + +if [ -f $MNTROOT/etc/fstab ]; then + echo "Seems to have cloned files. Using rsync..." + rsync -a${V}H --delete . $MNTROOT/ + echo "...rsync done." +else + touch /var/run/dev.db + [ `stat -f %d .` != `stat -f %d usr` ] && usr=usr + [ `stat -f %d .` != "`stat -f %d Windows`" ] && win=Windows + tar lcf - . $usr $win|progress -l $aboutamount tar ${V}xpfC - $MNTROOT +fi +# Site-local configurations +[ -d $SITE_LOCAL_DIR ] || SITE="" # Reset $SITE if not exist +SLTOP=`(cd $SITE_LOCAL_DIR && pwd -P)`/FILE_SYSTEM/ +if [ "$SITE" -a -d $SLTOP/$SITE ]; then + # We use rsync instead of UNION fs because union-fs is empty-dir spreader. + echo Copying site-dependent files... + rsync -a${V}H $SLTOP/$SITE/. $MNTROOT +fi + +ACCFILE=$SITE_LOCAL_DIR/ACC/$SITE/master.passwd +GRPFILE=$SITE_LOCAL_DIR/ACC/$SITE/group +# Add additional accounts +if [ -n "$SITE" -a -f $ACCFILE ]; then + # No need to confirm duplication, because SRCROOT/master.passwd is + # always copied to $MNTROOT/etc + echo "Creating site-local accounts to target password database." + cat $ACCFILE >> $MNTROOT/etc/master.passwd + if ! pwd_mkdb -d $MNTROOT $MNTROOT/etc/master.passwd 2>/dev/null ; then + # If failed, copy back to standard one. + cp etc/master.passwd $MNTROOT/etc \ + && pwd_mkdb -d $MNTROOT $MNTROOT/etc/master.passwd + fi + [ -f $GRPFILE ] && cat $GRPFILE >> $MNTROOT/etc/group +fi + +# Rewriting fstab to boot from wd0 or so. +cat $fstab | sed -e "s,/dev/${diskinfstab},/dev/${bootdisk}," > $MNTROOT/etc/fstab +# Allow shutdown to any user +chmod o+x $MNTROOT/sbin/shutdown +ls -lF $MNTROOT/sbin/shutdown +final diff --git a/NetBSD8/root/clone_me_gpt.sh b/NetBSD8/root/clone_me_gpt.sh new file mode 100755 index 0000000..f8651be --- /dev/null +++ b/NetBSD8/root/clone_me_gpt.sh @@ -0,0 +1,197 @@ +#!/bin/zsh -f +setopt sh_word_split +target=$1 +gptstart=34 +EFIsz=131038 # 64MB - 34blk +DOS_MB=512 +nbroot_MB=1024 + + +disks=`sysctl -n hw.disknames` +ffsdevs=`df -htffs|awk '/\/dev\// {print $1}'` +#echo ffsdevs="$ffsdevs" + +checkused() { + local d + dk=`dkctl $1 listwedges 2>/dev/null|grep '^dk[0-9][0-9]*:'|cut -d: -f1` + for d in $1 $dk; do + echo "$ffsdevs" | fgrep -wq $d && return 0 + done + return 1 +} +delwedges() { + local d + dk=`dkctl $1 listwedges 2>/dev/null|grep '^dk[0-9][0-9]*:'|cut -d: -f1` + for d in $dk; do + dkctl $1 delwedge $d + done + gpt destroy $1 +} +dklabel() { # $1=disk $2=index (eg. dk wd0 3) +:<<_EOC_ + /dev/rwd0d: 5 wedges: + dk5: EFI system, 131038 blocks at 34, type: efi + dk6: DOS, 524288 blocks at 131072, type: windows + dk7: _root, 1048576 blocks at 655360, type: ffs + dk8: swap, 524288 blocks at 1703936, type: swap + dk9: _data, 1071513567 blocks at 2228224, type: ffs +_EOC_ + dkctl $1 listwedges|tail +2|sed -n "${2}s/dk.*: \([^,]*\),.*/\1/p" +} +dkname() { # $1=PhysDev $2=index (eg. dkname wd0 2) + dkctl $1 listwedges|tail +2|sed -n "${2}s/:.*//p" +} +gpt_add() { # $1=disk $2=type $3=size $4=label + label=$4 + while ! gpt add -t $2 ${3:+-s} ${3:+$3} ${label:+"-l"} ${label:+"$label"} $1 + do + label=_$label + done + trial=3 + gpt show -l $1 | grep -- "- \"$label\"" | while read start size rest; do + while ! dkctl $1 addwedge "$label" $start $size $2; do + label=_$label + if [ $((--trial)) -le 0 ]; then + echo "Cannot set correct label to $1:$2" >&2; exit 3 + fi + done + #echo ::: dkctl $1 addwedge "$label" $start $size $2 + done +} + +if [ -z "$target" ]; then + installable="" + echo '========== Install Learning NetBSD system ==========' + echo ' Available disks are as follows:' + for d in ${=disks}; do + case "$d" in + [ws]d*|vnd*) + if ! checkused $d; then + grep "^${d}: .*sectors" /var/run/dmesg.boot + installable="$installable${installable:+ }$d" + fi + ;; + *) + ;; + esac + done + echo '=================================================' + if [ -n "$installable" ]; then + echo Choose install target DISK: >&2 + select i in ${=installable}; do + case "$i" in + "") ;; + *) target=$i; break ;; + esac + done + echo $target is selected + fi +fi + +if checkused $target; then + echo "Disk $target is in used" >&2 + exit 1 +fi +if [ -z "$target" ]; then + echo "Usage: $0 [targetdisk]" >&2 + exit 0 +fi +echo -n Configure target = $target: "Sure? " +read x +case "$x" in + [Nn]*) exit 0 ;; +esac + +# +# Create GPT +# +dd if=/dev/zero of=/dev/r${target}d bs=1m count=1 +delwedges $target +gpt destroy $target +gpt create $target +DOSsz=$((DOS_MB*1024**2/512)) +NBROOTsz=$((nbroot_MB*1024**2/512)) +swapsz=${SWAPSZ:-$DOSsz} +lb_dos="${target}DOS" +lb_root="${target}root" +lb_swap="${target}swap" +lb_data="${target}data" +# EFI +gpt_add $target efi $EFIsz 'EFI system' +# FAT data storage +gpt_add $target windows $DOSsz "$lb_dos" +# 3. NetBSD root partition +gpt_add $target ffs $NBROOTsz "$lb_root" +echo ::: dkctl $target addwedge root $((gptstart+EFIsz+DOSsz)) $NBROOTsz ffs +# 4. NetBSD swap partition +gpt_add $target swap $swapsz "$lb_swap" +# 5. NetBSD usr partition +gpt_add $target ffs '' "$lb_data" +# +# Collect label names of index 3,4,5 +# +p_dos=`dklabel $target 2` +p_root=`dklabel $target 3` +p_swap=`dklabel $target 4` +p_usr=`dklabel $target 5` +# format and copy +dev_efi=`dkname $target 1` +dev_dos=`dkname $target 2` +dev_root=`dkname $target 3` +newfs_msdos -F 16 /dev/r$dev_efi +newfs_msdos -F 16 /dev/r$dev_dos +newfs -O 2 NAME=$p_root +newfs -O 2 NAME=$p_usr + +m=/mnt +finalize() { + umount $m/usr; umount $m/Windows; umount $m +} +trap finalize INT QUIT TERM HUP + +# Copy efi images +mount_msdos /dev/$dev_efi $m && { + mkdir -p $m/EFI/boot + cp /usr/mdec/*.efi $m/EFI/boot + umount $m +} +# Calculate disk usage from df +totaldu=`df -mtffs|awk '{sum+=$3}END{print sum}'`m +# Copy other whole files +mount -o log,noatime NAME=$p_root $m && { + mkdir $m/usr $m/Windows + mount -o log,noatime NAME=$p_usr $m/usr && { + (cd /; tar lcf - . usr | progress -l $totaldu tar xpfC - $m) + echo -n Synching...; sync; echo . Done + umount $m/usr + } + # produce fstab + cat<<-_EOF_ > $m/etc/fstab + # fstab generated from `basename $0` + NAME=$p_root / ffs rw,log 1 1 + NAME=$p_swap none swap sw,dp 0 0 + NAME=$p_usr /usr ffs rw,log 1 2 + NAME=$p_dos /Windows msdos rw,-l,noexec + tmpfs /tmp tmpfs rw,-sram%25 + ptyfs /dev/pts ptyfs rw + kernfs /kern kernfs rw + procfs /proc procfs rw + linpro /emul/linux/proc procfs rw,linux + tmpfs /var/shm tmpfs rw,-sram%25 + /usr/home /home null rw + _EOF_ + cat $m/etc/fstab + umount $m + gpt biosboot -i 3 $target + gpt set -a bootme -i 3 $target + installboot -v /dev/r$dev_root /usr/mdec/bootxx_ffsv2 + # Final: automatic reboot + count=6 + echo -n "(Ctrl-C to quit): Reboot now? $count" + while [ $count -gt 0 ]; do + sleep 1 + echo -n "\b$((--count))" + done + echo -n "\b " + /sbin/shutdown -r now +} diff --git a/NetBSD8/root/sync_with_hdd.sh b/NetBSD8/root/sync_with_hdd.sh new file mode 100755 index 0000000..9e5b5d2 --- /dev/null +++ b/NetBSD8/root/sync_with_hdd.sh @@ -0,0 +1,27 @@ +#!/bin/sh +PATH=/usr/local/bin:$PATH + +getwedge() { + # $1=disk, $2=name, Return: device + # eg: getwedge wd0 root -> /dev/dk2 + dev=`dkctl $1 listwedges|awk "\\$2 ~ /$2/{print \\$1}"` + test -n "$dev" && echo "/dev/$dev" | tr -d : +} +root=`getwedge wd0 root` +usr=`getwedge wd0 data` + +if [ -n "$root" -a -n "$usr" ]; then + test -d /mnt || mkdir /mnt + if mount -o log $root /mnt; then + if [ ! -d /mnt/usr ]; then + echo Cannot find usr/ in wd0 >&2 + umount /mnt; exit 1 + fi + if mount -o log $usr /mnt/usr; then + HOME=/ unison /usr/home /mnt/usr/home -batch -ignore 'Name .cache' -ignore 'Name .mozilla' + umount /mnt/usr + echo Synching with HDD, done. + fi + umount /mnt + fi +fi diff --git a/img/cloning.png b/img/cloning.png new file mode 100644 index 0000000..02a9d19 --- /dev/null +++ b/img/cloning.png Binary files differ