スポンサーリンク


いろいろ役立つ情報

Debianのインストール

  • DNRH-001 にインストールするときはBIOSの設定に注意こちらのサイトが非常に参考になった。
    BIOS 設定 ... Advanced ChipSet  Feautures ... Select Display Device <CRT> に設定しないとインストール画面が判別できないくらい乱れる。
    初期値は <CRT + LCD>
    因みに <LCD> に設定すると VGA 出力が停止して ... C-MOS クリアの羽目になります。(経験済(^_^;)
  • ftp://ftp.nuie.nagoya-u.ac.jp/pub/Linux/Debian/debian/

ネットワーク設定

# vi /etc/network/interfaces

auto lo
iface lo inet loopback

iface eth0 inet dhcp
auto eth0

allow-hotplug eth1
#iface eth1 inet dhcp
iface eth1 inet static
address 192.168.1.131
network 192.168.1.0
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 192.168.1.1
auto eth1

# vi /etc/resolv.conf

nameserver 192.168.1.1

# /etc/init.d/networking restart

コンソールの言語設定

# dpkg-reconfigure locales

# reboot

# locale

# emacs .profile

LANG=en_US
LANGUAGE=en_US
LC_ALL=en_US

# vi /etc/environment
# vi /etc/defaults/locale
#LANG="ja_JP.UTF-8"
LANG="en_US.UTF-8"

ソースリストからCDを削除

# vi /etc/apt/sources.list

# deb cdrom:[Debian GNU/Linux 4.0 r6 _Etch_ - Official i386 NETINST Binary-1 20081220-23:12]/ etch contrib main

SSH

# aptitude install ssh

# cp /etc/ssh/sshd_config /etc/ssh/sshd_config.default

# vi /etc/ssh/sshd_config

#PermitRootLogin yes
PermitRootLogin no

# vi /etc/hosts.allow

sshd:192.168.1.
sshd:127.0.0.1

# /etc/init.d/ssh restart

emacsのインストール

# aptitude install emacs

PATHの追加(sbin)

# emacs /etc/profile

 PATH="/usr/local/bin:/usr/bin:/bin:/sbin:/usr/games"

# export $PATH

sudoのインストール

# aptitude install sudo

# visudo

解凍ツールのインストール

# aptitude install bzip2

コンパイル環境のインストール

# aptitude install cc

# aptitude install gcc

# aptitude install make

traceroute6とかを使うためのツールインストール

# aptitude install iputils-tracepath

ターミナルの色変更

# setterm -clear all -foreground white -background blue

sambaのインストール

debian:~# aptitude install samba
debian:~# smbpasswd -U hogehoge
New SMB password:
Retype new SMB password:
debian:~# emacs /etc/samba/smb.conf
[homes]
  comment = Home Directories
  browseable = no
  writable = yes
  create mask = 0744
  directory mask = 0755
debian:~# /etc/init.d/samba restart
Stopping Samba daemons: nmbd smbd.
Starting Samba daemons: nmbd smbd.

Apacheのインストール

  • phpのインストール後の設定
    emory_limit = **M      ; Maximum amount of memory a script may consume (16MB)
    
    ; Maximum size of POST data that PHP will accept.
    post_max_size = **M
    
    ; Maximum allowed size for uploaded files.
    upload_max_filesize = **M

ntp

# apt-get install ntp ntpdate ntp-doc ntp-simple

# vi /etc/ntp.conf

# ntpq -pn

# vi /etc/default/rcS

# Set UTC=yes if your system clock is set to UTC (GMT), and UTC=no if not. UTC=no

sourcelist

deb http://ftp.jp.debian.org/debian etch main contrib non-free
deb http://security.debian.org etch/updates main contrib non-free
deb http://ftp.jp.debian.org/debian-volatile etch/volatile main contrib # volatile を使う場合。
deb http://www.jp.backports.org/ etch-backports main contrib non-free    # backports を使う場合。

cronttab

  • 1分おきに起動
    #crontab
    */1 * * * * wget http://myct.jp/....
    

Total:5715 / Today:1 / Yesterday:1


スポンサーリンク


トップ   差分 バックアップ リロード   一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2010-09-18 (土) 22:28:32