environment: already install xp,win7 and win8PE, left 87G space to install Debian, this space not format for any tpye.

Download Debian system image, and burn it to DVD, restart PC, almost press "next", but no network install, use the spare space to install, at last install the bootloader "GRUB"

when i finished this install, there will be some problem arise:

1. $ sudo apt-get install vim
  bash: sudo: command not found

  $ su -

  # apt-get install sudo

  $ sudo apt-get install vim
  We trust you have received the usual lecture from the local System
  Administrator. It usually boils down to these three things:
      #1) Respect the privacy of others.
      #2) Think before you type.
      #3) With great power comes great responsibility.
  [sudo] password for oee:
  oee is not in the sudoers file.  This incident will be reported.

  $ su -

#chmod u+w /etc/sudoers

#vi /etc/sudoers

add “xxx ALL=(ALL:ALL) ALL” below “root ALL=(ALL:ALL) ALL”

#chmod u-w /etc/sudoers

2.when new install
Debian, the network is not working properly,and type “ifconfig”
at your terminal command, it will say:”command not found”.[此命令在sbin而不在bin中]

  you can
add “export PATH=$PATH:/sbin” at the end of “$HOME/.profile”
to solve this problem.[通过修改环境变量让用户copener也可以用超级用户的程序ifconfig]

  修改环境变量的方法有几个:

  1、直接在shell里面exprot,例如:“export PATH=$PATH:/sbin”。此方法在重启后失效。

  2、修改系统启动的配置文件/etc/profile,在末尾处增加一句“export PATH=$PATH:/sbin”。对所有用户有效

  3、修改用户启动的配置文件$HOME/.bashrc,在末尾处增加一句“export PATH=$PATH:/sbin”。对本用户有效

  

  可通过echo $PATH查看

3、刚安装的系统在vi文件后进入插入模式后键盘会出现不对应

  $sudo gedit /etc/vim/virmc.tiny

  打开virmc.tiny文件后找到 set compatible,把它改为 set nocompatible,并在它下一行增加set backspace=2,保存即可。设置了键盘为不兼容的模式。

4.configure
network,”sudo gedit /etc/network/interfaces”

  auto
lo

iface
lo inet loopback

auto
eth0

iface
eth0 inet dhcp

later,
reboot computer

5.when you type "sudo apt-get install  XXX",it will search your DVD mount at /media/cdrom

how to mount your iso image file to cdrom?

sudo mount -o loop debian-7.6.0-i386-DVD-1.iso /media/cdrom

and later, i try to update and install, it works!

sudo apt-get update

sudo apt-get install vim

  (some simle command: apt-get remove {package}; apt-get --purge remove {package}; apt-get upgrade )

6.ppp network

  sudo apt-get install pppoeconf

  sudo pppoeconf

  when you configure those, the network is ready.

  手动控制网络连接 
  要连接到你设置好的ADSL连接,在终端中输入: 
  sudo pon dsl-provider

  要断开ADSL连接,在终端中输入: 
  sudo poff dsl-provider

  

7.wireless configure

  check wireless module name.

  #ifconfig -a

    and if will list all network card, such as lo,eth0 and wlan0, but no information about wireless card .

  #lsmod

    list all the module in the system, but no information about wireless card.

  #iwconfig

    list some info about wireless card, but i didn't see the network card name.

  #lsusb

    list all usb device system connect, and i can find my wireless card chip name rt2870/t3070

  now, i search for this driver at https://packages.debian.org/zh-tw/wheezy/firmware-ralink , download driver, and install it.

  #dpkg -i firmware-ralink_0.36+wheezy.1_all.deb

  #vim /etc/network/interface

    configure wireless       

auto wlan0
iface wlan0 inet dhcp
wireless-essid [ESSID]
wireless-psk [PASSWD]
wpa-key-mgmt WPA-PSK

  #ifup wlan0

    active wireless

  #iwlist wlan0 scan

    scan wireless

  自己在interface中配置网络还是麻烦,例如不好切换。还是用network-manager来管理网络吧,很好用。需要注意的是,在interface中仅保留回环地址,否则network-manager不会接管。

  目前能连接到wifi但是还不稳定

8.为终端打开添加系统全局快捷键ctrl+alt+T

  系统设置,键盘,快捷键,自定义快捷键……gnome-terminal

9.update /etc/apt/sources.list

  #cp sources.list sources.list_bak

  #gedit sources.list\

    input those sources address    

# 网易163更新服务器:
deb http://mirrors.163.com/debian/ squeeze main non-free contrib
deb http://mirrors.163.com/debian/ squeeze-proposed-updates main non-free contrib
deb-src http://mirrors.163.com/debian/ squeeze main non-free contrib
deb-src http://mirrors.163.com/debian/ squeeze-proposed-updates main non-free contrib

# sohu 更新服务器:
deb http://mirrors.sohu.com/debian/ lenny main non-free contrib
deb http://mirrors.sohu.com/debian/ lenny-proposed-updates main non-free contrib
deb-src http://mirrors.sohu.com/debian/ lenny main non-free contrib
deb-src http://mirrors.sohu.com/debian/ lenny-proposed-updates main non-free contrib

  #apt-get update

  #apt-get install apt-spy

  #cp sources.list sources.list_bak

  #apt-spy update

  #apt-spy -d stable -a Asia

  automaticly to update sources.list file

  

