Install Debian note
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的更多相关文章
- 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 ...
- install font
哪些字体包含国际音标呢? 在微软的Windows与Office的2000或以上版本中分别带有Lucida Sans Unicode和Arial Unicode MS两种字体(以下分别简称LSU和AUM ...
- debian中sudo无法使用问题
原文链接:http://sharadchhetri.com/2013/08/07/sudo-command-not-found-debian-7/ To solve this issue instal ...
- How do you install Google Chrome on Ubuntu?
https://askubuntu.com/questions/510056/how-to-install-google-chrome sudo apt-get install chromium-br ...
- macbook pro install ubuntu
https://help.ubuntu.com/community/MacBookPro Determine your hardware revision To determine which ver ...
- how to install git 1.8 rpm
git版本在低于1.8之前,对于私有项目会出现401的pull失败错误,只能通过升级git版本来解决 It appears that git18 is no longer available from ...
- 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 ...
- 在Ubuntu/CentOS/Debian系统下,使用CPU挖Monero (XMR)币
CentOS7(增加源) yum repolist # 查看yum源列表 yum localinstall http://dl.fedoraproject.org/pub/epel/7/x86_64/ ...
- How to install tensorflow on ubuntu 18.04 64bit
Ans:pip install tensorflow (note: version number of pip and python must be consistent)
随机推荐
- [转]as3 算法实例【输出1 到最大的N 位数 题目:输入数字n,按顺序输出从1 最大的n 位10 进制数。比如输入3,则输出1、2、3 一直到最大的3 位数即999。】
思路:如果我们在数字前面补0的话,就会发现n位所有10进制数其实就是n个从0到9的全排列.也就是说,我们把数字的每一位都从0到9排列一遍,就得到了所有的10进制数. /** *ch 存放数字 *n n ...
- 如何在ashx页面获取Session值
[转] 在一般事务处理页面,可以轻松的得到 Request,Response对象,从而进行相应的操作,如下: HttpRequest Request = context.Request; Http ...
- 如何在网页中调用百度地图api
我想在木有提供地图接口的年代,前端工程师门要么只写上企业的具体地址,要么就是用一张标有自己位置的地图图片.但是现在不一样啦!为了增强用户体验,谷歌,甚至百度都很开放了,你可以在他们的网站上找到地图接口 ...
- iOS架构师之路:慎用继承
最近在看大神Casa的文章<跳出面向对象思想(一) 继承>,脑洞大开.文章给我们展示了一个随着产品需求不断变化的例子,该例子中通过继承实现不同页面的搜索视图和搜索逻辑的代码复用,随着产品需 ...
- MVC 本地运行可以发布到IIS 报Sorry, an error occurred while processing your request.解决方案
发布MVC程序的时候经常遇到这种情况,每次都要搞好久才找到问题.最终找到解决办法: 报500错误大部分的情况还是程序存在异常,但全部被MVC错误拦截成了友好提示, 只要在Web.config下添加一行 ...
- SQL.集合转字符串
场景:有个表,里面有NUM1,NUM2,NUM3,NUM4,我们打算把所有数据拼接成一个值. 在.net中使用的方法应该是两层for循环拼接起来,下面来介绍下sql中的方式 第一种方法,动态sql d ...
- Install and set JAVA home on MAC OS with commandline
最近需要在MAC上做一些测试,由于测试机没有安装Java,只能自己安装,由于不能通过图形化界面访问测试机,只能通过命令行的形式来安装JAVA. 1. Download the jre/jdk inst ...
- linux命令:chgrp
1.命令介绍: chgrp用来改变文件或目录所属组的权限,要改变成的组必须在/etc/group文件存在才可以. 2.命令格式: chgrp [选项] 组 文件 3.命令参数: 必要参数: -c 当发 ...
- 查看外网出口IP && Traceroute
一.CentOS 查看外网出口IP 1---------------- # curl ifconfig.me 2----------------# curl icanhazip.com 二.Trace ...
- Maven基础知识(转)
文章摘自http://www.cnblogs.com/xing901022/p/4170248.html 谢谢楼主的总结,界面设计的很好看! 一.什么是Maven Maven是一个用于项目构建的工具, ...