# emerge rsync (Portage tree の更新) # emerge sys-apps/portage/portage-2.0.38.ebuild (Portage アップデート) # emerge app-admin/gentoolkit (Gentoo Toolkit のインストール) |
USE="x86 oss 3dnow apm arts avi berkdb crypt cups encode gdbm gif gpm gtk imlib java jpeg -kde libg++ libwww mikmod mmx motif mpeg ncurses nls ~~~~ 修正 oggvorbis opengl pam pdflib png python -qt -qtmt quicktime readline sdl ~~~~~~~~~ 修正 slang spell ssl svga tcpd truetype X xml2 xmms xv gnome pcmcia postgres ruby cjk" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 追加 |
# rc-update add sshd default |
# Authentication: #LoginGraceTime 120 PermitRootLogin no <--- 行頭の # を削除し no に変更 (snip) # To disable tunneled clear text passwords, change to no here! PasswordAuthentication no <--- 行頭の # を削除し no に変更 |
/bin/loadkeys <どこか適当なディレクトリ>/mykey.map |
## Caps Lock を Control キーにする keycode 58 = Control ## ESC キーと ` キーを入れ換える keycode 41 = Escape keycode 1 = grave asciitilde |
# emerge --update x11-base/xfree/xfree-4.2.1.ebuild # etc-update |
# emerge --update --pretend x11-terms/kterm These are the packages that I would merge, in order. Calculating dependencies ...done! [ebuild U ] x11-base/xfree-4.2.0-r12 [ebuild N ] x11-terms/kterm-6.2.0 |
# emerge --pretend x11-terms/kterm These are the packages that I would merge, in order. Calculating dependencies ...done! [ebuild N ] x11-terms/kterm-6.2.0 |
!*VT100*kanjiMode: jis |
!! 漢字コードの設定 KTerm*kanjiMode : euc |
userresources=$HOME/.Xresources if [ -f $userresources ] ; then xrdb -merge $userresources fi |
# emerge unmerge sys-apps/less # emerge app-i18n/jless-iso254 |
# emerge app-editors/vim |
set encoding=japan if has('iconv') set fileencodings+=iso-2022-jp set fileencodings+=utf-8,ucs-2le,ucs-2 if &encoding ==# 'euc-jp' set fileencodings+=cp932 else set fileencodings+=euc-jp endif endif |
# emerge gnome-base/gnome (snip) >>> Merging gnome-base/gnome-2.0.2-r1 to / * note that to change windowmanager to metacity do: * export WINDOW_MANAGER="/usr/bin/metacity" * of course this works for all other window managers as well |
export WINDOW_MANAGER="/usr/bin/metacity" |
exec gnome-session |
# emerge --pretend net-mail/postfix These are the packages that I would merge, in order. Calculating dependencies ...done! [ebuild U ] dev-libs/openssl-0.9.6g [ebuild N ] dev-libs/libpcre-3.9-r1 [blocks B ] net-mail/ssmtp ("virtual/mta" from pkg net-mail/postfix-1.1.11.20020917) [ebuild N ] net-mail/postfix-1.1.11.20020917 # emerge net-mail/postfix Calculating dependencies ...done! !!! Error: the virtual/mta package conflicts with this package and both can't be installed on the same system together. |
# emerge unmerge net-mail/ssmtp # emerge net-mail/postfix (snip) * You must edit /etc/mail/aliases to suit your needs * and then run /usr/bin/newaliases. Postfix will not * work correctly without it. # rc-update add postfix default |
Oct 9 18:35:07 zolax postfix/local[11680]: fatal: open database /etc/mail/aliases.db: No such file or directory |
# emerge app-editors/emacs (snip) gcc -O2 -mcpu=i686 -pipe -Wall -Wno-unused -Wno-comment -o .libs/xmanimate xmanimate.o \ ../../lib/Xmd/libXmd.a ../../../lib/Mrm/.libs/libMrm.so \ /var/tmp/portage/openmotif-2.2.2-r1/work/openMotif-2.2.2/lib/Xm/.libs/libXm.so \ -L/usr/X11R6/lib ../../../lib/Xm/.libs/libXm.so -lXmu -lXt -lSM -lICE -lXext -lXp \ -lX11 -Wl,--rpath -Wl,/usr/X11R6/lib creating xmanimate ../../../clients/uil/uil -o dog.uid dog.uil -I./../../../clients/uil -I../../../clients/uil Error: $LANG contains an unknown character set Info: no UID file was produced Info: errors: 1 warnings: 0 informationals: 1 make[3]: *** [dog.uid] エラー 1 make[3]: 出ます ディレクトリ `/var/tmp/portage/openmotif-2.2.2-r1/work/openMotif-2.2.2/demos/programs/animate' make[2]: *** [all-recursive] エラー 1 make[2]: 出ます ディレクトリ `/var/tmp/portage/openmotif-2.2.2-r1/work/openMotif-2.2.2/demos/programs' make[1]: *** [all-recursive] エラー 1 make[1]: 出ます ディレクトリ `/var/tmp/portage/openmotif-2.2.2-r1/work/openMotif-2.2.2/demos' make: *** [all-recursive] エラー 1 !!! ERROR: The ebuild did not complete successfully. !!! Function src_compile, Line 9, Exitcode 2 !!! make failed |
$ su # emerge app-i18n/canna # emerge app-i18n/kinput2 # rc-update add canna default # /etc/init.d/canna start # exit $ kinput2 & |
# for My ebuild PORTDIR_OVERLAY="/usr/portage.local" |
$ su # mkdir /usr/portage.local |
# mkdir /usr/portage.local/app-editors # cd /usr/portage.local/app-editors # tar xvfz yc.tar.gz # emerge app-editors/yc |
(load "yc") (global-yc-mode 1) |
error: "YC" can't connect cannaserver: "localhost" |
localhost unix |
# Specify user to run as #CANNASERVER_OPTS="-u canna" CANNASERVER_OPTS="-inet" <--- 追加 |
*cana-3.5_beta2_r2 (22 Jul 2002) 22 Jul 2002; Stuart Bouyer <stubear@gentoo.org> files/canna-3.5_beta-r2/canna.initd ChangeLog : Fixed minor bug (#8920) in canna.initid that stopped it reading canna.confd. Thanks Seiji Fukagawa <fukafuka@lime.plala.or.jp> for pointing this out and giving the fix. |
start() { ebegin "Starting canna" /usr/sbin/cannaserver ${CANNASERVER_OPTS} ~~~~~~~~~~~~~~~~~~~ 追加 eend $? "Failed to start canna" } |
# mkdir /usr/portage.local/net-mail # cd /usr/portage.local/net-mail # tar xvfz mew.tar.gz # cd mew/ # cp -p mew-3.0.66.ebuild mew-3.0.67.ebuild # emerge net-mail/mew (snip) 15:51:21 (150.73 KB/s) - `/usr/portage/distfiles/mew-3.0.67.tar.gz' を保存しました [783912] !!! No message digest file found: /usr/portage.local/net-mail/mew/files/digest-mew-3.0.67 !!! Type "ebuild foo.ebuild digest" to generate a digest. |
# cd /usr/portage.local/net-mail/mew/files # cp digest-mew-3.0.66 digest-mew-3.0.67 |
MD5 2dbfa1c0ff332979c20e8d9b68250fc3 mew-3.0.67.tar.gz 783912 |
# emerge --update sys-apps/pcmcia-cs (snip) -------- Linux PCMCIA Configuration Script -------- The default responses for each question are correct for most users. Consult the PCMCIA-HOWTO for additional info about each option. Linux kernel source directory [/usr/src/linux] The kernel source tree is version 2.4.19-gentoo-r7. The current kernel build date is Sun Sep 15 05:41:10 Local time zone must be set--see zic manuai686. WARNING: the source tree has a build date of Sun Sep 15 05:41:10 2002. date: 日時の指定 `Sun Sep 15 05:41:10 Local time zone must be set--see zic manuai686' が間違っています (snip) * To avail yourself of the pcmcia-cs drivers, you have to disable the PCMCIA support in the kernel. * (Otherwise, you might experience CardServices version mismatch errors) * * Proper kernel config for this package is that PCMCIA/CardBus under General Setup is off and * Wireless LAN (non-ham radio) is on but no modules or drivers turned on under Network Device Support * if you have wireless. * * If you *don't* want to use Orinoco drivers or if they don't work for you, add +wavelan to USE >>> Regenerating /etc/ld.so.cache... >>> sys-apps/pcmcia-cs-3.2.1 merged. * GNU info directory index is up-to-date. * IMPORTANT: 2 config files in /etc need updating. * Type emerge --help config to learn how to update config files. |
# etc-update # rc-update add pcmcia default # /etc/init.d/pcmcia start |
# cardctl ident Socket 0: product info: "Accton", "IEEE802.11 PC Card Adapter", "Version 01.02", "" manfid: 0x0156, 0x0002 function: 6 (network) Socket 1: no product info available |
card "Accton IEEE802.11 Ethernet" version "Accton", "IEEE802.11 PC Card Adapter" bind "orinoco_cs" |
card "Intersil PRISM2 11 Mbps Wireless Adapter" manfid 0x0156, 0x0002 bind "orinoco_cs" |
# cardctl eject 0 # cardctl insert 0 |
Oct 17 08:30:05 zolax cardmgr[5392]: socket 0: Intersil PRISM2 11 Mbps Wireless Adapter Oct 17 08:30:05 zolax cardmgr[5392]: executing: 'modprobe orinoco_cs' Oct 17 08:30:05 zolax cardmgr[5392]: + modprobe: Can't locate module orinoco_cs Oct 17 08:30:05 zolax cardmgr[5392]: modprobe exited with status 255 Oct 17 08:30:05 zolax cardmgr[5392]: module /lib/modules/2.4.19-gentoo-r7/pcmcia/orinoco_cs.o not available Oct 17 08:30:06 zolax cardmgr[5392]: get dev info on socket 0 failed: Resource temporarily unavailable |
Your kernel is configured with PCMCIA driver support. Therefore, 'make all' will compile the PCMCIA utilities but not the drivers. |
* To avail yourself of the pcmcia-cs drivers, you have to disable the PCMCIA support in the kernel. * (Otherwise, you might experience CardServices version mismatch errors) * * Proper kernel config for this package is that PCMCIA/CardBus under General Setup is off and * Wireless LAN (non-ham radio) is on but no modules or drivers turned on under Network Device Support |
General Setup PCMCIA/CardBus support < > PCMCIA/CardBus supoort <--- 選択せず Network device support Wireless LAN (non-ham radio) [*] Wireless LAN (non-ham radio) <--- 組み込み |
# emerge sys-kernel/gentoo-sources # cd /usr/src # rm linux # ln -s linux-2.4.19-gentoo-r9 linux # cd linux # cd ../linux-2.4.19-gentoo-r7/.config . # make oldconfig <--- 新しいオプションを設定 # make menuconfig <--- 上記のように設定変更 # make dep # make clean # make bzImage # make modules # make modules_install # mount /boot # cp /usr/src/linux/arch/i386/boot/bzImage /boot |
* Starting pcmcia... cardmgr[3421]: no pcmcia driver in /proc/devices * cardmgr failed to start. Make sure that you have PCMCIA * loaded, either as a module or built into the kernel [!!] |
# cardctl ident no pcmcia driver in /proc/devices # insmod pcmcia_core Using /lib/modules/2.4.19-gentoo-r9/pcmcia/pcmcia_core.o # lsmod Module Size Used by Not tainted pcmcia_core 39968 0 (unused) rtc 6080 0 (autoclean) ide-cd 27296 0 (autoclean) sr_mod 11704 0 (autoclean) (unused) scsi_mod 51468 1 (autoclean) [sr_mod] cdrom 29568 0 (autoclean) [ide-cd sr_mod] |
# /etc/init.d/pcmcia start * Starting pcmcia... cardmgr[3930]: no pcmcia driver in /proc/devices * cardmgr failed to start. Make sure that you have PCMCIA [ !! ]d, either as a module or built into the kernel |
# For PCMCIA-CS pcmcia_core i82365 ds |
Oct 25 21:19:54 zolax cardmgr[4008]: socket 0: Accton IEEE802.11 Ethernet Oct 25 21:19:54 zolax cardmgr[4008]: executing: 'modprobe orinoco_cs' Oct 25 21:19:54 zolax cardmgr[4008]: executing: './network start eth1' Oct 25 21:19:54 zolax cardmgr[4008]: + ./network: /etc/init.d/net.eth1: そのようなファイルやディレクトリはありません Oct 25 21:19:54 zolax cardmgr[4008]: start cmd exited with status 127 |
# cd /etc/init.d # cp net.eth0 net.eth1 |
# emerge sys-apps/wireless-tools # iwconfig eth1 Warning : Device eth1 has been compiled with version 13 of Wireless Extension, while we are using version 12. Some things may be broken... eth1 IEEE 802.11-DS ESSID:"?????" Nickname:"Prism I" Mode:Managed Frequency:2.412GHz Access Point: ??:??:??:??:??:?? Bit Rate:11Mb/s Tx-Power=15 dBm Sensitivity:1/3 Retry min limit:8 RTS thr:off Fragment thr:off Encryption key:off Power Management:off Link Quality:41/92 Signal level:-61 dBm Noise level:-149 dBm Rx invalid nwid:0 Rx invalid crypt:687 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0 |
# iwconfig eth1 key ?????????? # iwconfig eth1 Warning : Device eth1 has been compiled with version 13 of Wireless Extension, while we are using version 12. Some things may be broken... eth1 IEEE 802.11-DS ESSID:"?????" Nickname:"Prism I" Mode:Managed Frequency:2.442GHz Access Point: ??:??:??:??:??:?? Bit Rate:2Mb/s Tx-Power=15 dBm Sensitivity:1/3 Retry min limit:8 RTS thr:off Fragment thr:off Encryption key:????-????-?? Encryption mode:open Power Management:off Link Quality:51/92 Signal level:-51 dBm Noise level:-148 dBm Rx invalid nwid:0 Rx invalid crypt:785 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0 |
case "$ADDRESS" in # NOTE : Remove the following four lines to activate the samples below ... # --------- START SECTION TO REMOVE ----------- *,*,*,*) ;; # ---------- END SECTION TO REMOVE ------------ |
case "$ADDRESS" in # NOTE : Remove the following four lines to activate the samples below ... # --------- START SECTION TO REMOVE ----------- #*,*,*,*) <--- 行頭に # を挿入 # ;; <--- 行頭に # を挿入 # ---------- END SECTION TO REMOVE ------------ |
# emerge --pretend net-dialup/ltmodem These are the packages that I would merge, in order. Calculating dependencies emerge: all ebuilds that could satisfy "net-dialup/ltmodem" have been masked. |
# vapier@gentoo.org 2 Oct 2002 # masked for testing #net-dialup/ltmodem <--- 行頭に # を挿入 |
# emerge --pretend net-dialup/ltmodem These are the packages that I would merge, in order. Calculating dependencies ...done! [ebuild N ] net-dialup/ppp-2.4.1-r10 [ebuild N ] net-libs/wvstreams-3.70-r2 [ebuild N ] net-dialup/wvdial-1.53 [ebuild N ] net-dialup/ltmodem-8.22_alpha5 # emerge net-dialup/ltmodem >>> /lib/modules/2.4.19-gentoo-r7/ltmodem/ >>> /lib/modules/2.4.19-gentoo-r7/ltmodem/lt_modem.o >>> /lib/modules/2.4.19-gentoo-r7/ltmodem/lt_serial.o * To get going real fast read this doc: * /usr/share/doc/ltmodem-8.22_alpha5/html/post-install.html >>> Regenerating /etc/ld.so.cache... >>> net-dialup/ltmodem-8.22_alpha5 merged. >>> Recording net-dialup/ltmodem in "world" favorites file... * GNU info directory index is up-to-date. |
# lt_drivers: autoloading and insertion parameter usage alias char-major-62 lt_serial options ltmodem vendor_id=0x115d device_id=0x0420 Forced=3,0x130,0x2f8 # section for lt_drivers ends |
# update-modules # modprobe lt_serial modprobe: Can't locate module lt_serial |
# emerge unmerge net-dialup/ltmodem # emerge --pretend net-dialup/ltmodem These are the packages that I would merge, in order. Calculating dependencies emerge: all ebuilds that could satisfy "net-dialup/ltmodem" have been masked. |
# emerge --pretend ltmodem # emerge --pretend net-dialup/ltmodem |
# emerge --pretend net-dialup/ltmodem/ltmodem-8.22_alpha5.ebuild These are the packages that I would merge, in order. Calculating dependencies ...done! [ebuild N ] net-dialup/ltmodem-8.22_alpha5 |
# emerge net-dialup/ltmodem/ltmodem-8.22_alpha5.ebuild # modprobe lt_modem modprobe: Can't locate module lt_modem # depmod -a # modprobe lt_serial Warning: loading /lib/modules/2.4.19-gentoo-r9/ltmodem/lt_modem.o will taint the kernel: non-GPL license - UNKNOWN See http://www.tux.org/lkml/#s1-18 for information about tainted modules Module lt_modem loaded, with warnings Module lt_serial loaded, with warnings |
# For Internal Modem lt_serial |
# emerge net-dialup/wvdial # exit $ wvdial --> WvDial: Internet dialer version 1.53 --> Warning: section [Dialer Defaults] does not exist in wvdial.conf. --> Cannot open /dev/modem: Device or resource busy --> Cannot open /dev/modem: Device or resource busy --> Cannot open /dev/modem: Device or resource busy |
# cd /etc # wvdialconf wvdial.conf Scanning your serial ports for a modem. ttySLT0<*1>: ATQ0 V1 E1 -- OK ttySLT0<*1>: ATQ0 V1 E1 Z -- OK ttySLT0<*1>: ATQ0 V1 E1 S0=0 -- OK ttySLT0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK ttySLT0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK ttySLT0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK ttySLT0<*1>: Modem Identifier: ATI -- LT V.92 Data+Fax Modem Version 8.22 ttySLT0<*1>: Speed 4800: AT -- OK ttySLT0<*1>: Speed 9600: AT -- OK ttySLT0<*1>: Speed 19200: AT -- OK ttySLT0<*1>: Speed 38400: AT -- OK ttySLT0<*1>: Speed 57600: AT -- OK ttySLT0<*1>: Speed 115200: AT -- OK ttySLT0<*1>: Max speed is 115200; that should be safe. ttySLT0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK Found a modem on /dev/ttySLT0. wvdial.conf |
Phone = <Target Phone Number> <--- 行頭の ; を削除し値を設定 Username = <Your Login Name> <--- 行頭の ; を削除し値を設定 Password = <Your Password> <--- 行頭の ; を削除し値を設定 |
# wvdial --> WvDial: Internet dialer version 1.53 --> Initializing modem. --> Sending: ATZ ATZ OK --> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 OK --> Modem initialized. --> Sending: ATDT?????????? --> Waiting for carrier. ATDT?????????? CONNECT 40000 V42bis --> Carrier detected. Waiting for prompt. ** Ascend TNT Terminal Server ** Login: --> Looks like a login prompt. --> Sending: ????????????????????????? ????????????????????????? Password: --> Looks like a password prompt. --> Sending: (password) Entering PPP Session. IP address is ???.???.???.??? MTU is 1524. --> Looks like a welcome message. --> Starting pppd at Sun Oct 27 12:24:04 2002 --> pid of pppd: 12981 --> Disconnecting at Sun Oct 27 12:24:04 2002 --> The PPP daemon has died: No ppp module error (exit code = 4) --> man pppd explains pppd error codes in more detail. --> I guess that's it for now, exiting --> The PPP daemon has died. (exit code = 4) |
Oct 27 12:24:04 zolax pppd[12981]: pppd is unable to open the /dev/ppp device. You need to create the /dev/ppp device node by executing the following command as root: ^Imknod /dev/ppp c 108 0 |
# mknod /dev/ppp c 108 0 |
# wvdial (snip) --> Looks like a welcome message. --> Starting pppd at Sun Oct 27 12:32:19 2002 --> pid of pppd: 12995 --> Disconnecting at Sun Oct 27 12:32:20 2002 --> The PPP daemon has died: No ppp module error (exit code = 4) --> man pppd explains pppd error codes in more detail. --> I guess that's it for now, exiting --> The PPP daemon has died. (exit code = 4) |
Oct 27 12:32:19 zolax modprobe: modprobe: Can't locate module char-major-108 Oct 27 12:32:19 zolax pppd[12995]: This system lacks kernel support for PPP. This could be because the PPP kernel module could not be loaded, or because PPP was not included in the kernel configuration. If PPP was included as a module, try `/sbin/modprobe -v ppp'. If that fails, check that ppp.o exists in /lib/modules/`uname -r`/net. See README.linux file in the ppp distribution for more details. |
# wvdial (snip) --> Looks like a welcome message. --> Starting pppd at Sun Oct 27 18:35:48 2002 --> pid of pppd: 3917 --> Disconnecting at Sun Oct 27 18:35:49 2002 --> The PPP daemon has died: Fatal pppd error (exit code = 1) --> man pppd explains pppd error codes in more detail. --> Try again and look into /var/log/messages and the wvdial and pppd man pages for more information. --> Auto Reconnect will be attempted in 5 seconds --> Initializing modem. |
Oct 27 18:35:49 zolax pppd[3917]: pppd 2.4.1 started by root, uid 0 Oct 27 18:35:49 zolax modprobe: modprobe: Can't locate module tty-ldisc-3 Oct 27 18:35:49 zolax pppd[3917]: Couldn't set tty to PPP discipline: Invalid argument Oct 27 18:35:49 zolax pppd[3917]: Exit. |
Oct 27 21:57:04 zolax pppd[3894]: pppd 2.4.1 started by root, uid 0 Oct 27 21:57:04 zolax pppd[3894]: Using interface ppp0 Oct 27 21:57:04 zolax pppd[3894]: Connect: ppp0 <--> /dev/tts/LT0 Oct 27 21:57:04 zolax pppd[3894]: not replacing existing default route to eth0 [???.???.???.???] Oct 27 21:57:04 zolax pppd[3894]: local IP address ???.???.???.??? Oct 27 21:57:04 zolax pppd[3894]: remote IP address ???.???.???.??? Oct 27 21:57:04 zolax pppd[3894]: primary DNS address ???.???.???.??? Oct 27 21:57:04 zolax pppd[3894]: secondary DNS address ???.???.???.??? |
Sound - Sound card support を <*> Crystal SoundFusion (CS4280/461x) を <M> Crystal Sound CS4281 を <M> OSS sound modules を <M> |
# emerge media-libs/alsa-lib (media-sound/alsa-driver も入る) # emerge media-sound/alsa-utils # emerge media-sound/alsa-tools # emerge media-sound/mpg123 |
# /etc/init.d/alsasound start * Initialising ALSA.... |
# /etc/init.d/alsasound stop * ALSA driver is not loaded. |
5) Run the './snddevices' script to create new sound devices in /dev directory. Skip this step, if you have a kernel with the DEVFS support. |
# modprobe snd-intel8x0 # mpg123 mp3/sample.mp3 High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2 and 3. Version 0.59r (1999/Jun/15). Written and copyrights by Michael Hipp. Uses code from various people. See 'README' for more! THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK! Title : ?????????????? Artist: Album : ?????????? Year : Comment: Genre : Unknown Directory: mp3/ Playing MPEG stream from sample.mp3 ... MPEG 1.0 layer III, 128 kbit/s, 44100 Hz joint-stereo [0:06] Decoding of sample.mp3 finished. |
# For Sound snd-intel8x0 |
# ls -l /dev/dsp lr-xr-xr-x 1 root root 9 11-03 12:04 /dev/dsp -> sound/dsp # ls -l /dev/sound/dsp crw-rw---- 1 root audio 14, 3 1970-01-01 /dev/sound/dsp |
# chmod o+rw /dev/sound/dsp |