テクな話題を説くと解く。そのココロは?
Little tips in using gentoo linux.
Add line below to /etc/X11/Sessions/kde-*
kinput2 -canna -xim &
Add lines below to /usr/X11R6/lib/X11/app-defaults/Kinput2
*SeparateConversion.input: false *selectionShell.input: false *auxShell.input: false!*SeparateConversion.title: Kana-Kanji Conversion
!*selectionShell.title: Candidate Selection
!*auxShell.title: Auxiliary Control
Create the file /etc/env.d/99lang_env and add lines below
LANG=ja_JP.eucJP
XMODIFIERS="@im=kinput2"
add lines below to /var/lib/canna/dic/dics.dir
gcanna.ctd(gcanna.mwd) -gcanna--- gcannaf.ctd(.swd) -gcannaf--- nichan.ctd(.mwd) -nichan---
add "gcanna" "gcannaf" "nichan" to /usr/share/canna/default.canna
For kernel 2.4.
# make menuconfig # make dep && make clean bzImage modules modules_install # cp /usr/src/linux/arch/i386/boot/bzImage /boot
For kernel 2.6.
# make menuconfig # make && make modules_install # cp System.map /boot # cp arch/i386/boot/bzImage /boot/vmlinuz # cp .config /boot/config
e.g. When you update gcc or python or whatever, and emerge stop working correctly
# ldconfig
CHOST="i686-pc-linux-gnu"
157 USE="cjk nls qt kde -gtk gtk2 -gnome alsa cups crypto mmx sse
dvd f2c divx4linux dvd dvdread live xvid"
CFLAGS="-O3 -mcpu=pentium4 -march=pentium4 -mfpmath=sse -msse2
-mmmx -fforce-addr -fomit-frame-pointer -funroll-loops
-frerun-cse-after-loop -frerun-loop-opt -falign-functions=4
-pipe -s -z combreloc"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j3"
PORTAGE_NICENESS=+10
ALSA_CARDS='intel8x0'
LINGUAS="ja"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
VIDEO_CARDS="i830"
AUTOCLEAN="yes"
/var/cache/edb/world
$ ssh-keygen -t rsa
enter passphrase, then id_rsa.pub will be generated at ~/.ssh/
$ ssh-keygen -t rsa
enter passphrase, then id_rsa.pub will be generated at ~/.ssh/ After this, execute following at the client console
$ scp ~/.ssh/id_rsa.pub $DESTINATION:/home/$USERNAME/.ssh/authorized_keys $ ssh $DESTINATION $ chmod 600 ~/.ssh/authorized_keys
Please replase $DESTINATION with either IP address or domain name of the destination.
rsync -avz -e ssh $SOURCE $DESTINATION:$TARGET_DIR
Please replace $SOURCE with the file/directory you want to copy, $DESTINATION with either IP address or domain name of the destination, and $TARGET_DIR with the directory that you want your $SOURCE to be copied at.
if you want to delete the file from $TARGET_DIR which is deleted from $SOURCE recently, add --delete
option.
if you want to exclude certain kinds of files, use --exclude 'filename'
option. You can use wildcards.
# gpasswd -a masumi cron
$ xhost +localhost
Startup the OpenOffice.org, and go to Tools -> Options -> OpenOffice.org -> Font Replacement
. Then replace Andale Sans UI with desired font.
# /opt/OpenOffice.org/program/spadmin
Location may vary, depending on the installation method.
$ ntpdate [server IP]
$ ntpq -p
Installing pre-compiled GCC may help.
# mkdir /usr/portage/packages/All # wget -P /usr/portage/packages/All # http://dev.gentoo.org/~avenj/bins/gcc-3.2.3-r1.tbz2 # tar -xvjpf /usr/portage/packages/All/gcc-3.2.3-r1.tbz2 -C / # env-update && source /etc/profile
If you experience difficulties emerging with the following error message (after updating GCC to Version 3.3.5)
grep: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.la: No such file or directory /bin/sed: can't read /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.la: No such file or directory libtool: link: `/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.la' is not a valid libtool archive make[4]: *** [libdirectfb_sdlinput.la] Error 1 make[4]: *** Waiting for unfinished jobs.... grep: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.la: No such file or directory /bin/sed: can't read /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.la: No such file or directory libtool: link: `/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.la' is not a valid libtool archive
Try executing the following command
emerge libtool && fix_libtool_files.sh 3.3.4 && env-update && source /etc/profile
For xfree-4.3.0-r5
ln -sf /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/libstdc++.so.5 /usr/lib/libstdc++.so.5
emerge depclean
prelink -afmR
Soundcard is intel8x0. After compiling kernel 2.6.11, the audio stopped working. To workaround with this problem, execute
amixer sset 'Headphone Jack Sense' off
TrackBack URL for this entry:
http://www.ppmz.com/cgi-bin/mt/mt-tb.cgi/14