Debain 7.2安装配置
一 下載安裝Debian 7.2
???? 安裝debian CD1,在最后一步,使用網絡安裝基本界面。
二 修改源
??? cd /etc/apt
??? mv sources.list sources.list.bak
??? gedit /sources.list
??? 添加:
#####################主要,開源,閉源
deb http://mirrors.163.com/debian wheezy main non-free contrib
deb-src http://mirrors.163.com/debian wheezy main non-free contrib
###################wheezy-proposed-updates建議更新
deb http://mirrors.163.com/debian wheezy-proposed-updates main contrib non-free
deb-src http://mirrors.163.com/debian wheezy-proposed-updates main contrib non-free
###################wheezy-updates推薦更新
deb http://mirrors.163.com/debian wheezy-updates main contrib non-free
deb-src http://mirrors.163.com/debian wheezy-updates main contrib non-free
#################wheezy/updates安全更新
deb http://mirrors.163.com/debian-security wheezy/updates main contrib non-free
deb-src http://mirrors.163.com/debian-security wheezy/updates main contrib non-free
deb http://http.us.debian.org/debian wheezy main contrib non-free
deb http://security.debian.org wheezy/updates main contrib non-free
deb http://ftp.cn.debian.org/debian wheezy main contrib non-free
deb-src http://ftp.cn.debian.org/debian wheezy main contrib non-free
deb http://ftp.sjtu.edu.cn/debian wheezy main non-free contrib
deb-src http://ftp.sjtu.edu.cn/debian wheezy main non-free contrib
deb http://ftp.sjtu.edu.cn/debian wheezy-proposed-updates main non-free contrib
deb-src http://ftp.sjtu.edu.cn/debian wheezy-proposed-updates main non-free contrib
deb http://ftp.sjtu.edu.cn/debian-security wheezy/updates main non-free contrib
deb-src http://ftp.sjtu.edu.cn/debian-security wheezy/updates main non-free contrib
#firefox
deb http://downloads.sourceforge.net/project/ubuntuzilla/mozilla/apt all main ?
sudo apt-get update 刷新一下。
三 安裝firefox
因為debian自帶的瀏覽器有些我要的插件不兼容如,fireftp firebug,雖然也是firefox社區版。
1 卸載iceweasel
sudo apt-get remove iceweasel
2 添加源(見上),安裝firefox
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com C1289A29
apt-get install firefox-mozilla-build
當時在這里遇到了一些問題,firefox處于half-installed狀態。
就使用:
sudo apt-get --reinstall install firefox-mozilla-build
完成重裝。參考: http://www.cnblogs.com/ibgo/archive/2013/09/15/3322457.html
四 安裝輸入法
http://code.google.com/p/ibus/wiki/Debian
The default input method for Debian is SCIM. To install iBus, use the following command.
The default input method for Debian is SCIM. To install iBus, use the following command.sudo apt-get install ibus im-switch
sudo apt-get install ibus-pinyin # or other engine(s) you want
sudo apt-get install ibus-table ibus-table-wubi # wubi
im-switch -s ibus
# logout and re-login
ibus-setup # add input methods you want
?五 安裝emacs,配置emacs 輸入法(ibus-el)
????? sudo apt-get install emacs ibus-el
????? ~/.emacs配置
;;http://v.youku.com/v_show/id_XNDE0MjkxOTM2.html
;;ibus-mode
;;(add-to-list 'load-path "~/.emacs.d/ibus-el-0.3.2")
(require 'ibus)
;; Turn on ibus-mode automatically after loading .emacs
(add-hook 'after-init-hook 'ibus-mode-on)
;; Choose your key to toggle input status:
(ibus-define-common-key ?\C-\s nil)
(global-set-key (kbd "C-\\") 'ibus-toggle) ;;通過Ctrl+\切換輸入法
(setq ibus-cursor-color '("red" "blue"))
(custom-set-variables '(ibus-python-shell-command-name "python2"))
?六 安裝apt-fast,多線程的apt-get
http://wiki.ubuntu.org.cn/index.php?title=Apt-fast&variant=zh-hans
sudo apt-get install axel aria2sudo add-apt-repository ppa:apt-fast/stablesudo apt-get updatesudo apt-get install apt-fast
?因為這里是debian系統安裝ubuntu PPA軟件
在apt-get update之后,要修改/etc/apt/sources.list.d/下的文件
?將wheezy改成 precise即ubuntu的版本號
root@debian:/home/kevin# cat /etc/apt/sources.list.d/apt-fast-stable-wheezy.list
deb http://ppa.launchpad.net/apt-fast/stable/ubuntu precise main
deb-src http://ppa.launchpad.net/apt-fast/stable/ubuntu precise main
七 打印機安裝hplip
http://hplipopensource.com/hplip-web/install_wizard/index.html
按向導,下載文件,安裝。
其他打印機方案,http://www.linuxfoundation.org/collaborate/workgroups/openprinting
頁邊距太寬了,浪費
lpoptions -p HP_LaserJet_Professional_M1213nf_MFP -o page-left=3 -o page-right=3 -o page-top=3 -o page-bottom=3
參考 http://127.0.0.1:631/help/options.html#OPTIONS?
Setting the Page Margins
The value argument is the margin in points; each point is 1/72 inch or 0.35mm.
?
?
?
?
?
? ?
?
?
?
?
轉載于:https://www.cnblogs.com/allbymyself/p/3443872.html
總結
以上是生活随笔為你收集整理的Debain 7.2安装配置的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 有救么
- 下一篇: 之前偶然看见个包,想买!不知道是啥包,求