Debian Setup
- インストールした直後のDebianから,どのように設定していくのかを記述する
■基本設定
- コンソールからloginする
s1 login: eto Password: $ su Password: Sパスワード # export LANG=C
■sshでログイン
# aptitude install ssh # ifconfig 192.168.22.5
- 外部からsshではいる.日本語encodingはUTF-8にする.
% ssh 192.168.22.5 # su
■sources.listを編集
# cd /etc/apt # cp sources.list sources.list.org # vi sources.list
- つまり,cdromの記述をはずすということ
# deb cdrom:[Debian GNU/Linux testing _Etch_ - Official Snapshot i386 Binary-1 (20060810)]/ etch main #deb cdrom:[Debian GNU/Linux testing _Etch_ - Official Snapshot i386 Binary-1 (20060810)]/ etch main deb http://ring.asahi-net.or.jp/archives/linux/debian/debian/ etch main deb-src http://ring.asahi-net.or.jp/archives/linux/debian/debian/ etch main deb http://security.debian.org/ etch/updates main deb-src http://security.debian.org/ etch/updates main
■sudoを使えるように
# aptitude install sudo # cd /etc # cp sudoers sudoers.org # aptitude remove nano
# visudo
- つまり,etoを追加する
root ALL=(ALL) ALL eto ALL=(ALL) ALL
■いつもの設定を更新
# aptitude install tcsh screen subversion % chsh /usr/bin/tcsh % svn checkout svn+ssh://eto at eto.com//repos/eto/usr % ./usr/bin/make-conf-link.sh % tcsh % mkdir .org % mv .bash* .org % sr
■updateする
# aptitude update # aptitude upgrade
- console-data: Don't touch keymap
■Kernel更新
# aptitude dist-upgrade Running postinst hook script /sbin/update-grub. Searching for GRUB installation directory ... found: /boot/grub Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst Found kernel: /boot/vmlinuz-2.6.17-2-686 Found kernel: /boot/vmlinuz-2.6.16-2-686 Updating /boot/grub/menu.lst ... done Setting up linux-image-2.6-686 (2.6.17+2) ...
■開発関係
# aptitude install less make cvs zsh telnet rsync zip unzip w3m # aptitude install ddskk skkdic # aptitude install libruby1.8 ruby1.8 ruby1.8-dev ruby1.8-elisp # aptitude install qwik
■サーバ関係
# aptitude remove exim4 exim4-base exim4-config exim4-daemon-light # aptitude install postfix Postfixの設定: →Internet Siteのまま Mail name? s1.eto.com # aptitude install apache2 # aptitude install mysql-server mysql-client mysql-doc libmysql++-dev # aptitude install ntp-simple →ntp.confを設定しなくても使えるみたい # aptitude install teapop Do you want teapop to serve mail for this system's local users? →No # aptitude install samba Workgroup/Domain Name: FLUIDINFO # aptitude install nsd host
# aptitude install whois nagios-text Nagios web administration password?
■駄目だった
# aptitude install trac
■すでにはいっている
# aptitude install ping traceroute whois logrotate
■調査
# apt-cache search ruby # apt-cache search apache # apt-cache search postfix # apt-cache search trac # apt-cache search lv
Last modified: 2006-12-03