Debian Initialization

 

 

       Debian6.0.1a配置网卡信息




     更改网卡配置文件cat /etc/network/interfaces文件如下:

 

  
  
  
  
  1. # This file describes the network interfaces available on your system 
  2. # and how to activate them. For more information, see interfaces(5). 
  3.  
  4. # The loopback network interface 
  5. auto lo 
  6. iface lo inet loopback 
  7.  
  8. # The primary network interface 
  9. allow-hotplug eth0 
  10. iface eth0 inet static 
  11.         address 192.168.2.15 
  12.         netmask 255.255.255.0 
  13.         network 192.168.2.0 
  14.         broadcast 192.168.2.255 
  15.         gateway 192.168.2.2 
  16.         # dns-* options are implemented by the resolvconf packageif installed 
  17.         dns-nameservers 202.103.224.68 

 

 

sources.list,类似centos中的CentOS-Base.repo.

 

  
  
  
  
  1. # sources.list generated by apt-spy v3.1 
  2. # Generated using: 
  3. # apt-spy \ 
  4. #       -d stable \ 
  5. #       -a Asia \ 
  6. #       -t 10 
  7. deb ftp://debian.ustc.edu.cn/debian/ stable main #contrib non-free 
  8. deb-src ftp://debian.ustc.edu.cn/debian/ stable main #contrib non-free 
  9. deb http://security.debian.org/ stable/updates main 

 

安装必要软件。vim是最小化的,openssh都没有。
build-essential包含了gcc,g++这些软件包
rcconf 相当于centos的ntsysv
  
  
  
  
  1. aptitude update ; aptitude upgrade 
  2. aptitude install vim ssh build-essential rcconf

  3. vim /etc/vim/vimrc 
  4.  
  5. synatx on 
  6. set nu 

终端显示的目录等文件名竟然不是彩色的,经常要通过ls -l等来查看是否目录。

把这些前面的注释去掉即可。

   
   
   
   
  1. # You may uncomment the following lines if you want `ls' to be colorized: 
  2.  export LS_OPTIONS='--color=auto' 
  3.  eval "`dircolors`" 
  4.  alias ls='ls $LS_OPTIONS' 
  5.  alias ll='ls $LS_OPTIONS -l' 
  6.  alias l='ls $LS_OPTIONS -lA' 
debian,ssh很久才会响应
  
  
  
  
  1. vim /etc/ssh/sshd_config 
  2. #add 
  3. UseDNS no 

 

 

你可能感兴趣的:(Debian,职场,休闲)