10.install and configure input method

  卸载fcitx有关的组件然后安装ibus

  sudo apt-get install ibus

  sudo apt-get install ibus-table-wubi

  还有一个开机自启动问题

  安装im-switch然后sudo im-switch -c配置一下

  把/etc/X11/xinit/xinput.d/default备份一下再把ibus的拷贝为default

  在$HOME/.bashrc里面添加:

  export GTK_IM_MODULE=ibus
  export XMODIFIERS=@im=ibus
  export QT_IM_MODULE=ibus

  later reboot system

11.install xmind

  

sudo add-apt-repository ppa:fcitx-team/nightly

sudo apt-get update

sudo apt-get install fcitx-table-wbpy

Install Debian note的更多相关文章

  1. Install Asterisk 11 on Ubuntu 12.04 LTS

    http://blogs.digium.com/2012/11/14/how-to-install-asterisk-11-on-ubuntu-12-4-lts/ Last week I put up ...

  2. install font

    哪些字体包含国际音标呢? 在微软的Windows与Office的2000或以上版本中分别带有Lucida Sans Unicode和Arial Unicode MS两种字体(以下分别简称LSU和AUM ...

  3. debian中sudo无法使用问题

    原文链接:http://sharadchhetri.com/2013/08/07/sudo-command-not-found-debian-7/ To solve this issue instal ...

  4. How do you install Google Chrome on Ubuntu?

    https://askubuntu.com/questions/510056/how-to-install-google-chrome sudo apt-get install chromium-br ...

  5. macbook pro install ubuntu

    https://help.ubuntu.com/community/MacBookPro Determine your hardware revision To determine which ver ...

  6. how to install git 1.8 rpm

    git版本在低于1.8之前,对于私有项目会出现401的pull失败错误,只能通过升级git版本来解决 It appears that git18 is no longer available from ...

  7. Install OpenCV 3.0 and Python 2.7+ on OSX

    http://www.pyimagesearch.com/2015/06/15/install-OpenCV-3-0-and-Python-2-7-on-osx/ As I mentioned las ...

  8. 在Ubuntu/CentOS/Debian系统下,使用CPU挖Monero (XMR)币

    CentOS7(增加源) yum repolist # 查看yum源列表 yum localinstall http://dl.fedoraproject.org/pub/epel/7/x86_64/ ...

  9. How to install tensorflow on ubuntu 18.04 64bit

    Ans:pip install tensorflow (note:  version number of pip and python must be  consistent)

随机推荐

  1. setProgressBarIndeterminateVisibility(true);

    此为在标题栏 上 设置一个loading 圈  实用...

  2. centos设置静态ip地址

    1.修改网卡配置 编辑:vi /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 #描述网卡对应的设备别名,例如ifcfg-eth0的文件中它为 ...

  3. web前端从0开始--1

    博主以前没接触过web前端,最近刚开始学习. 在学习的同时,希望能不断整理总结.于是便有了此博客. 博主技术浅薄,并且第一次写此类博客,希望各位大牛能多多保函. 好了废话不多说了,开始正文. web前 ...

  4. freeCAD预选项编辑器

    freeCAD的预选项系统在 Edit 目录 -> Preferences. freecad的功能分成不同的模块,每一模块负责一个特定的工作台工作.freecad还使用了一个概念叫晚加载,这意味 ...

  5. nim也玩一行流,nim版的list comprehension

    nim 是一门风格类似python的静态编译型语言,官方网站:http://nim-lang.org 如果你想折腾nim的编辑环境,可以用sublime text3 +插件nimlime,notepa ...

  6. vector容器使用和assert断言关键字

    C++里面的容器是个比较复杂的东西,我这篇只说vector容器怎么使用,详细的网搜. vector模板类其实是一个动态数组,跟自己用new关键字创建数组一样,只不过vector会自动帮我们用new和d ...

  7. Mysqli封装

    <?php //headerheader('content-type:text/html;charset=UTF-8'); class DB {    //定义属性    private $ho ...

  8. JavaScript数组模拟栈和队列

    *栈和队列:js中没有真正的栈和队列的类型              一切都是用数组对象模拟的 栈:只能从一端进出的数组,另一端封闭       FILO   何时使用:今后只要仅希望数组只能从一端进 ...

  9. 【C】二级指针探秘 & 星号的两种用法(1.与基本类型结合形成另一种类型,比如与int结合形成int* 2.取值操作)

    1)问题:二级指针到底是什么?怎么用的?怎么存放的? #include <stdio.h> #define TEST_ADDR 0x12FF40 void main() { int a = ...

  10. java 调用 sql server存储过程

    Transact-SQL中的存储过程,非常类似于Java语言中的方法,它可以重复调用.当存储过程执行一次后,可以将语句缓存中,这样下次执行的时候直接使用缓存中的语句.这样就可以提高存储过程的性能. Ø ...