計算機を新規に立ち上げた場合は、下記に従い設定を行なう。ただし、下記の設定が有効なのは、CentOSやRedHatなどである。 *EUC化 vi /etc/sysconfig/i18n LANG="ja_JP.EUC-JP" vi /etc/man.config (中略) PAGER /usr/bin/lv *ldapの設定 /etc/ldap.confを設定 host 192.168.206.4 base dc=vlsi,dc=es,dc=kit,dc=ac,dc=jp 最下部も次の通り修正 #uri ldap://127.0.0.1/ ssl no #tls_cacertdir /etc/openldap/cacerts #pam_password md5 */etc/nsswitch.confの設定 passwd: files ldap shadow: files ldap group: files ldap hosts: files dns ldap とする. hosts: files ldap dns だと ping shizuruがセグフォになるので注意する. *ldap参照の設定 /etc/pam.d/system-auth-ldapを下記の通りとし, ln -s system-auth-ldap system-auth #%PAM-1.0 # This file is auto-generated. # User changes will be destroyed the next time authconfig is run. auth required /lib/security/$ISA/pam_env.so auth sufficient /lib/security/$ISA/pam_unix.so likeauth nullok auth sufficient /lib/security/$ISA/pam_ldap.so use_first_pass auth required /lib/security/$ISA/pam_deny.so account required pam_unix.so account sufficient pam_succeed_if.so uid < 50 quiet account required pam_permit.so account [default=bad success=ok user_unknown=ignore service_err=ignore system_err=ignore] pam_ldap.so password requisite pam_cracklib.so try_first_pass retry=3 password sufficient pam_unix.so md5 shadow nullok try_first_pass use_authtok password sufficient pam_ldap.so use_authtok password required pam_deny.so Xwindowからのログインには再起動が必要. *NFS mkdir /cad/ /etc/fstabに追加 shizuru:/local/home /home nfs bg,intr,nolock,rsize=4096,wsize=4096 shizuru:/local/cad /cad nfs bg,intr,nolock,rsize=4096,wsize=4096 * sudo /etc/sudoersに追加 kobayasi ALL=(ALL) NOPASSWD: ALL *yum yum update 以下のようにリポジトリを追加すると便利 yum -y install yum-priorities vi /etc/yum.repos.d/CentOS-Base.repo # priority追加 rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt rpm -ivh http://apt.sw.be/redhat/el5/en/i386/RPMS.dag/rpmforge-release-0.3.6-1.el5.rf.i386.rpm rpm --import http://centos.karan.org/RPM-GPG-KEY-karan.org.txt cd /etc/yum.repos.d/ wget http://centos.karan.org/kbsingh-CentOS-Extras.repo vi kbsingh-CentOS-Extras.repo *Xwindow日本語フォント cd /usr/share/fonts/japanese/TrueType tar xfz /usr/src/installed/pkgs/ipafont.tgz mkfontdir mkfontscale *TEXのインストール 参照 http://blog.mktime.com/archive/118.html mkdir /usr/src/installed mkdir /usr/src/installed/ptex cd /usr/src/installed/ptex wget http://tutimura.ath.cx/~nob/tex/ptetex/ptetex3/ptetex3-20080616.tar.gz wget http://www.ring.gr.jp/pub/text/CTAN/systems/unix/teTeX/3.0/distrib/tetex-src-3.0.tar.gz wget http://www.ring.gr.jp/pub/text/CTAN/systems/unix/teTeX/3.0/distrib/tetex-texmf-3.0po.tar.gz tar zxf ptetex3-20080616.tar.gz cd ptetex3-20080616 cp my_option.sample ../my_option make sudo -s make install cd /usr/local/teTeX mkdir usr mv * usr tar cfz tex.tgz ./usr tar -C / -xfz tex.tgz mktexlsr cd /usr/local/ mv teTeX teTeX.orig ln -s /usr teTeX xdviの日本語フォント % Japanese replace Ryumin-Light ipam.ttf replace GothicBBB-Medium ipag.ttf *ghostscript /etc/ghostscript/cidfmap.ipaを作成 ln -s cidfmap.ipa cidfmap.ja /IPA-Gothic << /FileType /TrueType /Path (/usr/share/fonts/japanese/TrueType/ipam.ttf) /CSI [(Japan1) 6] >> ; /IPA-Gothic-Regular /IPA-Gothic ; /IPA-Gothic-JaH << /FileType /TrueType /Path (/usr/share/fonts/japanese/TrueType/ipag.ttf) /CSI [(Japan2) 0] >> ; /IPA-Gothic-Regular-JaH /IPA-Gothic-JaH ; /IPA-Mincho << /FileType /TrueType /Path (/usr/share/fonts/japanese/TrueType/ipam.ttf) /CSI [(Japan1) 6] >> ; /IPA-Mincho-Regular /IPA-Mincho ; /IPA-Mincho-JaH << /FileType /TrueType /Path (/usr/share/fonts/japanese/TrueType/ipag.ttf) /CSI [(Japan2) 0] >> ; /IPA-Mincho-Regular-JaH /IPA-Mincho-JaH ; /Ryumin-Light /IPA-Mincho ; /GothicBBB-Medium /IPA-Gothic ; /Adobe-Japan1 /IPA-Gothic ; /Adobe-Japan2 /IPA-Gothic-JaH ; *anthy.el(Emacsからの日本語入力) yum install anthy-el emacsで, scimが上がらないように設定. /usr/share/applications/gnu-emacs.desktop Exec=env XMODIFIERS=@im=none emacs %f *プリンタ ブラザーからドライバをダウンロード rpm -ihv --nodeps hl5350dnlpr-2.0.3-1.i386.rpm rpm -ihv --nodeps cupswrapperHL5350DN-2.0.3-1.i386.rpm 勝手に, cubeのプリンタ設定をとってくるので, 新規に設定しないと行けない. *Adobe Readerのインストール cd /usr/src/installed/pkgs/ ./AdbeRdr9.1.0-1_i486linux_jpn.bin *openoffice cd /usr/src/installed/pkgs/ tar xfz OOo_3.0.1_LinuxIntel_install_wJRE_ja.tar.gz cd OOO300_m15_native_packed-1_ja.9379 ./setup Gnomeアイコンの設定 cd /usr/share/applications/ tar xfz /usr/src/installed/pkgs/sofficedesktop.tgz *tgif yum install tgif /home/tgifに各種ライブラリを追加 *yatex yatex1.73.tar.gzをダウンロード cd /usr/src/installed/srcs/ tar xfz yatex1.73.tar.gz makefileを次の通り修正 PREFIX = /usr/ EMACS = emacs EMACSDIR= ${PREFIX}/share/${EMACS} make install *CAD icfbの立ち上げのために, yum install libXp *thunderbird yum install thunderbird *eclipse yum install eclipse-platform