Scientific Linux ãå ¥ããã¨ãã«ãã¤ããããã¨
RHEL5 ã® clone ã§ãããScientific Linux 5.5 ã VMware Fusion ã§å ¥ããã®ã§ããã¤ãä¸éããããã¨ã®è¨é²ãæè¿ã¯ Ubuntu ãå¢ãã¥ãã¦ãã¡ãã£ã¦ãRHEL clone ã®æ å ±ããã¾ãåºã¦ããªãã
sudoer ã®è¿½å
Default ã§ã¯ãsudoer 㯠root ã®ã¿ãªã®ã§ãvisudo ãå®è¡ããã
$ su # /usr/sbin/visudo
/etc/sudores ãéãããã®ã§ã以ä¸ã追è¨ã
oxon ALL=(ALL) ALL
UID 㨠GID ã®å¤æ´
Default ã® UID ããLinux ã§ã¯ 500 ããéå§ããããMac ã®å ´å㯠501 ããéå§ããã®ãããHGFS 㧠file sharing ããã¨ãUID ãä¸ä¸è´ã§æ°æã¡æªããLinux å´ã® UID ã 501 ã«å¤æ´ããã
sudo 㧠/etc/passwd ãéãã¦ã以ä¸ã®ããã«å¤æ´ãã¤ãã§ã«ãbash ãã zsh ã«å¤æ´ã
oxon:x:501:501:Akira Okumura:/home/oxon:/bin/zsh
æ¢åã® file ã® owner ãå¤æ´ãããã®ã§ã以ä¸ãå®è¡ãæ¢ã«è²ã 㨠file ãä½æãã¦ãããããããä¸ç·ã«ãããã¨ã
$ su # chown -R oxon.oxon /home/oxon # sudo find /tmp -user 500 -exec chown oxon.oxon {} \;
VMware Tools ã® install
VMware ã® Menu ãã Virtual Machine > Install VMware Tools ãé¸æããCD-ROM image ã mount ããããVMwareTools ãå±éãã¦ãinstaller ãèµ°ããã¦çµãããèªåã¯ã/usr/local 以ä¸ã«å ¥ããããã«è³ªåãçãã¦ããã
$ tar zxvf /media/VMware\ Tools/VMwareTools-8.4.5-332101.tar.gz $ cd vmware-tools-distrib $ sudo ./vmware-install.pl
File sharing ãæå¹ã«ãªãã®ã§ã/mnt/hgfs/oxon ãã§ãã¦ãããã¨ã確èªããã¦ã¹ã®æ©è½ãæå¹ã«ãããããä¸åº¦ X ããæããã
yum update
è²ã ã¨æ°ãããã¨ãå§ããåã«ãyum update ãå®è¡ãã¦ãinstall ããã¦ãã package ãæ°ããããã
$ sudo yum update
PATH ã®å¤æ´
PATH ã« sbin ãå«ã¾ãã¦ããªãã®ã§ã/sbinã/usr/sbinã/usr/local/sbin ã PATH ã«è¿½å ããã
Python ãå ¥ãã
æåã«å ¥ã£ã¦ã Python ã 2.4.3 ã¨æ代é ããªã®ã§ã2.6.6 ãå ¥ããã2.7.x ãææ°ã ãã©ãMac ã¨åããããã 2.6 ã«ããã
$ wget http://www.python.org/ftp/python/2.6.6/Python-2.6.6.tgz $ tar zvf Python-2.6.6.tgz $ cd Python-2.6.6 $ ./configure --enable-shared $ make -j 4 $ sudo make install make ã®éä¸ã§ããã¤ã足ããªãã¨è¨ãããã®ã§ãyum 㧠tk-devel ã ã追å ãã_tkinter ã¯æ¶ããããã«ãããå¾ã¯ç¡è¦ããã®ã¾ã¾ make install ãã¦åé¡ãªã (ã¯ã)ã >|| Failed to find the necessary bits to build these modules: _tkinter bsddb185 dl imageop sunaudiodev
updatedb ãããã
locate ãããã«ä½¿ããããªããã¨ãã¾ã¾ããã®ã§ãupdatedb ãå®è¡ã
$ sudo updatedb
ROOT
$ wget ftp://root.cern.ch/root/root_v5.28.00.source.tar.gz $ tar zxvf root_v5.28.00.source.tar.gz $ cd root $ ./configure $ make -j 4
Screensaver ãæ¢ãã
.Xmodmap ã®ä½æ
VMware ã§ã¯ç³ãªä»æ§ããã£ã¦ãMac å´ã§è±æ°ãã¼ãæ¼ã㨠Caps Lock ã¨ãã¦æ±ããã¾ããbug ã§ã¯ãªãã¦ä»æ§ã ããã§ããVMware æ¬ç¤¾ã§æ¥æ¬äººåãã¦ãªããã§ããããããã鬱é¶ããã®ã§ .Xmodmap ãç¨æã㦠Caps Lock ãç¡å¹ã«ãã¾ãã
$ echo "clear Lock" > ~/.Xmodmap
ã©ãã Linux ã§æ¥æ¬èªå ¥åã¨ãããªãã®ã§ãããªãã¼ã¨è±æ°ãã¼ã®æ¬æ¥ã®æåã®è¨å®ã¯ãã¾ããã
Dropbox ãå ¥ãã
Dropbox ã®ä¸ã«ç½®ãã¦ããã.zshrc.tmplã.rootlogon.Cã.rootrcã.emacs.dã.emacs.elãpystartup ãã$HOME ã®ä¸ã« symbolic link ãè²¼ããMac/Linux å ±éã®è¨å®ã§ä½æ¥ã§ããããã«ããã
Emacs 22 ãå ¥ãã
Scientific Linux ã® Emacs 㯠21.4 ã¨ã¡ã¨å¤ãã®ã§ã22 ãå ¥ãã¾ãã23 ã¯è²ã å¤ãã£ã¦ã¦ font å¨ããé¢åãªã®ã§ã22 ã§ãã
$ wget http://mirrors.kernel.org/gnu/emacs/emacs-22.3.tar.gz $ tar zxvf emacs-22.3.tar.gz $ cd emacs-22.3 $ ./configure $ make -j 4 $ sudo make install